small cleanup
This commit is contained in:
parent
e2fd200d5b
commit
2caef7ecb2
3 changed files with 21 additions and 39 deletions
|
|
@ -8,12 +8,19 @@ import "../src/Harberg.sol";
|
|||
import "../src/Stake.sol";
|
||||
import {LiquidityManager} from "../src/LiquidityManager.sol";
|
||||
|
||||
address constant WETH = 0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14; //Sepolia
|
||||
address constant V3_FACTORY = 0x0227628f3F023bb0B980b67D528571c95c6DaC1c; //Sepolia
|
||||
address constant TWABC = 0x64ddA11815B883C589AFeD914666ef2D63C8C338; //new TwabController(60 * 60 * 24, uint32(block.timestamp));
|
||||
// Base Sepolia data
|
||||
address constant FEE_DEST = 0xf6a3eef9088A255c32b6aD2025f83E57291D9011;
|
||||
address constant WETH = 0x4200000000000000000000000000000000000006;
|
||||
address constant V3_FACTORY = 0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24;
|
||||
address constant TWABC = 0xFCFa3b066981027516121bd27a9B1cBb9C00c5Fd;
|
||||
|
||||
// Sepolia data
|
||||
// address constant WETH = 0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14; //Sepolia
|
||||
// address constant V3_FACTORY = 0x0227628f3F023bb0B980b67D528571c95c6DaC1c; //Sepolia
|
||||
// address constant TWABC = 0x64ddA11815B883C589AFeD914666ef2D63C8C338; //new TwabController(60 * 60 * 24, uint32(block.timestamp));
|
||||
uint24 constant FEE = uint24(10_000);
|
||||
|
||||
contract SepoliaScript is Script {
|
||||
contract BaseSepoliaScript is Script {
|
||||
bool token0isWeth;
|
||||
|
||||
function setUp() public {}
|
||||
|
|
@ -56,6 +63,8 @@ contract SepoliaScript is Script {
|
|||
string memory seedPhrase = vm.readFile(".secret");
|
||||
uint256 privateKey = vm.deriveKey(seedPhrase, 0);
|
||||
vm.startBroadcast(privateKey);
|
||||
address sender = vm.addr(privateKey);
|
||||
console.log(sender);
|
||||
|
||||
TwabController tc = TwabController(TWABC);
|
||||
// in case you want to deploy an new TwabController
|
||||
|
|
@ -69,6 +78,7 @@ contract SepoliaScript is Script {
|
|||
initializePoolFor1Cent(liquidityPool);
|
||||
harb.setLiquidityPool(liquidityPool);
|
||||
LiquidityManager liquidityManager = new LiquidityManager(V3_FACTORY, WETH, address(harb));
|
||||
liquidityManager.setFeeDestination(FEE_DEST);
|
||||
// note: this delayed initialization is not a security issue.
|
||||
harb.setLiquidityManager(address(liquidityManager));
|
||||
(bool sent, ) = address(liquidityManager).call{value: 0.1 ether}("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue