This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
Check if there is an allowance already before trying to make one. #184
Labels
bug
Something isn't working
Suppose the following scenario happens:
There is no way to recover from that state in case of failure in the second step, and frontend will ask to set a new allowance. Instead the contract should check first if such allowance exist, and not ask for it in case it exists and is enough. Right now users should submit a second transaction to set a new allowance which is suboptimal.
The text was updated successfully, but these errors were encountered: