Skip to content

Commit

Permalink
update simulate
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Oct 8, 2024
1 parent 34ce351 commit 00ab354
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/universal-swap/src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,6 @@ export class UniversalSwapHelper {
let fromInfo = getTokenOnOraichain(query.originalFromInfo.coinGeckoId);
let toInfo = getTokenOnOraichain(query.originalToInfo.coinGeckoId);

const amountSimulate = toAmount(query.originalAmount, fromInfo.decimals).toString();
/**
* useAlphaIbcWasm case: (evm -> oraichain -> osmosis -> inj not using wasm)
* useIbcWasm case: (evm -> cosmos)
Expand All @@ -835,7 +834,7 @@ export class UniversalSwapHelper {
const simulateRes: SmartRouterResponse = await UniversalSwapHelper.simulateSwapUsingSmartRoute({
fromInfo,
toInfo,
amount: amountSimulate,
amount: toAmount(query.originalAmount, fromInfo.decimals).toString(),
routerConfig: routerConfigDefault
});

Expand Down

0 comments on commit 00ab354

Please sign in to comment.