Skip to content

Commit

Permalink
Update runlog
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Oct 11, 2024
1 parent 30bff54 commit 7371e4a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions brownie/runlogs/2024_10_strategist.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,38 @@ def main():
print("--------------------")
print("Profit ", c18(profit), profit)
print("Vault Change ", c18(vault_change), vault_change)


# ----------------------------------------------------------
# Oct 11, 2024 - Fund dripper and change drip rate
# ----------------------------------------------------------
from world_base import *
def main():
txs = []

amount = 79759 * 10**18
min_amount = 39.5 * 10**18
fee_bps = 2000 # 20%
send_to_dripper = True

# Approve harvester to move AERO
txs.append(
aero.approve(OETHB_HARVESTER, amount, from_strategist)
)

# Collect AERO from the strategy & swap to get yields
txs.append(
harvester.harvestAndSwap(amount, min_amount, fee_bps, send_to_dripper, from_strategist)
)

# Change dripper rate
txs.append(
dripper.setDripRate(106200624970822, from_strategist)
)

# Reset harvester allowance
txs.append(
aero.approve(OETHB_HARVESTER, 0, from_strategist)
)

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

0 comments on commit 7371e4a

Please sign in to comment.