0g-chain/x/incentive/keeper
Denali Marsh eaeaf20e83
Incentive savings hooks + init/sync of savings claims (#1209)
* update savings module macc balances getter

* add savings keeper to incentive module

* add savings keeper to incentive module #2

* savings reward syncing

* claim savings reward

* update txs, queries

* update txs, queries #2

* update claim test

* add savings keeper to incentive module in app.go

* re-commit files to disk

* define and call hooks

* keeper methods for init/sync savings reward

* update other tests for easier extendibility

* init savings reward test

* add helper methods to global incentive unit tester

* sync savings test progress

* savings init fix + completed tests

* sync savings updates + tests

* nit: simplify false check

* fix: calculate set difference of incoming deposit denoms

Co-authored-by: karzak <kjydavis3@gmail.com>
2022-04-21 16:19:03 +02:00
..
claim_test.go Incentive module: claim savings reward (#1208) 2022-04-20 13:08:57 +02:00
claim.go Incentive module: claim savings reward (#1208) 2022-04-20 13:08:57 +02:00
diff_test.go Fix: delete incentive reward factors on full withdraw/repay (#885) 2021-03-23 17:28:03 -06:00
hooks.go Incentive savings hooks + init/sync of savings claims (#1209) 2022-04-21 16:19:03 +02:00
integration_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
keeper_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
keeper.go Incentive module: claim savings reward (#1208) 2022-04-20 13:08:57 +02:00
msg_server_delegator_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
msg_server_hard_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
msg_server_swap_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
msg_server_usdx_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
msg_server.go Add savings claim types to incentive module (#1204) 2022-04-01 16:17:03 +02:00
params.go Incentive: savings module reward accumulation logic (#1207) 2022-04-12 16:14:14 +02:00
payout_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
payout.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
querier.go Incentive module: claim savings reward (#1208) 2022-04-20 13:08:57 +02:00
rewards_borrow_accum_test.go Incentive module: claim savings reward (#1208) 2022-04-20 13:08:57 +02:00
rewards_borrow_init_test.go Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
rewards_borrow_sync_test.go Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
rewards_borrow_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -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 Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
rewards_delegator_accum_test.go Incentive module: claim savings reward (#1208) 2022-04-20 13:08:57 +02:00
rewards_delegator_init_test.go Incentive module: claim savings reward (#1208) 2022-04-20 13:08:57 +02:00
rewards_delegator_sync_test.go Incentive module: claim savings reward (#1208) 2022-04-20 13:08:57 +02:00
rewards_delegator_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
rewards_delegator.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
rewards_savings_accum_test.go Incentive: savings module reward accumulation logic (#1207) 2022-04-12 16:14:14 +02: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 Incentive savings hooks + init/sync of savings claims (#1209) 2022-04-21 16:19:03 +02:00
rewards_supply_accum_test.go Incentive module: claim savings reward (#1208) 2022-04-20 13:08:57 +02:00
rewards_supply_init_test.go Incentive savings hooks + init/sync of savings claims (#1209) 2022-04-21 16:19:03 +02:00
rewards_supply_sync_test.go Incentive savings hooks + init/sync of savings claims (#1209) 2022-04-21 16:19:03 +02:00
rewards_supply_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -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 Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
rewards_swap_accum_test.go Incentive module: claim savings reward (#1208) 2022-04-20 13:08:57 +02: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 Incentive module: claim savings reward (#1208) 2022-04-20 13:08:57 +02:00
rewards_swap.go Fix bug in syncing swap rewards (#977) 2021-07-26 14:07:18 -06:00
rewards_usdx_accum_test.go Incentive module: claim savings reward (#1208) 2022-04-20 13:08:57 +02:00
rewards_usdx_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
rewards_usdx_unit_test.go Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
rewards_usdx.go Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
unit_test.go Incentive savings hooks + init/sync of savings claims (#1209) 2022-04-21 16:19:03 +02:00