zetamarkets / sdk

SDK for accessing the Zeta program
Apache License 2.0
79 stars 28 forks source link

Only burn tokens for openOrdersAccounts that have nonzero tokens #310

Closed filipzeta closed 7 months ago

filipzeta commented 7 months ago

Cranks struggled because they had to send hundreds of txs every time, mostly for empty accounts. Filter the accounts to only send txs we need, drastically reducing load (eg. thousands of accounts down to 50 for SOL)