Skip to content

Commit af2d1f8

Browse files
committed
fix: tax
1 parent c8cf45a commit af2d1f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/SwapForm/SwapModal/ConfirmSwapModalContent.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ export default function ConfirmSwapModalContent({
9393
const [honeypot, setHoneypot] = useState<{ isHoneypot: boolean; isFOT: boolean; tax: number } | null>(null)
9494
useEffect(() => {
9595
if (!currencyIn?.wrapped.address) return
96-
console.log('xxx')
9796
fetch(
9897
`${TOKEN_API_URL}/v1/public/tokens/honeypot-fot-info?address=${currencyIn.wrapped.address.toLowerCase()}&chainId=${chainId}`,
9998
)
@@ -127,7 +126,7 @@ export default function ConfirmSwapModalContent({
127126
if (honeypot?.isFOT) {
128127
return (
129128
<Text>
130-
This token has a Fee-on-Transfer. Please increase the slippage to at least {honeypot.tax}% to proceed.
129+
This token has a Fee-on-Transfer. Please increase the slippage to at least {honeypot.tax * 100}% to proceed.
131130
</Text>
132131
)
133132
}

0 commit comments

Comments
 (0)