0g-chain/proto/kava
Derrick Lee b5e162a930
Update Earn vaults to use sdk.Dec shares (#1283)
* Change vault supply to shares

* Update deposit shares

* Use shares instead of supplied

* Update tests, fix share calculation

* Pass hard and savings keeper as pointer to earn keeper

* Update remaining failing test

* Add different share price test, fix comment for share price

* Add shares amount to events

* Additional share tests, use share to asset conversion for withdraw amount

* Update VaultTotalValue test

* Use sdk.Dec for vault shares instead of sdk.Int

* Add test for expensive 20:1 shares

* Update ConvertToShares comment for division, remove redundant test

* Add vault share tests
2022-09-12 09:23:26 -07:00
..
auction/v1beta1 Add auction migration (#1220) 2022-04-22 11:36:05 -07:00
bep3/v1beta1 Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
cdp/v1beta1 Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
committee/v1beta1 Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
earn/v1beta1 Update Earn vaults to use sdk.Dec shares (#1283) 2022-09-12 09:23:26 -07:00
evmutil/v1beta1 Add EIP712 ante (#1267) 2022-08-23 13:04:40 -04:00
hard/v1beta1 Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
incentive/v1beta1 Add savings to incentive genesis (#1205) 2022-04-04 15:01:48 -05:00
issuance/v1beta1 Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
kavadist/v1beta1 Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
pricefeed/v1beta1 Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
savings/v1beta1 Savings module invariants (#1199) 2022-03-30 13:51:06 +02:00
swap/v1beta1 Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00