0g-chain/x/harvest
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
..
client Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00
keeper Harvest: borrows limited by LTV (#710) 2020-11-03 10:46:08 +01:00
simulation rename hvt (#661) 2020-09-25 11:07:20 -04:00
spec update msg spec to match code (#691) 2020-10-14 14:50:43 -04:00
types Harvest: borrows limited by LTV (#710) 2020-11-03 10:46:08 +01:00
abci.go rename hvt (#661) 2020-09-25 11:07:20 -04:00
alias.go Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00
genesis.go rename hvt (#661) 2020-09-25 11:07:20 -04:00
handler.go Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00
module.go Harvest basic borrow functionality (#702) 2020-10-30 10:59:47 +01:00