0g-chain/x/incentive/keeper
Ruaridh dc6f5c6c83
Fix incentive usdx/borrow/supply reward calculation bug (#974)
* extract borrow sync logic into separate func

* fix borrow reward calculations
Use the normalized borrow as the source shares in reward calculations.

* extract supply sync logic into separate func

* prepare to fix supply reward calculations

* fix deposit reward calculations
Use the normalized deposit as the source shares in reward calculations.

* extract usdx sync logic into separate func

* prepare to fix usdx reward calculations

* fix cdp reward calculations
Use the normalized cdp debt as the source shares in reward calculations.

* fix compile error from messed up partial stage

* Fix incentive usdx reward bug (#976)

* minor test refactors

* fix overpayment bug
Init methods should not read params.
Add test to cover bug

* fix typos
2021-07-26 20:07:24 +01:00
..
claim_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
claim.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
diff_test.go Fix: delete incentive reward factors on full withdraw/repay (#885) 2021-03-23 17:28:03 -06:00
hooks.go Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
integration_test.go Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
keeper_test.go Incentive genesis refactor: remove sync on export (#954) 2021-07-15 15:41:55 +01:00
keeper.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
params.go Refactor to DelegatorClaim and implement new MsgClaimDelegatorReward (#948) 2021-07-07 18:50:14 +02:00
payout_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
payout.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
querier.go Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00
rewards_borrow_accum_test.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01: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 Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01: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 Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
rewards_delegator_init_test.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
rewards_delegator_sync_test.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
rewards_delegator_test.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
rewards_delegator.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
rewards_supply_accum_test.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
rewards_supply_init_test.go Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
rewards_supply_sync_test.go Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
rewards_supply_test.go Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
rewards_supply_update_test.go Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01: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 Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01: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 Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
rewards_swap.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
rewards_usdx_accum_test.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
rewards_usdx_test.go Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01: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 Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00