staking/test/mocks/BrokenERC20.s.sol

21 lines
630 B
Solidity

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
contract BrokenERC20 is ERC20 {
constructor() ERC20("Mock SNT", "SNT") {
_mint(msg.sender, 1_000_000_000_000_000_000);
}
// solhint-disable-next-line no-unused-vars
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
return false;
}
// solhint-disable-next-line no-unused-vars
function transfer(address recipient, uint256 amount) public override returns (bool) {
return false;
}
}