Cally contest - JDeryl's results

Earn yield on your NFTs or tokens via covered call vaults.

General Information

Platform: Code4rena

Start Date: 10/05/2022

Pot Size: $50,000 USDC

Total HM: 13

Participants: 100

Period: 5 days

Judge: HardlyDifficult

Total Solo HM: 1

Id: 122

League: ETH

Cally

Findings Distribution

Researcher Performance

Rank: 74/100

Findings: 1

Award: $54.89

🌟 Selected for report: 0

🚀 Solo Findings: 0

Gas optimization

File Cally.sol

Line 211,304,320,353: Create a modifier to check vault type as best practice

Current code: require(vaultId % 2 != 0, "Not vault type");

Suggestion:

modifier checkVault() public { require(vaultId % 2 != 0, "Not vault type"); _; }

Line 263,307,323,354(link to line/s): Create a modifier to check owner of vault/option as best practice

Current code: require(ownerOf(vaultId) != address(0), "Vault does not exist");

Suggestion:

modifier checkOwner(ownerId) public { require(ownerOf(ownerId) != address(0), "Vault/Option does not exist"); _; }
AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter