Flash unwinder contracts and scripts, relay lane tuning, trustless bridge and token-aggregation updates.
Made-with: Cursor
This commit is contained in:
34
script/deploy/DeployTwoHopDodoIntegrationUnwinder.s.sol
Normal file
34
script/deploy/DeployTwoHopDodoIntegrationUnwinder.s.sol
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user