Paladin - Warden Pledges contest - SadBase's results

A governance lending protocol transforming users voting power into a new money lego.

General Information

Platform: Code4rena

Start Date: 27/10/2022

Pot Size: $33,500 USDC

Total HM: 8

Participants: 96

Period: 3 days

Judge: kirk-baird

Total Solo HM: 1

Id: 176

League: ETH

Paladin

Findings Distribution

Researcher Performance

Rank: 90/96

Findings: 1

Award: $11.52

Gas:
grade-b

🌟 Selected for report: 0

🚀 Solo Findings: 0

Variable can be Constant as there is no change. It can be Private as Well

  • Line 79
uint256 public minDelegationTime = 1 weeks;

Since there is no change to minDelegationTime, it can be set as constant. With it being constant, it can be private as well to save gas.

Conditions can be swapped to reduce Gas

2nd check would not be checked if the first one succeeded, reducing gas cost.

Line 383 - extendPledge() function

if(newEndTimestamp != _getRoundedTimestamp(newEndTimestamp) || newEndTimestamp < oldEndTimestamp) revert Errors.InvalidEndTimestamp();

#0 - c4-judge

2022-11-12T00:38:42Z

kirk-baird marked the issue as grade-b

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