feat: add APRO oracle as PIVOT for BStocks markets on BNB Chain - #746
Draft
GitGuru7 wants to merge 2 commits into
Draft
feat: add APRO oracle as PIVOT for BStocks markets on BNB Chain#746GitGuru7 wants to merge 2 commits into
GitGuru7 wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add APRO oracle as PIVOT for BStocks markets on BNB Chain
Adds a VIP that gives the four BStocks markets (SKHYB, NVDAB, SPCXB, TSLAB) a second, independent price source. Today they price from a single source — Atlas as MAIN, no PIVOT, no FALLBACK.
The VIP:
pendingOwner)setTokenConfig+setDirectPriceon it via the ACM[Atlas, APRO, 0]/[true, true, false]; Atlas unchanged as MAINWith a PIVOT and no FALLBACK, the Atlas price must fall inside the band around the APRO price or pricing reverts.
0x04480f1Ba2252CDF89deB022B58d0a03d1B4cF91on all four access controllers before execution, orgetPrice()reverts for these markets.Simulation (
simulations/vip-999/bscmainnet.ts, block 112419380) covers pre-VIP state, execution events, post-VIP config, and a behavioral proof: pricing reverts while un-whitelisted, then resolves to the pre-VIP price once whitelisted.npx hardhat test simulations/vip-999/bscmainnet.ts --fork bscmainnet