[CONTRIBUTION] Add DeSyn Protocol TVL models for Ethereum, Arbitrum, BSC,hemi,scroll,plume,linea

Open
#9,137 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
sql
Domain
blockchain, data

Research direction

Start by examining existing Spellbook TVL models that use balances_*_erc20_day and factory event topics such as LogNewCrp and LOG_NEW_POOL. Verify the listed factory addresses and chain coverage, then confirm that per-chain DeSyn models and the aggregated desyn_tvl model provide daily TVL for all requested networks.

Written by the indexing model from the issue text.

Description

DeSyn Protocol is a decentralized asset management protocol (Balancer-like pools for portfolios/ETFs), with TVL over $1B (per DefiLlama). Currently no coverage in Spellbook.

Plan:

  • Dynamic TVL calculation using factory events (LogNewCrp and LOG_NEW_POOL topics) from provided factories.
  • Per-chain models: desyn_ethereum_tvl, desyn_arbitrum_tvl, desyn_bsc_tvl
  • Aggregated: desyn_tvl
  • Use balances_*_erc20_day for efficient daily TVL.

Factories (official from user/DeSyn docs):

  • Ethereum: Factory 0x01a38B39BEddCD6bFEedBA14057E053cBF529cD2, CRPFactory 0xE806Af9E1e73281F420e0996d3F5b9333267Dc13
  • Arbitrum: Factory 0xdE6b117384452b21F5a643E56952593B88110e78, CRPFactory 0xf63013e0F946D70C42C7c7AeF8d34BB1BceE3F09
  • BSC: Factory 0x770c9d0851b21df8A84943EdE4f487D30d9741ba, CRPFactory 0x5Df07916f622EAE27b68dDE3bE2f85d49C6661fA
  • Linea:Factory 0x5C3027D8Cb28A712413553206A094213337E88c5,CRPFactory 0x90Ac490b6d384290618C61E49182b3D3Cc61f86f
  • scroll:Factory 0x09eFC8C8F08B810F1F76B0c926D6dCeb37409665 ,CRPFactory 0xe788511225632ffdA2c532d65ede98aF047282e8
  • hemi:Factory 0xdE6b117384452b21F5a643E56952593B88110e78,CRPFactory 0xf63013e0F946D70C42C7c7AeF8d34BB1BceE3F09
  • plume: Factory 0x770c9d0851b21df8A84943EdE4f487D30d9741ba,CRPFactory 0x5Df07916f622EAE27b68dDE3bE2f85d49C6661fA

This will enable community dashboards and queries for DeSyn.

Dominant language
Python
Stars
1.5k
Forks
1.4k
Avg merge
3d 16h
Merged PRs (30d)
22

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from duneanalytics/spellbook

All issues in duneanalytics/spellbook

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.