In the constructor:
These token addresses are then used in price calculations:
The BalancerOracle contract stores token addresses as immutable variables in the constructor. However, if a token is deregistered from the Balancer pool later, the oracle will continue to assume the old status of the pools, leading to incorrect price calculations.
If a token is deregistered, the oracle will use outdated token addresses, resulting in incorrect price calculations and updates.
Retrieve the Balancer pool tokens via getPoolTokens() whenever needed instead of caching them, to ensure the latest pool composition is always used.
