Skip to content

Instantly share code, notes, and snippets.

@alexbabits
alexbabits / ERC20Deferred.sol
Last active February 4, 2024 13:38
ERC20Deferred Idea
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Deferred.sol)
pragma solidity ^0.8.20;
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
//⚠️For OpenZeppelin integration, switch location to "../ERC20.sol";⚠️
/**
* @dev Extension of {ERC20} with an opt-in deferred mechanism for all received tokens.
*/