Project

One World
NFTDeFi
15,000 USDC
View results
Submission Details
Severity: medium
Invalid

Unsafe ERC20 methods

Summary

Using unsafe ERC20 methods can revert the transaction for certain tokens.

Vulnerability Details

There are many Weird ERC20 Tokens that won't work correctly using the standard IERC20 interface.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
interface IMembershipERC1155 {
function initialize(
string memory _name,
string memory _symbol,
string memory _baseURI,
address _owner,
address _currency
) external;
function mint(
address to,
uint256 id,
uint256 amount
) external;
function burn(
address from,
uint256 id,
uint256 amount
) external;
}
.

Impact

The contract will malfunction for certain tokens.

Tools Used

Manual Review

Recommendation

Consider using SafeERC20 for mint, burn and initialize

Updates

Lead Judging Commences

0xbrivan2 Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Known issue

Support

FAQs

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