Armani Ferrante
Armani Ferrante
The locked token reward vendor should be generalized to allow for dropping arbitrary program accounts as rewards onto stakers.
Instead of using an event queue for clients to keep track of available rewards, we can use deterministic addresses. Specifically, we can * Add a global reward vendor counter to...
It's possible to get a 0x66 error, which means that the swap executed gave the user zero `to` tokens. We should estimate the amount of `to` tokens one would receive...
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...
Instead of trying to swap the entire amount given by the client, the program should read the orderbook, calculate the exact amount for the swap (i.e. the max amount such...
When the program is given a token account that hasn't been initialized (i.e. its data array is zero) the program ungracefully fails. For example, ``` Program failed to complete Program...
Lines like this should return error codes instead of unwrapping so that clients can receive more informative errors https://github.com/project-serum/swap/blob/master/programs/swap/src/lib.rs#L526.
Currently, the discount feature is ignored. The program should instead allow one to pass in a srm or msrm address to receive trade discounts, as the feature is already supported...