Skip to content

feat: add support for AAVE governance contract-call#24

Merged
wa0x6e merged 1 commit into
mainfrom
feat-add-support-aave-governance-contract-call
Feb 18, 2026
Merged

feat: add support for AAVE governance contract-call#24
wa0x6e merged 1 commit into
mainfrom
feat-add-support-aave-governance-contract-call

Conversation

@wa0x6e

@wa0x6e wa0x6e commented Jan 27, 2026

Copy link
Copy Markdown
Contributor

Add support for the contract-call strategy from AAVE strategies.

This contract is aggregating and returning the AAVE tokens balance from different sources:

  • base token
  • staked token
  • lended token

The returned balance should be considered as regular AAVE token when computing USD value

@wa0x6e
wa0x6e requested a review from bonustrack January 27, 2026 08:57
// AAVE base/staked/lended token
const aaveToken =
params.address.toLowerCase() ===
'0xa198Fac58E02A5C5F8F7e877895d50cFa9ad1E04' &&

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this has always the same value than AAVE right?

const aaveToken =
params.address.toLowerCase() ===
'0xa198Fac58E02A5C5F8F7e877895d50cFa9ad1E04' &&
params.methodABI?.name === 'getFullVotingPower' &&

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And getFullVotingPower is just the balance?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not exactly, it's returning the voting power, which is coming from the delegated balance.

So if a user has 100 aave, and delegated to himself, he get 100
If a user has 0 aave, but got delegated 100 aave by someone else, he get 100
If a user has 100 aave, but not delegated them, he get 0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok but that's always 1 vp = 1 AAVE token.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@bonustrack bonustrack left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@wa0x6e
wa0x6e merged commit 00754d7 into main Feb 18, 2026
3 of 5 checks passed
@wa0x6e
wa0x6e deleted the feat-add-support-aave-governance-contract-call branch February 18, 2026 13:22
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.

2 participants