0g-chain/x/earn/keeper
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
..
deposit_test.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00
deposit.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00
grpc_query_test.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00
grpc_query.go Add basic empty Earn module (#1274) 2022-07-20 15:57:56 -07:00
invariants.go Add basic empty Earn module (#1274) 2022-07-20 15:57:56 -07:00
keeper.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00
msg_server_test.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00
msg_server.go Add basic Earn module vault deposit/withdraw (#1277) 2022-07-20 16:14:43 -07:00
params.go Add basic Earn module vault deposit/withdraw (#1277) 2022-07-20 16:14:43 -07:00
strategy_hard_test.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00
strategy_hard.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00
strategy.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00
vault_test.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00
vault.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00
withdraw_test.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00
withdraw.go Implement Hard strategy for Earn vaults (#1278) 2022-07-28 09:39:57 -07:00