Cally contest - fatherOfBlocks'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: 49/100

Findings: 2

Award: $85.44

🌟 Selected for report: 0

🚀 Solo Findings: 0

cally.sol

  • L431 -It doesn't make sense to set the from, you can get the id from the _ownerOf. This would be useful, since the require would not be needed to validate if the from is the owner.

#0 - outdoteth

2022-05-16T18:38:01Z

changing the signature of transferFrom breaks the ERC721 spec. This is not an issue

#1 - HardlyDifficult

2022-05-22T20:17:20Z

cally.sol

  • L94-L95 - gas is saved by not initializing the feeRate and protocolUnclaimedFees variables to zero.

  • L171 -Validating whether the tokenType is ERC721 or ERC20 is unnecessary since in order for the tokenType to get to that point it must conform to the TokenType interface.

  • L249 - it is unnecessary to create a beneficiary variable, you can call the parameter directly on line 250

  • L282 - gas is saved by not initializing to zero.

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