Feature Tip: Add private address tag to any address under My Name Tag !
Token migration announcement. FlowchainCoin token contract has migrated to a new address.
ERC-20
Old Contract
Overview
Max Total Supply
1,000,000,000 FLC
Holders
90 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
FlowchainToken
Compiler Version
v0.4.19+commit.c4cbbb05
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-02-02 */ pragma solidity ^0.4.18; /** * Copyright 2018, Flowchain.co * * The Flowchain tokens smart contract */ contract Mintable { function mintToken(address to, uint amount) external returns (bool success); function setupMintableAddress(address _mintable) public returns (bool success); } contract ApproveAndCallReceiver { function receiveApproval(address _from, uint256 _value, address _tokenContract, bytes _extraData); } contract Token { /// The total amount of tokens uint256 public totalSupply; /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) public view returns (uint256 balance); /// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transfer(address _to, uint256 _value) public returns (bool success); /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transferFrom(address _from, address _to, uint256 _value) public returns (bool success); /// @notice `msg.sender` approves `_addr` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of wei to be approved for transfer /// @return Whether the approval was successful or not function approve(address _spender, uint256 _value) public returns (bool success); /// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent function allowance(address _owner, address _spender) public view returns (uint256 remaining); event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); } contract StandardToken is Token { uint256 constant private MAX_UINT256 = 2**256 - 1; mapping (address => uint256) public balances; mapping (address => mapping (address => uint256)) public allowed; function transfer(address _to, uint256 _value) public returns (bool success) { require(balances[msg.sender] >= _value); // Not overflow require(balances[_to] + _value >= balances[_to]); balances[msg.sender] -= _value; balances[_to] += _value; Transfer(msg.sender, _to, _value); return true; } function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) { uint256 allowance = allowed[_from][msg.sender]; require(balances[_from] >= _value && allowance >= _value); // Not overflow require(balances[_to] + _value >= balances[_to]); balances[_to] += _value; balances[_from] -= _value; if (allowance < MAX_UINT256) { allowed[_from][msg.sender] -= _value; } Transfer(_from, _to, _value); return true; } function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; } function approve(address _spender, uint256 _value) public returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) public view returns (uint256 remaining) { return allowed[_owner][_spender]; } } //name this contract whatever you'd like contract FlowchainToken is StandardToken, Mintable { /* Public variables of the token */ string public name = "FlowchainCoin"; string public symbol = "FLC"; uint8 public decimals = 18; string public version = "1.0"; address public mintableAddress; address public multiSigWallet; address public creator; function() payable { revert(); } function FlowchainToken() public { // 1 billion tokens + 18 decimals totalSupply = 10**27; creator = msg.sender; mintableAddress = 0x9581973c54fce63d0f5c4c706020028af20ff723; multiSigWallet = 0x9581973c54fce63d0f5c4c706020028af20ff723; // Give the multisig wallet all initial tokens balances[multiSigWallet] = totalSupply; Transfer(0x0, multiSigWallet, totalSupply); } function setupMintableAddress(address _mintable) public returns (bool success) { require(msg.sender == creator); mintableAddress = _mintable; return true; } /// @dev Mint an amount of tokens and transfer to the backer /// @param to The address of the backer who will receive the tokens /// @param amount The amount of rewarded tokens /// @return The result of token transfer function mintToken(address to, uint256 amount) external returns (bool success) { require(msg.sender == mintableAddress); require(balances[multiSigWallet] >= amount); balances[multiSigWallet] -= amount; balances[to] += amount; Transfer(multiSigWallet, to, amount); return true; } /// @dev This function makes it easy to get the creator of the tokens /// @return The address of token creator function getCreator() constant returns (address) { return creator; } /// @dev This function makes it easy to get the mintableAddress /// @return The address of token creator function getMintableAddress() constant returns (address) { return mintableAddress; } /* Approves and then calls the receiving contract */ function approveAndCall(address _spender, uint256 _value, bytes _extraData) external returns (bool success) { allowed[msg.sender][_spender] = _value; Approval(msg.sender, _spender, _value); //call the receiveApproval function on the contract you want to be notified. This crafts the function signature manually so one doesn't have to include a contract in here just for this. ApproveAndCallReceiver(_spender).receiveApproval(msg.sender, _value, this, _extraData); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"creator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"getCreator","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"multiSigWallet","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"amount","type":"uint256"}],"name":"mintToken","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_mintable","type":"address"}],"name":"setupMintableAddress","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getMintableAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"mintableAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"}]
Contract Creation Code
606060405260408051908101604052600d81527f466c6f77636861696e436f696e000000000000000000000000000000000000006020820152600390805161004b92916020019061019e565b5060408051908101604052600381527f464c4300000000000000000000000000000000000000000000000000000000006020820152600490805161009392916020019061019e565b506005805460ff1916601217905560408051908101604052600381527f312e300000000000000000000000000000000000000000000000000000000000602082015260069080516100e892916020019061019e565b5034156100f457600080fd5b6b033b2e3c9fd0803ce8000000600081815560098054600160a060020a03338116600160a060020a031992831617909255600780548216739581973c54fce63d0f5c4c706020028af20ff723908117909155600880549092161780825582168352600160205260408084208590559054909116927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef915190815260200160405180910390a3610239565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101df57805160ff191683800117855561020c565b8280016001018555821561020c579182015b8281111561020c5782518255916020019190600101906101f1565b5061021892915061021c565b5090565b61023691905b808211156102185760008155600101610222565b90565b610afb806102486000396000f3006060604052600436106101115763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302d05d3f811461011657806306fdde0314610145578063095ea7b3146101cf5780630ee2cb101461020557806318160ddd1461021857806323b872dd1461023d57806327e235e314610265578063313ce567146102845780634b8feb4f146102ad57806354fd4d50146102c05780635c658165146102d357806370a08231146102f857806379c65068146103175780638d734b301461033957806395d89b41146103585780639646b85d1461036b578063a9059cbb1461037e578063cae9ca51146103a0578063dd62ed3e146103cf578063df4c2164146103f4575b600080fd5b341561012157600080fd5b610129610407565b604051600160a060020a03909116815260200160405180910390f35b341561015057600080fd5b610158610416565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561019457808201518382015260200161017c565b50505050905090810190601f1680156101c15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101da57600080fd5b6101f1600160a060020a03600435166024356104b4565b604051901515815260200160405180910390f35b341561021057600080fd5b610129610520565b341561022357600080fd5b61022b61052f565b60405190815260200160405180910390f35b341561024857600080fd5b6101f1600160a060020a0360043581169060243516604435610535565b341561027057600080fd5b61022b600160a060020a0360043516610662565b341561028f57600080fd5b610297610674565b60405160ff909116815260200160405180910390f35b34156102b857600080fd5b61012961067d565b34156102cb57600080fd5b61015861068c565b34156102de57600080fd5b61022b600160a060020a03600435811690602435166106f7565b341561030357600080fd5b61022b600160a060020a0360043516610714565b341561032257600080fd5b6101f1600160a060020a036004351660243561072f565b341561034457600080fd5b6101f1600160a060020a03600435166107ed565b341561036357600080fd5b61015861083d565b341561037657600080fd5b6101296108a8565b341561038957600080fd5b6101f1600160a060020a03600435166024356108b7565b34156103ab57600080fd5b6101f160048035600160a060020a0316906024803591604435918201910135610972565b34156103da57600080fd5b61022b600160a060020a0360043581169060243516610a95565b34156103ff57600080fd5b610129610ac0565b600954600160a060020a031681565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104ac5780601f10610481576101008083540402835291602001916104ac565b820191906000526020600020905b81548152906001019060200180831161048f57829003601f168201915b505050505081565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b600954600160a060020a031690565b60005481565b600160a060020a0380841660008181526002602090815260408083203390951683529381528382205492825260019052918220548390108015906105795750828110155b151561058457600080fd5b600160a060020a03841660009081526001602052604090205483810110156105ab57600080fd5b600160a060020a038085166000908152600160205260408082208054870190559187168152208054849003905560001981101561061057600160a060020a03808616600090815260026020908152604080832033909416835292905220805484900390555b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405190815260200160405180910390a3506001949350505050565b60016020526000908152604090205481565b60055460ff1681565b600854600160a060020a031681565b60068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104ac5780601f10610481576101008083540402835291602001916104ac565b600260209081526000928352604080842090915290825290205481565b600160a060020a031660009081526001602052604090205490565b60075460009033600160a060020a0390811691161461074d57600080fd5b600854600160a060020a03166000908152600160205260409020548290101561077557600080fd5b60088054600160a060020a039081166000908152600160205260408082208054879003905586831680835291819020805487019055925490929116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60095460009033600160a060020a0390811691161461080b57600080fd5b5060078054600160a060020a03831673ffffffffffffffffffffffffffffffffffffffff199091161790556001919050565b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104ac5780601f10610481576101008083540402835291602001916104ac565b600754600160a060020a031690565b600160a060020a033316600090815260016020526040812054829010156108dd57600080fd5b600160a060020a038316600090815260016020526040902054828101101561090457600080fd5b600160a060020a033381166000818152600160205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a03338116600081815260026020908152604080832094891680845294909152808220879055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259087905190815260200160405180910390a384600160a060020a0316638f4ffcb133863087876040517c010000000000000000000000000000000000000000000000000000000063ffffffff8816028152600160a060020a038087166004830190815260248301879052908516604483015260806064830190815260848301849052909160a40184848082843782019150509650505050505050600060405180830381600087803b1515610a7657600080fd5b6102c65a03f11515610a8757600080fd5b506001979650505050505050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600754600160a060020a0316815600a165627a7a72305820f00be67b4add3120b08f68c1b95e004ebfbd5b68c241c7806ce5fda0d08a468d0029
Deployed Bytecode
0x6060604052600436106101115763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302d05d3f811461011657806306fdde0314610145578063095ea7b3146101cf5780630ee2cb101461020557806318160ddd1461021857806323b872dd1461023d57806327e235e314610265578063313ce567146102845780634b8feb4f146102ad57806354fd4d50146102c05780635c658165146102d357806370a08231146102f857806379c65068146103175780638d734b301461033957806395d89b41146103585780639646b85d1461036b578063a9059cbb1461037e578063cae9ca51146103a0578063dd62ed3e146103cf578063df4c2164146103f4575b600080fd5b341561012157600080fd5b610129610407565b604051600160a060020a03909116815260200160405180910390f35b341561015057600080fd5b610158610416565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561019457808201518382015260200161017c565b50505050905090810190601f1680156101c15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101da57600080fd5b6101f1600160a060020a03600435166024356104b4565b604051901515815260200160405180910390f35b341561021057600080fd5b610129610520565b341561022357600080fd5b61022b61052f565b60405190815260200160405180910390f35b341561024857600080fd5b6101f1600160a060020a0360043581169060243516604435610535565b341561027057600080fd5b61022b600160a060020a0360043516610662565b341561028f57600080fd5b610297610674565b60405160ff909116815260200160405180910390f35b34156102b857600080fd5b61012961067d565b34156102cb57600080fd5b61015861068c565b34156102de57600080fd5b61022b600160a060020a03600435811690602435166106f7565b341561030357600080fd5b61022b600160a060020a0360043516610714565b341561032257600080fd5b6101f1600160a060020a036004351660243561072f565b341561034457600080fd5b6101f1600160a060020a03600435166107ed565b341561036357600080fd5b61015861083d565b341561037657600080fd5b6101296108a8565b341561038957600080fd5b6101f1600160a060020a03600435166024356108b7565b34156103ab57600080fd5b6101f160048035600160a060020a0316906024803591604435918201910135610972565b34156103da57600080fd5b61022b600160a060020a0360043581169060243516610a95565b34156103ff57600080fd5b610129610ac0565b600954600160a060020a031681565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104ac5780601f10610481576101008083540402835291602001916104ac565b820191906000526020600020905b81548152906001019060200180831161048f57829003601f168201915b505050505081565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b600954600160a060020a031690565b60005481565b600160a060020a0380841660008181526002602090815260408083203390951683529381528382205492825260019052918220548390108015906105795750828110155b151561058457600080fd5b600160a060020a03841660009081526001602052604090205483810110156105ab57600080fd5b600160a060020a038085166000908152600160205260408082208054870190559187168152208054849003905560001981101561061057600160a060020a03808616600090815260026020908152604080832033909416835292905220805484900390555b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8560405190815260200160405180910390a3506001949350505050565b60016020526000908152604090205481565b60055460ff1681565b600854600160a060020a031681565b60068054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104ac5780601f10610481576101008083540402835291602001916104ac565b600260209081526000928352604080842090915290825290205481565b600160a060020a031660009081526001602052604090205490565b60075460009033600160a060020a0390811691161461074d57600080fd5b600854600160a060020a03166000908152600160205260409020548290101561077557600080fd5b60088054600160a060020a039081166000908152600160205260408082208054879003905586831680835291819020805487019055925490929116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b60095460009033600160a060020a0390811691161461080b57600080fd5b5060078054600160a060020a03831673ffffffffffffffffffffffffffffffffffffffff199091161790556001919050565b60048054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104ac5780601f10610481576101008083540402835291602001916104ac565b600754600160a060020a031690565b600160a060020a033316600090815260016020526040812054829010156108dd57600080fd5b600160a060020a038316600090815260016020526040902054828101101561090457600080fd5b600160a060020a033381166000818152600160205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600160a060020a03338116600081815260026020908152604080832094891680845294909152808220879055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259087905190815260200160405180910390a384600160a060020a0316638f4ffcb133863087876040517c010000000000000000000000000000000000000000000000000000000063ffffffff8816028152600160a060020a038087166004830190815260248301879052908516604483015260806064830190815260848301849052909160a40184848082843782019150509650505050505050600060405180830381600087803b1515610a7657600080fd5b6102c65a03f11515610a8757600080fd5b506001979650505050505050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b600754600160a060020a0316815600a165627a7a72305820f00be67b4add3120b08f68c1b95e004ebfbd5b68c241c7806ce5fda0d08a468d0029
Swarm Source
bzzr://f00be67b4add3120b08f68c1b95e004ebfbd5b68c241c7806ce5fda0d08a468d
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.