|
| 1 | +--- |
| 2 | +sidebar_position: 1 |
| 3 | +--- |
| 4 | + |
| 5 | +# Datapoints |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +In Aave V3-Pooler, data points are specific, quantifiable elements derived from Aave V3 lending activities. |
| 10 | +Each snapshot inherits `Snapshot Base` which looks something like this |
| 11 | +```python reference |
| 12 | +https://github.com/PowerLoom/snapshotter-computes/blob/6fb98b1bbc22be8b5aba8bdc860004d35786f4df/utils/models/message_models.py#L9-L17 |
| 13 | +``` |
| 14 | + |
| 15 | +The following type of Base Snapshots are generated for the Aave V3 dashboard: |
| 16 | + |
| 17 | +**1. Asset Metrics Snapshot:** |
| 18 | + |
| 19 | +The Asset Metrics refer to the total supplied and borrowed amounts, supply and borrow interest rates, and the indices used to compute future rate changes. |
| 20 | +The asset snapshot looks something like this: |
| 21 | + |
| 22 | +```python reference |
| 23 | +https://github.com/PowerLoom/snapshotter-computes/blob/aave/utils/models/message_models.py#L26-L42 |
| 24 | +``` |
| 25 | +* **1a. AaveSupplyData and AaveDebtData** |
| 26 | + |
| 27 | + The nominal token amount and the token amount in terms of USD at the time of snapshotting: |
| 28 | + |
| 29 | + ```python reference |
| 30 | + https://github.com/PowerLoom/snapshotter-computes/blob/aave/utils/models/data_models.py#L65-L72 |
| 31 | + ``` |
| 32 | +* **1b. AssetDetailsData** |
| 33 | + |
| 34 | + Additional asset details include the maximum loan-to-value ratio, liquidation information, the asset's reserve factor, borrow/supply caps, and available eMode options. |
| 35 | + |
| 36 | + For further information, please see the Aave V3 Protocol [Documentation](https://docs.aave.com/risk/asset-risk/risk-parameters). |
| 37 | + |
| 38 | + ```python reference |
| 39 | + https://github.com/PowerLoom/snapshotter-computes/blob/aave/utils/models/data_models.py#L25-L34 |
| 40 | + ``` |
| 41 | + |
| 42 | +* **1c. RateDetailsData** |
| 43 | + |
| 44 | + Additional rate details describing the interest rate strategy for the asset. |
| 45 | + |
| 46 | + For further information, please see the Aave V3 Protocol [Documentation](https://docs.aave.com/risk/liquidity-risk/borrow-interest-rate). |
| 47 | + |
| 48 | + ```python reference |
| 49 | + https://github.com/PowerLoom/snapshotter-computes/blob/aave/utils/models/data_models.py#L37-L45 |
| 50 | + ``` |
| 51 | + |
| 52 | +**2. Volume-by-Action Snapshot** |
| 53 | + |
| 54 | +The asset's total volume-by-action for the Epoch, and the corresponding events for each action emitted by the blockchain. |
| 55 | +The volume-by-action snapshot looks something like this: |
| 56 | + |
| 57 | +```python reference |
| 58 | +https://github.com/PowerLoom/snapshotter-computes/blob/aave/utils/models/message_models.py#L91-L98 |
| 59 | +``` |
| 60 | + |
| 61 | +* **2a. volumeData** |
| 62 | + |
| 63 | + The total nominal token volume and the volume in terms of USD at the time of snapshotting: |
| 64 | + |
| 65 | + ```python reference |
| 66 | + https://github.com/PowerLoom/snapshotter-computes/blob/aave/utils/models/data_models.py#L92-L94 |
| 67 | + ``` |
| 68 | + |
| 69 | +* **2b. liquidationData** |
| 70 | + |
| 71 | + Additional details describing a liquidation action: |
| 72 | + |
| 73 | + ```python reference |
| 74 | + https://github.com/PowerLoom/snapshotter-computes/blob/aave/utils/models/data_models.py#L117-L122 |
| 75 | + ``` |
| 76 | + |
| 77 | +These base snapshots are used as the data source for higher-order aggregates. These aggregates are then used to generate the data points present in the Aave V3 Dashboard. Refer to [data-composition](/docs/protocol/data-composition) for more details on how data points are composed. |
| 78 | + |
| 79 | +The following aggregate snapshots are generated by AaveV3-Pooler using base snapshots. |
| 80 | + |
| 81 | +**1. Top Assets by Marketshare Snapshot:** All assets are organized by the total market share on the protocol. The top assets by marketshare snapshot look something like this: |
| 82 | + |
| 83 | +```python reference |
| 84 | +https://github.com/PowerLoom/snapshotter-computes/blob/aave/utils/models/message_models.py#L55-L69 |
| 85 | +``` |
| 86 | + |
| 87 | +**2. 24 Hour Volume-by-Action Snapshot:** 24-hour volume-by-action for each asset per Epoch. The 24-hour volume-by-action snapshot looks something like this: |
| 88 | + |
| 89 | +```python reference |
| 90 | +https://github.com/PowerLoom/snapshotter-computes/blob/aave/utils/models/message_models.py#L101-L107 |
| 91 | +``` |
| 92 | + |
| 93 | +**3. Top Assets by 24 Hour Volume Snapshot:** All assets are organized by total, 24-hour total volume-by-action. The top assets by volume snapshot looks something like this: |
| 94 | + |
| 95 | +```python reference |
| 96 | +https://github.com/PowerLoom/snapshotter-computes/blob/aave/utils/models/message_models.py#L110-L128 |
| 97 | +``` |
| 98 | + |
| 99 | +**4. 6 Hour Average Rate Snapshot:** Average supply and borrow rates over the previous 6 hours per Epoch. The 6-hour rate snapshot looks something like this: |
| 100 | + |
| 101 | +```python reference |
| 102 | +https://github.com/PowerLoom/snapshotter-computes/blob/aave/utils/models/message_models.py#L82-L88 |
| 103 | +``` |
| 104 | + |
| 105 | +**5. 24 hours Total Market Stats Snapshot:** 24-hour stats for the entire Aave lending market. The 24-hour stats snapshot looks something like this |
| 106 | + |
| 107 | +```python reference |
| 108 | +https://github.com/PowerLoom/snapshotter-computes/blob/aave/utils/models/message_models.py#L72-L79 |
| 109 | +``` |
| 110 | + |
0 commit comments