0g-chain/x/cdp
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 Update Swagger for kava-5 (#852) 2021-02-23 14:02:08 -07:00
keeper Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00
legacy fix: replace is zero time check (#787) 2021-02-02 14:42:51 -07:00
simulation Misc simulation fixes (#963) 2021-07-15 10:46:56 -05:00
spec add liquidate msg to cdp spec (#850) 2021-02-23 12:41:17 -07:00
types Fix incentive usdx/borrow/supply reward calculation bug (#974) 2021-07-26 20:07:24 +01:00
abci_test.go fix: enforce max number of liquidations in cdp begin blocker (#849) 2021-02-23 12:39:39 -07:00
abci.go fix: enforce max number of liquidations in cdp begin blocker (#849) 2021-02-23 12:39:39 -07:00
alias.go [R4R] CDP module migrations from v0.11 -> v0.13 (#769) 2021-01-21 10:37:35 -07:00
genesis_test.go [R4R] CDP module migrations from v0.11 -> v0.13 (#769) 2021-01-21 10:37:35 -07:00
genesis.go Genesis import/export fixes (#871) 2021-03-10 21:32:35 -07:00
handler_test.go Add collateral type to cdp (#629) 2020-08-21 15:42:46 -04:00
handler.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
integration_test.go Cdp accumulators (#751) 2021-01-18 12:12:37 -07:00
module.go update format 2020-04-30 10:23:41 -04:00