You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
pragma solidity ^0.5.0;
|
|
|
|
import "./ERC20.sol";
|
|
import "../../lifecycle/Pausable.sol";
|
|
|
|
/**
|
|
* @title Pausable token
|
|
* @dev ERC20 modified with pausable transfers.
|
|
**/
|
|
contract ERC20Pausable is ERC20, Pausable {
|
|
function transfer(address to, uint256 value) public whenNotPaused returns (bool) {
|
|
return super.transfer(to, value);
|
|
}
|
|
|
|
function transferFrom(address from, address to, uint256 value) public whenNotPaused returns (bool) {
|
|
return super.transferFrom(from, to, value);
|
|
}
|
|
|
|
function approve(address spender, uint256 value) public whenNotPaused returns (bool) {
|
|
return super.approve(spender, value);
|
|
}
|
|
|
|
function increaseAllowance(address spender, uint addedValue) public whenNotPaused returns (bool success) {
|
|
return super.increaseAllowance(spender, addedValue);
|
|
}
|
|
|
|
function decreaseAllowance(address spender, uint subtractedValue) public whenNotPaused returns (bool success) {
|
|
return super.decreaseAllowance(spender, subtractedValue);
|
|
}
|
|
}
|
|
|