Skip to content

Commit

Permalink
Feat/incentive refactor (#269)
Browse files Browse the repository at this point in the history
* chore: refactor incentive to handle lp and stake in different epoch and based on blocks

* chore: refactor incentive

* chore: fix start block time comparison issue

* chore: add v6 migrator in incnetive

---------

Co-authored-by: kenta-elys <kenta@elys.enetwork>
Co-authored-by: Cosmic Vagabond <121588426+cosmic-vagabond@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 23, 2023
1 parent 58f2557 commit 321868b
Show file tree
Hide file tree
Showing 19 changed files with 1,163 additions and 602 deletions.
1 change: 0 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,6 @@ func NewElysApp(
// insert epoch hooks receivers here
app.OracleKeeper.Hooks(),
app.CommitmentKeeper.Hooks(),
app.IncentiveKeeper.Hooks(),
app.BurnerKeeper.Hooks(),
app.MarginKeeper.Hooks(),
),
Expand Down
39 changes: 26 additions & 13 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,24 +284,37 @@ genesis:
incentive:
params:
lp_incentives:
- amount: "100000000000"
epoch_identifier: tenseconds
start_time: "2023-04-20T12:34:56.789Z"
num_epochs: "3154000"
current_epoch: "0"
eden_boost_apr: "100"
- eden_amount_per_year: "10000000000000"
distribution_start_block: "1"
total_blocks_per_year: "10512000"
allocation_epoch_in_blocks: "28800"
max_eden_per_allocation: "27397238400"
distribution_epoch_in_blocks: "10"
current_epoch_in_blocks: "0"
eden_boost_apr: "1"
stake_incentives:
- amount: "100000000000"
epoch_identifier: tenseconds
start_time: "2023-04-20T12:34:56.789Z"
num_epochs: "3154000"
current_epoch: "0"
eden_boost_apr: "100"
community_tax: "0.02"
- eden_amount_per_year: "10000000000000"
distribution_start_block: "1"
total_blocks_per_year: "10512000"
allocation_epoch_in_blocks: "28800"
max_eden_per_allocation: "27397238400"
distribution_epoch_in_blocks: "20"
current_epoch_in_blocks: "0"
eden_boost_apr: "1"
community_tax: "0.00"
withdraw_addr_enabled: true
reward_portion_for_lps: "0.65"
pool_infos: []
elys_stake_tracking_rate: "10"
dex_rewards_stakers:
num_blocks: "0"
amount: "0"
amount_collected_by_other_tracker: "0"
dex_rewards_lps:
num_blocks: "0"
amount: "0"
amount_collected_by_other_tracker: "0"
max_eden_reward_apr: "0.30"
fee_pool:
community_pool:
- amount: "0"
Expand Down
Loading

0 comments on commit 321868b

Please sign in to comment.