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
Nick DeLuca
e81987c31f
Add QueryGetAccounts to CDP Client ( #596 )
...
* add module accounts command
* update get accounts query to return array of
module accounts instead of map of addresses
* update tests and add update swagger
Co-authored-by: Kevin Davis <kjydavis3@gmail.com>
2020-06-19 15:30:10 -04:00
Kevin Davis
ade6edb918
[R4R] Add liquidation pricefeed ( #524 )
...
* add parameter for liquidation pricefeed
2020-05-24 09:42:46 -04:00
Kevin Davis
1099dfbd7d
CDP revisions ( #508 )
...
* address review comments
* add kavadist to modaccount check
* cdp and deposit validation in genesis
* cleanup genesis validation
* add validation test for types
* don't error on augmented cdp loading
* simplify collateral auction logic
2020-05-13 10:19:19 -04:00
Federico Kunze
fe72a24aa0
update format
2020-04-30 10:23:41 -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
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
024001888c
Add query for cdp deposits ( #346 )
...
* feat: query cdp deposits
* feat: test querying deposits
* fix: update comment
* fix: use single word command
2020-01-28 14:08:17 -06: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
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