0g-chain/x/harvest/keeper
Denali Marsh e9d04cd7c6
Harvest: borrows limited by LTV (#710)
* basic borrow types

* borrow keeper scaffolding

* borrow limits param

* integrate pricefeed keeper

* msg handling and querier

* borrow user validation

* update migration scripts for compile

* borrows querier, fixes

* add money market param

* add spot market ID to params, refactor pricefeed

* working bnb -> ukava borrows

* refactor to getAssetPrice

* conversion_factor param, refactor validateBorrow()

* address misc revisions

* remove validation code

* add borrow test

* update test params

* single borrow with sdk.Coins per user

* fix harvest test

* add borrow validation

* simplify borrow validation

* add test case

* master compatibility

* fix build

* refactor to calculateUSDValue()

* add maxLoanToValue to test
2020-11-03 10:46:08 +01:00
..
borrow_test.go Harvest: borrows limited by LTV (#710) 2020-11-03 10:46:08 +01:00
borrow.go Harvest: borrows limited by LTV (#710) 2020-11-03 10:46:08 +01:00
claim_test.go Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00
claim.go Harvest Migration (#672) 2020-09-30 19:07:30 -04:00
deposit_test.go Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00
deposit.go rename hvt (#661) 2020-09-25 11:07:20 -04:00
integration_test.go Harvest: borrows limited by LTV (#710) 2020-11-03 10:46:08 +01:00
keeper_test.go harvest-fix: check for status other than bonded, add staking tests (#677) 2020-10-05 17:44:17 -04:00
keeper.go Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00
params.go Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00
querier.go Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00
rewards_test.go Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00
rewards.go harvest-fix: check for status other than bonded, add staking tests (#677) 2020-10-05 17:44:17 -04:00
timelock_test.go Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00
timelock.go rename hvt (#661) 2020-09-25 11:07:20 -04:00