JPEG'd contest - 0v3rf10w's results

Bridging the gap between DeFi and NFTs.

General Information

Platform: Code4rena

Start Date: 07/04/2022

Pot Size: $100,000 USDC

Total HM: 20

Participants: 62

Period: 7 days

Judge: LSDan

Total Solo HM: 11

Id: 107

League: ETH

JPEG'd

Findings Distribution

Researcher Performance

Rank: 52/62

Findings: 1

Award: $87.39

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

87.3915 USDC - $87.39

Labels

bug
G (Gas Optimization)
sponsor acknowledged

External Links

Gas1:

break && into two require statements to save gas NFTEscrow.sol l#86 JPEGStaking.sol l#45 StrategyPUSDConvex.sol L#181 yVault.sol L#99 FungibleAssetVaultForDAO.sol L#93,194 NFTVault.sol #401

Gas2:

making public to external saves gas NFTEscrow.sol l#81 LPFarming.sol l#114

Gas3:

prefer != instead of > to save gas LPFarming.sol l#218,239,320,337,354 yVaultLPFarming.sol L#101,118,139 JPEGLock.sol L#40 JPEGStaking.sol L#32,46 StrategyPUSDConvex.sol L#182,322,334 yVault.sol L#143,167,170 FungibleAssetVaultForDAO.sol L#108,142,164,180,194 NFTVault.sol L#278,365,401,687,764,770

Gas4:

use prefix LPFarming.sol l#226 use user.amount += _amount; instead of user.amount = user.amount + _amount;

Gas5:

use prefix ++i instead of ++i LPFarming.sol L#348 StrategyPUSDConvex.sol L#145,231,319 (also no need to set i=0, it's default) NFTVault.sol L#181,184 (also no need to set i=0, it's default)

Gas6:

floating pragma, prefer to set to atleast 0.8.4

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