From 37c7dffe180f3bb208b3c2eb7954e31d23134798 Mon Sep 17 00:00:00 2001 From: miguelmtzinf Date: Thu, 13 Jul 2023 10:08:14 +0200 Subject: [PATCH] fix: Update version paraswap adapters --- deploy/03_periphery_post/04_paraswap_adapters.ts | 3 ++- helpers/constants.ts | 2 ++ markets/aave/commons.ts | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy/03_periphery_post/04_paraswap_adapters.ts b/deploy/03_periphery_post/04_paraswap_adapters.ts index 7a103e3..09445a0 100644 --- a/deploy/03_periphery_post/04_paraswap_adapters.ts +++ b/deploy/03_periphery_post/04_paraswap_adapters.ts @@ -5,6 +5,7 @@ import { COMMON_DEPLOY_PARAMS } from "../../helpers/env"; import { ConfigNames, eNetwork, + GOVERNANCE_BRIDGE_EXECUTOR, loadPoolConfig, POOL_ADDRESSES_PROVIDER_ID, POOL_ADMIN, @@ -40,7 +41,7 @@ const func: DeployFunction = async function ({ const { address: addressesProvider } = await deployments.get( POOL_ADDRESSES_PROVIDER_ID ); - const poolAdmin = POOL_ADMIN[network]; + const poolAdmin = GOVERNANCE_BRIDGE_EXECUTOR[network] || POOL_ADMIN[network]; await deploy("ParaSwapLiquiditySwapAdapter", { from: deployer, diff --git a/helpers/constants.ts b/helpers/constants.ts index b2ed498..7d4e668 100644 --- a/helpers/constants.ts +++ b/helpers/constants.ts @@ -182,6 +182,8 @@ export const DEFAULT_NAMED_ACCOUNTS = { export const GOVERNANCE_BRIDGE_EXECUTOR: { [key: string]: string } = { [ePolygonNetwork.polygon]: "0xdc9A35B16DB4e126cFeDC41322b3a36454B1F772", + [eOptimismNetwork.main]: "0x7d9103572bE58FfE99dc390E8246f02dcAe6f611", + [eArbitrumNetwork.arbitrum]: "0x7d9103572bE58FfE99dc390E8246f02dcAe6f611", }; export const MULTISIG_ADDRESS: { [key: string]: string } = { diff --git a/markets/aave/commons.ts b/markets/aave/commons.ts index 8e7ef57..27db3e3 100644 --- a/markets/aave/commons.ts +++ b/markets/aave/commons.ts @@ -166,6 +166,7 @@ export const CommonsConfig: ICommonConfiguration = { [eFantomNetwork.main]: "0x161383b5dAFc1cc05Ec058e5B0b0703BA175bdA6", [eArbitrumNetwork.arbitrum]: "0xdC6E2b14260F972ad4e5a31c68294Fba7E720701", [eEthereumNetwork.tenderly]: "0xa68bEA62Dc4034A689AA0F58A76681433caCa663", + [eOptimismNetwork.main]: "0x6e7bE86000dF697facF4396efD2aE2C322165dC3", }, FlashLoanPremiums: { total: 0.0005e4,