Skip to content

Commit

Permalink
Add runlog (#2223)
Browse files Browse the repository at this point in the history
* Add runlog

* Prettify
  • Loading branch information
shahthepro authored Sep 10, 2024
1 parent 4e3b141 commit d820c56
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions brownie/runlogs/2024_09_strategist.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,32 @@ def main():
)

print(to_gnosis_json(txs, OETHB_STRATEGIST, "8453"))

# -------------------------------
# Sep 10, 2024 - OETHb Harvest
# -------------------------------
from aerodrome_harvest import *
def main():
txs = []

amount = 1095.07191359916 * 10**18

# Collect AERO from the strategy
txs.append(
amo_strat.collectRewardTokens(from_strategist)
)

# Approve the swap router to move it
txs.append(
aero.approve(AERODROME_SWAP_ROUTER_BASE, amount, from_strategist)
)

# Do the swap
txs.append(
aero_router.exactInputSingle(
swap_params(amount, OETHB_STRATEGIST),
from_strategist
)
)

print(to_gnosis_json(txs, OETHB_STRATEGIST, "8453"))
3 changes: 2 additions & 1 deletion contracts/deploy/mainnet/106_ousd_metamorpho_usdc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ module.exports = deploymentWithGovernanceProposal(
// forceSkip: true,
// reduceQueueTime: true,
deployerIsProposer: false,
proposalId: "18625164866922300754601338202643973145672922743793130890170553774294234651247",
proposalId:
"18625164866922300754601338202643973145672922743793130890170553774294234651247",
},
async ({ deployWithConfirmation, getTxOpts, withConfirmation }) => {
// Current OUSD Vault contracts
Expand Down

0 comments on commit d820c56

Please sign in to comment.