Closed wainola closed 5 months ago
update: as per conversation with @sztok7 I'm going to make a small refactor to avoid the checking and also rely on debounce for the race conditions when building the transfers
Currently there are 2 issues on it:
Source Substrate it breaks after using it several time STR:
Select source Rahala
Destination Sepolia
Select SygUSDC as token
Fill in destination wallet.
Fill in amount.
After switching to many times the input value, it will lose track to update This issue is not consistent and does not have 100% chance to replicate.
Re tested and there is still an issue: When switching to a new network source, that requires the user to reset the token type drop down, if the user inputs a 2 digit number very fast, the "Amount to receive:" is only going to be calculated only from the first digit number. See gif below
There is still a small issue ongoing as:
STR:
Exp: The amount to be transferred to be set to the new input ( value 4 - Fee). Act: The amount to be transferred is calculated based on the initial input - 25.
There is still a small issue ongoing as:
STR:
- Select Sepolia source and destination Base.
- Connect Metmask wallet.
- Insert value 25 and then paste the destination EVM address.
- Then switch destination to Rococo.
- Insert a value destination address and wait for math to update.
- Then switch destination to Base one more and wait for math to update.
- Then switch destination to Rhala again.
- Update the amount to be transfered from 25 to 4 and then insert the destination Rhala Address. Booth action very fast ( <= 1 second).
Exp: The amount to be transferred to be set to the new input ( value 4 - Fee). Act: The amount to be transferred is calculated based on the initial input - 25.
We would like to close this PR as this case occurs when a very fast reaction is made from the user, we can open an issue in future if we can easily reproduce this
Description
Fixes displayed amount to receive due to double subtraction over the already subtracted value
Related Issue Or Context
Closes: #192
How Has This Been Tested? Testing details.
Types of changes
Checklist: