Skip to content

Instantly share code, notes, and snippets.

View graemecode's full-sized avatar
🎯
Focusing

Graeme graemecode

🎯
Focusing
View GitHub Profile
@graemecode
graemecode / ERC20Upgrader.sol
Created October 1, 2021 16:35
ERC20Upgrader.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.6;
import {IERC20} from "../../external/interface/IERC20.sol";
/**
* @title ERC20Upgrader
* @author MirrorXYZ
* @notice This contract allows swapping a legacy ERC20 token for an upgraded one.
*/