for staking dapp — how to avoid approve everytime.
How to implement it in front end any ideas?
Jan 9, 2022, 2:50 PM
Detect if the user already approves the contract then you can show one thing or another thing
I do at this way, when the app start i retrieve first the allowance of the wallet (if is connected)
Previously i use a React.useEffect to read the actual allowance of the user
Jan 9, 2022, 3:06 PM
Thanks man
Jan 9, 2022, 3:14 PM
🦾
This is like a low level interaction to make the same Contract.new right? that's what I can understand
Jan 9, 2022, 3:27 PM