Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Interface ILoveToken has incorrect ERC20 function interface

Summary

Interface ILoveToken.sol has ERC20 function interface.

Vulnerability Details

The contract LoveToken.sol inherits the ERC20 standard token contract from solmate, which for the functions of approve, transferand transferFrom returns a boolindicating the success of the call, this return value is not present in ILoveToken.sol .

Impact

Interacting with LoveTokenthrough ILoveTokenwill neglect return values.

Tools Used

Slither

Recommendations

Update the ILoveToken to reflect the correct functions.

interface ILoveToken {
function decimals() external returns (uint8);
- function approve(address to, uint256 amount) external;
- function transfer(address to, uint256 amount) external;
- function transferFrom(address from, address to, uint256 amount) external;
+ function approve(address to, uint256 amount) external returns(bool);
+ function transfer(address to, uint256 amount) external returns (bool);
+ function transferFrom(address from, address to, uint256 amount) external returns (bool);
...
Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.