|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | + |
| 3 | +pragma solidity ^0.8.0; |
| 4 | + |
| 5 | +import {ManageCluster} from "./ManageCluster.s.sol"; |
| 6 | + |
| 7 | +contract Cluster is ManageCluster { |
| 8 | + address internal constant USDe = 0x4c9EDD5852cd905f086C759E8383e09bff1E68B3; |
| 9 | + address internal constant pUSDe = 0xA62B204099277762d1669d283732dCc1B3AA96CE; |
| 10 | + address internal constant PT_pUSDe = 0xF3f491e5608f8B8a6Fd9E9d66a4a4036d7FD282C; |
| 11 | + |
| 12 | + function defineCluster() internal override { |
| 13 | + // define the path to the cluster addresses file here |
| 14 | + cluster.clusterAddressesPath = "/script/production/frontier/Strata.json"; |
| 15 | + |
| 16 | + // do not change the order of the assets in the .assets array. if done, it must be reflected in other the other |
| 17 | + // arrays the ltvs matrix. |
| 18 | + // if more than one vauls has to be deployed for the same asset, it can be added in the array as many times as |
| 19 | + // needed. |
| 20 | + // note however, that mappings may need reworking as they always use asset address as key. |
| 21 | + cluster.assets = [USDC, USDT, USDe, pUSDe, PT_pUSDe]; |
| 22 | + } |
| 23 | + |
| 24 | + function configureCluster() internal override { |
| 25 | + super.configureCluster(); |
| 26 | + |
| 27 | + // define unit of account here |
| 28 | + cluster.unitOfAccount = USD; |
| 29 | + |
| 30 | + // define oracle providers here. |
| 31 | + // adapter names can be found in the relevant adapter contract (as returned by the `name` function). |
| 32 | + // for cross adapters, use the following format: "CrossAdapter=<adapterName1>+<adapterName2>". |
| 33 | + // although Redstone Classic oracles reuse the ChainlinkOracle contract and returns "ChainlinkOracle" name, |
| 34 | + // they should be referred to as "RedstoneClassicOracle". |
| 35 | + // in case the asset is an ERC4626 vault itself (i.e. sUSDS) and is recognized as a valid external vault as per |
| 36 | + // External Vaults Registry, the string should be preceeded by "ExternalVault|" prefix. this is in order to |
| 37 | + // resolve the asset (vault) in the oracle router. |
| 38 | + // in case the adapter is not present in the Adapter Registry, the adapter address can be passed instead in form |
| 39 | + // of a string. |
| 40 | + cluster.oracleProviders[USDC ] = "0xD35657aE033A86FFa8fc6Bc767C5eb57C7c3D4B8"; |
| 41 | + cluster.oracleProviders[USDT ] = "0x575Ffc02361368A2708c00bC7e299d1cD1c89f8A"; |
| 42 | + cluster.oracleProviders[USDe ] = "0x95dF7A30aF54cc05d1CFB1E9d7655f12269b8439"; |
| 43 | + cluster.oracleProviders[pUSDe ] = "ExternalVault|0x95dF7A30aF54cc05d1CFB1E9d7655f12269b8439"; |
| 44 | + cluster.oracleProviders[PT_pUSDe] = "0xD7AD788Fee2a7f7CADA6e82860D8DAed9eF21895"; |
| 45 | + |
| 46 | + // define IRM classes here and assign them to the assets or refer to the adaptive IRM address directly |
| 47 | + { |
| 48 | + // Base=0% APY Kink(90%)=2.7% APY Max=40.00% APY |
| 49 | + //cluster.kinkIRMParams[WETH] = [uint256(0), uint256(218407859), uint256(22859618857), uint256(3865470566)]; |
| 50 | + |
| 51 | + cluster.irms[USDC ] = IRM_ADAPTIVE_USD; |
| 52 | + cluster.irms[USDT ] = IRM_ADAPTIVE_USD; |
| 53 | + cluster.irms[USDe ] = IRM_ADAPTIVE_USD; |
| 54 | + cluster.irms[pUSDe ] = IRM_ADAPTIVE_USD_YB; |
| 55 | + } |
| 56 | + |
| 57 | + // define ltv values here. columns are liability vaults, rows are collateral vaults |
| 58 | + cluster.ltvs = [ |
| 59 | + // 0 1 2 3 4 |
| 60 | + // USDC USDT USDe pUSDe PT_pUSDe |
| 61 | + /* 0 USDC */ [LTV_ZERO, LTV_HIGH, LTV__LOW, LTV_ZERO, LTV_ZERO], |
| 62 | + /* 1 USDT */ [LTV_HIGH, LTV_ZERO, LTV__LOW, LTV_ZERO, LTV_ZERO], |
| 63 | + /* 2 USDe */ [LTV__LOW, LTV__LOW, LTV_ZERO, LTV_ZERO, LTV_ZERO], |
| 64 | + /* 3 pUSDe */ [LTV__LOW, LTV__LOW, LTV_HIGH, LTV_ZERO, LTV_ZERO], |
| 65 | + /* 4 PT_pUSDe*/ [LTV__LOW, LTV__LOW, LTV_HIGH, LTV_HIGH, LTV_ZERO] |
| 66 | + ]; |
| 67 | + |
| 68 | + // define external ltvs here. columns are liability vaults, rows are collateral vaults. |
| 69 | + cluster.externalLTVs = [ |
| 70 | + // 0 1 2 3 4 |
| 71 | + // USDC USDT USDe pUSDe PT_pUSDe |
| 72 | + /* 0 Prime USDC */ [LTV_HIGH, LTV_HIGH, LTV_ZERO, LTV_ZERO, LTV_ZERO], |
| 73 | + /* 1 Prime USDT */ [LTV_HIGH, LTV_HIGH, LTV_ZERO, LTV_ZERO, LTV_ZERO] |
| 74 | + ]; |
| 75 | + } |
| 76 | +} |
0 commit comments