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
Rank: 66/96
Findings: 1
Award: $19.64
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: robee
Also found by: 0x007, 0x1f8b, 0x52, 0xDjango, 0xNazgul, 0xSmartContract, 8olidity, Awesome, B2, Bnke0x0, Chom, Diana, Dravee, JTJabba, Jeiwan, Josiah, Lambda, Mathieu, Picodes, RaoulSchaffranek, RaymondFam, RedOneN, ReyAdmirado, Rolezn, Ruhum, Sm4rty, Tricko, Trust, Waze, __141345__, a12jmx, adriro, ajtra, brgltd, c3phas, carlitox477, cccz, ch0bu, chaduke, chrisdior4, corerouter, cryptonue, csanuragjain, ctf_sec, cylzxje, delfin454000, dic0de, djxploit, horsefacts, imare, jayphbee, jwood, ktg, ladboy233, leosathya, lukris02, minhtrng, neko_nyaa, oyc_109, pashov, peritoflores, rbserver, rvierdiiev, shark, tnevler, yixxas
19.6449 USDC - $19.64
Each event
 should use three indexed
 fields if there are three or more fields
There are 11 instances of this issue
https://github.com/code-423n4/2022-10-paladin/blob/main/contracts/WardenPledge.sol
File: contracts/WardenPledge.sol 85-92: event NewPledge( address creator, address receiver, address rewardToken, uint256 targetVotes, uint256 rewardPerVote, uint256 endTimestamp ); 94: event ExtendPledgeDuration(uint256 indexed pledgeId, uint256 oldEndTimestamp, uint256 newEndTimestamp); 96: event IncreasePledgeTargetVotes(uint256 indexed pledgeId, uint256 oldTargetVotes, uint256 newTargetVotes); 98: event IncreasePledgeRewardPerVote(uint256 indexed pledgeId, uint256 oldRewardPerVote, uint256 newRewardPerVote); 102: event RetrievedPledgeRewards(uint256 indexed pledgeId, address receiver, uint256 amount); 105: event Pledged(uint256 indexed pledgeId, address indexed user, uint256 amount, uint256 endTimestamp); 108: event NewRewardToken(address indexed token, uint256 minRewardPerSecond); 110: event UpdateRewardToken(address indexed token, uint256 minRewardPerSecond); 115: event ChestUpdated(address oldChest, address newChest); 117: event PlatformFeeUpdated(uint256 oldfee, uint256 newFee); 119: event MinTargetUpdated(uint256 oldMinTarget, uint256 newMinTargetVotes);
It's a best practice to use the latest compiler version.
The specified minimum compiler version is quite old. Older compilers might be susceptible to some bugs. We recommend changing the solidity version pragma to the latest version to enforce the use of an up to date compiler.
List of known compiler bugs and their severity can be found here:Â https://etherscan.io/solcbuginfo
https://github.com/code-423n4/2022-10-paladin/blob/main/contracts/WardenPledge.sol
File: contracts/WardenPledge.sol 2: pragma solidity 0.8.10;
#0 - c4-judge
2022-11-12T00:33:32Z
kirk-baird marked the issue as grade-b