Skip to content

Commit f5be951

Browse files
authored
add the deposit to Curve AMO runlog (#2616)
1 parent 6a6d164 commit f5be951

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

brownie/runlogs/2025_08_strategist.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# -------------------------------------
2+
# August 7, 2025 - Deposit to Curve AMO
3+
# -------------------------------------
4+
5+
from world_base import *
6+
def main():
7+
with TemporaryForkForReallocations() as txs:
8+
txs.append(vault_core.rebase(from_strategist))
9+
txs.append(vault_value_checker.takeSnapshot(from_strategist))
10+
11+
txs.append(vault_admin.depositToStrategy(OETHB_CURVE_AMO_STRATEGY, [WETH_BASE], [4050 * 10**18], from_strategist))
12+
13+
vault_change = vault_core.totalValue() - vault_value_checker.snapshots(MULTICHAIN_STRATEGIST)[0]
14+
supply_change = oethb.totalSupply() - vault_value_checker.snapshots(MULTICHAIN_STRATEGIST)[1]
15+
profit = vault_change - supply_change
16+
17+
txs.append(vault_value_checker.checkDelta(profit, (0.1 * 10**18), vault_change, (1 * 10**18), from_strategist))
118

219
# -------------------------------------
320
# August 11, 2025 - Claim validator withdrawal and deposit SwapX AMO on Sonic
@@ -217,4 +234,4 @@ def main():
217234
print("Profit", "{:.6f}".format(profit / 10**18), profit)
218235
print("SuperOETH supply change", "{:.6f}".format(supply_change / 10**18), supply_change)
219236
print("Vault Change", "{:.6f}".format(vault_change / 10**18), vault_change)
220-
print("-----")
237+
print("-----")

0 commit comments

Comments
 (0)