0g-chain/x
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
..
auction add v0.13 legacy types for kava-5 (#784) 2021-02-02 15:10:57 -07:00
bep3 Misc simulation fixes (#963) 2021-07-15 10:46:56 -05:00
cdp Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
committee Squash merge swap-acceptance branch (#956) 2021-07-13 12:38:15 +01:00
hard Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
incentive Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
issuance address issues from audit (#793) 2021-02-04 11:35:24 -07:00
kavadist add community multi-spend proposal (#915) 2021-06-02 11:03:25 -06:00
pricefeed fix: return nil instead of empty byte slice (#878) 2021-03-15 08:41:36 -06:00
swap Update Pool ID Separator (#968) 2021-07-15 19:09:35 -05:00
validator-vesting fix: set previous block time correctly on block one (#868) 2021-03-10 10:56:23 -07:00