From d820c568e229ef0aed828084ded25b122b46c02f Mon Sep 17 00:00:00 2001 From: Shah <10547529+shahthepro@users.noreply.github.com> Date: Tue, 10 Sep 2024 14:17:43 +0400 Subject: [PATCH] Add runlog (#2223) * Add runlog * Prettify --- brownie/runlogs/2024_09_strategist.py | 29 +++++++++++++++++++ .../mainnet/106_ousd_metamorpho_usdc.js | 3 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/brownie/runlogs/2024_09_strategist.py b/brownie/runlogs/2024_09_strategist.py index d2894476d1..f9275b758e 100644 --- a/brownie/runlogs/2024_09_strategist.py +++ b/brownie/runlogs/2024_09_strategist.py @@ -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")) diff --git a/contracts/deploy/mainnet/106_ousd_metamorpho_usdc.js b/contracts/deploy/mainnet/106_ousd_metamorpho_usdc.js index c23ff92694..411e252992 100644 --- a/contracts/deploy/mainnet/106_ousd_metamorpho_usdc.js +++ b/contracts/deploy/mainnet/106_ousd_metamorpho_usdc.js @@ -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