40,000 USDC
View results
Submission Details
Severity: low

Missing checks in constructor/initialize

Summary

Missing checks in constructor/initialize

Vulnerability Details

There are some missing checks in these functions, and this could lead to unexpected scenarios. Consider always adding a sanity check for state variables.

File: /src/Escrow.sol
//@audit `arbiter` is not checked
32: constructor(
uint256 price,
IERC20 tokenContract,
address buyer,
address seller,
address arbiter,
uint256 arbiterFee
) {

Impact

Tools Used

Manual

Recommendations

check the value of arbiter variable before assigning it

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.