0g-chain/x/earn
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
..
client/cli Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
keeper Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
testutil Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
types Add savings strategy (#1290) 2022-09-12 10:50:35 -07:00
genesis_test.go Add private Earn vault with allowed depositors (#1289) 2022-09-12 10:29:35 -07:00
genesis.go Update Earn vaults to use sdk.Dec shares (#1283) 2022-09-12 09:23:26 -07:00
module.go Add basic Earn module vault deposit/withdraw (#1277) 2022-07-20 16:14:43 -07:00