Skip to content

Commit

Permalink
refactor: remove Morpho Util from Util
Browse files Browse the repository at this point in the history
  • Loading branch information
QGarchery committed Oct 29, 2024
1 parent 0e4f7c9 commit f65c4f4
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions certora/helpers/Util.sol
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity 0.8.21;

import {
MarketParams,
MarketParamsLib,
IERC20,
SafeERC20,
IMorphoHarness,
SharesMathLib,
Id,
Market
} from "../munged/MetaMorpho.sol";
import {IERC20, SafeERC20, IMorphoHarness, SharesMathLib, Id, Market} from "../munged/MetaMorpho.sol";

contract Util {
using SafeERC20 for IERC20;
using SharesMathLib for uint256;
using MarketParamsLib for MarketParams;

function balanceOf(address token, address user) external view returns (uint256) {
return IERC20(token).balanceOf(user);
Expand All @@ -41,8 +31,4 @@ contract Util {
return shares.toAssetsDown(market.totalSupplyAssets, market.totalSupplyShares);
}
}

function libId(MarketParams memory marketParams) external pure returns (Id) {
return marketParams.id();
}
}

0 comments on commit f65c4f4

Please sign in to comment.