Denali Marsh
510b7e7c04
Harvest: borrows limited by global asset borrow limit ( #715 )
...
* update MaximumLimit param to MaximumLimitUSD
* track total borrowed coins in the store
* implement total borrowed coins querier
* add maximum value usd check
* update test suite, add zero coins check
* add test case, update error msg
* max limit in native amount
* remove debug logging
* prepare for master rebase
* master rebase
* fix build
2020-11-12 16:50:54 +01:00
Denali Marsh
cfb1905ad3
Harvest: borrows capped by utilization ( #714 )
...
* wrap error borrow exceeds mod acc balance
* address revisions
2020-11-11 16:05:17 +01:00
Denali Marsh
33cbe34991
Harvest: deposit multiple assets supplying multiple assets ( #712 )
...
* introduce local cache
* apply LTV for borrowable amount calculation
* add multiple previous borrow tests
* remove unused functions
* address revisions
2020-11-09 22:52:08 +01:00
Denali Marsh
3ea3148129
Harvest: multiple deposits ( #711 )
...
* test suite: dynamic pricefeed genesis
* multiple deposits
* improve borrow validation
* improve test, add multiple deposits test case
* add over limit multiple deposit test case
* explicit function names
* rename outdated variable
2020-11-05 18:36:49 +01:00
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
Denali Marsh
1442deb3dc
Harvest basic borrow functionality ( #702 )
...
* 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
* removed legacy commented out code
* address minor revisions
2020-10-30 10:59:47 +01:00