Skip to content

Commit

Permalink
update deployment script to include LiquidityManager.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
kinrezC committed Jun 17, 2024
1 parent e00d687 commit 1ed56b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions script/DeployFactory.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
}
Expand Down
3 changes: 0 additions & 3 deletions src/LiquidityManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1ed56b3

Please sign in to comment.