Skip to content

[VPD-566]: RedStone oracle feed expansion for BSC Core Pool#669

Open
Debugger022 wants to merge 2 commits intomainfrom
feat/VPD-566
Open

[VPD-566]: RedStone oracle feed expansion for BSC Core Pool#669
Debugger022 wants to merge 2 commits intomainfrom
feat/VPD-566

Conversation

@Debugger022
Copy link
Contributor

Summary

  • Register 13 new RedStone price feeds and update resilient oracle configurations to strengthen price reliability through multi-vendor redundancy across the BSC Core Pool
  • Continues the Two-Vendor OEV Integration Framework adopted in VIP-586

Changes

VIP Proposal (vips/vip-650/bscmainnet.ts)

  • Register RedStone oracle feeds for: XVS, LTC, BCH, DOT, LINK, DAI, FIL, DOGE, AAVE, UNI, FDUSD, TWT, SOL
  • Update resilient oracle configs for 12 standard assets: MAIN=RedStone, PIVOT=Chainlink, FALLBACK=Binance
  • Update TWT oracle config: MAIN=RedStone, PIVOT=Binance (no Chainlink feed available)
  • Add BoundValidator config for TWT (required since TWT previously had no PIVOT oracle)

Simulation (simulations/vip-650/bscmainnet.ts)

  • Pre-VIP checks: verify no existing RedStone feeds, verify old oracle configs match expected state
  • Post-VIP checks: verify RedStone feeds, resilient oracle configs, BoundValidator config for TWT
  • Price stability check: verify all 13 asset prices remain within 3% tolerance after oracle reconfiguration
  • Workaround for TWT feed staleness in fork simulation using setDirectPrice

Test plan

  • Run simulation: npx hardhat test simulations/vip-650/bscmainnet.ts --fork bscmainnet
  • Verify all 38 tests pass (pre-VIP checks, event emissions, post-VIP oracle configs, price stability)
  • Verify RedStone feed addresses match on-chain deployed feeds
  • Cross-reference asset addresses against deployed contracts

Register 13 new RedStone price feeds (XVS, LTC, BCH, DOT, LINK, DAI,
FIL, DOGE, AAVE, UNI, FDUSD, TWT, SOL) and update resilient oracle
configs to use RedStone as MAIN with Chainlink/Binance redundancy.
Includes BoundValidator config for TWT which previously had no PIVOT.
@Debugger022 Debugger022 self-assigned this Feb 13, 2026
Add pre-VIP check verifying TWT has no BoundValidator config and
post-VIP ValidateConfigAdded event verification.
Copy link
Contributor

@GitGuru7 GitGuru7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rest LGTM

NAME: "XVS",
ASSET: "0xcF6BB5389c92Bdda8a3747Ddb454cB7a64626C63",
FEED: "0xED2B1ca5D7E246f615c2291De309643D41FeC97e",
MAX_STALE_PERIOD: 21600,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we consider having some tolerance here instead of fixing it to the exact value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redstone has defined it to 6 hours for most assets; we can increase it, although.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments