Referral leave contracts fail to comply with the EIP7201 standard for computing slot locations.
As can be seen from below snippet, the slot address for the Referral data is computed based on the formula: keccak256(abi.encode(REFERRAL_DOMAIN, accountOwner))
which is not aligned with instructions of EIP7201 standard ie. erc7201(id: string) = keccak256(keccak256(id) - 1) & ~0xff
. This non-compliance violates an invariant stated in the project's README.
Found in src/perpetuals/leaves/Referral.sol at Line 16
The severity of EIP Non-compliance and invariant breaking should be Medium.
Manual Review
Apply:
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.