Denali Marsh
|
83a5f51c11
|
Hard: automatic liquidation by LTV index (#743)
* hotfix
* update params, keys
* liquidation by keeper
* refactor GetPendingBorrowBalance
* fix app build
* elegant handling of denom arrays
* auction deposit in lots
* add error msg
* update tests with new params
* happy path liquidation test
* update liquidator macc name
* refactor reward % to money market params
* refactor tests for updated params
* compile: harvest liquidator module account
* add liquidate msg
* liquidation approach
* update liquidations
* return remaining deposit coins to original borrowr
* check keeper reward before sending
* introduce ValuationMap
* convert Ints <> Decs
* implement double-loop
* ModuleAccountName
* sort keys for deterministic auctions
* test: correct auctions created
* test: preset keeper coins
* ensure deterministic iteration
* test cases
* update repay test
* auction fixes, tests
* LTV index
* user actions sync interest and update ltv index
* tests: all deposits must have money markets
* reorder borrow logic
* ltv index liquidation logic
* test specific items in ltv index
* index liquidation tests
* update repay to spendable coins
* revisions
* remove address sort method
* merge master test package
|
2020-12-18 02:12:48 +01:00 |
|
Denali Marsh
|
6c0890d5ff
|
Hard: introduce LTV index (#742)
* hotfix
* update params, keys
* liquidation by keeper
* refactor GetPendingBorrowBalance
* fix app build
* elegant handling of denom arrays
* auction deposit in lots
* add error msg
* update tests with new params
* happy path liquidation test
* update liquidator macc name
* refactor reward % to money market params
* refactor tests for updated params
* compile: harvest liquidator module account
* add liquidate msg
* liquidation approach
* update liquidations
* return remaining deposit coins to original borrowr
* check keeper reward before sending
* introduce ValuationMap
* convert Ints <> Decs
* implement double-loop
* ModuleAccountName
* sort keys for deterministic auctions
* test: correct auctions created
* test: preset keeper coins
* ensure deterministic iteration
* test cases
* update repay test
* auction fixes, tests
* LTV index
* user actions sync interest and update ltv index
* tests: all deposits must have money markets
* reorder borrow logic
* check mm before setting borrow index
* insert into LTV index even when LTV is 0
|
2020-12-16 22:08:29 +01:00 |
|
Denali Marsh
|
4e641c5212
|
Hard: repay borrowed coins (#725)
* add msg borrow test
* repay types
* register msg repay on codec
* repay keeper functionality
* repay cli
* repay keeper test
* Hard: repay insufficient balance error (#726)
* repay error: insufficient balance
* isolate coin type in error msg
* add multi-coin repay example
* CalculatePaymentAmount, repay > SyncBorrowInterest
* remove todo: index updated by sync
* update tests
* add back in test
|
2020-12-07 22:51:35 +01:00 |
|