code-423n4 / 2021-05-88mph-findings

0 stars 0 forks source link

contract AaveMarket function setRewards has a misleading revert message #4

Open code423n4 opened 3 years ago

code423n4 commented 3 years ago

Handle

paulius.eth

Vulnerability details

Impact

contract AaveMarket function setRewards has a misleading revert message: require(newValue.isContract(), "HarvestMarket: not contract");

Recommended Mitigation Steps

Should be 'AaveMarket', not 'HarvestMarket'.

ZeframLou commented 3 years ago

Fixed in https://github.com/88mphapp/88mph-contracts/commit/f4b58f8af4366507f14d781c4af95dbab970fb50