Failure to use the &&
operator judiciously could halt important functions from being carrried out.
This modifier checks if msg.sender
is preMarketsAddr
or deliveryPlaceAddr
which are contract addresses of PreMarkets.sol
and DeliveryPlace.sol
respectively.
The if
statement on line 13 above, implements an AND
operator which would only pass if the two checks pass, which isn't possible as the preMarketsAddr
and deliveryPlaceAddr
contract addresses are seperate.
The onlyRelatedContracts
modifier is implemented twice in the TokenManager.sol
contract these functions would always revert
Manual Analysis
The AND
operator should be replaced with the OR
operator instead
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.