Skip to content

Commit

Permalink
refactor(PoolLib): remove unecessary wadraymath
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Jan 4, 2023
1 parent e9ef96a commit 78a8e1e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/libraries/PoolLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ import {IVariableDebtToken} from "../interfaces/aave/IVariableDebtToken.sol";

import {Constants} from "./Constants.sol";
import {Math} from "@morpho-utils/math/Math.sol";
import {WadRayMath} from "@morpho-utils/math/WadRayMath.sol";

library PoolLib {
using WadRayMath for uint256;

function supplyToPool(IPool pool, address underlying, uint256 amount) internal {
pool.supply(underlying, amount, address(this), Constants.NO_REFERRAL_CODE);
}
Expand Down

0 comments on commit 78a8e1e

Please sign in to comment.