Skip to content

Commit

Permalink
Deposit another 992 WETH to the Second Native Staking Strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Oct 30, 2024
1 parent ad3bcf2 commit a7abfe4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions brownie/runlogs/2024_10_strategist.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,3 +481,36 @@ def main():
print("Vault Change", "{:.6f}".format(vault_change / 10**18), vault_change)
print("-----")


# -------------------------------------
# Oct 30, 2024 - Deposit 992 WETH to the Second Native Staking Strategy
# -------------------------------------
from world import *

def main():
with TemporaryForkForReallocations() as txs:
# Before
txs.append(vault_oeth_core.rebase(std))
txs.append(oeth_vault_value_checker.takeSnapshot(std))

# Deposit WETH to Native Staking Strategy
txs.append(
vault_oeth_admin.depositToStrategy(
OETH_NATIVE_STAKING_2_STRAT,
[WETH],
# 31 validator
[992 * 10**18],
std
)
)

# After
vault_change = vault_oeth_core.totalValue() - oeth_vault_value_checker.snapshots(STRATEGIST)[0]
supply_change = oeth.totalSupply() - oeth_vault_value_checker.snapshots(STRATEGIST)[1]
profit = vault_change - supply_change
txs.append(oeth_vault_value_checker.checkDelta(profit, (1 * 10**18), vault_change, (1 * 10**18), std))
print("-----")
print("Profit", "{:.6f}".format(profit / 10**18), profit)
print("OETH supply change", "{:.6f}".format(supply_change / 10**18), supply_change)
print("Vault Change", "{:.6f}".format(vault_change / 10**18), vault_change)
print("-----")

0 comments on commit a7abfe4

Please sign in to comment.