lt A</span>
<strong>Two-way</strong>
<span>Vault B</span>
</div>
</div>
</section>
<section className="market-diagram" aria-label="Market with multiple collateral vaults">
<div className="market-diagram__copy">
<span>Multiple collateral</span>
<strong>Many collateral vaults support one borrow vault</strong>
<p>A single lending vault can accept several collateral assets, reducing liquidity fragmentation and creating more borrowing options.</p>
</div>
<div className="market-map market-map--multi" aria-hidden="true">
<svg viewBox="0 0 360 230" role="img">
<rect className="market-map__node" x="24" y="34" width="92" height="52" rx="8" />
<rect className="market-map__node" x="24" y="96" width="92" height="52" rx="8" />
<rect className="market-map__node" x="24" y="158" width="92" height="52" rx="8" />
<rect className="market-map__node market-map__node--borrow" x="220" y="88" width="112" height="74" rx="8" />
<text className="market-map__node-label" x="70" y="66" textAnchor="middle">ETH</text>
<text className="market-map__node-label" x="70" y="128" textAnchor="middle">DAI</text>
<text className="market-map__node-label" x="70" y="190" textAnchor="middle">UNI</text>
<text className="market-map__node-label" x="276" y="118" textAnchor="middle">USDC</text>
<text className="market-map__node-sublabel" x="276" y="140" textAnchor="middle">Borrow</text>
<path className="market-map__link market-map__link--collateral" d="M116 60 C166 58 178 92 220 104" />
<path className="market-map__link market-map__link--collateral" d="M116 122 H220" />
<path className="market-map__link market-map__link--collateral" d="M116 184 C166 184 178 150 220 140" />
<circle className="market-map__flow-dot market-map__flow-dot--collateral" r="4">
<animateMotion path="M116 60 C166 58 178 92 220 104" dur="3.6s" begin="-0.4s" calcMode="paced" repeatCount="indefinite" />
</circle>
<circle className="market-map__flow-dot market-map__flow-dot--collateral" r="4">
<animateMotion path="M116 122 H220" dur="3.6s" begin="-1.6s" calcMode="paced" repeatCount="indefinite" />
</circle>
<circle className="market-map__flow-dot market-map__flow-dot--collateral" r="4">
<animateMotion path="M116 184 C166 184 178 150 220 140" dur="3.6s" begin="-2.8s" calcMode="paced" repeatCount="indefinite" />
</circle>
</svg>
<div className="market-map__labels">
<span>ETH, DAI, UNI</span>
<strong>Collateral set</strong>
<span>USDC borrow vault</span>
</div>
</div>
</section>
<section className="market-diagram" aria-label="Cross-collateralized cluster">
<div className="market-diagram__copy">
<span>Cross-collateralized cluster</span>
<strong>Several vaults can lend and collateralize each other</strong>
<p>This is more capital-efficient, but risk can travel across the cluster if one asset, oracle, or vault configuration fails.</p>
</div>
<div className="market-map market-map--cluster" aria-hidden="true">
<svg viewBox="0 0 360 230" role="img">
<rect className="market-map__node" x="124" y="24" width="112" height="56" rx="8" />
<rect className="market-map__node market-map__node--borrow" x="42" y="146" width="112" height="56" rx="8" />
<rect className="market-map__node market-map__node--third" x="206" y="146" width="112" height="56" rx="8" />
<text className="market-map__node-label" x="180" y="58" textAnchor="middle">ETH</text>
<text className="market-map__node-label" x="98" y="180" textAnchor="middle">stETH</text>
<text className="market-map__node-label" x="262" y="180" textAnchor="middle">USDC</text>
<path className="market-map__link market-map__link--collateral" d="M150 80 L106 146" />
<path className="market-map__link market-map__link--collateral" d="M210 80 L252 146" />
<path className="market-map__link market-map__link--borrow" d="M154 174 H206" />
<path className="market-map__link market-map__link--dependency" d="M98 146 C108 92 252 92 262 146" />
<circle className="market-map__flow-dot market-map__flow-dot--collateral" r="4">
<animateMotion path="M150 80 L106 146" dur="3.8s" begin="-0.3s" calcMode="paced" repeatCount="indefinite" />
</circle>
<circle className="market-map__flow-dot market-map__flow-dot--collateral" r="4">
<animateMotion path="M210 80 L252 146" dur="3.8s" begin="-1.4s" calcMode="paced" repeatCount="indefinite" />
</circle>
<circle className="market-map__flow-dot market-map__flow-dot--borrow" r="4">
<animateMotion path="M154 174 H206" dur="3.8s" begin="-2.5s" calcMode="paced" repeatCount="indefinite" />
</circle>
<circle className="market-map__flow-dot market-map__flow-dot--dependency" r="3.5">
<animateMotion path="M98 146 C108 92 252 92 262 146" dur="4.6s" begin="-3.3s" calcMode="paced" repeatCount="indefinite" />
</circle>
</svg>
<div className="market-map__labels">
<span>ETH</span>
<strong>Cluster</strong>
<span>stETH / USDC</span>
</div>
</div>
</section>
<section className="market-diagram market-diagram--wide" aria-label="Fully customizable market">
<div className="market-diagram__copy">
<span>Custom market</span>
<strong>Market creators can compose vaults in many shapes</strong>
<p>Euler can connect new vaults to existing vaults, isolate specific assets, or create specialized clusters. Each added connection should be reviewed for caps, LTVs, oracles, liquidity, hooks, monitoring, and governance.</p>
</div>
<div className="market-map market-map--custom" aria-hidden="true">
<svg viewBox="0 0 560 230" role="img">
<rect className="market-map__zone" x="22" y="26" width="230" height="174" rx="10" />
<rect className="market-map__zone market-map__zone--right" x="308" y="26" width="230" height="174" rx="10" />
<rect className="market-map__node" x="52" y="62" width="92" height="52" rx="8" />
<rect className="market-map__node market-map__node--borrow" x="132" y="136" width="92" height="52" rx="8" />
<rect className="market-map__node market-map__node--third" x="338" y="62" width="92" height="52" rx="8" />
<rect className="market-map__node" x="418" y="136" width="92" height="52" rx="8" />
<text className="market-map__zone-label" x="137" y="48" textAnchor="middle">New market</text>
<text className="market-map__zone-label" x="423" y="48" textAnchor="middle">Existing vaults</text>
<text className="market-map__node-label" x="98" y="94" textAnchor="middle">RWA</text>
<text className="market-map__node-label" x="178" y="168" textAnchor="middle">USDC</text>
<text className="market-map__node-label" x="384" y="94" textAnchor="middle">ETH</text>
<text className="market-map__node-label" x="464" y="168" textAnchor="middle">sUSDe</text>
<path className="market-map__link market-map__link--collateral" d="M144 88 C210 70 272 70 338 88" />
<path className="market-map__link market-map__link--borrow" d="M224 162 C284 180 358 180 418 162" />
<path className="market-map__link market-map__link--dependency" d="M178 136 C214 102 302 102 338 114" />
<circle className="market-map__flow-dot market-map__flow-dot--collateral" r="4">
<animateMotion path="M144 88 C210 70 272 70 338 88" dur="4s" begin="-0.8s" calcMode="paced" repeatCount="indefinite" />
</circle>
<circle className="market-map__flow-dot market-map__flow-dot--borrow" r="4">
<animateMotion path="M224 162 C284 180 358 180 418 162" dur="4s" begin="-2.1s" calcMode="paced" repeatCount="indefinite" />
</circle>
<circle className="market-map__flow-dot market-map__flow-dot--dependency" r="3.5">
<animateMotion path="M178 136 C214 102 302 102 338 114" dur="4.8s" begin="-3.3s" calcMode="paced" repeatCount="indefinite" />
</circle>
</svg>
<div className="market-map__labels">
<span>New vaults</span>
<strong>Composable links</strong>
<span>Existing markets</span>
</div>
</div>
</section>
</div>
### What to review
Before using or launching a market, review the relationships between vaults:
| Area | Why it matters |
| ----------------------------- | ----------------------------------------------------------------------- |
| Collateral links | Define which assets can support borrowing and where risk can travel. |
| LTVs and liquidation settings | Determine borrowing capacity and liquidation behavior. |
| Oracles | Price collateral and debt for account health checks. |
| Caps | Limit supply or borrow exposure in a vault. |
| Liquidity | Affects withdrawals, borrowing availability, and liquidation execution. |
| Governance and monitoring | Determine who can update parameters and respond to market changes. |
### Creating a market
To learn how markets work in more technical detail and how to deploy your own versions of any of those described here, visit [Curate](/curate). You'll find guides on configuring vault parameters, adding custom hooks, implementing advanced functionality, and governing vault risk.
## Price Oracles
Price oracles convert token balances into a common unit of account for collateral valuation, borrow capacity, and liquidation checks.
<div className="oracle-story" aria-label="How a price oracle supports a borrowing decision">
<div className="oracle-story__header">
<span>Oracle flow</span>
<strong>From market prices to your position health</strong>
</div>
<div className="oracle-story__lane">
<div className="oracle-story__node oracle-story__node--source">
<strong>Price sources</strong>
<span>Market feeds, exchange rates, and configured reference prices publish values for assets.</span>
</div>
<div className="oracle-story__connector" aria-hidden="true">
<span />
</div>
<div className="oracle-story__node oracle-story__node--router">
<strong>Oracle route</strong>
<span>Euler follows the route selected for the vault and converts assets into a common reference.</span>
</div>
<div className="oracle-story__connector" aria-hidden="true">
<span />
</div>
<div className="oracle-story__node oracle-story__node--position">
<strong>Your position</strong>
<span>The configured vault oracle values collateral and liability for borrow-capacity and liquidation checks.</span>
</div>
</div>
<div className="oracle-story__metrics" aria-label="Examples of values affected by oracle prices">
<div>
<strong>Collateral value</strong>
<span>What your supplied assets count for</span>
</div>
<div>
<strong>Debt value</strong>
<span>What your borrowed assets count against</span>
</div>
<div>
<strong>Health checks</strong>
<span>Whether the account remains above liquidation thresholds</span>
</div>
</div>
</div>
### Why prices matter
Oracle prices affect the numbers users see and the rules the protocol enforces.
| Area | What the oracle helps determine |
| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| Collateral value | How much your supplied collateral is worth for a specific market |
| Debt value | How much your borrow position is worth in the same reference terms |
| Borrow capacity | Whether you can borrow more without crossing the market's limits |
| Liquidation checks | Whether a position has fallen below the required collateral level |
| Informational prices in an interface may use different sources from the vault's onchain oracle. | |
### Adapters, providers, and routers
The oracle system is modular, so it can support additional price sources without changing vault logic. The Euler Price Oracle library separates two roles:
* **Adapters** connect to one external feed or onchain pricing system and normalize its output. Adapters in the library are immutable, ungoverned, bidirectional contracts with observable configuration.
* **`EulerRouter`** maps asset pairs to providers, can resolve approved ERC-4626 shares through `convertToAssets`, and can send unresolved pairs to a fallback provider. Its configuration can remain governed or be finalized by revoking its governor.
The router's fallback is not automatic failover for a broken primary feed. It is consulted only when no pair-specific provider resolves the request after any configured vault-share conversion. If a configured provider reverts, the router propagates that error rather than switching to the fallback.
The library supports feeds such as Chainlink, Chronicle, Pyth, and RedStone, as well as onchain and rate-based sources. Curators deploy adapter instances for the feeds their markets need — the [Toolbox](/curate/oracle-routes) deploys the available adapter types; see the [Euler Price Oracle repository](https://github.com/euler-xyz/euler-price-oracle) for the implementations.
### Route examples
A vault requests a quote in its configured unit of account. The router selects the price source for that asset pair.
<div className="oracle-route-cases" aria-label="Euler oracle route examples">
<section className="oracle-route-card">
<div className="oracle-route-card__copy">
<span>Case 1</span>
<strong>Direct feed</strong>
<p>A major asset can often be priced from a direct provider route, such as ETH to USD.</p>
</div>
<svg className="oracle-route-card__map" viewBox="0 0 420 170" role="img" aria-label="Direct feed route">
<defs>
<marker id="oracle-case-direct-arrow" markerWidth="4" markerHeight="4" refX="3.6" refY="2" orient="auto">
<path d="M0 0 L4 2 L0 4 Z" />
</marker>
</defs>
<rect className="oracle-route-card__box" x="22" y="50" width="96" height="58" rx="8" />
<text className="oracle-route-card__label" x="70" y="76" textAnchor="middle">ETH</text>
<text className="oracle-route-card__sublabel" x="70" y="96" textAnchor="middle">Collateral</text>
<rect className="oracle-route-card__box oracle-route-card__box--router" x="162" y="50" width="106" height="58" rx="8" />
<text className="oracle-route-card__label" x="215" y="76" textAnchor="middle">Chainlink</text>
<text className="oracle-route-card__sublabel" x="215" y="96" textAnchor="middle">ETH / USD</text>
<rect className="oracle-route-card__box oracle-route-card__box--quote" x="312" y="50" width="86" height="58" rx="8" />
<text className="oracle-route-card__label" x="355" y="76" textAnchor="middle">USD</text>
<text className="oracle-route-card__sublabel" x="355" y="96" textAnchor="middle">Value</text>
<path className="oracle-route-card__line" d="M118 79 H162" markerEnd="url(#oracle-case-direct-arrow)" />
<path className="oracle-route-card__line" d="M268 79 H312" markerEnd="url(#oracle-case-direct-arrow)" />
<circle className="oracle-route-card__dot" r="2.5">
<animateMotion path="M118 79 H162" dur="2.8s" begin="-0.4s" calcMode="paced" repeatCount="indefinite" />
</circle>
<circle className="oracle-route-card__dot" r="2.5">
<animateMotion path="M268 79 H312" dur="2.8s" begin="-1.8s" calcMode="paced" repeatCount="indefinite" />
</circle>
</svg>
<p className="oracle-route-card__note">Check the provider, heartbeat, staleness behavior, and unit of account.</p>
</section>
<section className="oracle-route-card">
<div className="oracle-route-card__copy">
<span>Case 2</span>
<strong>Vault share pricing</strong>
<p>If collateral is a vault share, the route first converts shares into the underlying asset value.</p>
</div>
<svg className="oracle-route-card__map" viewBox="0 0 420 170" role="img" aria-label="Vault share oracle route">
<defs>
<marker id="oracle-case-share-arrow" markerWidth="4" markerHeight="4" refX="3.6" refY="2" orient="auto">
<path d="M0 0 L4 2 L0 4 Z" />
</marker>
</defs>
<rect className="oracle-route-card__box" x="18" y="50" width="92" height="58" rx="8" />
<text className="oracle-route-card__label" x="64" y="76" textAnchor="middle">eUSDC</text>
<text className="oracle-route-card__sublabel" x="64" y="96" textAnchor="middle">Share</text>
<rect className="oracle-route-card__box oracle-route-card__box--router" x="148" y="50" width="126" height="58" rx="8" />
<text className="oracle-route-card__label" x="211" y="76" textAnchor="middle">convertToAssets</text>
<text className="oracle-route-card__sublabel" x="211" y="96" textAnchor="middle">Share -> USDC</text>
<rect className="oracle-route-card__box oracle-route-card__box--quote" x="312" y="50" width="90" height="58" rx="8" />
<text className="oracle-route-card__label" x="357" y="76" textAnchor="middle">USDC</text>
<text className="oracle-route-card__sublabel" x="357" y="96" textAnchor="middle">Unit</text>
<path className="oracle-route-card__line" d="M110 79 H148" markerEnd="url(#oracle-case-share-arrow)" />
<path className="oracle-route-card__line" d="M274 79 H312" markerEnd="url(#oracle-case-share-arrow)" />
<circle className="oracle-route-card__dot" r="2.5">
<animateMotion path="M110 79 H148" dur="2.8s" begin="-0.4s" calcMode="paced" repeatCount="indefinite" />
</circle>
<circle className="oracle-route-card__dot" r="2.5">
<animateMotion path="M274 79 H312" dur="2.8s" begin="-1.8s" calcMode="paced" repeatCount="indefinite" />
</circle>
</svg>
<p className="oracle-route-card__note">Check what drives the share exchange rate and whether the share vault has its own risks.</p>
</section>
<section className="oracle-route-card">
<div className="oracle-route-card__copy">
<span>Case 3</span>
<strong>CrossAdapter route</strong>
<p>A CrossAdapter can chain two bidirectional providers through a shared asset.</p>
</div>
<svg className="oracle-route-card__map" viewBox="0 0 420 170" role="img" aria-label="Derived pair oracle route">
<defs>
<marker id="oracle-case-derived-arrow" markerWidth="4" markerHeight="4" refX="3.6" refY="2" orient="auto">
<path d="M0 0 L4 2 L0 4 Z" />
</marker>
</defs>
<rect className="oracle-route-card__box" x="20" y="50" width="88" height="58" rx="8" />
<text className="oracle-route-card__label" x="64" y="76" textAnchor="middle">TOKEN</text>
<text className="oracle-route-card__sublabel" x="64" y="96" textAnchor="middle">Base</text>
<rect className="oracle-route-card__box oracle-route-card__box--router" x="150" y="30" width="104" height="48" rx="8" />
<text className="oracle-route-card__label" x="202" y="58" textAnchor="middle">TOKEN / ETH</text>
<rect className="oracle-route-card__box oracle-route-card__box--router" x="150" y="94" width="104" height="48" rx="8" />
<text className="oracle-route-card__label" x="202" y="122" textAnchor="middle">ETH / USD</text>
<rect className="oracle-route-card__box oracle-route-card__box--quote" x="312" y="50" width="88" height="58" rx="8" />
<text className="oracle-route-card__label" x="356" y="76" textAnchor="middle">USD</text>
<text className="oracle-route-card__sublabel" x="356" y="96" textAnchor="middle">Quote</text>
<path className="oracle-route-card__line" d="M108 68 C126 54 132 54 150 54" markerEnd="url(#oracle-case-derived-arrow)" />
<path className="oracle-route-card__line" d="M108 92 C126 118 132 118 150 118" markerEnd="url(#oracle-case-derived-arrow)" />
<path className="oracle-route-card__line" d="M254 54 C282 54 286 68 312 72" markerEnd="url(#oracle-case-derived-arrow)" />
<path className="oracle-route-card__line" d="M254 118 C282 118 286 92 312 86" markerEnd="url(#oracle-case-derived-arrow)" />
<circle className="oracle-route-card__dot" r="2.5">
<animateMotion path="M108 68 C126 54 132 54 150 54" dur="3s" begin="-0.2s" calcMode="paced" repeatCount="indefinite" />
</circle>
<circle className="oracle-route-card__dot" r="2.5">
<animateMotion path="M108 92 C126 118 132 118 150 118" dur="3s" begin="-0.9s" calcMode="paced" repeatCount="indefinite" />
</circle>
<circle className="oracle-route-card__dot" r="2.5">
<animateMotion path="M254 54 C282 54 286 68 312 72" dur="3s" begin="-1.7s" calcMode="paced" repeatCount="indefinite" />
</circle>
<circle className="oracle-route-card__dot" r="2.5">
<animateMotion path="M254 118 C282 118 286 92 312 86" dur="3s" begin="-2.4s" calcMode="paced" repeatCount="indefinite" />
</circle>
</svg>
<p className="oracle-route-card__note">Check both providers and the shared asset. CrossAdapter returns mid-point quotes and does not support distinct bid/ask pricing.</p>
</se프로젝트로 돌아가기