wormhole-foundation / example-liquidity-layer

Apache License 2.0
11 stars 11 forks source link

solana: harden missing token account checks #188

Closed a5-pickle closed 1 month ago

a5-pickle commented 2 months ago

Crazy! I didn't know you could close a token account then reopen it as another mint. So, good change here.

FYI: If a token account were created with a random keypair (not with the associated token program), you can have keypair XYZ be used to create an account initializing a token account with some mint A. Then use the same keypair to create another account initializing a token account with a different mint B after closing it