Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion config/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,20 @@ bind = "127.0.0.1:9091"
# ── Chainlink price feeds (per chain, per asset symbol) ───────────────────
# Only feeds listed here are polled by the PriceCache. Add more as new
# Venus markets become relevant. Feed addresses from docs.chain.link.
#
# Note on BTCB: docs.chain.link historically advertised the 8-decimal
# proxy 0x264990fb…1f0 as "BTC / USD" on BSC, but that address has no
# bytecode on mainnet today (decimals()/latestRoundData() abi-decode
# garbage). The address used below was discovered by walking Venus's
# ResilientOracle (0x6592b5DE…) → ChainlinkOracle facet (0x1B210344…)
# → tokenConfigs(BTCB) and then verified to be Chainlink-owned by
# matching its `owner()` (0xcb6754D5…) against the BNB/USD canonical
# feed's owner. It is an 18-decimal aggregator; PriceCache reads
# `decimals()` per feed and `CachedPrice::scaled_to` rescales, so the
# 8-vs-18 difference is invisible to consumers.
[chainlink.bnb]
BNB = "0x0567F2323251f0Aab15c8dFb1967E4e8A7D42aeE"
BTCB = "0x264990fbd0A4796A3E3d8E37022BdAf1A5a4C1f0" # BTC / USD (canonical, docs.chain.link)
BTCB = "0x8ECF7dE377F788A813F5215668E282556b35f300" # BTC / USD — 18-dec AggregatorV3, Chainlink-ops-owned (#109)
ETH = "0x9ef1B8c0E4F7dc8bF5719Ea496883DC6401d5b2e"
USDT = "0xB97Ad0E74fa7d920791E90258A6E2085088b4320"
USDC = "0x51597f405303C4377E36123cBc172b13269EA163"
2 changes: 1 addition & 1 deletion config/fork.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ bind = "127.0.0.1:9091"
# Mainnet feed addresses resolve against the fork.
[chainlink.bnb]
BNB = "0x0567F2323251f0Aab15c8dFb1967E4e8A7D42aeE"
BTCB = "0x264990fbd0A4796A3E3d8E37022BdAf1A5a4C1f0"
BTCB = "0x8ECF7dE377F788A813F5215668E282556b35f300" # BTC / USD — 18-dec AggregatorV3, Chainlink-ops-owned (#109)
ETH = "0x9ef1B8c0E4F7dc8bF5719Ea496883DC6401d5b2e"
USDT = "0xB97Ad0E74fa7d920791E90258A6E2085088b4320"
USDC = "0x51597f405303C4377E36123cBc172b13269EA163"
Loading