accumulate_prices
function. This function checks how many blocks have passed since it was last called, calculates the elapsed time between the current and the last call and then accumulates the prices for all assets in the pool.query_cumulative_prices
.