Open NanoOrca opened 3 years ago
thanks!
Good idea!
The case to consider for this implementation: sometimes, a user can set a limited spend amount number. So here it will not be enough just a token section in the 'From' field. Amount in the 'From' field should be considered as well.
Currently token allowance approval happens only once all fields are set and the swap is ready to go, in order to separate the token approval from trading, the system could check for allowance as soon as the user fills the "from" field. This way the user can start approving tokens at any time without any commitment to trading them now.
Testing and if needed asking for approval at this stage
instead of this stage