Skip to content

Commit

Permalink
Add runlog
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Sep 27, 2024
1 parent b63010c commit e7e111f
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions brownie/runlogs/2024_09_strategist.py
Original file line number Diff line number Diff line change
Expand Up @@ -1324,3 +1324,66 @@ def main():
print("Profit", "{:.6f}".format(profit / 10**18), profit)
print("Vault Change", "{:.6f}".format(vault_change / 10**18), vault_change)

# -------------------------------------
# Sep 27, 2024 - OETH Buyback
# -------------------------------------
from buyback import *
def main():
txs = []

oeth_for_ogn, oeth_for_cvx = get_balance_splits(OETH)

with TemporaryFork():
txs.append(
build_1inch_buyback_tx(
OETH,
OGN,
oeth_for_ogn,
3.5
)
)

txs.append(
build_1inch_buyback_tx(
OETH,
CVX,
oeth_for_cvx,
2
)
)

txs.append(
cvx_locker.processExpiredLocks(True, std)
)

print(to_gnosis_json(txs))

# -------------------------------------
# Sep 27, 2024 - OUSD Buyback
# -------------------------------------
from buyback import *
def main():
txs = []

ousd_for_ogn, ousd_for_cvx = get_balance_splits(OUSD)

with TemporaryFork():
txs.append(
build_1inch_buyback_tx(
OUSD,
OGN,
ousd_for_ogn,
3
)
)

txs.append(
build_1inch_buyback_tx(
OUSD,
CVX,
ousd_for_cvx,
2
)
)

print(to_gnosis_json(txs))

0 comments on commit e7e111f

Please sign in to comment.