New issue
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
Lower fees as voted plz #204
Conversation
+1 for this. this requires no changes for anyone, maybe the communication to let people know about this. and, we can have the new fees immediately for everyone. |
} | ||
|
||
#[inline(always)] | ||
const fn rebate_bps(bps: u64) -> U64F64 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we keep this as rebate_tenth_of_bps for use below.
dex/src/fees.rs
Outdated
}; | ||
rate.mul_u64(pc_qty).floor() | ||
pub fn maker_rebate(self, _pc_qty: u64) -> u64 { | ||
0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we use rebate_tenth_of_bps(0).mul_u64(pc_qty).floor(). Not sure why we used to add a 2^-64 rebate to every tier before, but can keep it just for consistency.
Looks great, thank you so much! |
Special fee tier for stable needs more thinking so this should come later.
https://dao.projectserum.com/#/proposal/7GxS9nEc4ZiTjgSpTxg7JnsJXfyayoJocSdzAj5PmWR8?programId=AVoAYTs36yB5izAaBkxRG67wL1AMwG3vo41hKtUSb8is