ChainSafe / ChainBridge

🌉 Modular Multi-Directional Blockchain Bridge to interact with Multiple Networks; Ethereum, Ethereum Classic, Substrate, based chains. Stay tuned for ChainBridge Hub!
GNU Lesser General Public License v3.0
474 stars 300 forks source link

Approve bridge to assume custody of tokens one time #736

Closed tungnnt closed 2 years ago

tungnnt commented 2 years ago

In this step, I found that approve step approves a permission for the bridge to use a specific number of token in the wallet. When I deposit more than this specific number of token in to substrate, it fails to excute the transaction, and I need to approve again to have it worked again. Can I approve token for just one time ?

P1sar commented 2 years ago

Hey! Technically you are able to approve for an insanely high amount one time and make deposits without any future approves. But this is highly not recommended as a basic security reason.