0g-chain/x/incentive
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
..
client Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
keeper Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
legacy Incentive genesis refactor: remove sync on export (#954) 2021-07-15 15:41:55 +01:00
simulation Incentive/Hard rebase to master (#773) 2021-01-21 14:52:09 +01:00
spec Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
testutil Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
types Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
abci.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
alias.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
doc.go USDX incentives implementation (#399) 2020-04-24 11:20:34 -04:00
genesis_test.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
genesis.go Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
handler_delegator_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
handler_hard_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
handler_swap_test.go Update Pool ID Separator (#968) 2021-07-15 19:09:35 -05:00
handler_usdx_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
handler.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
integration_test.go fix: update swap genesis in test (#964) 2021-07-15 10:03:30 -05:00
module.go [R4R] fix: validate usdx minting collaterals in incentive genesis (#770) 2021-01-19 22:42:50 -07:00