serum-dex
serum-dex copied to clipboard
optimize settle_funds and accrue fee rebate at time of trade instead of event queue
It saves something like 20k compute on settle funds by avoiding the extra CPI call. This has been working well on devnet for a month.