Skip to content

Commit

Permalink
Add script for equalizer bribes (#2371)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro authored Jan 29, 2025
1 parent 1817476 commit f40e43f
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 2 deletions.
7 changes: 6 additions & 1 deletion brownie/addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# Governance
STRATEGIST = '0xF14BBdf064E3F67f51cd9BD646aE3716aD938FDC'
MULTICHAIN_STRATEGIST = '0x4FF1b9D9ba8558F5EAfCec096318eA0d8b541971'
GOVERNOR = '0x72426ba137dec62657306b12b1e869d43fec6ec7'
GOV_MULTISIG = '0xbe2AB3d3d8F6a32b96414ebbd865dBD276d3d899'
ORIGINTEAM = '0x449e0b5564e0d141b3bc3829e74ffa0ea8c08ad5'
Expand Down Expand Up @@ -149,4 +150,8 @@

CCIP_ROUTER = "0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D"

ADDR_ZERO = '0x0000000000000000000000000000000000000000'
ADDR_ZERO = '0x0000000000000000000000000000000000000000'

EQUALIZER_SPECTRA_OETHB_BRIBE_CONTRACT = "0xaAbF246f6f4Fa87717690dE00896a49c18A944b9"

EQUALIZER_WETH_OETHB_BRIBE_CONTRACT = "0x4467B367c7EeF806E11756bFCD76D3801DFb942C"
65 changes: 65 additions & 0 deletions brownie/runlogs/2025_01_strategist.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,68 @@ def main():
print("-----")


# -------------------------------------
# Jan 29, 2025 - Equalizer Bribes
# -------------------------------------

from eth_abi.packed import encode_packed
from aerodrome_harvest import *
def main():
with TemporaryForkForReallocations() as txs:
# Swap WETH to superOETHb
amount = 0.02933972 * 10**18
txs.append(weth.approve(AERODROME_SWAP_ROUTER_BASE, amount, {'from': MULTICHAIN_STRATEGIST}))

oethb_path = encode_packed(
['address', 'int24', 'address'],
[
WETH_BASE,
1, # WETH > OETHb tickSpacing
OETHB,
]
).hex()

txs.append(
aero_router.exactInput(
swap_params_multiple(
amount,
oethb_path,
recipient=MULTICHAIN_STRATEGIST,
to_token=OETHB,
to_token_label="WETH"
),
{'from': MULTICHAIN_STRATEGIST}
)
)

# Bribe spectra/oethb pool
spectra_pool_bribe_amount = 0.01903247923 * 10**18
txs.append(
oethb.approve(EQUALIZER_SPECTRA_OETHB_BRIBE_CONTRACT, spectra_pool_bribe_amount, {'from': MULTICHAIN_STRATEGIST})
)

spectra_oethb_bribe_contract = load_contract("aero_bribes", EQUALIZER_SPECTRA_OETHB_BRIBE_CONTRACT)
txs.append(
spectra_oethb_bribe_contract.notifyRewardAmount(
OETHB,
spectra_pool_bribe_amount,
{'from': MULTICHAIN_STRATEGIST}
)
)

# Bribe weth/oethb pool
weth_pool_bribe_amount = 0.004425216108 * 10**18
txs.append(
oethb.approve(EQUALIZER_WETH_OETHB_BRIBE_CONTRACT, weth_pool_bribe_amount, {'from': MULTICHAIN_STRATEGIST})
)

weth_oethb_bribe_contract = load_contract("aero_bribes", EQUALIZER_WETH_OETHB_BRIBE_CONTRACT)
txs.append(
weth_oethb_bribe_contract.notifyRewardAmount(
OETHB,
weth_pool_bribe_amount,
{'from': MULTICHAIN_STRATEGIST}
)
)

print(to_gnosis_json(txs, MULTICHAIN_STRATEGIST, "1"))
2 changes: 1 addition & 1 deletion brownie/world.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from world_abstract import *

std = {'from': STRATEGIST}
std = {'from': MULTICHAIN_STRATEGIST}

# ousd = Contract.from_explorer(OUSD, as_proxy_for=OUSD_IMPL)
# usdt = Contract.from_explorer(USDT)
Expand Down

0 comments on commit f40e43f

Please sign in to comment.