Submitted by bin2chen, also found by 0xAlix2, 3n0ch, samuraii77, ayden, inzinko, zarkk01, elhaj, Bob, alix40, and ether_sky
We can withdraw underlyingCollateralToken and underlyingBorrowToken by withdraw():
From the code above we know that whether we take underlyingCollateralToken or underlyingBorrowToken
will check validateUserIsNotBelowOpeningLimitBorrowCR() ==> collateralRatio() > openingLimitBorrowCR.
This makes sense for taking underlyingCollateralToken, but not for taking underlyingBorrowToken.
If the token is already borrowed, just stored in Size and not yet taken, but due to a slight price fluctuation, validateUserIsNotBelowOpeningLimitBorrowCR() fails but is still far from being liquidated, the user may not be able to take the borrowed token, resulting in the possibility that the user may not be able to withdraw the borrowed funds.
Context
aviggiano (Size) confirmed and commented:
samuraii77 (warden) commented:
hansfriese (judge) commented:
