Skip to content

Commit

Permalink
Merge branch 'master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Jun 6, 2024
2 parents 3f0bda6 + 44b5501 commit 17cc182
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eagleproject/core/blockchain/addresses.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
STORY_STAKING_SEASON_THREE,
]
STORY_STAKING_VAULT = "0xc626f08cf88972332cfcb48b227409658be67a1c"
OGN_REWARDS_SOURCE = "0x7609c88e5880e934dd3a75bcfef44e31b1badb8b"

# OGV
OGV = "0x9c354503c38481a7a7a51629142963f98ecc12d0"
Expand Down Expand Up @@ -228,10 +229,12 @@
OUSD_KEEPER: "OUSD Keeper",
LINK: "LINK",
OGV: "OGV",
OGN: "OGN",
OGV_BUYBACK_LEGACY: "OGV BuyBack (Legacy)",
OUSD_BUYBACK_PROXY: "OUSD BuyBack",
OETH_BUYBACK_PROXY: "OETH BuyBack",
REWARDS_SOURCE: "RewardsSource",
OGN_REWARDS_SOURCE: "OGN RewardsSource",
FLUX_DAO: "Flux DAO",
FLUX_TIMELOCK: "Flux Timelock",
CVX: "CVX",
Expand Down
12 changes: 12 additions & 0 deletions eagleproject/notify/triggers/buyback_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,18 @@ def run_trigger(new_logs):
log_model=ev
)
)
elif dest_token == OGN:
events.append(
event_low(
"{} BuyBack 🔄".format(otoken_symbol),
"Swapped {} {} for {} OGN and depositted it to the RewardsSource contract".format(
format_token_human(otoken_symbol, amount_in),
otoken_symbol,
format_token_human('OGN', amount_out),
),
log_model=ev
)
)
else:
events.append(
event_low(
Expand Down

0 comments on commit 17cc182

Please sign in to comment.