Skip to content

Commit

Permalink
fix compilation issues in MockConvertFacet
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkatsios committed Aug 8, 2024
1 parent c3ca145 commit bb26687
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions protocol/contracts/mocks/mockFacets/MockConvertFacet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import "../../beanstalk/silo/ConvertFacet.sol";
import {SafeERC20, IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {LibConvert} from "../../libraries/Convert/LibConvert.sol";
import {LibTractor} from "../../libraries/LibTractor.sol";
import {LibConvert} from "../../libraries/Convert/LibConvert.sol";

/**
* @author Publius
Expand All @@ -33,8 +32,7 @@ contract MockConvertFacet is ConvertFacet {
token,
stems,
amounts,
maxTokens,
account
maxTokens
);

emit MockConvert(stalkRemoved, bdvRemoved);
Expand All @@ -49,7 +47,7 @@ contract MockConvertFacet is ConvertFacet {
) external {
LibSilo._mow(msg.sender, token);
if (account == address(0)) account = msg.sender;
LibConvert._depositTokensForConvert(token, amount, bdv, grownStalk, account);
LibConvert._depositTokensForConvert(token, amount, bdv, grownStalk);
}

function convertInternalE(
Expand All @@ -68,7 +66,7 @@ contract MockConvertFacet is ConvertFacet {
)
{
IERC20(tokenIn).safeTransferFrom(msg.sender, address(this), amountIn);
LibConvert.convertParams memory cp = LibConvert.convert(convertData);
LibConvert.ConvertParams memory cp = LibConvert.convert(convertData);
toToken = cp.toToken;
fromToken = cp.fromToken;
toAmount = cp.toAmount;
Expand Down

0 comments on commit bb26687

Please sign in to comment.