Skip to content

Conversation

@Debugger022
Copy link
Contributor

@Debugger022 Debugger022 commented Feb 3, 2026

Summary

  • Configure DeviationSentinel, SentinelOracle, UniswapOracle, and PancakeSwapOracle on BSC mainnet and testnet
  • Grant keeper and governance timelock permissions for price monitoring and market protection
  • Enable DeviationSentinel to pause markets and adjust collateral factors when price deviations are detected

Changes

BSC Mainnet (vip-900/bscmainnet.ts)

  • Accept ownership of 4 oracle contracts (DeviationSentinel, SentinelOracle, UniswapOracle, PancakeSwapOracle)
  • Grant keeper permissions: setTokenConfig, setTrustedKeeper, setTokenMonitoringEnabled, resetMarketState
  • Grant keeper DEX oracle permissions: setTokenOracleConfig, setDirectPrice, setPoolConfig
  • Grant DeviationSentinel permissions on all comptrollers: setActionsPaused, setCollateralFactor
  • Whitelist keeper and governance timelocks as trusted keepers

BSC Testnet (vip-900/bsctestnet.ts)*

  • Initial configuration for testnet contracts
  • Addendum: Additional permission grants
  • Addendum 2: Test unpause mint and update collateral factor actions

Simulations

  • Full test coverage for pre/post VIP behavior
  • Verify ownership transfers, permission grants, and trusted keeper whitelisting

Test plan

  • Run npx hardhat test simulations/vip-900/bscmainnet.ts --fork bscmainnet
  • Run npx hardhat test simulations/vip-900/bsctestnet.ts --fork bsctestnet
  • Run npx hardhat test simulations/vip-900/bsctestnet-addendum.ts --fork bsctestnet
  • Run npx hardhat test simulations/vip-900/bsctestnet-addendum-2.ts --fork bsctestnet

… mainnet

Configure DeviationSentinel, SentinelOracle, UniswapOracle, and
PancakeSwapOracle on BSC mainnet and testnet. Grants keeper and
governance timelock permissions for price monitoring and market
protection actions.
@Debugger022 Debugger022 self-assigned this Feb 3, 2026
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