Platform: Code4rena
Start Date: 23/09/2021
Pot Size: $50,000 USDC
Total HM: 5
Participants: 14
Period: 7 days
Judge: ghoulsol
Total Solo HM: 3
Id: 32
League: ETH
Rank: 6/14
Findings: 1
Award: $1,546.32
🌟 Selected for report: 0
🚀 Solo Findings: 0
itsmeSTYJ
If low rate is lower than min rate, the calculation of interestRatePerBlock will not be accurate.
function setLowRate(uint _value) external onlyOwner { // ok require(_value < highRate, "InterestRateModel: _value < lowRate"); require(_value > minRate, "InterestRateModel: _value > minRate"); // added this. lowRate = _timeRateToBlockRate(_value); emit NewLowRate(_value); }
#0 - talegift
2021-10-02T05:05:48Z
Duplicate #63
itsmeSTYJ
Explanation of this possible attack vector
function increaseAllowance(address _spender, uint256 _value) public virtual returns (bool) { _approve(msg.sender, _spender, allowances[msg.sender][_spender] + _value); return true; } function decreaseAllowance(address _spender, uint256 _value) public virtual returns (bool) { uint256 allowance = allowances[msg.sender][_spender]; require(allowance >= _value, "ERC20: decreased allowance below zero"); unchecked { _approve(msg.sender), _spender, allowance - _value); } return true; }
#0 - talegift
2021-10-02T09:07:13Z
Duplicate #120