Pieces Protocol

First Flight #32
Beginner FriendlyFoundrySolidityNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Unsafe ERC20 Operations should not be used

Description

ERC20 functions may not behave as expected. For example: return values are not always meaningful. It is recommended to use OpenZeppelin's SafeERC20 library.
- Found in src/TokenDivider.sol [Line: 137]()
```solidity
bool transferSuccess = IERC20(erc20).transfer(msg.sender, amount);
```
- Found in src/TokenDivider.sol [Line: 214]()
```solidity
IERC20(tokenInfo.erc20Address).transferFrom(msg.sender,to, amount);
```
- Found in src/TokenDivider.sol [Line: 255]()
```solidity
IERC20(tokenInfo.erc20Address).transferFrom(msg.sender,address(this), amount);
```
- Found in src/TokenDivider.sol [Line: 313]()
```solidity
IERC20(order.erc20Address).transfer(msg.sender, order.amount);
```
Updates

Lead Judging Commences

juan_pedro_ventu Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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