Yieldy contest - 8olidity's results

A protocol for gaining single side yields on various tokens.

General Information

Platform: Code4rena

Start Date: 21/06/2022

Pot Size: $50,000 USDC

Total HM: 31

Participants: 99

Period: 5 days

Judges: moose-code, JasoonS, denhampreen

Total Solo HM: 17

Id: 139

League: ETH

Yieldy

Findings Distribution

Researcher Performance

Rank: 97/99

Findings: 1

Award: $26.57

🌟 Selected for report: 0

🚀 Solo Findings: 0

Expressions for constant values such as a call to keccak256(), should use immutable rather than constant

File: src\contracts\YieldyStorage.sol: 9 uint256 public index; 10: bytes32 public constant ADMIN_ROLE = keccak256("ADMIN"); 11 bytes32 public constant MINTER_BURNER_ROLE = 12: keccak256("MINTER_BURNER_ROLE"); 13: bytes32 public constant REBASE_ROLE = keccak256("REBASE_ROLE"); File: src\libraries\ERC20PermitUpgradeable.sol: 36 bytes32 private constant _PERMIT_TYPEHASH = 37: keccak256( 38 "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"

Conditions for an Require statement that includes the && operator can be broken down into multiple require statements to conserve gas.

File: src\contracts\Staking.sol: 54 require( 55: _stakingToken != address(0) && 56: _yieldyToken != address(0) && 57: _tokeToken != address(0) && 58: _tokePool != address(0) && 59: _tokeManager != address(0) && 60: _tokeReward != address(0) && 61 _liquidityReserve != address(0),
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