We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6d346d commit 568804fCopy full SHA for 568804f
src/libraries/PoolLib.sol
@@ -21,7 +21,7 @@ library PoolLib {
21
/// @dev The pool supply `index` must be passed as a parameter to skip the supply on pool
22
/// if it were to revert due to the amount being too small.
23
function supplyToPool(IPool pool, address underlying, uint256 amount, uint256 index) internal {
24
- if (amount.rayDiv(index) == 0) return;
+ if (amount.rayDivDown(index) == 0) return;
25
26
pool.supply(underlying, amount, address(this), Constants.NO_REFERRAL_CODE);
27
}
0 commit comments