Skip to content

Commit

Permalink
fix: bignumber conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jan 6, 2023
1 parent 9ce176d commit a0e6221
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/widget/src/hooks/useSwapRoutes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,7 @@ export const useSwapRoutes = () => {
}
const fromAmount = Big(fromTokenAmount || 0)
.mul(10 ** (fromToken?.decimals ?? 0))
.toString();
// const toAmount = Big(toTokenAmount || 0)
// .mul(10 ** (toToken?.decimals ?? 0))
// .toString();
.toFixed(0);
const formattedSlippage = parseFloat(slippage) / 100;

if (variant === 'nft') {
Expand Down

0 comments on commit a0e6221

Please sign in to comment.