Submitted by RaymondFam, also found by Deivitto, 0xhacksmithh, peakbolt, and rvierdiiev
In Numoen, it does not specifically restrict the type of ERC20 collateral used for borrowing.
If fee on transfer token(s) is/are entailed, it will specifically make mint() revert in Lendgine.sol when checking if balanceAfter < balanceBefore + collateral.
File: Lendgine.sol#L71-L102
As can be seen from the code block above, line 99 is meant to be reverting when balanceAfter < balanceBefore + collateral. So in the case of deflationary tokens, the error is going to be thrown even though the token amount has been received due to the fee factor.
Consider:
kyscott18 (Numoen) commented:
berndartmueller (judge) commented:
berndartmueller (judge) commented:
kyscott18 (Numoen) commented:
berndartmueller (judge) commented:
kyscott18 (Numoen) commented:
