Denali Marsh
e2f515ba9e
Querier improvements: CDP and Auction priority 1 queries ( #644 )
...
* query auction by lot owner
* add SavingsRateDistributed to store
* v2cdps: filtered cdps query
* update v2cdps cli examples
* add savings rate dist counter to begin blocker
* implement savings rate dist cli query
* implement cdp REST queries
* minor auction CLI/REST updates
* fix auction querier bug
* update REST endpoint to 'cdps'
* update to savings-rate-dist
* update SavingsRateDistributed get/set
* update tests
* fix savings rate dist rounding errors
* 'collateralDenom' -> 'collateralType'
* refactor 'v2cdps' -> 'cdps', add ratio param
* fix augmented CDP type, msg string() method
* fix cdp querier test
* filter query results efficiently
* querier tests
* limit type iteration if owner defined
* improve savings rate dist genesis validation
* default sdk.Dec{} to sdk.ZeroDec in queries
* update condition logic for finding intersection
* fix cdp querier filtering
* Update kava-4 swagger (#653 )
* add collateral_type, update cdp params
* savings rate, auctions, get cdps
* drop owner from AuctionResponse
* remove duplicate collateral denom
* update query paths with {collateral-type}
2020-09-16 20:45:10 -04:00
Kevin Davis
daa1b2bb83
Add collateral type to cdp ( #629 )
...
* add collateral type field to cdp and collateral param
* fix upstream tests
* fix simulations
* fix validation logic
* update incentive to use collateral type instead of denom
* use collateral type instead of denom in cdp
* remove unused code
* address review comments
2020-08-21 15:42:46 -04:00
Kevin Davis
ade6edb918
[R4R] Add liquidation pricefeed ( #524 )
...
* add parameter for liquidation pricefeed
2020-05-24 09:42:46 -04:00
Federico Kunze
8853e8d3d1
linters and format
2020-04-30 10:13:31 -04:00
Kevin Davis
ae4aee46ff
Use sdk.Coin in cdp module ( #466 )
...
* Use sdk.Coin in cdp module
Co-authored-by: Federico Kunze <federico.kunze94@gmail.com>
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Denali Marsh <denali@kava.io>
Co-authored-by: John Maheswaran <john@noreply>
2020-04-27 10:40:34 -04:00
Kevin Davis
535094df96
Fix: Avoid panics when adding cdp collaterals via governance ( #329 )
...
* fix: remove unnecessary accumulator key
* fix: correct test comment
* fix: avoid panic when cdp collateral type added
2020-01-23 15:41:45 -05: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
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
Kevin Davis
83d523a856
feat: migrate modules from kava-devnet
2019-11-25 14:46:02 -05:00