With Fee on transfer tokens, whenever someone tries to create an Escrow, there is an error. The user is unaware and loses gas money.
In the newEscrow
function of EscrowFactory.sol
, tokens are transferred to Escrow with tokenContract.safeTransferFrom(msg.sender, computedAddress, price);
Here, the escrow side has this validation: if (tokenContract.balanceOf(address(this)) < price) revert Escrow__MustDeployWithTokenBalance();
With fee on transfer tokens, it is always tokenContract.balanceOf(address(this)) < price
, which results in an error.
Users lose gas money.
Manual
Add permission to create Escrow only from newEscrow
and remove validation on price.
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.