0g-chain/app
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
..
ante Add EIP712 ante (#1267) 2022-08-23 13:04:40 -04: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 Update Earn vaults to use sdk.Dec shares (#1283) 2022-09-12 09:23:26 -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 Remove x/bridge & setup migration skeletion (#1295) 2022-09-01 16:20:37 -04:00
upgrades.go Remove x/bridge & setup migration skeletion (#1295) 2022-09-01 16:20:37 -04:00