diff --git a/brownie/runlogs/2024_12_strategist.py b/brownie/runlogs/2024_12_strategist.py new file mode 100644 index 0000000000..dcc4710016 --- /dev/null +++ b/brownie/runlogs/2024_12_strategist.py @@ -0,0 +1,41 @@ +# ------------------------------------- +# Dec 27, 2024 - Withdraw from 3rd Native Staking Strategy and Deposit to AMO +# ------------------------------------- +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)) + + # Remove 736 WETH from 3rd Native Staking Strategy + txs.append( + vault_oeth_admin.withdrawFromStrategy( + OETH_NATIVE_STAKING_3_STRAT, + [weth], + [1440 * 10**18], + {'from': STRATEGIST} + ) + ) + + # Deposit WETH to AMO + txs.append( + vault_oeth_admin.depositToStrategy( + OETH_CONVEX_OETH_ETH_STRAT, + [WETH], + [1440 * 10**18], + {'from': STRATEGIST} + ) + ) + + # 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("-----")