Currently, the LP Rebalancing Agent has its input data to the volatility model hardcoded. Ideally, this would be computed from the onchain pool data. The inputs are volatility and price change percentage (expressed in decimals).
The implementation could use an offchain API (such as The Graph) or calculate those values based on the swapping events on a given pool.
Currently, the LP Rebalancing Agent has its input data to the volatility model hardcoded. Ideally, this would be computed from the onchain pool data. The inputs are volatility and price change percentage (expressed in decimals).
The implementation could use an offchain API (such as The Graph) or calculate those values based on the swapping events on a given pool.