Skip to content

Commit

Permalink
rm console2 import to fix size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
kinrezC committed Jun 6, 2024
1 parent 8f93660 commit a129d32
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/RMM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {PYIndexLib, PYIndex} from "pendle/core/StandardizedYield/PYIndex.sol";
import {IPPrincipalToken} from "pendle/interfaces/IPPrincipalToken.sol";
import {IStandardizedYield} from "pendle/interfaces/IStandardizedYield.sol";
import {IPYieldToken} from "pendle/interfaces/IPYieldToken.sol";
import "forge-std/console2.sol";

import "./lib/RmmLib.sol";
import "./lib/RmmErrors.sol";
Expand Down Expand Up @@ -201,12 +200,9 @@ contract RMM is ERC20 {

// SY is needed to cover the minted PT, so we need to debit the delta from the msg.sender
uint256 ytOut = amountOut + (index.assetToSyUp(amountInWad) - amountOutWad);
console2.log("ytOut", ytOut);
console2.log("amt out 1", amountOut);

// Converts the SY received from minting it into its components PT and YT.
amountOut = mintPtYt(ytOut, address(this));
console2.log("amountOut", amountOut);

if (amountOut < minYtOut) {
revert InsufficientOutput(amountInWad, minYtOut, amountOut);
Expand Down

0 comments on commit a129d32

Please sign in to comment.