enviodev/velodrome-indexer

Auto-syncup contracts with sugar

Opened this issue · 2 comments

stas commented

Would be great if we would not have to maintain the contract addresses we need to index in the config file.

This is pretty easy with Sugar btw and less error-prone.
https://github.com/velodrome-finance/sugar/
https://github.com/aerodrome-finance/sugar/

Ideally these syncups would take place on a regular intervals.

Hi @stas - thanks - definitely. We support dynamic contracts, but we noticed a small bug that was causing the indexer to freeze up when there were more than a couple dozen registered contracts. So hardcoding in the config file is a temporary solution (we already have a fix, just need to get the next stable release out).

We definitely plan to use sugar though - it will be great for runtime validation checks.

Will add this once we have latest version of envio with improves support for dynamic contracts.