Skip to content

Rebalancing Incentive Integration#36

Draft
iboss-ptk wants to merge 36 commits intomainfrom
rebalancing-incentive-integration
Draft

Rebalancing Incentive Integration#36
iboss-ptk wants to merge 36 commits intomainfrom
rebalancing-incentive-integration

Conversation

@iboss-ptk
Copy link
Copy Markdown
Contributor

@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