Lista DAO 백서

Lista DAO

원문

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

><td>-</td><td>0x8aF814BC8ad759cb8FaeEEd9fE195D9A2084716e<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>QNTB(bStock)</td><td>0xd721c192d612Db77621DF57A9fAb38418033c02E</td><td>-</td><td>0x68D537F546f70cC16f4Ae7E442C48b971604Bb8d<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>ORCLB(bStock)</td><td>0x4684D9887fC1c71cBa7baB8E88835CEC217eB598</td><td>-</td><td>0xE7A7C567ed3de7d1EdA785B2AB673549a3E226D2<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>AAPLB(bStock)</td><td>0x431a3BEE82E2ca41e49895CbECE5bB0F76A89b7A</td><td>-</td><td>0x5AfB6E8B04A63e6075620397520399ca9ffE7C05<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>AMATB(bStock)</td><td>0xa304BD78e739C0F777202B3eB73Ac3736d1df801</td><td>-</td><td>0x2fC3076d917d14e82832d6DDAaeA0588D716F67a<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>AMZNB(bStock)</td><td>0x1a4b499833A79A09ad7Cf1D42D7DacF71e92eb00</td><td>-</td><td>0xB5fE0C3FC0954Ed63F7ADA680B964399E251FEdE<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>BEB(bStock)</td><td>0x5519de00F5388c17d886b97Cb5D2D43a812a82bC</td><td>-</td><td>0xD8Bf0B3512A80d2B41E3fA7430a45EB4D8B56bBd<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>DELLB(bStock)</td><td>0x0e7A51966c66648999d506e1372EFDeA1B78cb0B</td><td>-</td><td>0x619dad44a55183ae22eD1543F20f657c81d0A693<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>FLNCB(bStock)</td><td>0x4af1D41cd9dD950dcA43984b43aaA2A8702714Ac</td><td>-</td><td>0x28Ed1268feC7c08026D277D9594B748AF4404Eef<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>GSB(bStock)</td><td>0x20CCe6656E5F7F79f280E2D0F5dB55b401BDbfCe</td><td>-</td><td>0x170079E40c2A45a069bBe0FC5d0D4A3762BEbcae<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>PYPLB(bStock)</td><td>0x2806a561fC1F9259B2d54A281796Bde0D92762aE</td><td>-</td><td>0x77aa93c042022876A255AD92b51c02feA6eB8C97<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>SMHB(bStock)</td><td>0xBE1fceD7047fdCE935F45700727845df2c76877a</td><td>-</td><td>0x63dF0580AB9C93C54524bE9d4072A318f3c70b41<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>SOXSB(bStock)</td><td>0xE28Cd11C99AF2df76bb8aDA4Cd0ef3904378280F</td><td>-</td><td>0x50A6A0f8b0F40139720e47bc9019ff23bF20d692<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>ALABB(bStock)</td><td>0x1282493EdE6a22753D45Cb2C0fdBd8D35E97555a</td><td>-</td><td>0x9803E67a53B93BA761dDC4D46d6c483378FCF396<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>ASMLB(bStock)</td><td>0xFbfB4f79cFB4C34DCd7C82Bdee5A0Fa199B2e7f9</td><td>-</td><td>0xF48D95C8964e5D012dD19909e39B6F65643e6238<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>ASTSB(bStock)</td><td>0x58b6F5fEeb8436489F5bf4a56619092B1FA8E777</td><td>-</td><td>0x0c481091453Eb0afFF4277966D9F66299a012AC1<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>BMNRB(bStock)</td><td>0x3548Da95a9eFFE481e8604664d75e95821e557F5</td><td>-</td><td>0xdfC97CfF8ecd92CE88c2Ab3ddE70094732198d45<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>COHRB(bStock)</td><td>0x5131859a059B2446AbeeFe0f5d313b3c54Ff3D36</td><td>-</td><td>0x415aCB98dEc0360e7f09e84CdCAC078a15BCCede<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>CRDOB(bStock)</td><td>0x6E7D451F9D30327D32020f116Fa79C23B24E9c8D</td><td>-</td><td>0x6f11e61c257c0976C355697D60339659A989C98a<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>IRENB(bStock)</td><td>0xfdc2F2caB77b28f7Ef6c819A404706cfA9bCA33b</td><td>-</td><td>0x828D8367e113633eE656167B49949a7512Bd1D4a<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>NFLXB(bStock)</td><td>0xD6829Ea836b6FA224d099D40E54B31262f874631</td><td>-</td><td>0x61c445C54FcF0C8e7063D52B6c85cCa15796D29c<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>SMCIB(bStock)</td><td>0x387dEa1D2772D716d081A29116f3EfFA0fFE1F36</td><td>-</td><td>0x5624828ECadB52ed2bbe2235F62973Afd38ecB93<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>USARB(bStock)</td><td>0xcd345D4450e04cDeF422A60b97D9265d24e0bcEE</td><td>-</td><td>0xA4d8b2EFD696637BaB2B060F7bbEfF5F672FDECe<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>GMEB(bStock)</td><td>0x46cEeFDa28Dd7207059ed19B0acdc026955bb15C</td><td>-</td><td>0x898AfbdFC6283b78C87662B9718825d151BbBeEA<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>STXB(bStock)</td><td>0x2E065f65F1699964f4092De1D39A8EFe6C8d6f32</td><td>-</td><td>0x540ddB4E2aF50704ef1660Ccb94681b5c1aEc98B<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>SQQQB(bStock)</td><td>0x25e572B466D152604D9E6C3e53B432B978825342</td><td>-</td><td>0x1AB86C34bA62dB532b9cb4c9eBD4206F30668fC7<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>MRNAB(bStock)</td><td>0x5fd86da9B05abE396fe9d02a4A213A7c00556503</td><td>-</td><td>0xbF4e1656aC82Ab485106BD23e7e101fb05C2794C<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>CRWDB(bStock)</td><td>0x814981CF5df4a14D4D7328f9ABf0d02e9ED54CD1</td><td>-</td><td>0xe916CF1AC1e5515c67467969AF80101df9c29d67<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>DJTB(bStock)</td><td>0xF2ec508422174Ee564de98187db9359D318AFB6b</td><td>-</td><td>0x2656979deC8fEbd1CB9E9619dE7B2A68215Dc482<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>GPROB(bStock)</td><td>0x1ECfda023C46cA216b5c620eF357A6D0C03951E6</td><td>-</td><td>0x5439f83Eca309CaEAa34E4cdD9ab5Bb5AAbB3443<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>RDDTB(bStock)</td><td>0x41622a9125A22767Df8C1dC79FC17299BAc4Bd0b</td><td>-</td><td>0xe9bfAa45e3F27BC95Daf39a083Cd6D223B443376<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>AGPUB(bStock)</td><td>0xa455ae0f04a2b86eee47adCA98985E61D14CbEfb</td><td>-</td><td>0xEC0b1208a491339De5F6cbe6DcED678C06EE7340<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>AMCB(bStock)</td><td>0x96e7d606e229448eF817A7f35fd7394C3E15d00C</td><td>-</td><td>0x6eE4cE2Ffb8F6585748846DC283221b6389f12f2<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>CYPHB(bStock)</td><td>0x0393c28065C54E48b45BDB05eFf5C401cF891DA1</td><td>-</td><td>0x11693d68E354D556173403fBB9657B412A2300b8<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>BNCB(bStock)</td><td>0x4902C5ebc598265Ed2212b559B042De8a5Eeec3f</td><td>-</td><td>0x5AFF0C8c51781A75238fBFb14c9Ec2C84C435983<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>ADBEB(bStock)</td><td>0x65c0249d49E3231540Fd0db0a1ae9259e6eAaf57</td><td>-</td><td>0x920506133871C27dE8E76bb4B0471884c8BceF68<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>FWDIB(bStock)</td><td>0x83f1A739FAE6517c4672c5E10c8ea918925eB584</td><td>-</td><td>0xC44ACf1363a213242bE1376b4e909E1356c0Db5A<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>HPEB(bStock)</td><td>0xd56Eb30d2Ea7b5866DC0066D33BbaaB36f7e8860</td><td>-</td><td>0xcdc356697e1fC045438DF8F297F4367a478b9928<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>PDDB(bStock)</td><td>0x95b0409679B55C31772daA2fB4bEE7B125B77521</td><td>-</td><td>0xD05dd0877AC70880E7Fc49B62fa2785e57a0c0EC<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>SHAZB(bStock)</td><td>0x0f31E21B7881F5583EA94ddBCb0bCaf22B1aBeAb</td><td>-</td><td>0x5Baf9f52D186F42108cd945819AB71F543cF63A7<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>WENB(bStock)</td><td>0xDed1c5FB38C262beb9CfF1E1116EfF3c5bf278Cd</td><td>-</td><td>0x1d9A0DffF6Ba17EED8fB258BE468c19639DFe9e7<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>ZMB(bStock)</td><td>0xF4DDb292Fe88E476edDD9869d386705E6BFab7A2</td><td>-</td><td>0xE67def7138a065E580d8814195416964Ea7bB88b<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>JPMB(bStock)</td><td>0xbd49D695ba2cc46c8C603eb62aFcd7Fff4698281</td><td>-</td><td>0x5e425E0c5aF00ca5761b5A5B4fb85980b7188dE2<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>LLYB(bStock)</td><td>0x5407912F1Aa4B9E05cBE6aBeb9721547a643eC6b</td><td>-</td><td>0x55c4195ef1549aFFC7C02F77B8f4a8CB321ABC73<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>SECZB(bStock)</td><td>0x32c980F38907ACe4faC643c3765d9b32842AF60f</td><td>-</td><td>0x111DC6D1dE5d7e4a3c6a2CD087AFFe8C37549B9c<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr><tr><td>USDEB(bStock)</td><td>0xDfD3Ba51D4591f243481a6f26059d1a5Ee95252F</td><td>-</td><td>0xb2f5a06837B001A3a8CA4F32E857f02be093e21d<br>(Atlas)</td><td>-</td><td>-</td><td><p>Upper Limit: 1.01</p><p>Lower Limit: 0.99</p></td></tr></tbody></table> # Consuming Oracle Prices Two different price functions exist in the Lista stack, and they are frequently confused. They live at different layers, take different arguments, and return numbers on different scales. Reading one where the other is expected produces wrong health factors and mispriced liquidations. | Function | Layer | Signature | Returns | Scale | | ---------- | ----------------------------------------- | ----------------------------------------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | `peek` | Oracle (Resilient Oracle / any `IOracle`) | `peek(address asset) → uint256` | Price of **one `asset`, quoted in USD** | `1e8` (see [Decimals](#decimals-what-peek-returns)) | | `getPrice` | Moolah market | `getPrice(MarketParams marketParams) → uint256` | Price of **one collateral token, quoted in the loan token** | Fixed `36 + loanDecimals − collateralDecimals` (see [The scale factor](#the-market-scale-factor)) | Rule of thumb: `peek` answers "what is this asset worth in USD?"; `getPrice` answers "how much loan token is one unit of collateral worth, on the scale Moolah's math expects?". Health checks and liquidations use `getPrice`. Use `peek` only when you genuinely need a single asset's USD value (for example, to reconstruct the two legs of a market price, or to sanity-check a feed). To read a market's oracle you need to call both functions read-only, verify which feeds back an asset, and compute a position's health and liquidation price with the exact scale factor from `Moolah.sol`. For the per-asset oracle address tables, see [Standard Collaterals](/for-developer/multi-oracle/multi-oracle-standard) and [bStock Collaterals](/for-developer/multi-oracle/multi-oracle-bstock). *** ## Layer 1 — the oracle: `peek(address asset)` Every oracle a Moolah market can use implements `IOracle`: ```solidity struct TokenConfig { address asset; address[3] oracles; // [main, pivot, fallback] bool[3] enableFlagsForOracles; // enabled state, same order uint256 timeDeltaTolerance; // staleness window in seconds; 0 DISABLES the check } interface IOracle { function peek(address asset) external view returns (uint256); function getTokenConfig(address asset) external view returns (TokenConfig memory); } ``` `peek(asset)` returns the USD price of one unit of `asset`. It is a `view` function — free to call, no state change. Lista's production oracle behind most collateral is the **Resilient Oracle**, whose `peek` implementation is described below, but a market curator may point a market at any contract that satisfies `IOracle`. ### Decimals: what `peek` returns Every Lista oracle on the `IOracle` path returns a USD price with **8 decimals** (the one exception being `IdleOracle`, which returns a literal `0` for its idle collateral as a sentinel rather than a price) — the same precision Moolah uses internally for `minLoanValue`, which is why `Moolah.minLoan` can mix `minLoanValue` and `peek` directly. Upstream feeds (Chainlink, Atlas, RedStone on BNB Chain) publish 8-decimal answers, and Lista's adaptors normalize *to* 8 rather than away from it: `PTLinearDiscountOracle` divides an 18-decimal discount-oracle input by `1e10` and declares `decimals() = 8`. > **This is a property of the deployed oracles, not a guarantee of the interface.** `IOracle` declares `peek(address) → uint256` and `getTokenConfig(address) → TokenConfig`, and neither carries a denomination or a scale field — and Moolah does not validate either; it simply divides the two `peek` results, so any consistent pair of scales would pass. For a market whose oracle you did not deploy, confirm the denomination and decimals of **both** legs before trusting the magnitude. The legacy CDP `peek() → (bytes32, bool)` surface (no arguments — there is one pip per collateral), which Moolah never calls, normalizes *upward* to 18 decimals — do not carry that assumption over. You do **not** need to guess these decimals when working at the market layer: `getPrice` (Layer 2) reads both legs and normalizes them against the token decimals for you. When you call `peek` directly, always confirm the decimals of the specific feed you are reading rather than assuming a fixed magnitude. ### How the Resilient Oracle picks a price The Resilient Oracle aggregates up to three sources per asset and cross-validates them so a single bad feed cannot move a price. It configures three roles per asset: | Role | Purpose | | ------------ | -------------------------------------------------------------------------------- | | **main** | The most trustworthy price source. Must be set (non-zero). | | **pivot** | A loose sanity checker used to validate the main (and fallback) price. Optional. | | **fallback** | Backup source used when the main price fails validation. Optional. | `peek` resolves a price by this precedence (see `ResilientOracle._getPrice`): 1. If **main** is enabled and validates against **pivot** (via `BoundValidator`), return the main price. If no pivot is configured/enabled, the main price is returned directly. 2. Otherwise, if **fallback** is enabled and validates against **pivot**, return the fallback price. 3. Otherwise, if both main and fallback are available and validate against each other, return the main price. 4. Otherwise revert with `"invalid resilient oracle price"`. ### PT linear discount PT collateral is priced at a discount to the underlying that shrinks to zero at maturity. Read the discount from the PT's discount oracle with `getDiscount(timeToMaturity)` (1e18-scaled) rather than recomputing it. Two variants are deployed and they differ in what they do with that ratio: | Contract | Returns | | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `PTLinearDiscountOracle` | `(1 − discount)` alone, scaled to 8 decimals. It never reads the underlying's price — it assumes a USD peg — so at and after maturity it returns a flat `1e8`, not the underlying's actual price. | | `PTLinearDiscountMarketOracle` | The same ratio multiplied by the base token's oracle price, so it converges on the underlying. | Both declare `decimals() = 8`, so either reads like any other feed on the `IOracle` path — but they get there differently. `PTLinearDiscountOracle` divides the 18-decimal discount answer by `1e10`. `PTLinearDiscountMarketOracle` multiplies the 8-decimal base price by that answer and divides by `1e18`. A source is skipped if it is disabled, missing, reverts, or is **stale** — `getPriceFromOracle` treats a Chainlink-style answer whose `updatedAt` is older than the asset's `timeDeltaTolerance` as invalid (`INVALID_PRICE = 0`). A `timeDeltaTolerance` of `0` **disables the staleness check entirely** rather than rejecting everything; both `PTLinearDiscountOracle` and `IdleOracle` return `0` here, so read the value before assuming a freshness guarantee. **BoundValidator.** Validation compares a reported price against an anchor price. With `anchorRatio = anchorPrice * 1e18 / reportedPrice`, the reported price is accepted only when: ``` lowerBoundRatio <= anchorRatio <= upperBoundRatio ``` Bounds are configured per asset — `BoundValidator` stores no default, so consult the per-asset limits in [Standard Collaterals](/for-developer/multi-oracle/multi-oracle-standard) and [bStock Collaterals](/for-developer/multi-oracle/multi-oracle-bstock) tables. A reported price of `0` fails validation gracefully (returns `false`); an anchor price of `0` instead reverts (`anchor price is not valid`). An asset that reaches the bound validator with no config there reverts `validation config not exist`, and that revert propagates out of `peek`. Three routes reach it: the success branch of the main-oracle read and the success branch of the fallback-oracle read — both when a pivot is enabled **and returned a valid price** — plus an untried external call on the main-vs-fallback path, when both of those return non-zero. None is absorbed by the surrounding `catch`, which covers only the oracle read itself, not the validation that follows it. Distinguish this from `invalid resilient oracle price`, which is what you get when the asset has no usable price at all — including an asset with no resilient-oracle config, or one whose enabled pivot is stale with no fallback. > Which sources and bounds are configured for each asset (and the Resilient Oracle address per chain) are published in the tables on [Standard Collaterals](/for-developer/multi-oracle/multi-oracle-standard) and [bStock Collaterals](/for-developer/multi-oracle/multi-oracle-bstock). Do not hard-code them. ### Verifying which feeds back an asset To see the sources behind a collateral before you trust a market, read the token config from the oracle directly: ```solidity // oracle = a market's marketParams.oracle TokenConfig memory cfg = IOracle(oracle).getTokenConfig(collateralToken); // cfg.oracles[0] = main, [1] = pivot, [2] = fallback // cfg.enableFlagsForOracles[i] tells you which roles are live // cfg.timeDeltaTolerance is the staleness window in seconds (0 = check disabled) ``` The Resilient Oracle also exposes `getOracle(asset, role) → (address oracle, bool enabled)` for reading a
프로젝트로 돌아가기