interface
interface copied to clipboard
Rounding error causing transactions to fail when supplying coins
Describe the bug When attempting to supply all of a wallet's USDC to AAVE's polygon network, the transaction fails. The UI supplies error text "Internal JSON-RPC error."
To Reproduce Steps to reproduce the behavior:
- Go to 'AAVE Polygon USDC market'
- Click on 'Supply'
- Select "Max"
- Send transaction
- Observe transaction failure.
Expected behavior The transaction should succeed with all coins from the wallet.
Screenshots N/A
Desktop (please complete the following information):
- OS: [e.g. iOS] Windows
- Browser [e.g. chrome, safari] Edge
- Version [e.g. 22] 101
Additional context The transaction succeeded after I manually reduced the transaction size by 0.1 coins. My assumption is that there is a rounding mismatch happening somewhere.
@stephenjust are you in polygon v3 or v2? That info will help debugging as the "max" works different between the versions.
I'm using polygon V2.
Closing this, seems like it's not an issue anymore.