0g-chain/x/cdp/keeper
Denali Marsh bf64a5c02c
R4R: add collateral value, collateralization ratio to CDP querier (#347)
* AugmentedCDP type, codec registration, querier update

* added unique error for augmented cdp loading

* added AugmentedCDPs type for cdps query res

* query results for cdps (by denom) & cdps-by-ratio (by denom & ratio)

* status: converting collateral value into debt coin denom

* collateral value denominated in debt coin

* query cdps-by-ratio now searches by collateralization ratio instead of absolute ratio

* updated alias, code comments

* updated querier tests

* support multiple principal coins and their associated fees

* collateralization ratio calculations on updated fees

* include calculated fees in total debt calculation
2020-01-28 09:47:08 -08:00
..
auctions_test.go Run begin blocker (#321) 2020-01-20 19:28:30 +00:00
auctions.go Apply Liquidation Penalty (#313) 2020-01-21 17:52:07 +00:00
cdp_test.go fix: remove redundant debt limit param (#312) 2020-01-17 13:24:43 +01:00
cdp.go R4R: add collateral value, collateralization ratio to CDP querier (#347) 2020-01-28 09:47:08 -08:00
deposit_test.go Fix withdraw panic (#315) 2020-01-22 16:56:30 +00:00
deposit.go fix typo (#332) 2020-01-24 13:31:33 -05:00
draw_test.go Apply debt floor to repayments (#314) 2020-01-22 16:50:27 +00:00
draw.go Apply debt floor to repayments (#314) 2020-01-22 16:50:27 +00:00
fees_test.go R4R: CDP types and methods (#275) 2020-01-12 16:35:34 +01:00
fees.go Fix: Avoid panics when adding cdp collaterals via governance (#329) 2020-01-23 15:41:45 -05:00
integration_test.go Pricefeed fixes (#308) 2020-01-17 13:29:19 +01:00
keeper.go R4R: Move liquidator functions to cdp module (#280) 2020-01-15 15:19:33 +01:00
params.go Fix: Avoid panics when adding cdp collaterals via governance (#329) 2020-01-23 15:41:45 -05:00
querier_test.go R4R: add collateral value, collateralization ratio to CDP querier (#347) 2020-01-28 09:47:08 -08:00
querier.go R4R: add collateral value, collateralization ratio to CDP querier (#347) 2020-01-28 09:47:08 -08:00
seize_test.go fix: avoid panic if cdp debt > debt held by cdp account (#326) 2020-01-21 20:28:25 +00:00
seize.go fix: avoid panic if cdp debt > debt held by cdp account (#326) 2020-01-21 20:28:25 +00:00