fluid-contracts-public/test/foundry/utils/mocks/MockERC20Permit.sol
2024-07-11 13:05:09 +00:00

20 lines
641 B
Solidity

//SPDX-License-Identifier: MIT
pragma solidity 0.8.21;
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { ERC20Permit } from "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
contract MockERC20Permit is ERC20, ERC20Permit {
constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) ERC20Permit(_name) {}
function mint(address to, uint256 amount) external returns (bool) {
_mint(to, amount);
return true;
}
function burn(address from, uint256 amount) external returns (bool) {
_burn(from, amount);
return true;
}
}