Skip to content

fix docment about fee point#63

Closed
OmniaFlux wants to merge 2 commits intomasterfrom
fix-doc
Closed

fix docment about fee point#63
OmniaFlux wants to merge 2 commits intomasterfrom
fix-doc

Conversation

@OmniaFlux
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

@OmniaFlux OmniaFlux 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

@OmniaFlux OmniaFlux 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