timestamp
of when the acc was last updatedpriceAcc
which is the actual accumulator of the pair price. The price accumulator is factored into two numbers:price
: 182 bits =~ 6.13 * 10^54, so we have a huge range of possible prices even given the fact that prices will always be scaled to 10^18.priceMultiplier
: instead of storing the priceAcc
directly in a 214 bit-word we factor it into two components, the price
and the priceMultiplier
such that priceAcc = price * priceMultiplier.
The reason for this is that while the accumulated price is only useful when two timestamps are taken into consideration for a TWAP, having the instant price information available can be extremely valuable for some use cases.