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

Change swap button to "create token account" if the user doesn't have a token account

Open armaniferrante opened this issue 3 years ago • 1 comments

Instead of dynamically creating the account, we should provide an explicit flow. This will help prevent transactions from going over the tx size limit.

armaniferrante avatar Jun 29 '21 01:06 armaniferrante

Instead of "create token account" we should relabel this to "initialize swap accounts" or something similar, which can both create the token account and create the open orders account. This will solve issues as encountered here https://github.com/project-serum/swap-ui/issues/62.

armaniferrante avatar Jun 30 '21 17:06 armaniferrante