Commit Graph

23 Commits

Author SHA1 Message Date
Ruaridh
bab798f50d
fix: avoid panic if cdp debt > debt held by cdp account (#326)
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2020-01-21 20:28:25 +00:00
Denali Marsh
f6a3567a66 removed unimplemented MsgTransferCDP (#325) 2020-01-21 18:24:33 +00:00
Kevin Davis
a74f63a8f2 Apply Liquidation Penalty (#313)
* 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

* fix: remove debt from liquidation penalty
2020-01-21 17:52:07 +00:00
Ruaridh
d887266c24
Run begin blocker (#321)
* add cdp begin blocker

* fix: use reasonable defaults for surplus/debt auctions

Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2020-01-20 19:28:30 +00:00
Kevin Davis
d04aad5cc9
Pricefeed fixes (#308)
* 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

* fix: standardize genesis validation
2020-01-17 13:29:19 +01:00
Kevin Davis
dca59447aa
fix: remove redundant debt limit param (#312) 2020-01-17 13:24:43 +01:00
Ruaridh
c5043ffabe add stability fee validation (#307) 2020-01-16 16:21:38 +01:00
Ruaridh
2d9820b3d1 cdp cli clean up (#305)
* clean up querier cmds #304 #298 #296

* #299 address cli ux issues

* fix typo

* edit help message
2020-01-16 16:20:12 +01:00
Kevin Davis
69436f447f fix: missing tags in collateral 2020-01-16 14:30:59 +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
rhuairahrighairigh
f794ba1bf9 use time consistently in tests 2019-12-07 15:08:07 +00:00
rhuairahrighairigh
d8347fd49c tidy test genesis states 2019-12-07 14:56:40 +00:00
rhuairahrighairigh
81302ce29f tidy up cdp tests 2019-12-07 01:25:25 +00:00
rhuairahrighairigh
2152bb4ed2 rename test helper func 2019-12-07 00:12:07 +00:00
rhuairahrighairigh
688b7830c0 Merge branch 'kd-propose-params' into ro-remove-mock-from-tests 2019-12-05 15:56:24 +00:00
rhuairahrighairigh
e3aca06236 update cdp tests to use CheckBalance method 2019-12-05 13:59:20 +00:00
Kevin Davis
05a99be97b apply pricefeed changes to other modules 2019-12-04 11:54:53 -05:00
rhuairahrighairigh
2d73e62773 update cdp tests 2019-12-03 14:35:40 +00:00
rhuairahrighairigh
ce2b2e2213 update cdp keeper tests 2019-12-03 14:35:27 +00:00
Kevin Davis
1a9b8514c9 fix keys, return validation errors 2019-11-28 11:00:08 -06:00
Kevin Davis
e85d2f880b wip: cdp params and types 2019-11-28 10:53:59 -06:00
Kevin Davis
83d523a856 feat: migrate modules from kava-devnet 2019-11-25 14:46:02 -05:00