beefyfinance / beefy-api

Simple API for BeefyFinance
https://api.beefy.finance
MIT License
118 stars 199 forks source link

patch merkl apr calc #1551

Open ReflectiveChimp opened 1 month ago

ReflectiveChimp commented 1 month ago

Edit: Merkl said they are fixing this on their end

Each forwarder under campaign.forwarders has an almApr field, however it is currently returning the same almApr for every campaign targeting the same pool (even when the campaign is inactive).

This patches the calc to look at the aprs map instead.