Skip to content

Conversation

sandeshsk12
Copy link
Contributor

@sandeshsk12 sandeshsk12 commented Sep 26, 2025

Thank you for contributing to Spellbook 🪄

Please open the PR in draft and mark as ready when you want to request a review.

Description:

[...]


quick links for more information:


Note

Adds Aave v3 Plasma lending models (borrow, supply, flashloans), corresponding seeds, sources, and tests, plus aggregate views under lending_plasma.

  • Lending (Plasma):
    • Aggregate Views: Add lending_plasma.base_borrow, lending_plasma.base_supply, lending_plasma.base_flashloans aggregating from Aave v3 models.
    • Aave v3 Platform Models: Add aave_v3_plasma.base_borrow, aave_v3_plasma.base_supply, aave_v3_plasma.base_flashloans as incremental models using lending_aave_v3_compatible_* macros (unique keys, incremental predicates; decoded_contract_name='poolinstance', wrapped_token_gateway_available=false for supply).
  • Seeds:
    • Add aave_plasma_base_borrow_seed.csv, aave_plasma_base_supply_seed.csv, aave_plasma_base_flashloans_seed.csv and register in seeds/_sector/lending/_schema.yml with column types.
  • Sources:
    • Add aave_v3_plasma sources for poolinstance_evt_Borrow, Repay, LiquidationCall, Supply, Withdraw, WrappedTokenGatewayV3_call_withdrawETH, and FlashLoan.
  • Tests:
    • Add uniqueness tests and seed-based checks for new models in _schema.yml.

Written by Cursor Bugbot for commit ffe1571. This will update automatically on new commits. Configure here.

@github-actions github-actions bot added WIP work in progress dbt: hourly covers the hourly dbt subproject labels Sep 26, 2025
@sandeshsk12
Copy link
Contributor Author

Screenshot 2025-09-27 at 1 49 42 AM image

The token amounts are in line with the official page. However, because of the absence of info on token decimals in the database, each amount is being divided by 10e18, resulting in wrong amounts.
But this is currently being worked in #8792 . Post which the token values will be correct.

@sandeshsk12
Copy link
Contributor Author

Screenshot 2025-10-01 at 11 40 32 PM Screenshot 2025-10-01 at 11 40 21 PM

The values arrived at using Dune data is comparable with the project's dashboard.

Dune query: https://dune.com/queries/5857942?sidebar=none

@sandeshsk12 sandeshsk12 marked this pull request as ready for review October 1, 2025 18:35
@github-actions github-actions bot added ready-for-review this PR development is complete, please review and removed WIP work in progress labels Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dbt: hourly covers the hourly dbt subproject ready-for-review this PR development is complete, please review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant