Skip to content

Commit

Permalink
Run log deposit 10 WETH to new Curve AMO on Base (#2394)
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 authored Feb 14, 2025
1 parent cf789af commit 495bfb9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions brownie/addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
OETHB_VAULT_VALUE_CHECKER = '0x9D98Cf85B65Fa1ACef5e9AAA2300753aDF7bcf6A'
OETHB_AERODROME_AMO_STRATEGY = '0xF611cC500eEE7E4e4763A05FE623E2363c86d2Af'
OETHB_WOETH_STRATEGY = '0x80c864704DD06C3693ed5179190786EE38ACf835'
OETHB_CURVE_AMO_STRATEGY = '0x9cfcAF81600155e01c63e4D2993A8A81A8205829'
OETHB_STRATEGIST = '0x28bce2eE5775B652D92bB7c2891A89F036619703'
OETHB_DRIPPER = '0x02f2C609950E90934ce99e58b4d7326aD0d7f8d6'
OETHB_HARVESTER = '0x247872f58f2fF11f9E8f89C1C48e460CfF0c6b29'
Expand Down
38 changes: 37 additions & 1 deletion brownie/runlogs/2025_02_strategist.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,40 @@ def main():
eth_chain_selector,
ccip_message,
{'from': OETHB_MULTICHAIN_STRATEGIST, 'value': ccip_fee}
))
))


# -------------------------------------
# Feb 13, 2025 - Base deposit 10 WETH to the new Curve AMO strategy
# -------------------------------------
from aerodrome_harvest import *
from brownie import accounts
import eth_abi
def main():
with TemporaryForkForReallocations() as txs:
# Rebase
txs.append(vault_core.rebase({ 'from': OETHB_MULTICHAIN_STRATEGIST }))

# Take Vault snapshot
txs.append(vault_value_checker.takeSnapshot({ 'from': OETHB_MULTICHAIN_STRATEGIST }))

# Deposit 10 WETH to the new Curve AMO strategy
txs.append(
vault_admin.depositToStrategy(
OETHB_CURVE_AMO_STRATEGY,
[weth],
[10 * 10**18],
{'from': OETHB_MULTICHAIN_STRATEGIST}
)
)

# After
vault_change = vault_core.totalValue() - vault_value_checker.snapshots(OETHB_MULTICHAIN_STRATEGIST)[0]
supply_change = oethb.totalSupply() - vault_value_checker.snapshots(OETHB_MULTICHAIN_STRATEGIST)[1]
profit = vault_change - supply_change
txs.append(vault_value_checker.checkDelta(profit, (1 * 10**18), vault_change, (1 * 10**18), {'from': OETHB_MULTICHAIN_STRATEGIST}))
print("-----")
print("Profit", "{:.6f}".format(profit / 10**18), profit)
print("SuperOETH 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 495bfb9

Please sign in to comment.