35 lines
1.2 KiB
Solidity
35 lines
1.2 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.20;
|
|
|
|
import {Script, console} from "forge-std/Script.sol";
|
|
import {TwoHopDodoIntegrationUnwinder} from "../../contracts/flash/TwoHopDodoIntegrationUnwinder.sol";
|
|
|
|
/**
|
|
* @title DeployTwoHopDodoIntegrationUnwinder
|
|
* @notice Deploy TwoHopDodoIntegrationUnwinder for Mainnet cWUSDC unwind via cWUSDT.
|
|
*
|
|
* Env:
|
|
* PRIVATE_KEY required
|
|
* DODO_PMM_INTEGRATION_MAINNET required
|
|
*
|
|
* Usage:
|
|
* forge script script/deploy/DeployTwoHopDodoIntegrationUnwinder.s.sol:DeployTwoHopDodoIntegrationUnwinder \
|
|
* --rpc-url $ETHEREUM_MAINNET_RPC --broadcast -vvvv
|
|
*/
|
|
contract DeployTwoHopDodoIntegrationUnwinder is Script {
|
|
function run() external {
|
|
uint256 pk = vm.envUint("PRIVATE_KEY");
|
|
address integration = vm.envAddress("DODO_PMM_INTEGRATION_MAINNET");
|
|
address deployer = vm.addr(pk);
|
|
|
|
console.log("Deployer:", deployer);
|
|
console.log("DODO PMM integration:", integration);
|
|
|
|
vm.startBroadcast(pk);
|
|
TwoHopDodoIntegrationUnwinder unwinder = new TwoHopDodoIntegrationUnwinder(integration);
|
|
vm.stopBroadcast();
|
|
|
|
console.log("TwoHopDodoIntegrationUnwinder:", address(unwinder));
|
|
}
|
|
}
|