Address Contract Partially Verified
Address
0x0944393ABCFc9879cEdc19E070C056F70703f9b8
Balance
0.030533 ETH ($59.96)
Nonce
1
Code Size
7851 bytes
Creator
0x68eD6895...83C4 at tx 0xed95a217...e8ac20
Indexed Transactions
Index loading...
Contract Bytecode
7851 bytes
0x608060405260043610610112576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806305fefda71461011457806306fdde031461014b578063095ea7b3146101db57806318160ddd1461024057806323b872dd1461026b57806327e235e3146102f0578063313ce567146103475780634b7503341461037857806366188463146103a357806370a08231146104085780638620410b1461045f5780638da5cb5b1461048a57806395d89b41146104e1578063a6f2ae3a14610571578063bec3fa171461057b578063cbcdc2e4146105c8578063d73dd623146105f5578063dd62ed3e1461065a578063e4849b32146106d1578063f2fde38b146106fe575b005b34801561012057600080fd5b506101496004803603810190808035906020019092919080359060200190929190505050610741565b005b34801561015757600080fd5b506101606107af565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101a0578082015181840152602081019050610185565b50505050905090810190601f1680156101cd5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101e757600080fd5b50610226600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506107e8565b604051808215151515815260200191505060405180910390f35b34801561024c57600080fd5b506102556108da565b6040518082815260200191505060405180910390f35b34801561027757600080fd5b506102d6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506108e0565b604051808215151515815260200191505060405180910390f35b3480156102fc57600080fd5b50610331600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ea4565b6040518082815260200191505060405180910390f35b34801561035357600080fd5b5061035c610ebc565b604051808260ff1660ff16815260200191505060405180910390f35b34801561038457600080fd5b5061038d610ec1565b6040518082815260200191505060405180910390f35b3480156103af57600080fd5b506103ee600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610ec7565b604051808215151515815260200191505060405180910390f35b34801561041457600080fd5b50610449600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611158565b6040518082815260200191505060405180910390f35b34801561046b57600080fd5b506104746111a1565b6040518082815260200191505060405180910390f35b34801561049657600080fd5b5061049f6111a7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104ed57600080fd5b506104f66111cd565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561053657808201518184015260208101905061051b565b50505050905090810190601f1680156105635780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610579611206565b005b34801561058757600080fd5b506105c6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611261565b005b3480156105d457600080fd5b506105f360048036038101908080359060200190929190505050611474565b005b34801561060157600080fd5b50610640600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611562565b604051808215151515815260200191505060405180910390f35b34801561066657600080fd5b506106bb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061175e565b6040518082815260200191505060405180910390f35b3480156106dd57600080fd5b506106fc600480360381019080803590602001909291905050506117e5565b005b34801561070a57600080fd5b5061073f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611a21565b005b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561079d57600080fd5b81600481905550806005819055505050565b6040805190810160405280600881526020017f34417274436f696e00000000000000000000000000000000000000000000000081525081565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60005481565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561094c57635b678f804211151561094b57600080fd5b5b8184600660008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610a1957635c007d80421115156109b257600080fd5b635c007d80421180156109c85750635d8ea28042105b156109e5576109e3826a147904303e4ff950c0000083611b79565b505b635d8ea280421180156109fb5750635f71278042105b15610a1857610a16826a0b5facfe5b81c365c0000083611b79565b505b5b600760008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610ae457635c007d8042111515610a7d57600080fd5b635c007d8042118015610a935750635d8ea28042105b15610ab057610aae826a1b6bc919d43c9232c0000083611b79565b505b635d8ea28042118015610ac65750635f71278042105b15610ae357610ae1826a135b248ab3ee855100000083611b79565b505b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614151515610b2057600080fd5b600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548411151515610b6e57600080fd5b600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548411151515610bf957600080fd5b610c4b84600160008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611beb90919063ffffffff16565b600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610ce084600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c0790919063ffffffff16565b600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610db284600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611beb90919063ffffffff16565b600260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef866040518082815260200191505060405180910390a36001925050509392505050565b60016020528060005260406000206000915090505481565b601281565b60045481565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905080831115610fd8576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061106c565b610feb8382611beb90919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60055481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6040805190810160405280600481526020017f344172740000000000000000000000000000000000000000000000000000000081525081565b6000635c007d804211151561121a57600080fd5b61122f60055434611c2890919063ffffffff16565b905061125e600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff163383611c43565b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112cb57635b678f80421115156112ca57600080fd5b5b8033600660008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561139857635c007d804211151561133157600080fd5b635c007d80421180156113475750635d8ea28042105b1561136457611362826a147904303e4ff950c0000083611b79565b505b635d8ea2804211801561137a5750635f71278042105b1561139757611395826a0b5facfe5b81c365c0000083611b79565b505b5b600760008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561146357635c007d80421115156113fc57600080fd5b635c007d80421180156114125750635d8ea28042105b1561142f5761142d826a1b6bc919d43c9232c0000083611b79565b505b635d8ea280421180156114455750635f71278042105b1561146257611460826a135b248ab3ee855100000083611b79565b505b5b61146e338585611c43565b50505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156114d057600080fd5b3073ffffffffffffffffffffffffffffffffffffffff163181111515156114f657600080fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561155e573d6000803e3d6000fd5b5050565b60006115f382600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611c0790919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000635c007d80421115156117f957600080fd5b60008211151561180857600080fd5b81600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020541015151561185657600080fd5b61186b60045483611e4990919063ffffffff16565b9050803073ffffffffffffffffffffffffffffffffffffffff16311015151561189357600080fd5b81600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055508160016000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a33373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611a1c573d6000803e3d6000fd5b505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515611a7d57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515611ab957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080611bce85600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611beb90919063ffffffff16565b9050838110151515611bdf57600080fd5b60019150509392505050565b6000828211151515611bfc57600080fd5b818303905092915050565b6000808284019050838110151515611c1e57600080fd5b8091505092915050565b6000808284811515611c3657fe5b0490508091505092915050565b60008273ffffffffffffffffffffffffffffffffffffffff1614151515611c6957600080fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410151515611cb757600080fd5b600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205401111515611d4557600080fd5b80600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254039250508190555080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b60008082840290506000841480611e6a5750828482811515611e6757fe5b04145b1515611e7557600080fd5b80915050929150505600a165627a7a72305820589cbe09d15e37f5956401b842e419346a9e44cbad419365e58a7c51b32b454c0029
Verified Source Code Partial Match
Compiler: v0.4.24+commit.e67f0147
EVM: byzantium
Optimization: No
FourArt.sol 346 lines
/**
* 4art ERC20 StandardToken
* Author: scalify.it
* */
pragma solidity ^0.4.24;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
require(a == 0 || c / a == b);
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a);
return a - b;
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
}
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
contract ERC20Basic {
uint256 public totalSupply;
function balanceOf(address who) public view returns (uint256);
event Transfer(address indexed from, address indexed to, uint256 value);
event DelegatedTransfer(address indexed from, address indexed to, address indexed delegate, uint256 value, uint256 fee);
}
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/
contract BasicToken is ERC20Basic {
using SafeMath for uint256;
mapping(address => uint256) public balances;
/**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
* @return An uint256 representing the amount owned by the passed address.
*/
function balanceOf(address _owner) public view returns (uint256 balance) {
return balances[_owner];
}
}
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) public view returns (uint256);
function transferFrom(address from, address to, uint256 value) public returns (bool);
function approve(address spender, uint256 value) public returns (bool);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
/**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/
contract StandardToken is ERC20, BasicToken {
mapping (address => mapping (address => uint256)) internal allowed;
/**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
*
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
* @param _spender The address which will spend the funds.
* @param _value The amount of tokens to be spent.
*/
function approve(address _spender, uint256 _value) public returns (bool) {
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
/**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/
function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
return allowed[_owner][_spender];
}
/**
* approve should be called when allowed[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
*/
function increaseApproval (address _spender, uint _addedValue) public returns (bool success) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
function decreaseApproval (address _spender, uint _subtractedValue) public returns (bool success) {
uint oldValue = allowed[msg.sender][_spender];
if (_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
}
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
}
contract Owned {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function Owned() public {
owner = msg.sender;
}
/**
* @dev Allows the current owner to transfer control of the contract to a newOwner.
* @param newOwner The address to transfer ownership to.
*/
function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
}
}
contract FourArt is StandardToken, Owned {
string public constant name = "4ArtCoin";
string public constant symbol = "4Art";
uint8 public constant decimals = 18;
uint256 public sellPrice = 0; // eth
uint256 public buyPrice = 0; // eth
mapping (address => bool) private SubFounders;
mapping (address => bool) private TeamAdviserPartner;
//FounderAddress1 is main founder
address private FounderAddress1;
address private FounderAddress2;
address private FounderAddress3;
address private FounderAddress4;
address private FounderAddress5;
address private teamAddress;
address private adviserAddress;
address private partnershipAddress;
address private bountyAddress;
address private affiliateAddress;
address private miscAddress;
function FourArt(
address _founderAddress1,
address _founderAddress2,
address _founderAddress3,
address _founderAddress4,
address _founderAddress5,
address _teamAddress,
address _adviserAddress,
address _partnershipAddress,
address _bountyAddress,
address _affiliateAddress,
address _miscAddress
) {
totalSupply = 6500000000e18;
//assign initial tokens for sale to contracter
balances[msg.sender] = 4354000000e18;
FounderAddress1 = _founderAddress1;
FounderAddress2 = _founderAddress2;
FounderAddress3 = _founderAddress3;
FounderAddress4 = _founderAddress4;
FounderAddress5 = _founderAddress5;
teamAddress = _teamAddress;
adviserAddress = _adviserAddress;
partnershipAddress = _partnershipAddress;
bountyAddress = _bountyAddress;
affiliateAddress = _affiliateAddress;
miscAddress = _miscAddress;
//Assign tokens to the addresses at contract deployment
balances[FounderAddress1] = 1390000000e18;
balances[FounderAddress2] = 27500000e18;
balances[FounderAddress3] = 27500000e18;
balances[FounderAddress4] = 27500000e18;
balances[FounderAddress5] = 27500000e18;
balances[teamAddress] = 39000000e18;
balances[adviserAddress] = 39000000e18;
balances[partnershipAddress] = 39000000e18;
balances[bountyAddress] = 65000000e18;
balances[affiliateAddress] = 364000000e18;
balances[miscAddress] = 100000000e18;
//checks for tokens transfer
SubFounders[FounderAddress2] = true;
SubFounders[FounderAddress3] = true;
SubFounders[FounderAddress4] = true;
SubFounders[FounderAddress5] = true;
TeamAdviserPartner[teamAddress] = true;
TeamAdviserPartner[adviserAddress] = true;
TeamAdviserPartner[partnershipAddress] = true;
}
// desposit funds to smart contract
function () public payable {
}
// Set buy and sell price of 1 token in eth.
function setPrices(uint256 newSellPrice, uint256 newBuyPrice) onlyOwner public {
sellPrice = newSellPrice;
buyPrice = newBuyPrice;
}
// @notice Buy tokens from contract by sending ether
function buy() payable public {
require(now > 1543536000); // seconds since 01.01.1970 to 30.11.2018 (18:00:00 o'clock GMT)
uint amount = msg.value.div(buyPrice); // calculates the amount
_transfer(owner, msg.sender, amount); // makes the transfers
}
// @notice Sell `amount` tokens to contract
function sell(uint256 amount) public {
require(now > 1543536000); // seconds since 01.01.1970 to 30.11.2018 (18:00:00 o'clock GMT)
require(amount > 0);
require(balances[msg.sender] >= amount);
uint256 requiredBalance = amount.mul(sellPrice);
require(this.balance >= requiredBalance); // checks if the contract has enough ether to pay
balances[msg.sender] -= amount;
balances[owner] += amount;
Transfer(msg.sender, owner, amount);
msg.sender.transfer(requiredBalance); // sends ether to the seller.
}
function _transfer(address _from, address _to, uint _value) internal {
// Prevent transfer to 0x0 address. Use burn() instead
require(_to != 0x0);
// Check if the sender has enough
require(balances[_from] >= _value);
// Check for overflows
require(balances[_to] + _value > balances[_to]);
// Subtract from the sender
balances[_from] -= _value;
// Add the same to the recipient
balances[_to] += _value;
Transfer(_from, _to, _value);
}
// @dev if owner wants to transfer contract ether balance to own account.
function transferBalanceToOwner(uint256 _value) public onlyOwner {
require(_value <= this.balance);
owner.transfer(_value);
}
// @dev if someone wants to transfer tokens to other account.
function transferTokens(address _to, uint256 _tokens) lockTokenTransferBeforeStage4 TeamTransferConditions(_tokens, msg.sender) public {
_transfer(msg.sender, _to, _tokens);
}
// @dev Transfer tokens from one address to another
function transferFrom(address _from, address _to, uint256 _value) lockTokenTransferBeforeStage4 TeamTransferConditions(_value, _from) public returns (bool) {
require(_to != address(0));
require(_value <= balances[_from]);
require(_value <= allowed[_from][msg.sender]);
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
Transfer(_from, _to, _value);
return true;
}
modifier lockTokenTransferBeforeStage4{
if(msg.sender != owner){
require(now > 1533513600); // Locking till stage 4 starting date (ICO).
}
_;
}
modifier TeamTransferConditions(uint256 _tokens, address _address) {
if(SubFounders[_address]){
require(now > 1543536000);
if(now > 1543536000 && now < 1569628800){
//90% lock of total 27500000e18
isLocked(_tokens, 24750000e18, _address);
}
if(now > 1569628800 && now < 1601251200){
//50% lock of total 27500000e18
isLocked(_tokens, 13750000e18, _address);
}
}
if(TeamAdviserPartner[_address]){
require(now > 1543536000);
if(now > 1543536000 && now < 1569628800){
//85% lock of total 39000000e18
isLocked(_tokens, 33150000e18, _address);
}
if(now > 1569628800 && now < 1601251200){
//60% lock of total 39000000e18
isLocked(_tokens, 23400000e18, _address);
}
}
_;
}
// @dev if someone wants to transfer tokens to other account.
function isLocked(uint256 _value,uint256 remainingTokens, address _address) internal returns (bool) {
uint256 remainingBalance = balances[_address].sub(_value);
require(remainingBalance >= remainingTokens);
return true;
}
}
Read Contract
allowance 0xdd62ed3e → uint256
balanceOf 0x70a08231 → uint256
balances 0x27e235e3 → uint256
buyPrice 0x8620410b → uint256
decimals 0x313ce567 → uint8
name 0x06fdde03 → string
owner 0x8da5cb5b → address
sellPrice 0x4b750334 → uint256
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 10 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
buy 0xa6f2ae3a
No parameters
decreaseApproval 0x66188463
address _spender
uint256 _subtractedValue
returns: bool
increaseApproval 0xd73dd623
address _spender
uint256 _addedValue
returns: bool
sell 0xe4849b32
uint256 amount
setPrices 0x05fefda7
uint256 newSellPrice
uint256 newBuyPrice
transferBalanceToOwner 0xcbcdc2e4
uint256 _value
transferFrom 0x23b872dd
address _from
address _to
uint256 _value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
transferTokens 0xbec3fa17
address _to
uint256 _tokens
Recent Transactions
Transaction index is loading. Only unfinalized transactions are shown while the index starts up.