0g-chain/app
Derrick Lee 88d4868316
Implement Hard strategy for Earn vaults (#1278)
* Simplify strategies to lend and savings

* Add hard and savings keepers

* Add ctx to strategy interface, fill in lend strategy

* Rename lend strategy to hard

* Fix hard deposit query, fix withdraw bank send

* Fix misleading borrow instead of withdraw for hard

* Remove liquidateall strategy method

* Withdraw tests

* Add hard gs to testutil suite

* Update withdraw tests with working hard strategy, clean strategy interface methods

* Check allowed denom for strategy

* Update GetVaultTotalValue doc note

* Update error wrap message for unsupported denom

* Remove unnecessary viewvault keeper

* Withdraw amount from account value, not supplied value

* Test value > supplied withdraw

* Use dec when dividing for withdrawAmountPercent

* Use the correct store prefix for vault shares

* Update swap references to earn

* Simplify vault shares, use a single share for all coins per address
2022-07-28 09:39:57 -07:00
..
ante Include small improvements from v0.17.x releases in master (#1265) 2022-06-06 11:07:31 -05:00
params Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
_sim_test.go gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
_simulate_tx_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
_simulate_tx.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
app_test.go Add EVM Support (#1215) 2022-04-21 16:16:28 -04:00
app.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00
config.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
encoding.go Add EVM Support (#1215) 2022-04-21 16:16:28 -04:00
export.go gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
genesis.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
legacy_tx_broadcast_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
legacy_tx_broadcast.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
test_builder.go gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
test_common.go Add basic Earn module vault deposit/withdraw (#1277) 2022-07-20 16:14:43 -07:00