LiqMan WIP

This commit is contained in:
JulesCrown 2024-03-14 17:31:16 +01:00
parent e51f49c612
commit 4e895f57e9
4 changed files with 106 additions and 116 deletions

View file

@ -2,6 +2,7 @@ pragma solidity ^0.8.4;
import "forge-std/Script.sol";
import {TwabController} from "pt-v5-twab-controller/TwabController.sol";
import "@uniswap-v3-core/interfaces/IUniswapV3Factory.sol";
import "../src/Harb.sol";
import "../src/Stake.sol";
@ -21,9 +22,9 @@ contract SepoliaScript is Script {
Harb harb = new Harb("Harberger Tax", "HARB", V3_FACTORY, WETH, tc);
Stake stake = new Stake(address(harb));
harb.setStakingPool(address(stake));
factory = IUniswapV3Factory(V3_FACTORY);
IUniswapV3Pool(factory.createPool(WETH, address(harb), FEE));
liquidityManager = new LiquidityManager(V3_FACTORY, WETH, address(harb));
IUniswapV3Factory factory = IUniswapV3Factory(V3_FACTORY);
factory.createPool(WETH, address(harb), FEE);
LiquidityManager liquidityManager = new LiquidityManager(V3_FACTORY, WETH, address(harb));
harb.setLiquidityManager(address(liquidityManager));
vm.stopBroadcast();
}