Skip to content
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

Merged
merged 5 commits into from Dec 8, 2021
Merged

Conversation

Arrowana
Copy link
Contributor

@Arrowana Arrowana commented Dec 7, 2021

@siong1987
Copy link

+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 {
Copy link
Contributor

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
Copy link
Contributor

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.

@jhlx
Copy link
Contributor

jhlx commented Dec 7, 2021

Looks great, thank you so much!

@jhlx jhlx merged commit db9247f into project-serum:master Dec 8, 2021
@Arrowana Arrowana deleted the serum-fee-reduction branch August 8, 2022 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants