Description:
Error 500 is thrown while trying to convert "max" amount of asset. It's caused because there is some rounding issue inside "From" input field when swapping assets.
Select any ERC-20 asset (for example "FEI") inside "From" drop-down
Click on your asset balance to fill maximum amount to swap
Submit your order
Current behavior:
conversion fails because error 500 is being thrown; the issue is that it tries to swap more than wallet has when using "max" feature to fill out the amount to swap
Expected behavior:
no rounding should be done when using "max" button
Screenshots:
Desktop (please complete the following information):
Description: Error 500 is thrown while trying to convert "max" amount of asset. It's caused because there is some rounding issue inside "From" input field when swapping assets.
https://api.1inch.exchange/v3.0/1/swap?fromTokenAddress=0x956f47f50a910163d8bf957cf5846d573e7f87ca&toTokenAddress=0x57ab1ec28d129707052df4df418d58a2d46d5f51&amount=129636893229830630000&fromAddress=0x8dd7b3223b9c2f18b0f4b4108ed2a506f824b1ce&slippage=0.1
Prerequisites:
Reproduction steps:
Current behavior:
Expected behavior:
Screenshots:
Desktop (please complete the following information):