Skip to content

Commit

Permalink
feat: add minter flashloan
Browse files Browse the repository at this point in the history
  • Loading branch information
sogipec committed Mar 22, 2024
1 parent a1bf19d commit a5e805a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/SetupDeployedTransmuter.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit a5e805a

Please sign in to comment.