Address Contract Partially Verified
Address
0x0e0989b1f9B8A38983c2BA8053269Ca62Ec9B195
Balance
0 ETH
Nonce
1
Code Size
6953 bytes
Creator
0x67d8e69b...09BB at tx 0x1b268263...a70369
Indexed Transactions
0
Contract Bytecode
6953 bytes
0x60606040523615610110576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde0314610115578063095ea7b3146101a45780630a8bcdb9146101fe57806313af40351461022157806318160ddd1461025a57806323b872dd14610283578063313ce567146102fc5780634dc591961461032b57806356d7c2c8146103805780635e9f9613146103d1578063603066a4146103fa57806370a082311461044f5780637762df251461049c5780638da5cb5b146104f157806395d89b4114610546578063a9059cbb146105d5578063d5d1e7701461062f578063d8270dce14610644578063dd62ed3e1461066d578063fb932108146106d9575b600080fd5b341561012057600080fd5b61012861071b565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101695780820151818401525b60208101905061014d565b50505050905090810190601f1680156101965780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101af57600080fd5b6101e4600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610754565b604051808215151515815260200191505060405180910390f35b341561020957600080fd5b61021f6004808035906020019091905050610847565b005b341561022c57600080fd5b610258600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061099b565b005b341561026557600080fd5b61026d610af4565b6040518082815260200191505060405180910390f35b341561028e57600080fd5b6102e2600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610afa565b604051808215151515815260200191505060405180910390f35b341561030757600080fd5b61030f610dfa565b604051808260ff1660ff16815260200191505060405180910390f35b341561033657600080fd5b61033e610dff565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561038b57600080fd5b6103b7600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e17565b604051808215151515815260200191505060405180910390f35b34156103dc57600080fd5b6103e4611026565b6040518082815260200191505060405180910390f35b341561040557600080fd5b61040d61113f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561045a57600080fd5b610486600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611157565b6040518082815260200191505060405180910390f35b34156104a757600080fd5b6104af6111a1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156104fc57600080fd5b6105046111c7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561055157600080fd5b6105596111ec565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561059a5780820151818401525b60208101905061057e565b50505050905090810190601f1680156105c75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156105e057600080fd5b610615600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050611225565b604051808215151515815260200191505060405180910390f35b341561063a57600080fd5b610642611412565b005b341561064f57600080fd5b6106576116a7565b6040518082815260200191505060405180910390f35b341561067857600080fd5b6106c3600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506116ad565b6040518082815260200191505060405180910390f35b34156106e457600080fd5b610719600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919050506117d0565b005b6040805190810160405280600581526020017f506f2e657400000000000000000000000000000000000000000000000000000081525081565b600081600360003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a3600190505b92915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156108a257600080fd5b6108aa611026565b6003600073ffffffffffffffffffffffffffffffffffffffff801673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061098b73ffffffffffffffffffffffffffffffffffffffff6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683610afa565b151561099657600080fd5b5b5b50565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109f657600080fd5b7f8a95addc59dddee94a894365b5c66c6c2473b7084d3fd1df9f503db4a2cd6dcc6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a180600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b50565b60045481565b600081600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410158015610bc7575081600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410155b8015610c525750600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401115b15610de95781600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555081600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254039250508190555081600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a360019050610df3565b60009050610df3565b5b9392505050565b600881565b73111111111111111111111111111111111111111181565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e7557600080fd5b8273ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b1515610f1857600080fd5b6102c65a03f11515610f2957600080fd5b5050506040518051905090508273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561100157600080fd5b6102c65a03f1151561101257600080fd5b5050506040518051905091505b5b50919050565b60008060008060008060006008544210156110445760009650611136565b61105c61105342600854611851565b6201518061186b565b95506009548610151561108d5761108673ffffffffffffffffffffffffffffffffffffffff611157565b9650611136565b6000945060009350600992505b858461ffff161115156110f557600285019450600760008460ff1660ff16815260200190815260200160002060009054906101000a900460ff1660ff16840193506001600c8460ff168115156110ec57fe5b0601925061109a565b61110b611104600454876118ad565b606461186b565b9150816006540390508061113273ffffffffffffffffffffffffffffffffffffffff611157565b0396505b50505050505090565b73ffffffffffffffffffffffffffffffffffffffff81565b6000600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600381526020017f504f45000000000000000000000000000000000000000000000000000000000081525081565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054101580156112f55750600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401115b156114025781600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254039250508190555081600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905061140c565b6000905061140c565b5b92915050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561146e57600080fd5b61148b731111111111111111111111111111111111111111611157565b6003600073111111111111111111111111111111111111111173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060006003600073111111111111111111111111111111111111111173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060006003600073ffffffffffffffffffffffffffffffffffffffff801673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506116a36118e1565b5b5b565b60055481565b600073ffffffffffffffffffffffffffffffffffffffff80168373ffffffffffffffffffffffffffffffffffffffff1614801561173657506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b1561174a57611743611026565b90506117ca565b600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490505b92915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561182b57600080fd5b61184a7311111111111111111111111111111111111111118383610afa565b505b5b5050565b600082821115151561185f57fe5b81830390505b92915050565b60008060008311151561187a57fe5b828481151561188557fe5b049050828481151561189357fe5b0681840201841415156118a257fe5b8091505b5092915050565b600080828402905060008414806118ce57508284828115156118cb57fe5b04145b15156118d657fe5b8091505b5092915050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561193d57600080fd5b7f70aea8d848e8a90fb7661b227dc522eb6395c3dac71b63cb59edd5c9899b23646000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019250505060405180910390a1600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b565b6000611ad583611ad0600a85611ade565b6118ad565b90505b92915050565b60008082840a9050838110151515611af257fe5b8091505b50929150505600a165627a7a72305820643f57bb3a73747ed773e759bb0a0219b68e17637338a3fc5747f610183639540029
Verified Source Code Partial Match
Compiler: v0.4.15+commit.bbb8e64f
Optimization: No
PoetToken.sol 339 lines
pragma solidity ^0.4.15;
/// @title Abstract ERC20 token interface
contract AbstractToken {
function totalSupply() constant returns (uint256) {}
function balanceOf(address owner) constant returns (uint256 balance);
function transfer(address to, uint256 value) returns (bool success);
function transferFrom(address from, address to, uint256 value) returns (bool success);
function approve(address spender, uint256 value) returns (bool success);
function allowance(address owner, address spender) constant returns (uint256 remaining);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
event Issuance(address indexed to, uint256 value);
}
contract Owned {
address public owner = msg.sender;
address public potentialOwner;
modifier onlyOwner {
require(msg.sender == owner);
_;
}
modifier onlyPotentialOwner {
require(msg.sender == potentialOwner);
_;
}
event NewOwner(address old, address current);
event NewPotentialOwner(address old, address potential);
function setOwner(address _new)
public
onlyOwner
{
NewPotentialOwner(owner, _new);
potentialOwner = _new;
}
function confirmOwnership()
public
onlyPotentialOwner
{
NewOwner(owner, potentialOwner);
owner = potentialOwner;
potentialOwner = 0;
}
}
/// Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20
contract StandardToken is AbstractToken, Owned {
/*
* Data structures
*/
mapping (address => uint256) balances;
mapping (address => mapping (address => uint256)) allowed;
uint256 public totalSupply;
/*
* Read and write storage functions
*/
/// @dev Transfers sender's tokens to a given address. Returns success.
/// @param _to Address of token receiver.
/// @param _value Number of tokens to transfer.
function transfer(address _to, uint256 _value) returns (bool success) {
if (balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
balances[msg.sender] -= _value;
balances[_to] += _value;
Transfer(msg.sender, _to, _value);
return true;
}
else {
return false;
}
}
/// @dev Allows allowed third party to transfer tokens from one address to another. Returns success.
/// @param _from Address from where tokens are withdrawn.
/// @param _to Address to where tokens are sent.
/// @param _value Number of tokens to transfer.
function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && balances[_to] + _value > balances[_to]) {
balances[_to] += _value;
balances[_from] -= _value;
allowed[_from][msg.sender] -= _value;
Transfer(_from, _to, _value);
return true;
}
else {
return false;
}
}
/// @dev Returns number of tokens owned by given address.
/// @param _owner Address of token owner.
function balanceOf(address _owner) constant returns (uint256 balance) {
return balances[_owner];
}
/// @dev Sets approved amount of tokens for spender. Returns success.
/// @param _spender Address of allowed account.
/// @param _value Number of approved tokens.
function approve(address _spender, uint256 _value) returns (bool success) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
/*
* Read storage functions
*/
/// @dev Returns number of allowed tokens for given address.
/// @param _owner Address of token owner.
/// @param _spender Address of token spender.
function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
return allowed[_owner][_spender];
}
}
/// @title SafeMath contract - Math operations with safety checks.
/// @author OpenZeppelin: https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/math/SafeMath.sol
contract SafeMath {
function mul(uint a, uint b) internal returns (uint) {
uint c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint a, uint b) internal returns (uint) {
assert(b > 0);
uint c = a / b;
assert(a == b * c + a % b);
return c;
}
function sub(uint a, uint b) internal returns (uint) {
assert(b <= a);
return a - b;
}
function add(uint a, uint b) internal returns (uint) {
uint c = a + b;
assert(c >= a);
return c;
}
function pow(uint a, uint b) internal returns (uint) {
uint c = a ** b;
assert(c >= a);
return c;
}
}
/// @title Token contract - Implements Standard ERC20 with additional features.
/// @author Zerion - <[email protected]>
contract Token is StandardToken, SafeMath {
// Time of the contract creation
uint public creationTime;
function Token() {
creationTime = now;
}
/// @dev Owner can transfer out any accidentally sent ERC20 tokens
function transferERC20Token(address tokenAddress)
public
onlyOwner
returns (bool)
{
uint balance = AbstractToken(tokenAddress).balanceOf(this);
return AbstractToken(tokenAddress).transfer(owner, balance);
}
/// @dev Multiplies the given number by 10^(decimals)
function withDecimals(uint number, uint decimals)
internal
returns (uint)
{
return mul(number, pow(10, decimals));
}
}
/// @title Token contract - Implements Standard ERC20 Token with Po.et features.
/// @author Zerion - <[email protected]>
contract PoetToken is Token {
/*
* Token meta data
*/
string constant public name = "Po.et";
string constant public symbol = "POE";
uint8 constant public decimals = 8;
// Address where all investors tokens created during the ICO stage initially allocated
address constant public icoAllocation = 0x1111111111111111111111111111111111111111;
// Address where Foundation tokens are allocated
address constant public foundationReserve = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
// Number of tokens initially allocated to Foundation
uint foundationTokens;
// Store number of days in each month
mapping(uint8 => uint8) daysInMonth;
// UNIX timestamp for September 1, 2017
// It's a date when first 2% of foundation reserve will be unlocked
uint Sept1_2017 = 1504224000;
// Number of days since September 1, 2017 before all tokens will be unlocked
uint reserveDelta = 456;
/// @dev Contract constructor function sets totalSupply and allocates all ICO tokens to the icoAllocation address
function PoetToken()
{
// Overall, 3,141,592,653 POE tokens are distributed
totalSupply = withDecimals(3141592653, decimals);
// Allocate 32% of all tokens to Foundation
foundationTokens = div(mul(totalSupply, 32), 100);
balances[foundationReserve] = foundationTokens;
// Allocate the rest to icoAllocation address
balances[icoAllocation] = sub(totalSupply, foundationTokens);
// Allow owner to distribute tokens allocated on the icoAllocation address
allowed[icoAllocation][owner] = balanceOf(icoAllocation);
// Fill mapping with numbers of days
// Note: we consider only February of 2018 that has 28 days
daysInMonth[1] = 31; daysInMonth[2] = 28; daysInMonth[3] = 31;
daysInMonth[4] = 30; daysInMonth[5] = 31; daysInMonth[6] = 30;
daysInMonth[7] = 31; daysInMonth[8] = 31; daysInMonth[9] = 30;
daysInMonth[10] = 31; daysInMonth[11] = 30; daysInMonth[12] = 31;
}
/// @dev Sends tokens from icoAllocation to investor
function distribute(address investor, uint amount)
public
onlyOwner
{
transferFrom(icoAllocation, investor, amount);
}
/// @dev Overrides Owned.sol function
function confirmOwnership()
public
onlyPotentialOwner
{
// Allow new owner to distribute tokens allocated on the icoAllocation address
allowed[icoAllocation][potentialOwner] = balanceOf(icoAllocation);
// Forbid old owner to distribute tokens
allowed[icoAllocation][owner] = 0;
// Forbid old owner to withdraw tokens from foundation reserve
allowed[foundationReserve][owner] = 0;
// Change owner
super.confirmOwnership();
}
/// @dev Overrides StandardToken.sol function
function allowance(address _owner, address _spender)
public
constant
returns (uint256 remaining)
{
if (_owner == foundationReserve && _spender == owner) {
return availableReserve();
}
return allowed[_owner][_spender];
}
/// @dev Returns max number of tokens that actually can be withdrawn from foundation reserve
function availableReserve()
public
constant
returns (uint)
{
// No tokens should be available for withdrawal before September 1, 2017
if (now < Sept1_2017) {
return 0;
}
// Number of days passed since September 1, 2017
uint daysPassed = div(sub(now, Sept1_2017), 1 days);
// All tokens should be unlocked if reserveDelta days passed
if (daysPassed >= reserveDelta) {
return balanceOf(foundationReserve);
}
// Percentage of unlocked tokens by the current date
uint unlockedPercentage = 0;
uint16 _days = 0; uint8 month = 9;
while (_days <= daysPassed) {
unlockedPercentage += 2;
_days += daysInMonth[month];
month = month % 12 + 1;
}
// Number of unlocked tokens by the current date
uint unlockedTokens = div(mul(totalSupply, unlockedPercentage), 100);
// Number of tokens that should remain locked
uint lockedTokens = foundationTokens - unlockedTokens;
return balanceOf(foundationReserve) - lockedTokens;
}
/// @dev Withdraws tokens from foundation reserve
function withdrawFromReserve(uint amount)
public
onlyOwner
{
// Allow owner to withdraw no more than this amount of tokens
allowed[foundationReserve][owner] = availableReserve();
// Withdraw tokens from foundation reserve to owner address
require(transferFrom(foundationReserve, owner, amount));
}
}
Write Contract 20 functions
These functions modify contract state and require a wallet transaction to execute.
allowance 0xdd62ed3e
address _owner
address _spender
returns: uint256
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
availableReserve 0x5e9f9613
No parameters
returns: uint256
balanceOf 0x70a08231
address _owner
returns: uint256
confirmOwnership 0xd5d1e770
No parameters
creationTime 0xd8270dce
No parameters
returns: uint256
decimals 0x313ce567
No parameters
returns: uint8
distribute 0xfb932108
address investor
uint256 amount
foundationReserve 0x603066a4
No parameters
returns: address
icoAllocation 0x4dc59196
No parameters
returns: address
name 0x06fdde03
No parameters
returns: string
owner 0x8da5cb5b
No parameters
returns: address
potentialOwner 0x7762df25
No parameters
returns: address
setOwner 0x13af4035
address _new
symbol 0x95d89b41
No parameters
returns: string
totalSupply 0x18160ddd
No parameters
returns: uint256
transfer 0xa9059cbb
address _to
uint256 _value
returns: bool
transferERC20Token 0x56d7c2c8
address tokenAddress
returns: bool
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
withdrawFromReserve 0x0a8bcdb9
uint256 amount
Recent Transactions
No transactions found for this address