# Proven Primitives, Adaptive Innovation

CurveYield's architecture is intentionally reference-based where mature DeFi infrastructure already exists.

That does not mean blind copying. It means CurveYield avoids unnecessary rewrites of mature DeFi infrastructure and focuses innovation on the coordination layer around those primitives.

## Why this matters

AMM math, vault accounting, bridge messaging, lending-market design, reward distribution, and DAO governance are all complex systems. Rewriting them from scratch creates unnecessary risk when strong open-source foundations already exist.

CurveYield takes a different path:

1. Use proven primitives where they fit.
2. Keep core logic close to the upstream design when safety depends on it.
3. Add CurveYield-specific contracts around those systems for fee routing, treasury ownership, yield-bearing collateral, automated compounding, cross-chain accounting, and DAO-controlled value distribution.

## Reference primitives

| Primitive                                 | Reference protocol or pattern | CurveYield use                                                             | Modification level                                                                                                            |
| ----------------------------------------- | ----------------------------- | -------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Balancer V3-style pools                   | Balancer                      | Flexible weighted, stable-style, and multi-token liquidity                 | Core pool behavior intended to remain close to upstream; CurveYield adds factory, fee, routing, and settlement infrastructure |
| Curve-style liquidity mechanics           | Curve                         | Peg support, stable liquidity, and lending-market references               | Used where Curve-style pools or market patterns fit the asset                                                                 |
| Yearn V3-style vaults                     | Yearn                         | ERC4626 vault shares, strategy reporting, profit accounting, and migration | Strategy-specific custom logic around proven vault accounting                                                                 |
| IPOR Fusion-style vault routes            | IPOR                          | Controlled strategy execution, balance accounting, and route permissions   | Route-specific modules and governance-managed substrates                                                                      |
| StakeDAO / Convex-style boost aggregation | StakeDAO and Convex           | BoostHub and boosted sd-token vault designs                                | Adapted to CurveYield vault, pool, and future collateral flows                                                                |
| Frax / LayerZero V2 bridge pattern        | Frax and LayerZero            | Cross-chain vault asset movement with rate publishing                      | Fee-enabled wrappers and CurveYield-owned configuration around the bridge path                                                |
| LlamaLend-style markets                   | Curve                         | Isolated credit-market design and soft-liquidation references              | Used where market-specific risk controls support the collateral                                                               |
| Aragon / Safe governance                  | Aragon and Safe               | DAO ownership, proposal execution, and cross-chain control paths           | CurveYield-specific ownership routing and operational procedure                                                               |

## Where CurveYield innovates

CurveYield's contribution is not claiming to have invented every primitive in isolation.

The edge is integration. CurveYield combines strong AMM, vault, lending, bridge, reward, and governance primitives, then coordinates how revenue moves through pools, vaults, credit markets, cross-chain assets, partner programs, treasury strategies, and permanent liquidity.

That is the core innovation: not another isolated primitive, but a system that makes existing primitives reinforce one another.

## Risk posture

Using mature systems can reduce unnecessary reinvention, but it does not remove risk. Every adapted system creates integration risk, permission risk, dependency risk, oracle risk, and upgrade risk.

CurveYield's standard is to keep proven core logic intact where possible, isolate custom behavior in external modules, make ownership and fee routing transparent, and route production control through DAO-governed infrastructure.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.curveyield.com/proven-primitives.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
