Joystream / argo-bridge

Cross-chain token bridge between Joystream and EVM blockchains
https://bridge.joystream.org
ISC License
1 stars 1 forks source link

Request only required amount for approval #5

Open kdembler opened 2 months ago

kdembler commented 2 months ago

Before you can bridge from Base to Joystream, you first need to do ERC20 approval for the ArgoBridgeV1 contract to move tokens on your behalf. Currently, we ask the user to approve the max possible amount of tokens, which is not the best practice. Instead, the approval should be only for the amount that the user actually want to transfer.