gizatechxyz / Giza-Hub

Curated list of ZKML models and use cases made with Giza
https://docs.gizatech.xyz/
MIT License
46 stars 23 forks source link

Fetch LP rebalancing agent input data onchain #18

Open jwarmuz99 opened 6 months ago

jwarmuz99 commented 6 months ago

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.

manny-uncharted commented 5 months ago

I'd like to work on this project is this still open