0g-chain/x/hard
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 Additional Hard module queries (#884) 2021-03-22 18:57:07 +01:00
keeper Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00
legacy/v0_11 [R4R] incentive, hard migrations (#783) 2021-02-22 14:08:23 -07:00
simulation remove GetPreviousBlockTime/SetPreviousBlockTime (#797) 2021-02-04 17:54:01 +01:00
spec Fix hard/committee begin blocker order (#867) 2021-03-10 21:38:42 -07:00
types Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
abci.go update spec, add money market deprecation steps (#841) 2021-02-22 13:52:17 -07:00
alias.go update spec, add money market deprecation steps (#841) 2021-02-22 13:52:17 -07:00
genesis.go Genesis import/export fixes (#871) 2021-03-10 21:32:35 -07:00
handler.go Hard Audit: enable users to repay another account's borrows (#801) 2021-02-08 13:51:42 +01:00
module.go update 'harvest' -> 'hard' (#746) 2020-12-21 18:18:55 +01:00