mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-13 22:47:33 +03:00
is trade buy
This commit is contained in:
@@ -19,7 +19,7 @@ export type GetSwapInfoParams = {
|
||||
poolOnly?: boolean
|
||||
}
|
||||
walletAddress?: string
|
||||
isExactReceive?: boolean
|
||||
isTradeBuy?: boolean
|
||||
}
|
||||
|
||||
export default async function getSwapInfo({
|
||||
@@ -31,7 +31,7 @@ export default async function getSwapInfo({
|
||||
aggregator,
|
||||
options,
|
||||
walletAddress,
|
||||
isExactReceive = false,
|
||||
isTradeBuy = false,
|
||||
}: GetSwapInfoParams) {
|
||||
if (amount === '') throw new Error('Amount can not be empty');
|
||||
if (assetIn === '') throw new Error('AssetIn can not be empty');
|
||||
@@ -68,7 +68,7 @@ export default async function getSwapInfo({
|
||||
options?.poolOnly !== undefined && options.poolOnly
|
||||
? 'pools'
|
||||
: undefined,
|
||||
isExactReceive,
|
||||
isTradeBuy,
|
||||
);
|
||||
|
||||
const { exchanges: swapExchanges } = swapInfo;
|
||||
|
||||
Reference in New Issue
Block a user