Aave and stAave Movements on Ethereum

    Overview 👀 \~ 3 min read

    In this dashboard, I will answer this question :

    we are now asking for creating visualizations depicting the daily, weekly and/or monthly movements of AAVE tokens on the Aave protocol specifically occurring on the Ethereum Mainnet, including both supply and withdrawal activities, as well as the daily staking and unstaking of AAVE tokens.

    Introduction 💭

    AAVE is a decentralized finance (DeFi) protocol built on the Ethereum blockchain that allows users to lend, borrow, and earn interest on cryptocurrencies. The AAVE token, also known as the Aave Governance Token, is the native utility token of the AAVE protocol. It plays a vital role in governing the platform and enables token holders to participate in important decision-making processes.

    The AAVE token holds several key functions within the Aave ecosystem. Firstly, it grants holders voting rights, allowing them to propose and vote on various protocol changes, upgrades, and parameter adjustments. This decentralized governance model ensures that the community has a say in shaping the future of the platform.

    Additionally, AAVE token holders can stake their tokens through the Aave Staking interface (https://app.aave.com/staking/). By staking AAVE, users contribute to the security and stability of the protocol and earn staking rewards in return. Staking rewards are distributed proportionally to participants based on their staked AAVE tokens. Stakers also benefit from boosted voting power, enhancing their influence in governance decisions.

    Staking AAVE is a way for token holders to actively participate in the Aave ecosystem while earning additional tokens as a reward. It aligns the interests of AAVE holders with the long-term success and development of the protocol.

    The Aave protocol has gained significant popularity within the DeFi space for its innovative features, robust security, and user-friendly interface. It has established itself as one of the leading platforms for decentralized lending and borrowing, providing users with efficient and secure financial services.

    By leveraging the power of smart contracts and blockchain technology, AAVE aims to create a transparent and inclusive financial ecosystem that empowers individuals worldwide to access and benefit from decentralized lending and borrowing opportunities.

    Disclaimer: As the cryptocurrency market is highly volatile and subject to risks, it is essential to conduct thorough research and exercise caution when participating in DeFi protocols or investing in cryptocurrencies.

    Methodology 🧠

    For the 🔮AAVE State tab, I added metrics as additions to the dashboard, such as Fully Diluted Valuation for the AAVE token and tvl, which I obtained from the ethereum.aave.ez_market_stats tables. Then, like on the Defillama site, I specified the important events in the charts and analyzed the impact of these events on these criteria For Fully Diluted Valuation, I went according to the definitions of coingecko website and set the Maximum Supply equal to 16 million For tvl, I added the total_liquidity_usds column minus the 2 columns total_stable_debt_usds and total_variable_debt_usd For Current Total supplied in $aave, I also subtracted aave_amount_deposits from aave_amount_withdrawn. For the 🐾AAVE Movement tab, I used the ethereum.aave.ez_deposits and ethereum.aave.ez_withdraws table and checked some additional criteria in addition to the question form. For the 🥩Staking tab, I used the ethereum.core.ez_token_transfers table and with the condition

    AND from_address = '0x00000000000000000000000000000000000000000' -- mint
    AND a.origin_function_signature = '0xadc9772e' -- stake ```
    
    
    I got Staking transactions and with the condition
    
    
    ``` WHERE contract_address = '0x4da27a545c0c5b758a6ba100e3a049001de870f5' -- Aave: Staked Aave
    AND to_address = '0x00000000000000000000000000000000000000000' -- mint
    AND a.origin_function_signature = '0x1e9a6950' -- redeem```
    
     I got the unstake transactions and checked some other metrics like the previous tab
    

    All queries and codes are written with ❤ and ☕ . By Sajjadiii

    db_img
    db_img
    db_img

    parameter Guide :

    • interval * Select the period of time you want to go back [ Minute , day , week , month , year ]
    • interval_count * The number of the time period you want to go back [ Any Number you want ]
    • date_trunc * View data in the time range [ Minute , day , week , month , year ]