Pendle Blueprints
Blockchain2023

PENDLEBLUEPRINTS

Multi-chain Pendle indexing — factories, routers, SY/PT/YT; Blueprint SDK for positions.

6
Indexed chains
20+
Router bytecode variants
1
Blueprint SDK surface
SCROLL
Client
Domain
Blockchain / DeFi
Platform
Subgraph
Duration
Core Stack
AssemblyScript · Pendle
The Brief

THE
PROBLEM

Pendle V3 markets span six chains with factories, routers, SY/PT/YT instruments, and governance hooks — consumers needed a subgraph that stayed correct as router bytecode forked per deployment.

Mustache-templated manifests per network, exhaustive handler matrices for router edges, and a Blueprint SDK layer for position analytics that tracks the same entities the subgraph exposes.

Core Engineering Challenge

Router variant explosion, multi-factory versioning, and ensuring user-position SDK helpers didn’t desync from on-chain accounting when new markets launched mid-quarter.

6
Chains
Extended stack
blockchain
The Graph
blockchain
Pendle
Pendle
Pendle
How we built it

THE ARCHITECTURE

01
Factory & router inventory

Enumerate Pendle deployments per chain; diff router ABIs where bytecode diverged.

SolidityPendle
02
Mustache manifests

Generate subgraph.yaml + networks.json from one template set.

MustacheThe Graph
03
SY/PT/YT handlers

Track mints, merges, exits, and fee accrual with consistent decimal handling.

AssemblyScript
04
SDK packaging

Blueprint SDK exposes typed queries for positions and APY rollups aligned to subgraph entities.

TypeScriptSDK
05
Regression harness

Fixture blocks replay router upgrades before mainnet promotion.

TestingDeFi
System Data Flow
Ingestion
CrawlerContent Hash10K+ pages
Processing
ChunkerDeduplicatorEmbedding API
Storage
pgvectorPostgreSQLRedis Cache
Auth
Identity ProviderJWT BridgeSessions
Query
HNSW SearchRe-rankerLLM Stream
Delivery
Web AppMobile AppUsers
What we delivered

THE RESULTS

6

Ethereum, Arbitrum, BNB, Optimism, Mantle, and Base each run manifests generated from shared templates so address updates ship as data, not copy-paste subgraph repos.

6
Chains

Ethereum, Arbitrum, BNB, Optimism, Mantle, and Base each run manifests generated from shared templates so address updates ship as data, not copy-paste subgraph repos.

Engineering decisions

TECH
DEEP DIVE

MUST
Templates for six chains

One mapping codebase with data-driven configs prevented six divergent forks.

SDK parity with subgraph entities avoided “two truths” between analytics and on-chain state.

RT
Router matrix

Explicit variant table for routers instead of brittle ABI guessing at runtime.

New Pendle router deploys became config-only changes when bytecode stayed in the supported set.

Next Case Study
Open Source
Axumlings

Axum learning CLI

RustAxum
Start a project

LET'S
BUILD
SOMETHING.

We take on a small number of projects at a time. If the problem is hard, we're interested.

Email
hello@techmusketeers.com
Response time
Within 24 hours
Availability
Open for new projects · 2025