diff --git a/contracts/scripts/core/DeployCore.s.sol b/contracts/scripts/core/DeployCore.s.sol index abf51595d..1e2d2ec5a 100644 --- a/contracts/scripts/core/DeployCore.s.sol +++ b/contracts/scripts/core/DeployCore.s.sol @@ -16,8 +16,8 @@ import {console} from "forge-std/console.sol"; contract DeployTestnet is Script { - // Amount of ETH required to fund the Oracle address. - uint256 public constant ORACLE_FUNDING = 1000 ether; + // Amount of ETH to initially fund the oracle account on L1 chain. + uint256 public constant ORACLE_INITIAL_FUNDING = 1 ether; error FailedToSendETHToOracle(address addr); @@ -104,7 +104,7 @@ contract DeployTestnet is Script { preconfManager.updateOracleContract(address(oracle)); console.log("_PreconfManagerWithOracle:", address(oracle)); - (bool success, ) = payable(oracleKeystoreAddress).call{value: ORACLE_FUNDING}(""); + (bool success, ) = payable(oracleKeystoreAddress).call{value: ORACLE_INITIAL_FUNDING}(""); require(success, FailedToSendETHToOracle(oracleKeystoreAddress)); vm.stopBroadcast(); diff --git a/contracts/scripts/standard-bridge/DeployStandardBridge.s.sol b/contracts/scripts/standard-bridge/DeployStandardBridge.s.sol index 9daffd2d0..3cf3c6ac7 100644 --- a/contracts/scripts/standard-bridge/DeployStandardBridge.s.sol +++ b/contracts/scripts/standard-bridge/DeployStandardBridge.s.sol @@ -14,7 +14,7 @@ import {console} from "forge-std/console.sol"; contract BridgeBase is Script { // Amount of ETH which must be allocated only to the contract deployer on mev-commit chain genesis. - uint256 public constant DEPLOYER_GENESIS_ALLOCATION = type(uint256).max - 2000 ether; + uint256 public constant DEPLOYER_GENESIS_ALLOCATION = type(uint256).max - 500 ether; // Amount of ETH to initially fund the relayer account on both chains. uint256 public constant RELAYER_INITIAL_FUNDING = 1 ether; @@ -23,7 +23,7 @@ contract BridgeBase is Script { // AND initially fund the relayer, all on mev-commit chain. // This amount of ETH must be initially locked in the L1 gateway contract to ensure a 1:1 peg // between mev-commit chain ETH and L1 ETH. - uint256 public constant MEV_COMMIT_CHAIN_SETUP_COST = 10000 ether + RELAYER_INITIAL_FUNDING; + uint256 public constant MEV_COMMIT_CHAIN_SETUP_COST = 1 ether + RELAYER_INITIAL_FUNDING; // Amount of ETH required on L1 to initialize the L1 gateway, make transfer calls, and initially fund the relayer on L1. uint256 public constant L1_SETUP_COST = 1 ether + RELAYER_INITIAL_FUNDING;