From f65c4f45e3f268000b84915fcaa22e49dc1d4284 Mon Sep 17 00:00:00 2001 From: Quentin Garchery Date: Tue, 29 Oct 2024 22:52:20 +0100 Subject: [PATCH] refactor: remove Morpho Util from Util --- certora/helpers/Util.sol | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/certora/helpers/Util.sol b/certora/helpers/Util.sol index b38f9e03..e713bd38 100644 --- a/certora/helpers/Util.sol +++ b/certora/helpers/Util.sol @@ -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); @@ -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(); - } }