code-423n4 / 2022-05-cally-findings

2 stars 0 forks source link

Upgraded Q -> M from 190 [1654475279061] #343

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Judge has assessed an item in Issue #190 as Medium risk. The relevant finding follows:

[L-02] Fee in Cally.setFee() should be upper-bounded A malicious owner or owner account compromise can set the fee very high, up to 100%, siphoning all profits from the protocol.

Consider implementing a reasonable upper limit here:

File: Cally.sol 119: function setFee(uint256 feeRate) external onlyOwner { 120: feeRate = feeRate; 121: }

HardlyDifficult commented 2 years ago

Dupe of https://github.com/code-423n4/2022-05-cally-findings/issues/48