From ad3bcf250f96d20fbb17eeada956c261f254cb65 Mon Sep 17 00:00:00 2001 From: Nicholas Addison Date: Wed, 30 Oct 2024 07:59:43 +1100 Subject: [PATCH] Deposit 1,152 WETH to the Second Native Staking Strategy --- brownie/runlogs/2024_10_strategist.py | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/brownie/runlogs/2024_10_strategist.py b/brownie/runlogs/2024_10_strategist.py index 7696254d11..c919be678e 100644 --- a/brownie/runlogs/2024_10_strategist.py +++ b/brownie/runlogs/2024_10_strategist.py @@ -447,3 +447,37 @@ def main(): print("-----") print("Profit", "{:.6f}".format(profit / 10**18), profit) print("Vault Change", "{:.6f}".format(vault_change / 10**18), vault_change) + +# ------------------------------------- +# Oct 30, 2024 - Deposit 1,152 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], + # 36 validator + [1152 * 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("-----") +