"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommonsConfig = void 0;
const ethers_1 = require("ethers");
const constants_1 = require("../../helpers/constants");
const types_1 = require("../../helpers/types");
// ----------------
// PROTOCOL GLOBAL PARAMS
// ----------------
exports.CommonsConfig = {
    MarketId: 'Commons',
    ATokenNamePrefix: 'Vmex interest bearing',
    VariableDebtTokenNamePrefix: 'Vmex variable debt bearing',
    SymbolPrefix: '',
    ProviderId: 0,
    OracleQuoteCurrency: 'USD',
    OracleQuoteDecimals: 8,
    OracleQuoteUnit: ethers_1.ethers.utils.parseUnits("1", 8).toString(),
    ProtocolGlobalParams: {
        TokenDistributorPercentageBase: '10000',
        MockUsdPriceInWei: '5848466240000000',
        UsdAddress: '0x10F7Fc1F91Ba351f9C629c5947AD69bD03C05b96',
        NilAddress: constants_1.ZERO_ADDRESS,
        OneAddress: '0x0000000000000000000000000000000000000001',
        AaveReferral: '0',
    },
    // ----------------
    // COMMON PROTOCOL PARAMS ACROSS POOLS AND NETWORKS
    // ----------------
    Mocks: {
        AllAssetsInitialPrices: {
            ...constants_1.MOCK_CHAINLINK_AGGREGATORS_PRICES,
        },
    },
    // ----------------
    // COMMON PROTOCOL ADDRESSES ACROSS POOLS
    // ----------------
    // If PoolAdmin/emergencyAdmin is set, will take priority over PoolAdminIndex/emergencyAdminIndex
    PoolAdmin: {
        [types_1.eOptimismNetwork.optimism]: "0x464eD76C6B2DdeCC9aa1E990211670a81b93474B",
    },
    PoolAdminIndex: 0,
    EmergencyAdmin: {
        [types_1.eOptimismNetwork.optimism]: "0x839d8c6BDB283B72F7bfbb2efa32eD40855dF95c", //filip's address
    },
    EmergencyAdminIndex: 1,
    GlobalAdminMultisig: {
        [types_1.eOptimismNetwork.optimism]: "0x599e1DE505CfD6f10F64DD7268D856831f61627a",
    },
    ProviderRegistry: {
        [types_1.eOptimismNetwork.optimism]: "0xEB125b3386322886769f43B7744327B9983A24Da",
    },
    ProviderRegistryOwner: {
        [types_1.eOptimismNetwork.optimism]: "0x464eD76C6B2DdeCC9aa1E990211670a81b93474B",
    },
    LendingPoolAddressesProvider: {
        [types_1.eOptimismNetwork.optimism]: "0xFC2748D74703cf6f2CE8ca9C8F388C3DAB1856f0",
    },
    AssetMappingsImpl: {
        [types_1.eOptimismNetwork.optimism]: "0x4ce76015b2a994a42d4dc4695070c2e6d2c0ce71",
    },
    AssetMappings: {
        [types_1.eOptimismNetwork.optimism]: "0x48CB441A85d6EA9798C72c4a1829658D786F3027",
    },
    LendingPoolCollateralManager: {
        [types_1.eOptimismNetwork.optimism]: '0x18437Fa16Aa60e0Def18938F254615d77115d46d',
    },
    LendingPoolConfigurator: {
        [types_1.eOptimismNetwork.optimism]: '0x907F93AD19265B75C576673F2EeC55dF88572d1F',
    },
    LendingPool: {
        [types_1.eOptimismNetwork.optimism]: '0xc5A42E1c1c8640c77fFc8Fac88248AB6937fdabA',
    },
    WethGateway: {
        [types_1.eOptimismNetwork.optimism]: '',
    },
    TokenDistributor: {
        [types_1.eOptimismNetwork.optimism]: '',
    },
    FallbackOracle: {
        [types_1.eOptimismNetwork.optimism]: '0xdC33956bFdD227b38CCaa1647a1511e0efc18C60',
    },
    UniswapV3OracleAddresses: {
        [types_1.eOptimismNetwork.optimism]: {},
    },
    UniswapV3OracleTargets: {
        [types_1.eOptimismNetwork.optimism]: {},
    },
    CurveMetadata: {
        [types_1.eOptimismNetwork.optimism]: {
            "3CRV": {
                _reentrancyType: 0,
                _poolSize: '3',
                _curvePool: '0x1337BedC9D22ecbe766dF105c9623922A27963EC'
            },
            "sUSD3CRV-f": {
                _reentrancyType: 0,
                _poolSize: '2',
                _curvePool: '0x061b87122Ed14b9526A813209C8a59a633257bAb'
            },
            wstETHCRV: {
                _reentrancyType: 4,
                _poolSize: '2',
                _curvePool: '0xB90B9B1F91a01Ea22A182CD84C1E22222e39B415'
            },
        },
    },
    BeethovenMetadata: {
        [types_1.eOptimismNetwork.optimism]: {
            // beethoven_USDCDAI: {
            //   _typeOfPool: "2",
            //   _legacy: false,
            //   _exists: true,
            // },
            "BPT-WSTETH-WETH": {
                _typeOfPool: "1",
                _legacy: true,
                _exists: true,
            },
            // beethoven_WETHOPUSDC: {
            //   _typeOfPool: "0",
            //   _legacy: true,
            //   _exists: true,
            // },
            "BPT-rETH-ETH": {
                _typeOfPool: "1",
                _legacy: true,
                _exists: true,
            },
        },
    },
    ChainlinkAggregator: {
        [types_1.eOptimismNetwork.optimism]: {
            DAI: {
                feed: '0x8dBa75e83DA73cc766A7e5a0ee71F656BAb470d6',
                heartbeat: 86400
            },
            SNX: {
                feed: '0x2FCF37343e916eAEd1f1DdaaF84458a359b53877',
                heartbeat: 1200
            },
            sUSD: {
                feed: '0x7f99817d87baD03ea21E05112Ca799d715730efe',
                heartbeat: 86400
            },
            USDC: {
                feed: '0x16a9FA2FDa030272Ce99B29CF780dFA30361E0f3',
                heartbeat: 86400,
            },
            USDT: {
                feed: '0xECef79E109e997bCA29c1c0897ec9d7b03647F5E',
                heartbeat: 86400,
            },
            WBTC: {
                feed: '0x718A5788b89454aAE3A028AE9c111A29Be6c2a6F',
                heartbeat: 1200,
            },
            WETH: {
                feed: '0x13e3Ee699D1909E989722E753853AE30b17e08c5',
                heartbeat: 1200,
            },
            wstETH: {
                feed: '0x698B585CbC4407e2D54aa898B2600B53C68958f7',
                heartbeat: 86400,
            },
            FRAX: {
                feed: '0xc7D132BeCAbE7Dcc4204841F33bae45841e41D9C',
                heartbeat: 86400,
            },
            OP: {
                feed: '0x0D276FC14719f9292D5C1eA2198673d1f4269246',
                heartbeat: 1200,
            },
            LUSD: {
                feed: '0x9dfc79Aaeb5bb0f96C6e9402671981CdFc424052',
                heartbeat: 86400,
            }
        },
    },
    ReserveAssets: {
        [types_1.eOptimismNetwork.optimism]: {},
    },
    ReservesConfig: {},
    ATokenDomainSeparator: {
        [types_1.eOptimismNetwork.optimism]: '',
    },
    WETH: {
        [types_1.eOptimismNetwork.optimism]: '0x4200000000000000000000000000000000000006',
    },
    WrappedNativeToken: {
        [types_1.eOptimismNetwork.optimism]: '0x4200000000000000000000000000000000000006',
    },
    IncentivesController: {
        [types_1.eOptimismNetwork.optimism]: "0xE1A55E97FfE942D530B1690096D81B6Cc7d54dF4",
    },
    VMEXTreasury: {
        [types_1.eOptimismNetwork.optimism]: "0x6BfCF01CcdbA163c2A01F4DD99508790aBc20509",
    },
    VMEXRewardsVault: {
        [types_1.eOptimismNetwork.optimism]: "0x856a5c389F77a6dFed7542635AB93D8Da23B6103",
    },
    SequencerUptimeFeed: {
        [types_1.eOptimismNetwork.optimism]: "0x371EAD81c9102C9BF4874A9075FFFf170F2Ee389"
    },
    RETHOracle: {
        [types_1.eOptimismNetwork.optimism]: "0x1a8F81c256aee9C640e14bB0453ce247ea0DFE6F"
    },
    ExternalStakingContracts: {
        [types_1.eOptimismNetwork.optimism]: {
            yvUSDC: {
                address: "0xB2c04C55979B6CA7EB10e666933DE5ED84E6876b",
                type: 1,
            },
            yvUSDT: {
                address: "0xf66932f225ca48856b7f97b6f060f4c0d244af8e",
                type: 1,
            },
            yvDAI: {
                address: "0xf8126ef025651e1b313a6893fcf4034f4f4bd2aa",
                type: 1,
            },
            yvWETH: {
                address: "0xe35fec3895dcecc7d2a91e8ae4ff3c0d43ebffe0",
                type: 1,
            },
            // velo_rETHWETH: {
            //   address: "0xd0E434831a765839051DA9C0B9B99C6b0Fb87201",
            //   type: 2,
            // },
            "vAMMV2-wstETH/WETH": {
                address: "0x9f82A8b19804141161C582CfEa1b84853340A246",
                type: 2,
            },
            "vAMMV2-WETH/USDC": {
                address: "0xe7630c9560c59ccbf5eed8f33dd0cca2e67a3981",
                type: 2,
            },
            // velo_OPETH: {
            //   address: "0xcc53cd0a8ec812d46f0e2c7cc5aadd869b6f0292",
            //   type: 2,
            // },
            // velo_OPUSDC: {
            //   address: "0x36691b39ec8fa915204ba1e1a4a3596994515639",
            //   type: 2,
            // },
            "vAMMV2-WETH/LUSD": {
                address: "0x121de0e978d117590588cb37533ef121c8826a8a",
                type: 2,
            },
            "sAMMV2-USDC/LUSD": {
                address: "0x065b2613ae8e182112f2519b58bb842889596fc7",
                type: 2,
            },
            "sAMMV2-USDC/sUSD": {
                address: "0x55a272304456355242f6690863b5c8d5c512ff71",
                type: 2,
            },
            "sAMMV2-USDC/DAI": {
                address: "0x6998089f6bdd9c74c7d8d01b99d7e379ccccb02d",
                type: 2,
            },
            // velo_FRAXUSDC: {
            //   address: "0x53f31a40570dab360a16f8a7f913dbe84f5d1c5c",
            //   type: 2,
            // },
            // velo_USDTUSDC: {
            //   address: "0xa2f27d183a4e409c734367712f9344328f8ec98d",
            //   type: 2,
            // },
            "BPT-rETH-ETH": {
                address: "0x61ac9315a1Ae71633E95Fb35601B59180eC8d61d",
                type: 3,
            },
            "BPT-WSTETH-WETH": {
                address: "0xe110b862E4D076596707892c0C5163BC183eb161",
                type: 3,
            },
            "3CRV": {
                address: "0x7f90122BF0700F9E7e1F688fe926940E8839F353",
                type: 4,
            },
            "sUSD3CRV-f": {
                address: "0xc5aE4B5F86332e70f3205a8151Ee9eD9F71e0797",
                type: 4,
            },
            wstETHCRV: {
                address: "0xD53cCBfED6577d8dc82987e766e75E3cb73a8563",
                type: 4,
            },
        },
    }
};
//# sourceMappingURL=commons.js.map