Platform: Code4rena
Start Date: 31/08/2023
Pot Size: $55,000 USDC
Total HM: 5
Participants: 30
Period: 6 days
Judge: hickuphh3
Total Solo HM: 2
Id: 282
League: ETH
Rank: 21/30
Findings: 1
Award: $62.87
π Selected for report: 0
π Solo Findings: 0
π Selected for report: Proxy
Also found by: Banditx0x, DavidGiladi, favelanky, ladboy233, nadin, rvierdiiev
62.8682 USDC - $62.87
Users usually go to the docs & specification to see how to integrate a project. Currently the documentation and the code do not match.
Parameters contract BondingManager { function treasuryRewardCut() external view returns (uint256); function setTreasuryRewardCut(uint256 _value) external; // @audit this is NOT the setTreasuryRewardCut and _value, it's the setTreasuryRewardCutRate and _cutRate. function nextRoundTreasuryRewardCut() external view returns (uint256); function treasuryBalanceCeiling() external view returns (uint256); function setTreasuryBalanceCeiling(uint256 _value) external; // @audit this is NOT the _value, it's the _ceiling. }
BondingManager.sol
contract does not have the function treasuryRewardCut()
.BondingManager.sol
contract does not have the function setTreasuryRewardCut()
. Instead there is a setTreasuryRewardCutRate()
function : hereFile: BondingManager.sol 167: function setTreasuryRewardCutRate(uint256 _cutRate) external onlyControllerOwner { 168: _setTreasuryRewardCutRate(_cutRate); 169: }
BondingManager.sol
contract does not have the function nextRoundTreasuryRewardCut()
BondingManager.sol
contract does not have the function treasuryBalanceCeiling()
.setTreasuryBalanceCeiling()
interface :function setTreasuryBalanceCeiling(uint256 _value) external // @audit this is NOT the _value, it's the _ceiling.
BondingManager.sol
: hereFile: BondingManager.sol 176: function setTreasuryBalanceCeiling(uint256 _ceiling) external onlyControllerOwner {
Manual review
Use the correct docs by fixing the mentioned issues.
Other
#0 - 141345
2023-09-08T15:58:42Z
no significant impact/loss
QA is more appropriate.
#1 - c4-pre-sort
2023-09-09T14:53:22Z
141345 marked the issue as sufficient quality report
#2 - victorges
2023-09-15T17:54:06Z
Agreed on QA.
#3 - c4-sponsor
2023-09-15T17:54:15Z
victorges marked the issue as disagree with severity
#4 - c4-sponsor
2023-09-15T17:54:19Z
victorges (sponsor) acknowledged
#5 - HickupHH3
2023-09-18T07:47:12Z
downgrading to L
#6 - c4-judge
2023-09-18T07:47:17Z
HickupHH3 changed the severity to QA (Quality Assurance)
#7 - c4-sponsor
2023-09-21T00:06:25Z
victorges (sponsor) confirmed