Ethena USDe 백서

Ethena USDe

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 20쪽 중 10쪽

g from network card, batch processing, update filtering etc.) to avoid being the bottleneck. We have continuous time synchronisation between our system and the connected exchanges. Once we detect a time drift of the updates published (set either by the exchange gateway or matching engine, depending on the exchange), we update our RFQ look-back period to reflect this. This means that we only give the final acceptance of the RFQ once we have the up-to-date market data. This mechanism is vital to protect the protocol against adverse selection by market makers with faster infrastructure. In case the market data falls further behind our suspend threshold, we put the instrument into suspend mode. The latency has to improve significantly for the instrument to be enabled again, as it requires passing a hysteresis -this avoids on/off flickering. #### **Reference Data Service** The "Reference Data Service" normalizes & validates the integrity of all ingested data. #### **Reconciliation Service**&#x20; The "Reconciliation Service" periodically verifies information throughout the system is consistent with that from external sources. This includes, but not is not limited to position & market data information. This service is one of many layers throughout the system to validate & ensure the integrity of the operation of the system. #### **Persistor Service** The "Persistor Service" publishes internal events to data stores, such as databases. This enables recovery in a wide range of instances without losing data & enables Ethena to rapidly heal and continue operations without interruption or user detriment. # Managing Risk from dependencies Ethena Labs' "Hedging System" has three notable external dependencies (aside from AWS): 1. CeFi Exchanges, such as Bybit. 2. "Off-Exchange Settlement" (OES) providers, such as Copper. 3. Price Feeds, such as Pyth and Redstone. It is important to note that Ethena Labs has team members available 24/7 across different timezones & countries who are able to manage and address any issues that might occur. {% hint style="info" %} If any of the system checks performed both internally and externally by market making entities with gatekeeper roles can disable the ability to **mint** & **redeem** *USDe* until they are satisfied the system is functioning correctly without discrepancies. {% endhint %} ### Possible Negative Events The following is a list of negative events that might occur, what the issue to the system would be, how it is mitigated/ameliorated, and the maximum potential impact to the protocol. > Note: This is not an exhaustive list, but the most common & likely (in the unlikely event they occur). #### CeFi Exchange / OES Partner suffers technical issues Where a CeFi Exchange or OES partner suffers technical issues such as failing to send real-time updates or perhaps inconsistent information per their specification across multiple objects; this would cause internal objects to not match the system's expectations. As a result, the system would immediately identify this inconsistency and determine if it is isolated to a single partner. If it's possible to continue **minting** and **redeeming** *USDe* while quarantining the affected partner(s), the system will; if not, **minting** and **redeeming** *USDe* will be paused until the issue can be addressed. The system identifies these inconsistencies by performing a large number of validations upon data in real-time, with constant reconciliation with partners, and alerting. #### CeFi Exchange(s) becomes temporarily inaccessible In the event a CeFi Exchange partner(s) were to become temporarily inaccessible, Ethena would no longer be able to submit or edit existing orders on exchanges. This would result in Ethena losing control of any existing orders & possibly being able to reconcile the exact state of that exchange's portfolio. The system would immediately identify this issue and attempt to cancel all outstanding open orders on the exchange. The system would attempt to identify the latest portfolio update and would no longer attempt to submit new orders. The system would distribute hedging orders to other exchange partners and only include the affected partner(s) again when service had been satisfactorily restored. Availability and integrity are considered in a wide range & number of validations that are constantly performed throughout the system. #### Market Data prices lack integrity In the event some or all market data price feeds begin to lack integrity, Ethena would immediately cancel all affected open orders and identify the affected partners. The lack of market data would prevent Ethena from being able to submit orders to exchange partners. It's important to keep in mind that Ethena is integrated with multiple market data feeds & exchange prices as to ensure the affected partner(s) can be quarantined without damaging the integrity of operations. The "Hedging System" monitors for integrity in real-time and actively alerts in the event of any concerns. #### Internal System component fails In the event that an internal system service fails, becomes unresponsive, or begins to behave in an inconsistent manner, the system identifies and quarantines the issue in real-time. The system has been designed to self-heal in the event of any failures or degradations as well as there is a large focus throughout the system upon ensuring each interaction & data stored makes "sense". The system is actively tested end to end, in addition to unit/component/integration tests, as well as ensuring there is alerting throughout the system that readily notifies the appropriate parties. In the event a service fails and is unable to self-heal, **minting** and **redeeming** *USDe* is automatically temporarily paused while the outstanding issue is investigated & resolved. # Key Addresses ### Core Contracts Mint and Redeem Contract V1: <https://etherscan.io/address/0x2cc440b721d2cafd6d64908d6d8c4acc57f8afc3> Mint and Redeem Contract V2: <https://etherscan.io/address/0xe3490297a08d6fC8Da46Edb7B6142E4F461b62D3> Staking Contract: <https://etherscan.io/address/0x9d39a5de30e57443bff2a8307a4256c8797a3497> USDe Token Contract: <https://etherscan.io/address/0x4c9edd5852cd905f086c759e8383e09bff1e68b3> sUSDe Token Contract: <https://etherscan.io/address/0x9d39a5de30e57443bff2a8307a4256c8797a3497> sUSDe Rewards Distributions:\ <https://etherscan.io/advanced-filter?fadd=0x71e4f98e8f20c88112489de3dded4489802a3a87&tadd=0x9D39A5DE30e57443BfF2A8307A4256c8797A3497&qt=1> USDe to sUSDe Staking Rewards Distributor Contract: <https://etherscan.io/address/0xf2fa332bd83149c66b09b45670bce64746c6b439#tokentxns> ENA Token Contract:\ <https://etherscan.io/address/0x57e114B691Db790C35207b2e685D4A43181e6061> sENA Token Contract: <https://etherscan.io/token/0x8bE3460A480c80728a8C4D7a5D5303c85ba7B3b9> sENA Token Contract:\ <https://etherscan.io/address/0x8be3460a480c80728a8c4d7a5d5303c85ba7b3b9> rsENA Token Contract:\ <https://etherscan.io/address/0xc65433845ecd16688eda196497fa9130d6c47bd8> USDtb PSM Contract: <https://etherscan.io/address/0x73E35C5c35A274E34AdE6EB13cC7f62aEE323728> ### Token Contracts on Other Chains Beyond Ethereum mainnet, Ethena tokens are available on the following chains:&#x20; * TON * Aptos * Berachain * Solana * Mantle * Blast * Arbitrum * Optimism * Base * Zircuit * ZKSync * BNB * Linea * Manta * Scroll * Fraxtal * Mode * XLayer * Metis * Kava * Morph * Swell<br> With the exceptions of Solana, ZKSync, and Zircuit, token addresses on all chains are identical, as summarized below: | Chain | ENA | USDe | sUSDe | | ---------------------------------------- | ------------------------------------------------ | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | | Most L2s (Other Than As Indicated Below) | 0x58538e6A46E07434d7E7375Bc268D3cb839C0133 | 0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34 | 0x211Cc4DD073734dA055fbF44a2b4667d5E5fE5d2 | | Solana | 72QvBVwpxqmheEPfaCwWSWqEFsUy3rhWt6JhQBMNTwD1 | DEkqHyPN7GMRJ5cArtQFAWefqbZb33Hyf6s5iCwjEonT | Eh6XEPhSwoLv5wFApukmnaVSHQ6sAnoD9BmgmwQoN2sN | | TON | EQAFhZFZYye0llsl785OzOJG9QT6PXyYUdmiC4U95lBuHh1S | EQAIb6KmdfdDR7CN1GBqVJuP25iCnLKCvBlJ07Evuu2dzP5f | <p>EQDQ5UUyPHrLcQJlPAczd\_fjxn8SLrlNQwolBznxCdSlfQwr<br><br>(<em>tsUSDe on TON)</em></p> | | Tempo | | <p>0x20c0000000000000000000002F52D5CC21A3207B<br><br>OFT: 0xf8b6aa0cee4e1ad87ee259dab5e556eb62297d7f</p> | <p>0x20C000000000000000000000Bd95bFB69fBE6Ce3<br><br>OFT: 0x100c123770be9015321a9fcfa4ae3e77dcb2cf1a</p> | | Aptos | | 0xf37a8864fe737eb8ec2c2931047047cbaed1beed3fb0e5b7c5526dafd3b9c2e9 | 0xb30a694a344edee467d9f82330bbe7c3b89f440a1ecd2da1f3bca266560fce69 | | ZKSync | 0x686b311F82b407f0be842652a98e5619F64cC25F | 0x39Fe7a0DACcE31Bd90418e3e659fb0b5f0B3Db0d | 0xAD17Da2f6Ac76746EF261E835C50b2651ce36DA8 | | Zircuit | 0x813635891aA06bd55036bbd8f7d1A34aB3de9a0F | 0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34 | 0x211Cc4DD073734dA055fbF44a2b4667d5E5fE5d2 | | Chain | Ethena LP Staking | Multisig | | --------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------- | | Solana | | <https://app.squads.so/squads/EWZCJs2JRo3tMKgDt8FGx7MccD8sKv4QEcdsY9ZhVKZA> | | Aptos | | <https://app.rimosafe.com/home?safe=0x84c7ac376914733149586b28acf837f3ef20eee7fe8e28a19e1a135ffca676b9> | | Berachain | | <https://safe.berachain.com/home?safe=berachain:0x093d3F4785149A3d2600cb10D63aFa14f9b09364> | | Mantle | <https://etherscan.io/address/0x8707f238936c12c309bfc2b9959c35828acfc512#code> | <https://multisig.mantle.xyz/home?safe=mantle:0x799a2Cd46CBc7FB53949072257e6331054A060Bb> | | Blast | | <https://blast-safe.io/home?safe=blast:0x689272B1D2B2F37a0B3fe1f5Af0420C64f6cc9E3> | | Arbitrum | | <https://app.safe.global/home?safe=arb1:0xc9647361742Eb964965B461C44Bdf5c4Bc3c406d> | | Optimism | | <https://app.safe.global/home?safe=oeth:0xc66bbBf821f2cfB3a85683acF0326EAC92C160Bd> | | Base | | <https://app.safe.global/home?safe=base:0xbC89D10EB486b6591583F218acB9545087dBF293> | | ZKSync | | <https://app.safe.global/home?safe=zksync:0xa026e9a5e54E16349D7b594449f32901E02C609a> | | BNB | | <https://app.safe.global/home?safe=bnb%3A0xc9647361742Eb964965B461C44Bdf5c4Bc3c406d> | | Linea | | <https://safe.linea.build/home?safe=linea%3A0xE1B9B4c7D664126Bf4B6724deb59Eb5F8Aab9192> | | Manta | | <https://safe.manta.network/home?safe=manta%3A0xA408Fd6724341B27F2e348faf9eCCEc04A2299EA> | | Scroll | | <https://safe.scroll.xyz/settings/setup?safe=scr:0xAFAFc5D0DF6830052988c76DD8d0DfA7f5B8FfD6> | | Fraxtal | | <https://safe.mainnet.frax.com/home?safe=fraxtal:0xc66bbBf821f2cfB3a85683acF0326EAC92C160Bd> | | Mode | | <https://safe.optimism.io/home?safe=mode:0x273ceD5b9da8F5ba6E40C82c126898cB5307B2ea> | | XLayer | | <https://app.safe.global/home?safe=xlayer:0xce2f77841A8B974CE8e79157BccBECf17599f0E8> | | Metis | | <https://metissafe.tech/home?safe=metis-andromeda:0x795dB361ED5727F3f27dccde15b7D0d975fC94e0> | | Kava | | <https://app.oryy.io/home?safe=kava:0x10E9219dD188D0f3af30824469Dc874A539733B6> | | Zircuit | | <https://safe.zircuit.com/home?safe=zircuit-mainnet:0x07762C592e243D4aDD1648A7Ab4916D898780bae> | ### Liquidity Pool Contracts USDC x USDe Curve Pool: <https://curve.fi/#/ethereum/pools/factory-stable-ng-12/deposit> crvUSD x USDe Curve Pool: <https://curve.fi/#/ethereum/pools/factory-stable-ng-11/deposit>\ \ FRAX x USDe Curve Pool: <https://curve.fi/#/ethereum/pools/factory-stable-ng-35/deposit> mkUSD x USDe Curve Pool:\ <https://curve.fi/#/ethereum/pools/factory-stable-ng-68/deposit>\ \ DAI x USDe Curve Pool: <https://curve.fi/#/ethereum/pools/factory-stable-ng-100/deposit>\ \ FDUSD x USDe Curve Pool:\ \ <https://curve.fi/#/ethereum/pools/factory-stable-ng-166/deposit>\ \ sDAI x sUSDe Curve Pool: <https://curve.fi/#/ethereum/pools/factory-stable-ng-102/deposit> USDT x USDe Uniswap v3 Pool: <https://info.uniswap.org/#/pools/0x435664008f38b0650fbc1c9fc971d0a3bc2f1e47> ### Multisig Wallets #### Dev <https://etherscan.io/address/0x3b0aaf6e6fcd4a7ceef8c92c32dfea9e64dc1862> * 5/11 signers. * Owner of Ethena's deployed mainnet smart contracts & able to modify contract parameters. #### sUSDe Payout Fund <https://etherscan.io/address/0x71e4f98e8f20c88112489de3dded4489802a3a87> * 3/11 signers. * Distributes USDe to Staking Rewards Distributor. #### Reserve Fund <https://etherscan.io/address/0x2b5ab59163a6e93b4486f6055d33ca4a115dd4d5> * 4/10 signers. * Protocol's funds to be disbursed when net negative funding (or other impairment to USDe's backing) occurs. #### USDe PSM Custodian <https://etherscan.io/address/0xD7fCaDe52aFb60FbF0E1E5F72A683F43820f56A0> * Coinbase MPC custody. The same address is used on each chain where a PSM is deployed. * Holds pre-minted USDe inventory supporting Peg Stability Module (PSM) contracts on chains beyond Ethereum mainnet, enabling 1:1 swaps between USDe and supported stablecoins. * USDe held at this address is not in circulation and is excluded from circulating supply. It enters circulation only when swapped out against an equivalent value of backing assets received. * Backing assets held at this address are included in the protocol's backing, as they already back circulating USDe (i.e., USDe not held in the PSM). \ <br> # Overview Ethena Minting Documentation Ethena’s API is used to mint and redeem USDe. In addition to the information on this page, interactive documentation is available [here.](https://public.api.ethena.fi/docs/) We offer the ability to stream indicative quotes, perform a formal RFQ and finally submitting of signed orders. Only whitelisted users are able to successfully interact with the API interface. We recommend reaching out in our discord if you would like to be whitelisted. **Addresses on Ethereum mainnet** USDe: 0x4c9EDD5852cd905f086C759E8383e09bff1E68B3 Ethena Mint and Redeem Smart Contract: 0xe3490297a08d6fC8Da46Edb7B6142E4F461b62D3 These addresses are the production USDe and minting contract. Care should be taken using them as real value will be transferred. [Mint & Redeem Smart Contract ABI](https://gist.github.com/mcevoyinit/0660818e968a6a46603e06fa80b20d40) ### **Server location** Ethena's infrastructure is hosted on AWS Asia Pacific (Hong Kong) region, ap-east-1. Low latency with our infrastructure is necessary to algorithmically mint or redeem with Ethena as quotes are valid for limited time. ### Connection URLs Whitelisted users are able to use either <https://public.api.ethena.fi> ### SDKs There are both [Python and TypeScript SDKs available](https://github.com/ethena-labs/ethena-minting-client). ### Approvals Added to Whitelisted Addresses Ensure you have approved the [Mint & Redeem Smart Contract](https://etherscan.io/address/0xe3490297a08d6fC8Da46Edb7B6142E4F461b62D3) for your whitelisted wallet addresses. ### Pair Availability Endpoint This endpoint returns the pairs available to directly mint & redeem with. **No parameters required** **Our response** key | key | Possible values | Description | | ------ | --------------------------- | ------------------------------------------ | | mint | \["USDT/USDE", "USDC/USDE"] | The available pairs to directly mint with. | | redeem | \["USDT/USDE", "USDC/USDE"] | | **Example request** <https://public.api.ethena.fi/asset-availability> **Example response** <pre><code>{ <strong> "mint": [ </strong> "USDC/USDE", "USDT/USDE" ], "redeem": [ "USDC/USDE", "USDT/USDE" ] } </code></pre> ### RFQ Request Endpoint Call the RFQ endpoint to receive a formal mint/redeem quote. Quotes are valid for 15 minutes upon us sending our response. **Your request** Key | Key | Required | Possible Values | Description | | ---------- | -------- | --------------------- | -------------------------------------------------------------- | | pair | true | USDT/USDe, USDC/USDe | collateral/usde pairs we support | | side | true | mint,redeem | | | size | true | 21.2918 | size of asset you will send us. USDT for mint, USDe for redeem | | benefactor | true | {benefactor\_address} | String of the ETH wallet address | **Our response** | Key | Possible values | Description | | -------------------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | rfq\_id | RFQ-B7MT6QD2JKFFC | Unique ID to be sent back to us when submitting order | | pair | USDT/USDe, USDC/USDe | collateral/usde pairs we support | | side | mint, redeem | | | size | true1 | size of asset you will send us. USDT for mint, USDe for redeem. | | amount | 1552.2695 | amount of asset you will receive, before gas. USDe for mint, USDT for redeem. | | collateral\_asset\_address | 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84 | The non-USDe asset in the transaction | | usde\_address | 0x8191DC3053Fe4564c17694cB203663d3C07B8960 | Address of USDe | | collateral\_amount | 1000000000000000000 | Use this value for EIP712 signature. For mints, this is the same as size but in 18 decimals. For redeems, this is amount minus gas converted to USDT in 18 decimals | | usde\_amount | 1550198770000000000000 | Use this value for EIP712 signature. For redeems, this is the same as size but in 18 decimals. For mint, this is amount minus gas in 18 decimals | | gas | 2.070727513 | the gas price of this tx in USD. | **Example mint RFQ request** <https://public.api.ethena.fi/rfq?pair=USDT%2FUSDe&side=MINT&size=100000&benefactor=0x0000000000000000000000000000000000000020> **Response** <pre><code>{ "amount": "99900.000", "collateral_amount": "100000000000", <strong> "collateral_asset_address": "0xdAC17F958D2ee523a2206206994597C13D831ec7", </strong> "gas": "32.490274776", "minting_contract_address": "0xe3490297a08d6fC8Da46Edb7B6142E4F461b62D3", "pair": "USDT/USDe", "rfq_id": "RFQ-P9Y4SVP5EZ8UW", "side": "MINT", "size": "100000", "usde_address": "0x4c9EDD5852cd905f086C759E8383e09bff1E68B3", "usde_amount": "99867509700000000000000" } </code></pre> **Example redeem RFQ request** <https://public.api.ethena.fi/rfq?pair=USDT%2FUSDe&side=REDEEM&size=100000&benefactor=0x0000000000000000000000000000000000000020> **Response** ``` { "amount": "99500.000", "collateral_amount": "100000000000", "collateral_asset_address": "0xdAC17F958D2ee523a2206206994597C13D831ec7", "gas": "30.890409055", "minting_contract_address": "0x8a39215693aaB95038727fB31EBe19ce18903885", "pair": "USDT/USDe", "rfq_id": "RFQ-Z0PHAGLVWZ0J5", "side": "MINT", "size": "100000", "usde_address": "0x2dFaF238B8255826A160432126E0BC5db20c33e9", "usde_amount": "99469109500000000000000" } ``` #### Error Codes | Error Code | HTTP Status Code | Message | | ---------- | ---------------- | -------------------------------------------------------------- | | 0 | 400 | Invalid RFQ payload. Missing required fields. | | 1 | 400 | Temporarily unavailable | | 2 | 400 | Collateral asset not supported. | | 3 | 400 | Pair is not supported. | | 4 | 400 | Side value is not supported. | | 5 | 400 | Too many significant figures for size value. | | 6 | 400 | Size can only include numbers. | | 7 | 400 | Size must be non zero and positive. | | 8 | 400 | Size must be enough to cover the incurred gas cost. | | 9 | 400 | Size exceeds Ethena set capacity per block. | | 10 | 400 | Wallet address not whitelisted. Please contact Ethena. | | 11 | 400 | Insufficient collateral asset in wallet. | | 12 | 400 | Insufficient collateral asset approval for Ethena to transfer. | | 13 | 400 | Insufficient USDe balance in wallet. | | 14 | 400 | Insufficient USDe approval for Ethena to transfer. | | 15 | 400 | Asset currently not active | | 16 | 400
프로젝트로 돌아가기