-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat:add USN swap page and USN to the list of tokens (#2) #2568
Conversation
* feat:add swap page and functionality * feat/added changes UI in wallet, added feeature-flag * feat/added CREATT_USN_FLAG Co-authored-by: OlegYak <[email protected]>
👷 Deploy request for near-wallet-staging pending review.Visit the deploys page to approve it
|
@OlegYak Could you link the smart contract code for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on first pass 👍 . Left some comments on fetching logic, slice shape and other comments re props etc.
I found a bunch of typos. Please make sure to check the changes for any typos and correct them.
Also please rebase the branch when complete 😄
[ | ||
selectAllContractMetadata, | ||
selectOwnedTokensForAccount, | ||
selectUSDNTokenFiatValueUSD, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be more generic fiat data selector once we add configurable fetching for token fiat values per #2568 (comment)
packages/frontend/src/components/Swap/SwapAndSuccessContainer.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/Swap/SwapAndSuccessContainer.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/Swap/SwapAndSuccessContainer.js
Outdated
Show resolved
Hide resolved
packages/frontend/src/components/Swap/SwapAndSuccessContainer.js
Outdated
Show resolved
Hide resolved
@agileurbanite @nall-near @esaminu Just wanted to flag here that Jacob has been working on designs for swaps which are set to be implemented for NEAR <> wNEAR. We'll want to make sure that any work such as this falls inline with what has already been done so we aren't implementing two of the same thing. Not sure what the best course of action is with regards to this issue in particular but will leave that up to you all 🙌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍 left a few more comments
Co-authored-by: Osman Abdelnasir <[email protected]>
Co-authored-by: Osman Abdelnasir <[email protected]>
Co-authored-by: Osman Abdelnasir <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HI |
* feat:add swap page and functionality * feat/added changes UI in wallet, added feeature-flag * feat/added CREATT_USN_FLAG Co-authored-by: OlegYak <[email protected]>
Co-authored-by: Osman Abdelnasir <[email protected]>
Co-authored-by: Osman Abdelnasir <[email protected]>
Co-authored-by: Osman Abdelnasir <[email protected]>
never mind. please ignore my comments. just realized the swap feature is already merged in #2583 |
@esaminu we can close this PR right given your PR merged in? |
This PR is part of an effort to include the USN contract.
This PR gives the wallet the right to use USN tokens, exchange them for NEAR and vice versa.
Main changes: