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

fix docment about fee point #63

Closed
wants to merge 2 commits into from
Closed

fix docment about fee point #63

wants to merge 2 commits into from

Conversation

jerrybaoo
Copy link
Collaborator

No description provided.

Comment on lines +497 to +498
/// 0 means that all exchange fees belong to the liquidity provider.
/// 30 means that all exchange fees belong to the fee receiver.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still incorrect, a value of 0 actually gives all fees to the fee receiver. A higher value simply limits the total cut of the exchange fee given to the fee receiver, therefore an upper bound of 30 is not required.

Copy link
Collaborator Author

@jerrybaoo jerrybaoo Feb 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the current code, it seems intuitive that fee_receiver earns more when fee_point=30 than when fee_point=10. So can you use unit tests to corroborate your point?

Copy link
Contributor

@gregdhill gregdhill Feb 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See: e3fd328

@jerrybaoo jerrybaoo closed this Mar 8, 2023
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.

2 participants