Solmateβs ERC20 does not provide option to increase/decrease allowance, and only option to do so is by setting it via approve - which sets this amount directly. This poses a problem of double spending, when a user want to check current allowance, and bad actor frontruns the transaction to get tokens for previous and current allowance.
VS Code
Use increaseAllowance and decreaseAllowance functions for your own ERC20βs.
The text was updated successfully, but these errors were encountered:
All reactions