poolTypes
can implement Oracle Functionality. Since WeightedPool2Tokens
were the first pool to implement the oracles, they were originally referred to as "Oracle Pools," but they are no longer alone in providing this functionality.getTimeWeightedAverage
variable
- One of { PAIR_PRICE, BPT_PRICE, INVARIANT }
secs
- The duration of the query in secondsago
- The time in seconds from since end of that duration. getLatest
variable
, which is one of { PAIR_PRICE, BPT_PRICE, INVARIANT }
.