Kevin Davis
55b73e36ee
Fix: Check debt limit when adding cdp ( #433 )
...
* fix: check debt limit when opening cdp
* fix: increase debt limit for querier tests
2020-04-15 13:50:14 -04:00
Kevin Davis
bdff81b2a2
fix: avoid panic when closing cdp via repayment ( #353 )
2020-01-30 18:50:42 -05:00
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
Ruaridh
33ad221e5f
Fix gov denom typo ( #333 )
2020-01-24 11:39:09 +00:00
Kevin Davis
58deb49e55
Fix withdraw panic ( #315 )
...
* fix: remove redundant debt limit param
* wip: test pricefeed genesis
* fix: pricefeed querier
* fix: comments, naming
* fix: query path
* fix: store methods
* fix: query methods
* feat: Liquidation Penalty
* feat: enforce debt floor on repayment
* fix: don't panic if withdrawing full amount
* fix: remove debt from liquidation penalty
2020-01-22 16:56:30 +00:00
Kevin Davis
22dc15f757
Apply debt floor to repayments ( #314 )
...
* fix: remove redundant debt limit param
* wip: test pricefeed genesis
* fix: pricefeed querier
* fix: comments, naming
* fix: query path
* fix: store methods
* fix: query methods
* feat: Liquidation Penalty
* feat: enforce debt floor on repayment
* address review comments
* fix: remove debt from liquidation penalty
* test: remove payment > balance check
* feat: handle overpayment
* fix: avoid negative coins error for overpayments
2020-01-22 16:50:27 +00:00
Kevin Davis
dca59447aa
fix: remove redundant debt limit param ( #312 )
2020-01-17 13:24:43 +01:00
Kevin Davis
9b1bf55be7
R4R: Move liquidator functions to cdp module ( #280 )
...
* wip: tpyes and keeper methods
* wip: iterators
* wip: types and keeper methods
* wip: add msgs
* wip: client methods
* wip: rebase develop
* wip: types tests
* wip: keeper tests, small fixes
* wip: add cdp tests
* wip: deposit tests
* wip: keeper tests
* wip: tests and module methods
* feat: error when fetching expired price
* feat: conversion factor for external assets
* feat: debt floor for new cdps
* feat: save deposits on export genesis
* feat: ensure messages implement msg
* feat: index deposits by status
* fix: stray comment
* wip: address review comments
* address review comments
* wip: move liquidation to cdp module
* wip: handle liquidations directly
* wip: use new auction interface
* feat: auction collateral in cdp begin block
* feat: update param validation
* feat: surplus and debt auctions
* address review comments
* address review comments
* fix: auction multiple deposits
* clean up netting function
2020-01-15 15:19:33 +01:00
Kevin Davis
d849d690e5
R4R: CDP types and methods ( #275 )
...
* wip: tpyes and keeper methods
* wip: iterators
* wip: types and keeper methods
* wip: add msgs
* wip: client methods
* wip: rebase develop
* wip: types tests
* wip: keeper tests, small fixes
* wip: add cdp tests
* wip: deposit tests
* wip: keeper tests
* wip: tests and module methods
* feat: error when fetching expired price
* feat: conversion factor for external assets
* feat: debt floor for new cdps
* feat: save deposits on export genesis
* feat: ensure messages implement msg
* feat: index deposits by status
* fix: stray comment
* wip: address review comments
* address review comments
2020-01-12 16:35:34 +01:00