From a5e805aedf60273a59cdc02f47867b69c8408ead Mon Sep 17 00:00:00 2001 From: Pablo Veyrat Date: Fri, 22 Mar 2024 16:26:52 +0100 Subject: [PATCH] feat: add minter flashloan --- scripts/SetupDeployedTransmuter.s.sol | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/SetupDeployedTransmuter.s.sol b/scripts/SetupDeployedTransmuter.s.sol index c9accb42..53ee4334 100644 --- a/scripts/SetupDeployedTransmuter.s.sol +++ b/scripts/SetupDeployedTransmuter.s.sol @@ -11,6 +11,7 @@ import "contracts/transmuter/Storage.sol" as Storage; import { ITransmuter } from "interfaces/ITransmuter.sol"; import "interfaces/external/chainlink/AggregatorV3Interface.sol"; import "interfaces/external/IERC4626.sol"; +import "interfaces/IAgToken.sol"; import { CollateralSetupProd } from "contracts/transmuter/configs/ProductionTypes.sol"; @@ -23,6 +24,7 @@ contract SetupDeployedTransmuter is Utils { vm.startBroadcast(deployerPrivateKey); ITransmuter usdaTransmuter = ITransmuter(0x222222fD79264BBE280b4986F6FEfBC3524d0137); + IAgToken treasuryUSDA = IAgToken(0x8667DBEBf68B0BFa6Db54f550f41Be16c4067d60); console.log(address(usdaTransmuter)); // TODO Run this script after facet upgrade script otherwise it won't work due to oracles calibrated @@ -217,6 +219,9 @@ contract SetupDeployedTransmuter is Utils { usdaTransmuter.toggleTrusted(NEW_DEPLOYER, Storage.TrustedType.Seller); usdaTransmuter.toggleTrusted(NEW_KEEPER, Storage.TrustedType.Seller); + // Add minter the flashloan contract on Ethereum + treasuryUSDA.addMinter(0x4A2FF9bC686A0A23DA13B6194C69939189506F7F); + console.log("Transmuter setup"); vm.stopBroadcast(); }