base deployment

This commit is contained in:
giteadmin 2025-02-05 19:47:18 +01:00
parent 78b48f1639
commit 31bc86fcd5
4 changed files with 23 additions and 27 deletions

View file

@ -25,9 +25,9 @@ contract DeployScript is Script {
string memory seedPhrase = vm.readFile(".secret");
uint256 privateKey = vm.deriveKey(seedPhrase, 0);
vm.startBroadcast(privateKey);
//address sender = vm.addr(privateKey);
Harberg harb = new Harberg("Harbergerger Tax", "HARB");
address sender = vm.addr(privateKey);
console.log(sender);
Harberg harb = new Harberg("Kraiken", "KRK");
token0isWeth = address(weth) < address(harb);
Stake stake = new Stake(address(harb), feeDest);
harb.setStakingPool(address(stake));
@ -41,7 +41,7 @@ contract DeployScript is Script {
liquidityManager.setFeeDestination(feeDest);
// note: this delayed initialization is not a security issue.
harb.setLiquidityManager(address(liquidityManager));
(bool sent, ) = address(liquidityManager).call{value: 0.1 ether}("");
(bool sent, ) = address(liquidityManager).call{value: 0.01 ether}("");
require(sent, "Failed to send Ether");
//TODO: wait few minutes and call recenter
vm.stopBroadcast();