Overview

In this dashboard, I will go through the steps on how to identify the top 10 addresses by delegated voting power on AAVE.

Agenda:

  1. Overview on the governance system of AAVE
  2. Thought process on how to identify the top 10
  3. Query and data

1. Overview on the governance system of AAVE

Source: https://docs.aave.com/developers/protocol-governance/governance

Source: https://docs.aave.com/developers/protocol-governance/governance

AAVE and/or stkAAVE token holders receive governance powers proportionally to the sum of their balance.

There are initially two powers associated with each governance token:

Any user can choose to delegate one or both of the governance powers associated with a token, either through the governance portal or programmatically.

A user that has received delegated power can not forward this delegated power to another delegatee. I.e. delegated power cannot be passed on further.

An account's proposition/voting power at a given block is equal to the snapshot of that account's AAVE/stkAAVE balances plus the balances of all delegators.

An account's balance contributes to both proposition and voting power while delegators can choose to delegate proposition power, voting power or both to another account.

2. Thought process on how to identify the top 10

First to repeat the question: we need to get the top 10 addresses by delegated voting power, not the total voting power. We have this equation from the definition above:

Total voting power = Your own voting power + Total voting power delegated to you Your own voting power = Balance of AAVE + Balance of stkAAVE Total voting power delegated to you = Total balance of AAVE and stkAAVE of your delegators

⇒ To find the "Total voting power delegated to you", we need these 2: