Ruaridh
33ad221e5f
Fix gov denom typo ( #333 )
2020-01-24 11:39:09 +00:00
Ruaridh
d018aaebcf
fix typo ( #330 )
2020-01-23 17:41:59 -05: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
Ruaridh
e11b298c28
Add CDP Spec ( #328 )
...
* add overview and basic structure
* add state and params
* add basic messages
* add state transitions
* add begin block state transitions
* add missing titles
* add concepts
* add events
* update state and concepts
* update for liquidator changes
* update events
* mention module accounts
* update begin block
* update params
* update page numbering
* add fee descriptions
* add broken link linter
* add broken link linter to CI
* move link check to end of CI
* update typo
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
* address review comments
* Update x/cdp/spec/06_params.md
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
* Update x/cdp/spec/README.md
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
* Update x/cdp/spec/README.md
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2020-01-23 14:09:36 -05: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
Denali Marsh
ab72433db0
add json/yaml to msgs ( #323 )
...
* added json/yaml to MsgPostPrice, MsgPlaceBid
* Added sdk.Msg to ensure Msg interface compliance at compile time
2020-01-21 13:40:04 -08:00
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
f01a3f46ee
Auction cli/rest fixes ( #319 )
...
* cleanup auction tx cli
* add querier for getting one auction
* missed querier fixes
* update querier tests
* add msg struct tags
* add auction rest endpoint and tidy
* add struct tags to auctions
* minor UX tweaks
2020-01-21 17:41:37 +00:00
Ruaridh
2be1a3196e
make bidding tests independent ( #322 )
2020-01-21 10:06: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
rhuairahrighairigh
b879689052
add missing return
2020-01-17 16:17:48 +01:00
Denali Marsh
710a29980f
R4R: add params query to pricefeed module ( #311 )
...
* 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
* add params query to pricefeed module
* minor formatting updates, removed commented out legacy code, etc.
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2020-01-17 13:55:17 +01: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
Denali Marsh
d286f53053
R4R: cli auction clean up ( #310 )
...
* kvcli q auction params
* reset go.sum
* Updated QueryGetAuctionsCmd naming to match conventions
* clean up: tx auctions placebid
* requested changes
2020-01-16 18:52:29 +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
2193b19c1d
fix: genesis auctions tag
2020-01-16 16:17:16 +01:00
Kevin Davis
69436f447f
fix: missing tags in collateral
2020-01-16 14:30:59 +01:00
Kevin Davis
407361313e
chore: linting
2020-01-16 12:15:27 +01:00
Kevin Davis
6bf1a4ce5b
fix: genesis param json tags
2020-01-16 12:15:18 +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
Denali Marsh
ba80b508ab
[R4R] Custom sdk.Error types for the auction module ( #285 )
...
* Custom sdk.Error types for the auction module
* Requested changes: naming conventions, error message text
2020-01-15 11:39:55 +01:00
Kevin Davis
8128a680cc
Ro address auction todos ( #284 )
...
* make auctions not expire without bids
* add events
* improve genesis state validation
* add genesis tests
* Keeper auctions test, types auctions test, keeper bidding test
* Resolved TODOs, added querier test
* Removed 'import x/liquidator' from keeper_test package for circleci
* Fixes for lack of liquidator module account in tests
* update comment
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
* add more events attributes
* feat: add back bidding on closed auction test
* feat: test failed debt/collateral auctions
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
Co-authored-by: Denali Marsh <denalimarsh@gmail.com>
2020-01-14 16:04:47 +01:00
Ruaridh
22e168d06a
Various Auction TODOs ( #281 )
...
* make auctions not expire without bids
* add events
* improve genesis state validation
* add genesis tests
* update comment
Co-Authored-By: Kevin Davis <karzak@users.noreply.github.com>
* add more events attributes
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2020-01-14 15:00:37 +01:00
rhuairahrighairigh
aa6dfab6fd
Merge branch 'ro-add-debt-tracking-to-auctions'
2020-01-14 12:10:39 +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
Ruaridh
e1c11d411a
Update Auction Module ( #276 )
...
* rough auction type refactor
* replace endTime type
* split keeper file up
* update store methods
* move store methods to keeper.go
* move nextAuctionID from params to genState
* simplify auction type to not use pointers
* add basic auction tests
* update endblocker test
* add payout to depositors feature
* add more tests
* move index updates to Get/Set for more safety
* remove slightly unecessary ID type
* remove unused message types
* feat: add spec, update redundant type names
* stop sending zero coins
* use only one coins field in MsgPlaceBid
* remove uncessary Auction interface methods
* give auction types more accurate names
* remove vuepress comments from spec
* minor spec updates
* update doc comments
* add params validation
* code cleanup, address review comments
* resolve minor TODOs
* sync spec with code
Co-authored-by: Kevin Davis <karzak@users.noreply.github.com>
2020-01-12 16:12:22 +01:00
rhuairahrighairigh
61e5de556c
add debt tracking to auctions
2020-01-12 15:17:47 +01:00
rhuairahrighairigh
27f3e76da3
sync spec with code
2020-01-10 18:57:38 +01:00
rhuairahrighairigh
65ef8a9ba3
resolve minor TODOs
2020-01-10 18:55:48 +01:00
rhuairahrighairigh
d03509a17a
code cleanup, address review comments
2020-01-10 14:08:47 +00:00
rhuairahrighairigh
00c1a371d2
add params validation
2020-01-10 13:13:04 +00:00
rhuairahrighairigh
2537928ee7
update doc comments
2020-01-09 17:25:16 +00:00
rhuairahrighairigh
fecfee5077
minor spec updates
2020-01-09 16:21:42 +00:00
rhuairahrighairigh
08d6bc2284
remove vuepress comments from spec
2020-01-09 16:14:55 +00:00
rhuairahrighairigh
c239932297
give auction types more accurate names
2020-01-09 16:09:19 +00:00
rhuairahrighairigh
08689305cc
remove uncessary Auction interface methods
2020-01-09 15:43:42 +00:00
rhuairahrighairigh
48a2d5b6dc
use only one coins field in MsgPlaceBid
2020-01-09 14:58:47 +00:00
rhuairahrighairigh
3a7cb7e4f6
stop sending zero coins
2020-01-09 13:55:45 +00:00
Kevin Davis
de4f55ea20
feat: add spec, update redundant type names
2020-01-07 12:17:27 -05:00
rhuairahrighairigh
b2fa8d81ee
remove unused message types
2020-01-06 16:35:50 +00:00
rhuairahrighairigh
983de010df
remove slightly unecessary ID type
2020-01-01 14:11:19 +00:00
rhuairahrighairigh
db3c39aaa5
move index updates to Get/Set for more safety
2019-12-31 11:56:39 +00:00
rhuairahrighairigh
4e7f18313a
add more tests
2019-12-31 11:10:58 +00:00
rhuairahrighairigh
77bfe11f89
add payout to depositors feature
2019-12-31 11:10:15 +00:00
rhuairahrighairigh
8a4109ff26
update endblocker test
2019-12-28 22:00:04 +00:00