diff --git a/contracts/libraries/Allowance.sol b/contracts/libraries/Allowance.sol index b8da24064b..e0855f6af2 100644 --- a/contracts/libraries/Allowance.sol +++ b/contracts/libraries/Allowance.sol @@ -30,10 +30,7 @@ library AllowanceLib { // 3. Fall-back to setting a maximum allowance if (!success) { token.approve(spender, type(uint256).max); - require( - token.allowance(address(this), spender) == type(uint256).max, - "allowance not max" - ); + require(token.allowance(address(this), spender) >= value, "allowance missing"); } } }