0g-chain/x/earn/keeper
Derrick Lee ded692d2f4
Add savings strategy (#1290)
* Add basic savings strategy

Supports ukava

* Use clearer error message for ErrInvalidVaultStrategy

* Add invariants

* Separate specific vault/all vaults query, update depositor inconsistencies

* Update swagger

* Use single bkava AllowedVault for all bkava variants

* Do not use allowedVault.Denom for value

* Fix vault balance query

* Update query to list bkava vaults

* Add vaults query doc

* Update grpc query test with no supply

* Add earn hooks

* Handle errors

* Update outdated doc comments, make getAllowedVault_Raw private

* Fix outdated comments, lints

* Fix comment maths

* Use AccAddressFromBech32 to validate message addresses
2022-09-12 10:50:35 -07:00
..
deposit_test.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
deposit.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
grpc_query_test.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
grpc_query.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
hooks_test.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
hooks.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
invariants_test.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
invariants.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
keeper.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
msg_server_test.go Add private Earn vault with allowed depositors (#1289) 2022-09-12 10:29:35 -07:00
msg_server.go Update Earn requests and responses to use multiple strategies (#1284) 2022-09-12 09:43:59 -07:00
params.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
strategy_hard_test.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
strategy_hard.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
strategy_savings_test.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
strategy_savings.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
strategy.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
vault_record.go Update Earn vaults to use sdk.Dec shares (#1283) 2022-09-12 09:23:26 -07:00
vault_share_record_test.go Update Earn vaults to use sdk.Dec shares (#1283) 2022-09-12 09:23:26 -07:00
vault_share_record.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
vault_share_test.go Add private Earn vault with allowed depositors (#1289) 2022-09-12 10:29:35 -07:00
vault_share.go Update Earn vaults to use sdk.Dec shares (#1283) 2022-09-12 09:23:26 -07:00
vault_test.go Add private Earn vault with allowed depositors (#1289) 2022-09-12 10:29:35 -07:00
vault.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
withdraw_test.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
withdraw.go Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00