project-serum / swap-ui

React Component for Swapping on the Serum DEX
Apache License 2.0
113 stars 117 forks source link

Create token accounts if they don't already exist #8

Closed armaniferrante closed 3 years ago

armaniferrante commented 3 years ago

Swapping to a token should create an associated token account, if it doesnt already exist. This includes intermediary accounts (udsc, usdt) for transitive swaps. This should happen in the transactions constructed from the @project-serum/swap package.

armaniferrante commented 3 years ago

This shouldn't block the first release. Removing p1 tag.

secretshardul commented 3 years ago

This issue is resolved, just tested. Required associated token accounts are auto created now. Can close the issue