Skip to content

Conversation

@tiagoponciano
Copy link

Add Balancer V3 support for Avalanche C-Chain

Description

This PR adds full support for avalanche_c data across multiple Balancer V3 models on both Hourly Spellbook and DEX projects.

Changes

1. Hourly Spellbook

Location: dbt_subprojects/hourly_spellbook/models/_project/balancer

Updated the following models to include Avalanche C-Chain support:

  • balances
  • bpt
  • erc4626_tokens
  • flashloans
  • liquidity
  • pools
  • protocol_fee

2. DEX

Location: dbt_subprojects/dex/models/_projects/balancer

Updated the following models:

  • labels
  • pools
  • trades

3. Sources & Schemas

  • Added avalanche_c schemas.
  • Updated existing Balancer V3 sources accordingly.

Quick Links

amandadalle and others added 30 commits October 2, 2025 19:45
This commit introduces new Balancer V3 pools and general DEX trading logic for the Plasma blockchain, enabling data abstraction for this chain.

Key changes and dependency fixes across subprojects:
- **New Models:** Introduced models in hourly_spellbook and dex for Plasma data processing.
- **Dependency Resolution:** Added all necessary source definitions (e.g., balancer_v3_plasma, tokens_plasma, aave_v3_plasma, metamorpho_factory_plasma) to fix over a dozen 'Source Not Found' errors.
- **Project Fixes:** Resolved the cyclic dependency in Balancer BPT models and corrected schema references in the erc4626_token_mapping.sql model (Aave to aave_v3_plasma).
This commit introduces new Balancer V3 pools and general DEX trading logic for the Plasma blockchain, enabling data abstraction for this chain.

Key changes and dependency fixes across subprojects:
- **New Models:** Introduced models in hourly_spellbook and dex for Plasma data processing.
- **Dependency Resolution:** Added all necessary source definitions (e.g., balancer_v3_plasma, tokens_plasma, aave_v3_plasma, metamorpho_factory_plasma) to fix over a dozen 'Source Not Found' errors.
- **Project Fixes:** Resolved the cyclic dependency in Balancer BPT models and corrected schema references in the erc4626_token_mapping.sql model (Aave to aave_v3_plasma).
Removed plasma schema configuration from dbt_project.yml
Added database and schema fields for Aave V3 Plasma.
@github-actions github-actions bot marked this pull request as draft December 5, 2025 13:46
@github-actions github-actions bot added WIP work in progress dbt: dex covers the DEX dbt subproject dbt: hourly covers the hourly dbt subproject labels Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dbt: dex covers the DEX dbt subproject dbt: hourly covers the hourly dbt subproject WIP work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants