amplificationParameter, which is defined at pool creation and can be gradually updated later.
RateProvidersfor each token in the pool to determine the exchange rate. If a token's
RateProvideris set to the zero address, the rate is set to
RateProvidersare contract addresses stored at the pool level. The pool calls these providers to get the current exchange rates between the tokens in the pool. Calling
RateProviderthat has a function called
getRate(). In this example, this MetaStable Pool has only one
RateProvider. This implies that the rate is the ratio of Token1:Token2.
RateProvidersup to a maximum duration. These cached prices are updated either manually using
updatePriceRateCache()or automatically during a trade when the cache has expired.
0x0000000000000000000000000000000000000000), they will return a
durationof 10800 seconds (3 hours) and an expiration timestamp. The
rateis cached exactly as it comes from the
RateProvider. It's possible that a token price may need to be decimal adjusted for the price rate to make sense.
rateis not actually interpreted as 0, but rather as