0g-chain/x/incentive/keeper
drklee3 8186367c8b
feat(community): consolidate community funds (#1729)
* Add consolidate methods

* Update distr feepool balance with dust, add tests

* Set params for proposal handler to not influence module balances

* Add StakingRewardsPerSecond param for proposal test

* Update changelog

* Update test to check emitted events

* Log dust amounts for x/distribution

* Modify feepool communitypool field instead of entire replacement

* Update tests to include cases with empty balances

* Move EventsContains to app

* Remove extra copied ModuleName

* Add Require() to incentive claims in tests to reduce errors

* Move consolidate tests to testutil

* Only transfer non-ukava coins

* Add DefaultStakingRewardsState to proposal handler test

* Move event emit before consolidate

* add golangci specific timeout

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
2023-10-20 09:18:37 -07:00
..
claim_test.go Revert per-module incentive claim denom multipliers (#1312) 2022-09-27 19:46:14 -07:00
claim.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
diff_test.go Fix: delete incentive reward factors on full withdraw/repay (#885) 2021-03-23 17:28:03 -06:00
grpc_query_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
grpc_query.go Add incentive grpc query service (#1503) 2023-03-21 15:47:21 -07:00
hooks.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
integration_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
keeper_test.go Add base earn incentives (#1292) 2022-09-22 11:26:08 -07:00
keeper_utils_test.go Add incentive earn tests with real keepers (#1354) 2022-10-19 16:13:37 -07:00
keeper.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
msg_server_delegator_test.go feat(community): consolidate community funds (#1729) 2023-10-20 09:18:37 -07:00
msg_server_earn_test.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
msg_server_hard_test.go feat(community): consolidate community funds (#1729) 2023-10-20 09:18:37 -07:00
msg_server_swap_test.go feat(community): consolidate community funds (#1729) 2023-10-20 09:18:37 -07:00
msg_server_usdx_test.go feat(community): consolidate community funds (#1729) 2023-10-20 09:18:37 -07:00
msg_server.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
params.go Revert per-module incentive claim denom multipliers (#1312) 2022-09-27 19:46:14 -07:00
payout_test.go gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
payout.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
querier_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
querier.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
rewards_borrow_accum_test.go Add weighted bkava support for earn incentives (#1299) 2022-09-23 09:38:22 -07:00
rewards_borrow_init_test.go gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
rewards_borrow_sync_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
rewards_borrow_test.go feat(community): consolidate community funds (#1729) 2023-10-20 09:18:37 -07:00
rewards_borrow_update_test.go Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
rewards_borrow.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
rewards_delegator_accum_test.go Add weighted bkava support for earn incentives (#1299) 2022-09-23 09:38:22 -07:00
rewards_delegator_init_test.go Add weighted bkava support for earn incentives (#1299) 2022-09-23 09:38:22 -07:00
rewards_delegator_sync_test.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
rewards_delegator_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
rewards_delegator.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
rewards_earn_accum_integration_test.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
rewards_earn_accum_test.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
rewards_earn_init_test.go Add base earn incentives (#1292) 2022-09-22 11:26:08 -07:00
rewards_earn_proportional_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
rewards_earn_staking_integration_test.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
rewards_earn_staking_test.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
rewards_earn_sync_test.go Add weighted bkava support for earn incentives (#1299) 2022-09-23 09:38:22 -07:00
rewards_earn.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
rewards_savings_accum_test.go gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
rewards_savings_init_test.go Incentive savings hooks + init/sync of savings claims (#1209) 2022-04-21 16:19:03 +02:00
rewards_savings_sync_test.go Incentive savings hooks + init/sync of savings claims (#1209) 2022-04-21 16:19:03 +02:00
rewards_savings.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
rewards_supply_accum_test.go Add weighted bkava support for earn incentives (#1299) 2022-09-23 09:38:22 -07:00
rewards_supply_init_test.go gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
rewards_supply_sync_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
rewards_supply_test.go feat(community): consolidate community funds (#1729) 2023-10-20 09:18:37 -07:00
rewards_supply_update_test.go Incentive savings hooks + init/sync of savings claims (#1209) 2022-04-21 16:19:03 +02:00
rewards_supply.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
rewards_swap_accum_test.go Add weighted bkava support for earn incentives (#1299) 2022-09-23 09:38:22 -07:00
rewards_swap_init_test.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
rewards_swap_sync_test.go Add weighted bkava support for earn incentives (#1299) 2022-09-23 09:38:22 -07:00
rewards_swap.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
rewards_usdx_accum_test.go Add weighted bkava support for earn incentives (#1299) 2022-09-23 09:38:22 -07:00
rewards_usdx_test.go feat(community): consolidate community funds (#1729) 2023-10-20 09:18:37 -07:00
rewards_usdx_unit_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00
rewards_usdx.go feat: upgrade to Cosmos v0.46 (#1477) 2023-04-03 20:08:45 -04:00
unit_test.go Update deprecated Cosmos methods (#1530) 2023-04-05 16:21:59 -07:00