0g-chain/x/cdp
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
..
client R4R: add collateral value, collateralization ratio to CDP querier (#347) 2020-01-28 09:47:08 -08:00
keeper R4R: add collateral value, collateralization ratio to CDP querier (#347) 2020-01-28 09:47:08 -08:00
spec Add CDP Spec (#328) 2020-01-23 14:09:36 -05:00
types R4R: add collateral value, collateralization ratio to CDP querier (#347) 2020-01-28 09:47:08 -08:00
abci_test.go fix: avoid panic if cdp debt > debt held by cdp account (#326) 2020-01-21 20:28:25 +00:00
abci.go R4R: Move liquidator functions to cdp module (#280) 2020-01-15 15:19:33 +01:00
alias.go R4R: add collateral value, collateralization ratio to CDP querier (#347) 2020-01-28 09:47:08 -08:00
doc.go feat: migrate modules from kava-devnet 2019-11-25 14:46:02 -05:00
genesis_test.go R4R: CDP types and methods (#275) 2020-01-12 16:35:34 +01:00
genesis.go Fix: Avoid panics when adding cdp collaterals via governance (#329) 2020-01-23 15:41:45 -05:00
handler_test.go R4R: CDP types and methods (#275) 2020-01-12 16:35:34 +01:00
handler.go R4R: CDP types and methods (#275) 2020-01-12 16:35:34 +01:00
integration_test.go Fix: Avoid panics when adding cdp collaterals via governance (#329) 2020-01-23 15:41:45 -05:00
module.go R4R: CDP types and methods (#275) 2020-01-12 16:35:34 +01:00