Skip to content

Rebalancing incentive calculation#33

Closed
iboss-ptk wants to merge 13 commits intomainfrom
rebalancing_incentive_calculation
Closed

Rebalancing incentive calculation#33
iboss-ptk wants to merge 13 commits intomainfrom
rebalancing_incentive_calculation

Conversation

@iboss-ptk
Copy link
Copy Markdown
Contributor

All calculations for rebalancing incentive mechanism, precision loss are handled.

More info on the mechanism https://hackmd.io/_c9N1wV5RZ-VlpstKUaKjA

@iboss-ptk iboss-ptk self-assigned this Oct 3, 2024
@iboss-ptk iboss-ptk requested a review from PaddyMc October 3, 2024 08:32
@iboss-ptk iboss-ptk requested a review from crnbarr93 October 28, 2024 09:20
@iboss-ptk iboss-ptk mentioned this pull request Oct 31, 2024
13 tasks
@iboss-ptk iboss-ptk force-pushed the rebalancing_incentive_calculation branch from 78ad42c to d5fe090 Compare November 1, 2024 08:43
Copy link
Copy Markdown
Collaborator

@crnbarr93 crnbarr93 left a comment

Choose a reason for hiding this comment

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

LGTM! Just a potential small comment change. Will need to evaluate how these functions are implemented in the rest of the contract but it looks like that'll be a separate PR.

/// $$
/// C(b) =
/// \begin{cases}
/// \left(\frac{b - \phi_l}{\phi_l}\right)^2 & \text{if } 0 \leq b \lt \phi_l \\
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
/// \left(\frac{b - \phi_l}{\phi_l}\right)^2 & \text{if } 0 \leq b \lt \phi_l \\
/// \left(\frac{\phi_l - b}{\phi_l}\right)^2 & \text{if } 0 \leq b \lt \phi_l \\

Is this the correct way? The formula doesn't match the implementation

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed here as part of #36

@iboss-ptk
Copy link
Copy Markdown
Contributor Author

Will close this PR as the changes are already included in #36

@iboss-ptk iboss-ptk closed this Nov 7, 2024
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