Identity-Wallet
Identity-Wallet copied to clipboard
Swap token feature
@rhdelima Have you finished testing this ticket?
FYI the feature flag is: FEATURE_SWAP_TOKENS=1
@andregoncalves Failing this one. Critical error is encountered when clicking Calculate Fees. See recording below. http://recordit.co/92GzdOnV5g
build: dev/2020.04.07.12
It seems totle changed one of their API responses. Looking into it.
Totle stopped returning the swap fee on the api response. Not sure if this is because Kyber is not live yet, in any case I made a PR to handle this case.
@andregoncalves please see initial issues below:
-
The default Change To value is KEY however after transaction, the exchange was made to another KEY token and NOT SelfKey. Transaction: https://etherscan.io/tx/0xf1c430066738c9f1709a084a0ae813d20793150bdaca9540b99d9e9a52d867cc
-
Missing sent to address
-
Shows $0.00 USD value for KEY token (not SK) and NaN on Amount
Investigating it.
But first impression is that it's an issue with totle because we're not live yet on kyber, and totle swap routing goes to the other "KEY"
Because we can only test on mainnet, it's probably a good idea to hold testing until we're live.
@andregoncalves You mean, hold testing until we're live on Kyber, right?
yes
Also other issues: https://gyazo.com/97fcdb575654846cbdc5c6e7d91b2eee vs https://projects.invisionapp.com/d/main#/console/15222689/393424599/preview
- Button should be called "Exchange"
- Amount input correct placeholder is "Amount to swap*"
- Missing the correlated token value under amount input (in the example above, KEY value for that given amount)
- Reduce the big space at the end of the modal
Regarding the other "KEY" token: https://mattermost.kyc-chain.com/kyc-chain/pl/85q3me3by7dfxqbug5pp97esar
Trading screen is updatedhttps://projects.invisionapp.com/d/main#/console/15222689/393424599/preview and https://projects.invisionapp.com/d/main#/console/15222689/413340456/preview - in the last one, what feature we were missing, is say I calculated fees for exchanging 1000$, now if I change my mind, and type 1500$ it should go back to 1st screen, with only calculate fees button enabled
#2170 handles the "other" key token.
@andregoncalves Please see some issues below:
-
CALCULATE FEES not working for SWAPPED tokens. In the recording below, KNC was a swapped token but when I tried to swap it with other token, CALCULATE FEES button is not working https://recordit.co/HOnbjWLEaD
-
Unable to swap token with enough balance. See recording: http://recordit.co/EE4abTjYlI
-
Is it possible to add newly swapped token to My Tokens?
-
Not enough ETH shows
Your Address to receive KEY
. Replace KEY with ETH
Work in progress on fixes to 1,2 and 4. Adding new feature for automatically add the swapped token.
@andregoncalves What's the status of this ticket? What's left to do?
I'm working on this fix: https://github.com/SelfKeyFoundation/Identity-Wallet/issues/2174#issuecomment-624494844 An an issue reported by ralph on mattermost QA channel.
@andregoncalves I can't do a successful swap due to high transaction fee. Please see issues below:
- Transaction fee is too high. Please confirm if this is correct
- When using trezor or ledger, we should show modal informing user to confirm swap transaction on the device.
- Even if eth not enough modal is shown, Swap completed modal is still displayed http://recordit.co/KJf5eGcRco