Trying to bridge DAI from Ethereum mainnet to EVMOS after bridging USDT and USDC successfully. After the approval tx, the actual bridging send call errored due to not having enough DAI balance.
Of course, I did have enough DAI balance — I used the "max" button on the bridge form. Unfortunately, my DAI balance had a full 18 decimals, and the amount in the tx request the dApp build had rounded those up.
I'd suggest the value of the input in the bridge dApp never be kept as a number, instead keeping it as a string, then either a BigNumber or bigint, depending on what the dApp uses internally/
Trying to bridge DAI from Ethereum mainnet to EVMOS after bridging USDT and USDC successfully. After the approval tx, the actual bridging
send
call errored due to not having enough DAI balance.Of course, I did have enough DAI balance — I used the "max" button on the bridge form. Unfortunately, my DAI balance had a full 18 decimals, and the amount in the tx request the dApp build had rounded those up.
I'd suggest the value of the input in the bridge dApp never be kept as a number, instead keeping it as a string, then either a
BigNumber
orbigint
, depending on what the dApp uses internally/