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

Rebalancing Incentive Integration #36

Draft
wants to merge 36 commits into
base: main
Choose a base branch
from

Conversation

iboss-ptk
Copy link
Collaborator

@iboss-ptk iboss-ptk commented Oct 29, 2024

  • create rebalancing incentive config state
  • create incentive pool state
  • set and query config
  • query incentive pool
  • instantiate: set default state for rebalancing incentive config and incentive pool
  • migration: set default state for rebalancing incentive config and incentive pool
  • remove ideal balance if asset is removed
  • merge Rebalancing incentive calculation #33 (merge first and if there is a comment over there then fix it here)
  • before any pool operation, determine fee / incentive amount
  • migrate incentive pool when lambda updated
  • update incentive pool to track and update incentive collected before lambda changed to current one.
  • if it's a fee, deduct token_in into incentive pool (only record amount, no bank send needed since token is still owned by the contract)
  • if it's an incentive, distribute those amount (this needs bank send)**

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.

1 participant