-
Notifications
You must be signed in to change notification settings - Fork 608
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
feat: Burning ProtoRev Profit #7509
Conversation
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.
This LGTM! Left comments in Slack requesting that we make this not happen on every single trade though
Can you add a changelog, and then I think it's good to merge? I think we need to make this function get called periodically pre release though. I'll try to make an issue for that today |
Will add the change log! I'll also update this to migrate non-osmo denom profits to the community pool. |
expectedErr: false, | ||
expectedDevProfit: sdk.NewCoin(types.OsmosisDenomination, osmomath.NewInt(20)), | ||
expectedDevProfit: sdk.NewCoin(types.OsmosisDenomination, osmomath.NewInt(200)), |
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.
ah numbers 10x'd because below we changed distribute profit call to be hard coded at 1000, just switching which denom,
Closes #7320
What is the purpose of the change
This PR updates the profit distribution mechanism of protorev such that if the profit is denominated in uosmo, send the profit to the zero address (
osmo1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqmcn030
) after redistributing the developer profits.Testing and Verifying
Added test coverage to the updated distribution logic.
Documentation and Release Note
Unreleased
section ofCHANGELOG.md
?Where is the change documented?
x/{module}/README.md
)