swap-ui icon indicating copy to clipboard operation
swap-ui copied to clipboard

[WIP] Explicit flows for wrapping and token initialization

Open armaniferrante opened this issue 3 years ago • 4 comments

Addresses https://github.com/project-serum/swap-ui/issues/63

Changes:

  • displays wrap/unwrap when swapping between sol/wrapped-sol
  • displays "create accounts" when the "to token" (or quote token for a transitive swap) does not have an account created
  • displays "create accounts" when the DEX open orders accounts aren't created

TODO:

  • display wrap/unwrap when displaying a wormhole or sollet swap market

armaniferrante avatar Jun 30 '21 20:06 armaniferrante

I'm working to update states after "create accounts" is called, should make a PR tomorrow. It would be better if wrap/unwrap could is implemented through a separate PR, as we want to deploy "create accounts" in production.

secretshardul avatar Aug 30 '21 18:08 secretshardul

Please approve https://github.com/project-serum/swap-ui/pull/77

secretshardul avatar Sep 01 '21 10:09 secretshardul

How to proceed on the Sollet and Wormhole update? I'm thinking as follows:

secretshardul avatar Sep 27 '21 10:09 secretshardul

Sollet unwrap for wUSDC and wUSDT is supported now. Wormhole token swaps shouldn't need code changes. We just list the wormhole markets on Solana's token list so that swaps are enabled.

secretshardul avatar Sep 28 '21 11:09 secretshardul