bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 26쪽 중 18쪽
publishes, or at a scheduled time.
* New labels show **Not published yet**, and edited ones show **Unpublished changes**. Until then, users see the published labels.
### For Euler (Admin → Publishing)
Each row below is one label: a curator, a product or a vault.
| Page | What it does |
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Pending changes** | Compares everything waiting to go live with what's live now. Publish all of it or a selection. You can quarantine a row: it keeps its published content until released, the curator's draft isn't changed, and the curator isn't notified. Right after a publish from this page, it shows what that publish did when rows were held back, overridden or published as a selection. |
| **Holds** | Rows held at their published content: quarantined rows, and every row belonging to a suspended curator. When a hold is released, the row goes live at the next publication. |
| **Versions** | Every published version and who published it. Restoring a version rewrites the draft: all of it, one curator's labels, or the products and vaults you tick. It doesn't publish: that's a separate step. |
## EulerSwap: a vault-connected, single-LP AMM
### Overview
EulerSwap 2 is a single-LP automated market maker for executing swaps through an Euler account. Instead of depositing assets into a shared standalone AMM pool, the LP connects Euler supply vaults—and, optionally, borrow vaults—to a configurable market-making curve. Supplied assets remain in the LP's Euler positions while the pool uses the same account to settle swaps.
This design brings swap execution and lending positions into one account. The LP may receive swap fees while supplied assets may continue to earn lending interest. When borrowing is configured, the pool may also borrow an output-asset shortfall, subject to vault liquidity, lending relationships, oracle values, caps, account health, and final solvency checks.
### Key features
#### Swap fees alongside lending interest
An LP may receive swap fees while supplied assets continue to earn lending interest. External rewards may also apply when the connected position is eligible. These sources accrue independently and none is guaranteed by deploying a pool.
#### Rehypothecation and optional borrowing
Rehypothecation here means that supplied assets remain in Euler lending positions and can also support borrowing when the connected vault relationships permit it. EulerSwap uses available supplied inventory first. If the output inventory is insufficient, the pool may borrow the shortfall from its configured borrow vault.
Borrowing can make additional output available beyond the pool's current supplied inventory, but it does not guarantee executable depth or lower slippage. Vault liquidity, caps, LTV relationships, oracle values, account health, and final solvency checks can limit or prevent it. Incoming input repays enabled debt for that asset first; any remainder is deposited into its configured supply vault.
#### Customizable curves and fees
Authorized parties can update `DynamicParams`, including equilibrium and minimum reserves, directional prices and concentration, directional fees, expiration, and optional swap-hook settings.
Equilibrium is a curve setting rather than an oracle price, external market price, or account NAV target. Concentration changes the curve shape, and its effect depends on token direction, reserves, prices, and trade size. Review quotes and limits in both directions rather than treating one setting as universally preferable.
#### Single-LP management
Each pool belongs to one Euler account rather than combining liquidity from multiple LPs. The owner controls its configuration directly or through authorized managers. This model supports independently managed and protocol-owned liquidity, while leaving parameter selection, permissions, and ongoing monitoring with the owner and its managers.
The Euler account, vault addresses, and fee recipient are fixed in `StaticParams`. Changing one of these addresses requires a new installation or deployment.
### Mechanics
At a high level, an EulerSwap pool operates as an authorised EVC operator for a selected Euler account:
1. The account owner installs the pool as an operator for that account.
2. The pool reads the configured vault pair, curve parameters, account inventory, and relevant vault state to quote a swap.
3. During execution, input and output amounts are settled through the Euler account and its vaults. Available supplied inventory is used first; if output inventory is insufficient, the pool may borrow the shortfall only when the vault relationships and account health permit it.
4. Callback-based swaps can let an integration source the input during execution, but the transaction must still complete settlement and satisfy the pool's invariant and EVC/vault checks.
5. Interest, price changes, oracle state, and borrowing can change the account's health after deployment. A pool configuration does not remove liquidation or bad-debt risk.
The exact calls and mutable fields differ by EulerSwap generation. For EulerSwap 2 interfaces and deployment details, use versioned source and current deployment addresses rather than older interface screenshots.
### Comparison with standalone AMMs
EulerSwap combines an AMM curve with an Euler account. This changes where liquidity sits and which risks matter; it does not make the position universally more capital-efficient or safer.
| Dimension | EulerSwap | Standalone AMM, generally |
| ------------------- | -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| Asset location | Assets remain in vaults associated with the provider's Euler account | Assets are deposited into the AMM's pool contracts |
| Available output | Can use supplied inventory and, when configured and healthy, borrowed output | Normally limited to assets already held by the pool |
| Lending interaction | Supplied balances may earn vault interest; borrowed balances accrue interest | Lending requires a separate integration or strategy |
| Account risk | Includes vault, oracle, borrowing, health, liquidation, and collateral-relationship risk | Primarily pool inventory, curve, token, oracle/integration, and contract risk |
| Curve configuration | Supports directional concentration, equilibrium, and fee parameters according to the deployed generation | Depends on the AMM design and pool type |
| Position boundary | The pool acts through a selected EVC account under its authorisation | Ownership is commonly represented by LP shares or a position NFT |
Compare exact deployed implementations, fee paths, oracle assumptions, and transaction simulations. Category labels are not substitutes for contract-level review.
### JIT liquidity, callbacks, and hooks
Just-in-time (JIT) liquidity means borrowing an output-asset shortfall during swap execution when a borrow vault is configured and the lending checks permit it. Supplied inventory is used first.
A flash swap is a separate callback-style flow. Callback execution and JIT vault borrowing are distinct mechanisms.
A pool can also configure a swap hook. Integrators should inspect the hook and account for any conditions it adds to execution or reconfiguration.
### Risk considerations
An EulerSwap LP position can include supplied inventory, debt, and AMM exposure. Outcomes depend on market direction, inventory, borrowing rates, liquidations, curve settings, fees, rewards, oracles, vault liquidity, managers, and hooks. Account health is an important risk signal, not a guarantee against loss.
See [LP considerations](/curate/euler-swap/lp-considerations) before configuring a pool.
### Integration checks
Before submitting a swap:
* confirm the EulerSwap version and pool address;
* inspect fixed and current dynamic parameters, managers, hook, expiration, and connected vaults;
* obtain a quote and limits through supported EulerSwap 2 interfaces such as `computeQuote` and `getLimits`;
* apply an execution bound; and
* account for reconfiguration, inventory changes, lending constraints, oracle movement, hook behavior, and slippage between quote and execution.
Direct EulerSwap 2 calls and periphery or Uniswap v4-hook routes are separate integration paths. Measure gas and execution behavior for the exact version, network, pool, and route used.
## Considerations for liquidity providers and curators
Providing liquidity through EulerSwap combines an AMM position with Euler supply positions and, when enabled, borrowing. LPs can configure the pool for a particular pair and strategy, but should monitor both its market-making exposure and the connected lending positions.
### Configure the pool
Equilibrium reserves, minimum reserves, directional prices, concentration, and fees shape quotes and inventory changes in each direction. Review both directions under a range of trade sizes before launch.
These settings are dynamic in EulerSwap 2. An authorized owner or manager can update them with `reconfigure`; changing equilibrium or fees does not generally require reinstalling the pool. A new installation is needed when fixed `StaticParams` must change.
Lower concentration does not always mean lower risk, and rebalancing does not guarantee a neutral position. Either change can affect depth, price impact, inventory, debt, slippage, liquidation exposure, and realized loss.
### Monitor inventory and debt
Track supplied inventory and debt separately for each asset, especially when the supply and borrow vaults differ. Output uses supplied inventory first and borrows only an optional shortfall. Incoming input repays enabled debt for that asset before any remainder is supplied.
Monitor:
* reserves, prices, concentration, fees, and expiration;
* manager permissions and hook configuration;
* supplied balances and debt for both assets;
* vault utilization, rates, caps, and available liquidity;
* oracle routes and account health; and
* quotes and execution bounds in both swap directions.
### LTV and liquidation
LTV is configured in the lending relationship between connected vaults, not in the EulerSwap curve. Borrowing can increase available swap liquidity, but it also adds interest costs and liquidation exposure. A pool may be unable to borrow when liquidity, caps, LTVs, oracle values, or final solvency checks do not permit it.
### Maintenance
Quotes can become stale after a pool reconfiguration, inventory change, interest accrual, vault or oracle update, or hook execution. Re-read state before transactions and allow for failed or delayed monitoring and execution.
Fee income, lending interest, and rewards should be tracked separately from inventory changes, borrowing costs, and realized losses. Their availability and value depend on activity and external conditions.
For operating instructions, verify that any interface or guide targets the same EulerSwap generation and deployed pool. Do not apply instructions from another interface or EulerSwap generation.
## Batch Viz
[toolbox.euler.finance/tools/batch-viz](https://toolbox.euler.finance/tools/batch-viz). No sign-in needed. It unwraps a governance transaction layer by layer and shows the calls at the bottom.
### Reads
Safe `execTransaction` → timelock `schedule` / `scheduleBatch` → EVC batch → nested batches → calls, with vaults and assets named where labels exist. It also unpacks Safe MultiSend, and flags a stray delegatecall or value transfer.
### Use
Pick the chain, then:
* paste the transaction's data (the calldata your wallet or Safe shows, or a JSON object with a `data` field) → **Decode**; or
* paste an executed transaction's hash → **Fetch & decode**.
Market Ops and Earn offer **Decode this transaction in Batch Viz** next to the transactions they prepare, except deployments.
### When
* Before signing a Safe transaction someone else prepared.
* Before voting on or executing a [DAO proposal](/euler-dao/proposals).
* After the fact, to see what a governance transaction did.
## Earn integrator guide
EulerEarn vaults package multiple yield strategies into a single ERC-4626 vault. An integration can generally treat an Earn position as a vault share while using Euler's SDK and data services to discover vaults, display positions, and prepare user actions.
### Choose an integration path
| Need | Start with |
| ---------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| Build application flows and work with Euler entities | [Euler SDK](/build/sdk) |
| Discover Earn vaults and query indexed vault data | [Euler Data API V3](/build/data-querying/euler-v3-api) |
| Display names, curators, and listing status | [Known vaults and metadata](/build/data-querying/perspectives) |
| Discover indexed account positions | [Subgraphs](/build/data-querying/subgraphs) |
| Read current protocol state | [Lens contracts](/build/data-querying/lens-contracts) or direct contract calls |
| Find deployments and version-matched interfaces | [Contract addresses](/build/contract-addresses) and [Euler interfaces](https://github.com/euler-xyz/euler-interfaces) |
For most TypeScript applications, the SDK is the best starting point. It brings together common reads, metadata, transaction planning, approvals, and simulation. Use the Data API for indexed and historical information, then confirm execution-sensitive state onchain.
### Typical integration flow
1. Discover supported Earn vaults and load their metadata.
2. Show the vault's underlying asset, share position, performance, allocation, and available liquidity.
3. Let users enter or exit through the supported SDK flow or the vault's standard ERC-4626 interface.
4. Simulate the final transaction against current chain state before submission.
5. Track the resulting position through the SDK, Data API, or your own indexer.
Simple integrations do not need to reproduce Euler's internal strategy-management logic. Advanced applications can add custom contract reads or [EVC batching](/build/evc/integration-guide) where a flow requires multiple atomic actions.
### Things to account for
* Earn vaults may use different assets and share decimals; format values from contract or SDK metadata.
* Quotes, previews, APYs, and withdrawal limits change with onchain state.
* Withdrawals depend on liquidity across the vault's strategies and withdrawal queue.
* Indexed services can lag the chain, so do not use them as the final authority for transaction validity.
* A vault appearing in Euler metadata is not a guarantee of future safety or performance.
See [Earn products](/build/earn-products) for the product model and [EulerEarn audits](/security/earn-audits) for security reviews.
## Euler Lite
[`euler-lite`](https://github.com/euler-xyz/euler-lite) is an open-source frontend codebase for Euler V2. It packages lending, borrowing, portfolio, rewards, and optional product pages into a self-hosted interface that operators can configure and theme.
Use Euler Lite as a starting codebase rather than assuming it supports every deployment or workflow. It uses the [Euler V2 SDK](https://github.com/euler-xyz/euler-sdks); verify the repository revision, configured chains, data sources, transaction plans, and contracts for your deployment.
### Product scope
Euler UI exposes the core flows a lending frontend needs:
* **Lend:** deposit assets into selected Euler vaults to earn yield.
* **Borrow:** open and manage debt positions against accepted collateral.
* **Portfolio:** track positions and performance.
* **Rewards:** show supported Merkl, Incentra, Fuul, and Turtle reward programs.
* **Multichain:** configure networks represented in the app's supported chain registry and wallet setup. An unknown chain can require code, registry, address, and data-source changes.
* **Optional pages:** toggle Earn, Lend, Explore, entity branding, vault-type labels, reward integrations, policy links, and social links through configuration.
### Prerequisites
* **Node.js** 24+ (24.14.1 recommended)
* **npm**
* **Git**
* A **Reown Project ID** (formerly WalletConnect), obtainable at [reown.com](https://reown.com)
### Quick start
```bash
git clone https://github.com/euler-xyz/euler-lite
cd euler-lite
npm ci
cp .env.example .env
# Fill in required values (see below)
npm run dev
```
The app will be available at `http://localhost:3000`.
#### Required environment variables
| Variable | Description |
| ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------- |
| `APPKIT_PROJECT_ID` (or `NUXT_PUBLIC_APP_KIT_PROJECT_ID`) | Reown (WalletConnect) project ID. |
| `NUXT_PUBLIC_APP_URL` | Your app's public URL. |
| `RPC_URL_<chainId>` | RPC endpoint per chain (e.g. `RPC_URL_1` for Ethereum). |
| `SUBGRAPH_URL_<chainId>` (or `NUXT_PUBLIC_SUBGRAPH_URI_<chainId>`) | Subgraph URI per chain. `SUBGRAPH_URL_*` is server-only and preferred; `NUXT_PUBLIC_SUBGRAPH_URI_*` remains supported. |
The server reads `RPC_URL_<chainId>` and the matching subgraph setting at startup. Environment variables alone do not establish complete support for an unknown chain; verify the app registry, wallet configuration, contract addresses, SDK adapters, and data sources.
```bash
# Ethereum Mainnet
RPC_URL_1=https://your-rpc-endpoint.com
SUBGRAPH_URL_1=https://your-subgraph-host/euler-mainnet/latest/gn
# Arbitrum
RPC_URL_42161=https://your-arbitrum-rpc.com
SUBGRAPH_URL_42161=https://your-subgraph-host/euler-arbitrum/latest/gn
```
#### API endpoints
| Variable | Default | Description |
| ---------------------------------------------- | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `V3_API_URL` (or `EULER_SDK_V3_API_URL`) | `https://v3.euler.finance` | Euler V3 upstream used by the internal server proxy and SDK configuration. |
| `EULER_SDK_V3_API_KEY` | — | Optional server-side V3 API key forwarded as `X-API-Key`. |
| `SWAP_API_URL` (or `NUXT_PUBLIC_SWAP_API_URL`) | — | Euler swap API. |
| `PYTH_API_KEY` | — | Optional server-side API key sent as Bearer authentication by the internal update proxy (`/api/internal/pyth/updates`) to its hard-coded `https://hermes.pyth.network` upstream. |
#### SDK data-source controls
| Variable | Default | Description |
| ---------------------------------- | ---------- | --------------------------------------------------------------------------------------------------- |
| `SERVER_VAULT_CACHE_SOURCE` | `fallback` | Server snapshot builder adapter chain: `fallback`, `onchain`, or `v3`. |
| `NUXT_PUBLIC_BROWSER_VAULT_SOURCE` | `fallback` | Browser fast SDK adapter chain: `fallback`, `onchain`, or `v3`. Plan-time SDK reads remain onchain. |
| `DISABLE_SERVER_VAULT_CACHE` | `false` | Disable internal server vault snapshots and let the browser use the configured RPC pipeline. |
| `DEPRECATED_CHAINS` | — | Comma-separated chain IDs shown collapsed in the chain selector and skipped by warm-cache cycles. |
| `ONCHAIN_SDK_CHAINS` | — | Chain selection for configured onchain SDK reads; verify current syntax in the repository. |
| `EVAULT_FETCH_CHUNK_CHAINS` | — | Chain selection for chunked EVault fetching; verify current syntax in the repository. |
The cur프로젝트로 돌아가기