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.
25 lines
695 B
25 lines
695 B
8 years ago
|
pragma solidity ^0.4.8;
|
||
|
|
||
|
import './StandardToken.sol';
|
||
|
import '../lifecycle/Pausable.sol';
|
||
|
|
||
|
/**
|
||
|
* Pausable token
|
||
|
*
|
||
|
* Simple ERC20 Token example, with pausable token creation
|
||
|
* Issue:
|
||
|
* https://github.com/OpenZeppelin/zeppelin-solidity/issues/194
|
||
|
* Based on code by BCAPtoken:
|
||
|
* https://github.com/BCAPtoken/BCAPToken/blob/5cb5e76338cc47343ba9268663a915337c8b268e/sol/BCAPToken.sol#L27
|
||
|
**/
|
||
|
|
||
|
contract PausableToken is Pausable, StandardToken {
|
||
|
|
||
|
function transfer(address _to, uint _value) whenNotPaused {
|
||
|
return super.transfer(_to, _value);
|
||
|
}
|
||
|
|
||
|
function transferFrom(address _from, address _to, uint _value) whenNotPaused {
|
||
|
return super.transferFrom(_from, _to, _value);
|
||
|
}
|
||
|
}
|