project-serum / swap

Swap on the Serum Order Book
Apache License 2.0
78 stars 90 forks source link

Share open orders accounts across all users #15

Open armaniferrante opened 3 years ago

armaniferrante commented 3 years ago

Given that swapping immediately fills and settles, open orders accounts can be shared with everyone, since the total balances of the open orders account at the end of the transaction should always be zero. This will eliminate the need for users to create and close open orders accounts, which gives a false sense of high fees.