From 74bb17353197267b1d94a062f971ac4677eecce7 Mon Sep 17 00:00:00 2001 From: codex Date: Tue, 30 Jun 2026 18:09:44 +0000 Subject: [PATCH] fix(pegs): correct EIP-55 checksum for WBTC/BTC Chainlink feed The WBTC/BTC aggregator address had an invalid EIP-55 checksum (0xfdFD9C85aD200c506Cf9e21F1FD8dD01932FBB23), causing web3's get_contract to raise InvalidAddress and crash the peg monitor. Fixed the casing (D -> d before 01932). Co-Authored-By: Claude Opus 4.8 (1M context) --- utils/pegged_assets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/pegged_assets.py b/utils/pegged_assets.py index 509ee72..cf68a66 100644 --- a/utils/pegged_assets.py +++ b/utils/pegged_assets.py @@ -247,7 +247,7 @@ def get_asset(name: str) -> PeggedAsset: peg=PegTarget.BTC, depeg_pct=Decimal("0.02"), chainlink_feed=ChainlinkFeed( - "0xfdFD9C85aD200c506Cf9e21F1FD8dD01932FBB23", _STABLE_HEARTBEAT, "WBTC/BTC", quote=PegTarget.BTC + "0xfdFD9C85aD200c506Cf9e21F1FD8dd01932FBB23", _STABLE_HEARTBEAT, "WBTC/BTC", quote=PegTarget.BTC ), downside_only=True, # only a drop below BTC is a risk ),