⚠️ DEPRECATED: do not use⚠️ This version was superseded by
WeightedLPOracleV2, which allows creation of oracles that only work when the Balancer Vault is locked. This oracle can still be used as long as a deposit cap is implemented somewhere in the system (i.e. in the lending protocol accepting BPT as collateral); otherwise the V2 oracle is a superset of this version that allows the creator to configure an extra layer of protection against flash-minted BPT.
Contains WeightedLPOracle and its corresponding WeightedLPOracleFactory.
These contracts provide a manipulation-resistant mechanism to compute the market price of LP tokens from weighted pools given market price feeds for each of the tokens registered in the pool.
- Code.
- Ethereum mainnet addresses
- Gnosis mainnet addressesThis oracle can still be used as long as a deposit cap is implemented somewhere in the system (i.e. in the lending protocol accepting BPT as collateral); otherwise the V2 oracle is a superset of this version that allows the creator to configure an extra layer of protection against flash-minted BPT.
- Arbitrum mainnet addresses
- Base mainnet addresses
- Optimism mainnet addresses
- Avalanche mainnet addresses
- Hyperevm mainnet addresses
- Plasma mainnet addresses
- X-Layer mainnet addresses
- Monad mainnet addresses
- Sepolia testnet addresses
WeightedLPOracleartifactWeightedLPOracleFactoryartifact