added overflow checks

This commit is contained in:
JulesCrown 2024-07-18 07:35:39 +02:00
parent dbc23802d2
commit b243874f02
7 changed files with 493 additions and 327 deletions

View file

@ -4,7 +4,7 @@ import "forge-std/Script.sol";
import {TwabController} from "pt-v5-twab-controller/TwabController.sol";
import "@uniswap-v3-core/interfaces/IUniswapV3Factory.sol";
import "@uniswap-v3-core/interfaces/IUniswapV3Pool.sol";
import "../src/Harb.sol";
import "../src/Harberg.sol";
import "../src/Stake.sol";
import {LiquidityManager} from "../src/LiquidityManager.sol";
@ -60,7 +60,7 @@ contract SepoliaScript is Script {
TwabController tc = TwabController(TWABC);
// in case you want to deploy an new TwabController
//TwabController tc = new TwabController(60 * 60, uint32(block.timestamp));
Harb harb = new Harb("Harberger Tax", "HARB", tc);
Harberg harb = new Harberg("Harbergerger Tax", "HARB", tc);
token0isWeth = address(WETH) < address(harb);
Stake stake = new Stake(address(harb));
harb.setStakingPool(address(stake));