mirror of
https://github.com/0glabs/0g-chain.git
synced 2025-11-01 08:38:32 +00:00
* 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 |
||
|---|---|---|
| .. | ||
| deposit_test.go | ||
| deposit.go | ||
| grpc_query_test.go | ||
| grpc_query.go | ||
| invariants.go | ||
| keeper.go | ||
| msg_server_test.go | ||
| msg_server.go | ||
| params.go | ||
| strategy_hard_test.go | ||
| strategy_hard.go | ||
| strategy.go | ||
| vault_record.go | ||
| vault_share_record_test.go | ||
| vault_share_record.go | ||
| vault_share_test.go | ||
| vault_share.go | ||
| vault_test.go | ||
| vault.go | ||
| withdraw_test.go | ||
| withdraw.go | ||