Skip to content

Use TokenLogic for Aave v4 Core APRs - #2629

Merged
joaobrunoah merged 2 commits into
v3-canaryfrom
tokenlogic-aprs
Jul 17, 2026
Merged

Use TokenLogic for Aave v4 Core APRs#2629
joaobrunoah merged 2 commits into
v3-canaryfrom
tokenlogic-aprs

Conversation

@joaobrunoah

@joaobrunoah joaobrunoah commented Jul 17, 2026

Copy link
Copy Markdown
Member

Replaces the DeFiLlama feeds for the four Aave v4 Core waCore tokens on mainnet (added in #2623) with TokenLogic's official API, and adds two new Avalanche waCore feeds from the same source:

GET https://api.tokenlogic.xyz/v1/aave/reserves/{marketKey}/{reserveAddress}/latest

Mainnet (main-ethereum-core-v4)

Token Reserve (underlying) Balancer token
waCoreUSDC 0xa0b8…eb48 0x531e90a2376902de8915789fcc1075e3b0c153e7
waCoreUSDT 0xdac1…1ec7 0x5ec44a70f309854fe04d495cfe1b5da63dd1cc73
waCoreGHO 0x40d1…6c2f 0x58c14a5e061c9bc6926c5b853445290f296c2f7b
waCoreUSDG 0xe343…491d 0xac2435e3c25e8246870d33ce0a26988a46d5db68

Avalanche (main-avalanche-core-v4) — new

Token Reserve (underlying) Balancer token
waCoreUSDC 0xb97e…8a6e 0x01d7f7b7ce2123192fecc20bd1caf3e4d9e4c10d
waCoreUSDT 0x9702…a8c7 0x2e4ba06ff97e10d09fa4f5a270e97301eae729a9

Notes:

  • Auth via Authorization: Bearer ${TOKENLOGIC_API_KEY} — new optional env var added to apps/env.ts and env.local; the secret is already in the api-secrets Secrets Manager entry.
  • No scale: TokenLogic returns supply_apy as a fraction (DeFiLlama's apyBase was in percent).
  • Reserve addresses in the URLs are lowercase — the API's path matching is case-sensitive (checksummed addresses return empty data).
  • All six endpoints verified live: response shape { data: [row], lastUpdated }, extractor $.data[-1:].supply_apy returns mainnet USDC 3.18% / USDT 3.36% / GHO 3.38% / USDG 1.10%, avalanche USDC 0.47% / USDT 1.41%.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jul 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 4b60426

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@joaobrunoah
joaobrunoah requested a review from franzns July 17, 2026 19:41
@joaobrunoah
joaobrunoah merged commit fdd7964 into v3-canary Jul 17, 2026
1 check passed
@joaobrunoah
joaobrunoah deleted the tokenlogic-aprs branch July 17, 2026 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant