swap-ui
swap-ui copied to clipboard
Change swap button to "create token account" if the user doesn't have a token account
Instead of dynamically creating the account, we should provide an explicit flow. This will help prevent transactions from going over the tx size limit.
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.