Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-orbs committed Nov 12, 2024
1 parent b82c0b1 commit e4ce183
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/dapp-example/src/SushiSwap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ const TWAPComponent = ({ limit }: { limit?: boolean }) => {
if (!fromToken) {
setFromToken(dappTokens?.[1]);
}
// if (!toToken) {
// setToToken(dappTokens?.[2]);
// }
if (!toToken) {
setToToken(dappTokens?.[2]);
}
}, [dappTokens, toToken]);

const onSwitchTokens = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const Fee = () => {
return BN(outAmount).multipliedBy(fee).dividedBy(100).toFixed().toString();
}, [fee, outAmount, isMarketOrder]);

const amountUi = useFormatNumber({ value: useAmountUi(dstToken?.decimals, amount), decimalScale: 3 });
const amountUi = useFormatNumberV2({ value: useAmountUi(dstToken?.decimals, amount)});

if (!fee) return null;
return <OrderDisplay.DetailRow title={`Fee (${fee}%)`}>{amountUi ? `${amountUi} ${dstToken?.symbol}` : ""}</OrderDisplay.DetailRow>;
Expand Down

0 comments on commit e4ce183

Please sign in to comment.