We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The code mixes up both
https://github.com/project-serum/swap/blob/master/programs/swap/src/lib.rs#L505-L555
When creating an order we need the rebate token account, which gives the rebate on the fees, while settle funds need the referrer to take the UI cut.
New order
https://github.com/project-serum/serum-dex/blob/master/dex/src/state.rs#L1814-L1818
Settle funds
https://github.com/project-serum/serum-dex/blob/master/dex/src/state.rs#L2086
Serum swap is using both as the same thing. anchor CPI is also doing the term "referral" for both situations.
But how to handle both of those as remaining_accounts?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The code mixes up both
https://github.com/project-serum/swap/blob/master/programs/swap/src/lib.rs#L505-L555
When creating an order we need the rebate token account, which gives the rebate on the fees, while settle funds need the referrer to take the UI cut.
New order
https://github.com/project-serum/serum-dex/blob/master/dex/src/state.rs#L1814-L1818
Settle funds
https://github.com/project-serum/serum-dex/blob/master/dex/src/state.rs#L2086
Serum swap is using both as the same thing. anchor CPI is also doing the term "referral" for both situations.
But how to handle both of those as remaining_accounts?
The text was updated successfully, but these errors were encountered: