Skip to content

Commit

Permalink
refactor: lower initial funding amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
mrekucci committed Nov 6, 2024
1 parent 77fb076 commit 27a53c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions contracts/scripts/core/DeployCore.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions contracts/scripts/standard-bridge/DeployStandardBridge.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 27a53c9

Please sign in to comment.