0g-chain/x/harvest/keeper
Denali Marsh 89f07e92b4
Hard: liquidation by keeper (#731)
* 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
2020-12-15 18:38:14 +01:00
..
borrow_test.go Hard: liquidation by keeper (#731) 2020-12-15 18:38:14 +01:00
borrow.go update ltv error msg (#733) 2020-12-08 14:28:01 +01:00
claim_test.go Hard: liquidation by keeper (#731) 2020-12-15 18:38:14 +01:00
claim.go Harvest: refactor deposit type to claim type (#716) 2020-11-12 17:43:28 +01:00
deposit_test.go Hard: liquidation by keeper (#731) 2020-12-15 18:38:14 +01:00
deposit.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
interest_test.go Hard: liquidation by keeper (#731) 2020-12-15 18:38:14 +01:00
interest.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
keeper_test.go Hard: liquidation by keeper (#731) 2020-12-15 18:38:14 +01:00
keeper.go Hard: liquidation by keeper (#731) 2020-12-15 18:38:14 +01:00
liquidation_test.go Hard: liquidation by keeper (#731) 2020-12-15 18:38:14 +01:00
liquidation.go Hard: liquidation by keeper (#731) 2020-12-15 18:38:14 +01:00
params.go Harvest: interest rate logic (#720) 2020-12-03 22:50:35 +01:00
querier.go query borrow balance (#732) 2020-12-04 20:04:05 +01:00
repay_test.go Hard: liquidation by keeper (#731) 2020-12-15 18:38:14 +01:00
repay.go Hard: repay borrowed coins (#725) 2020-12-07 22:51:35 +01:00
rewards_test.go Hard: liquidation by keeper (#731) 2020-12-15 18:38:14 +01:00
rewards.go Harvest: refactor deposit type to claim type (#716) 2020-11-12 17:43:28 +01:00
timelock_test.go Hard: liquidation by keeper (#731) 2020-12-15 18:38:14 +01:00
timelock.go rename hvt (#661) 2020-09-25 11:07:20 -04:00