mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-30 01:27:57 +03:00
@@ -61,7 +61,8 @@ export default async function getSwapMarketFeeInfo({
|
||||
assetIn,
|
||||
assetOut,
|
||||
amount.toString(),
|
||||
options?.poolOnly ? ['ORION_POOL'] : undefined,
|
||||
false,
|
||||
options?.poolOnly ? 'pools' : undefined,
|
||||
);
|
||||
|
||||
if (swapInfo.orderInfo !== null && options?.poolOnly === true && options.poolOnly !== swapInfo.isThroughPoolOptimal) {
|
||||
|
||||
@@ -22,6 +22,7 @@ export type SwapMarketParams = {
|
||||
orionUnit: OrionUnit,
|
||||
options?: {
|
||||
poolOnly?: boolean,
|
||||
instantSettlement?: boolean,
|
||||
logger?: (message: string) => void,
|
||||
autoApprove?: boolean,
|
||||
developer?: {
|
||||
@@ -124,6 +125,7 @@ export default async function swapMarket({
|
||||
assetIn,
|
||||
assetOut,
|
||||
amount.toString(),
|
||||
options?.instantSettlement,
|
||||
options?.poolOnly ? ['ORION_POOL'] : undefined,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user