yearn / yearn-exporter

Realtime and historical Yearn metrics
https://yearn.vision
MIT License
95 stars 144 forks source link

feat: 1200 less getCode calls @ startup #668

Closed BobTheBuidler closed 12 months ago

BobTheBuidler commented 12 months ago

Related issue # (if applicable):

What I did:

Swap out contract for Contract, both are lru_cached but Contract for each of these contracts will be inited during ypm initialization so it makes no sense to load both for each curve pool / iearn token

YOLO merged on sunday so prod can defeat the rate limits easier

How I did it:

How to verify it:

Checklist:

Adding a Network

If the purpose of your PR is to add support for a new network, please copy the checklist from here into this PR conversation, and use it to track your changes.