diff --git a/script/DeployFactory.s.sol b/script/DeployFactory.s.sol index 4352ec3..deb48d3 100644 --- a/script/DeployFactory.s.sol +++ b/script/DeployFactory.s.sol @@ -3,6 +3,7 @@ pragma solidity ^0.8.13; import {Script, console2} from "forge-std/Script.sol"; import {RMM} from "../src/RMM.sol"; +import {LiquidityManager} from "../src/LiquidityManager.sol"; import {Factory} from "../src/Factory.sol"; address constant WETH_ADDRESS = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; @@ -20,7 +21,9 @@ contract DeployFactory is Script { address sender = vm.addr(pk); console2.log("Deploying RMM from", sender); Factory factory = new Factory(WETH_ADDRESS); + LiquidityManager liquidityManager = new LiquidityManager(); console2.log("Factory deployed at", address(factory)); + console2.log("LiquidityManager deployed at", address(liquidityManager)); vm.stopBroadcast(); } diff --git a/src/LiquidityManager.sol b/src/LiquidityManager.sol index 1a4ff71..913783c 100644 --- a/src/LiquidityManager.sol +++ b/src/LiquidityManager.sol @@ -5,7 +5,6 @@ import {IStandardizedYield} from "pendle/interfaces/IStandardizedYield.sol"; import {PYIndexLib, PYIndex} from "pendle/core/StandardizedYield/PYIndex.sol"; import {FixedPointMathLib} from "solmate/utils/FixedPointMathLib.sol"; import {SafeTransferLib, ERC20} from "solmate/utils/SafeTransferLib.sol"; -import "forge-std/console2.sol"; import {RMM, IPYieldToken} from "./RMM.sol"; import {InvalidTokenIn, InsufficientSYMinted} from "./lib/RmmErrors.sol"; @@ -119,8 +118,6 @@ contract LiquidityManager { sy.approve(address(rmm), syBal); liquidity = rmm.allocate(syBal, ptBal, args.minLiquidityDelta, msg.sender); - console2.log(pt.balanceOf(address(this)), "pt bal after allocate"); - console2.log(sy.balanceOf(address(this)), "sy bal after allocate"); } struct ComputeArgs {