for fetching the apy of different asset on diferrent protocols. For protocols Like for curve, lido, sky, pendle, defillama etc.
Run yarn start to launch app. It will save output to output.json file by default. See config for env variables.
docker run --rm \
-e OUTPUT_JSON=/output/output.json \
-v "$(pwd)/tmp:/output" \
ghcr.io/gearbox-protocol/apy-server
Historically, this was a backend API deployed on fly.io and providing several endpoints:
/api/rewards/gear-apy/api/rewards/pools/all/api/rewards/tokens/all
Currently, this mode is still supported, but we're transitioning to one-shot mode, that runs on schedule, and dumps all results into file that is served via CDN later