Skip to content

Commit

Permalink
fix dusa price estimate
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjah authored and pivilartisant committed Jun 19, 2024
1 parent 46ba802 commit 0855333
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/custom/usdPrice/useFetchPrice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export function useUsdValue() {
}
// get the output amount without slippage
outputAmount = formatAmount(
prices.virtualAmountsWithoutSlippage[2],
prices.virtualAmountsWithoutSlippage[
prices.virtualAmountsWithoutSlippage.length - 1
],
outputToken.decimals,
).preview;
}
Expand Down

0 comments on commit 0855333

Please sign in to comment.