In UNI and COMP (which are common tokens with a high TVL), the maximum approval that can be set is type(uint96).max. This makes these tokens to be unusable in SWAN, since the approval of tokens are set at the constructor as type(uint256).max. This will cause a revert.
In the constructor of BuyerAgent.solthe token's approval is set. But this approval value wont work for all common ERC20 tokens. For example: UNI (used in UNISWAP) and COMP (common ERC20 tokens with a high TVL). Therefore these tokens cannot be used.
`` swan.token().approve(address(swan.coordinator()), type(uint256).max); swan.token().approve(address(swan), type(uint256).max);
Some tokens are not usable.
Manual Review
Check if the token is UNI or COMP and use approval as type(uint96).max
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.