ETH Price: $3,121.35 (-0.40%)

Token

Farm Per Hour (FPH)
 

Overview

Max Total Supply

21 FPH

Holders

9

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Filtered by Token Holder
azima.eth
Balance
0.154939234891707893 FPH

Value
$0.00
0x9d156bc7c8768294510A4A41883d5A4EB15b15E3
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
FarmPerHour

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2020-10-03
*/

pragma solidity >=0.4.22 <0.6.0;

contract ERC20 {
    function totalSupply() public view returns (uint supply);
    function balanceOf(address who) public view returns (uint value);
    function allowance(address owner, address spender) public view returns (uint remaining);
    function transferFrom(address from, address to, uint value) public returns (bool ok);
    function approve(address spender, uint value) public returns (bool ok);
    function transfer(address to, uint value) public returns (bool ok);
    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
}

contract FarmPerHour is ERC20{
    uint8 public constant decimals = 18;
    uint256 initialSupply = 21*10**uint256(decimals);
    string public constant name = "Farm Per Hour";
    string public constant symbol = "FPH";

    address payable teamAddress;

    function totalSupply() public view returns (uint256) {
        return initialSupply;
    }
    mapping (address => uint256) balances;
    mapping (address => mapping (address => uint256)) allowed;
    
    function balanceOf(address owner) public view returns (uint256 balance) {
        return balances[owner];
    }

    function allowance(address owner, address spender) public view returns (uint remaining) {
        return allowed[owner][spender];
    }

    function transfer(address to, uint256 value) public returns (bool success) {
        if (balances[msg.sender] >= value && value > 0) {
            balances[msg.sender] -= value;
            balances[to] += value;
            emit Transfer(msg.sender, to, value);
            return true;
        } else {
            return false;
        }
    }

    function transferFrom(address from, address to, uint256 value) public returns (bool success) {
        if (balances[from] >= value && allowed[from][msg.sender] >= value && value > 0) {
            balances[to] += value;
            balances[from] -= value;
            allowed[from][msg.sender] -= value;
            emit Transfer(from, to, value);
            return true;
        } else {
            return false;
        }
    }

    function approve(address spender, uint256 value) public returns (bool success) {
        allowed[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }
    
     function () external payable {
        teamAddress.transfer(msg.value);
    }

    constructor () public payable {
        teamAddress = msg.sender;
        balances[teamAddress] = initialSupply;
    }

   
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":true,"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060409081526801236efcbcbb3400006000818155600180546001600160a01b0319163317908190556001600160a01b03168152600260205291909120556105a58061004d6000396000f3fe6080604052600436106100865760003560e01c8063313ce56711610059578063313ce5671461020357806370a082311461022e57806395d89b4114610261578063a9059cbb14610276578063dd62ed3e146102af57610086565b806306fdde03146100c2578063095ea7b31461014c57806318160ddd1461019957806323b872dd146101c0575b6001546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156100bf573d6000803e3d6000fd5b50005b3480156100ce57600080fd5b506100d76102ea565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101115781810151838201526020016100f9565b50505050905090810190601f16801561013e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015857600080fd5b506101856004803603604081101561016f57600080fd5b506001600160a01b038135169060200135610313565b604080519115158252519081900360200190f35b3480156101a557600080fd5b506101ae61037a565b60408051918252519081900360200190f35b3480156101cc57600080fd5b50610185600480360360608110156101e357600080fd5b506001600160a01b03813581169160208101359091169060400135610380565b34801561020f57600080fd5b5061021861046d565b6040805160ff9092168252519081900360200190f35b34801561023a57600080fd5b506101ae6004803603602081101561025157600080fd5b50356001600160a01b0316610472565b34801561026d57600080fd5b506100d761048d565b34801561028257600080fd5b506101856004803603604081101561029957600080fd5b506001600160a01b0381351690602001356104ac565b3480156102bb57600080fd5b506101ae600480360360408110156102d257600080fd5b506001600160a01b0381358116916020013516610545565b6040518060400160405280600d81526020016c2330b936902832b9102437bab960991b81525081565b3360008181526003602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005490565b6001600160a01b03831660009081526002602052604081205482118015906103cb57506001600160a01b03841660009081526003602090815260408083203384529091529020548211155b80156103d75750600082115b15610462576001600160a01b03808416600081815260026020908152604080832080548801905593881680835284832080548890039055600382528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001610466565b5060005b9392505050565b601281565b6001600160a01b031660009081526002602052604090205490565b6040518060400160405280600381526020016208ca0960eb1b81525081565b3360009081526002602052604081205482118015906104cb5750600082115b1561053d57336000818152600260209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610374565b506000610374565b6001600160a01b0391821660009081526003602090815260408083209390941682529190915220549056fea265627a7a72315820c5a5c2e2abb54ed029bfdf7ed13c13b37b1af71ced61acd7f31f842d39028ef664736f6c63430005110032

Deployed Bytecode

0x6080604052600436106100865760003560e01c8063313ce56711610059578063313ce5671461020357806370a082311461022e57806395d89b4114610261578063a9059cbb14610276578063dd62ed3e146102af57610086565b806306fdde03146100c2578063095ea7b31461014c57806318160ddd1461019957806323b872dd146101c0575b6001546040516001600160a01b03909116903480156108fc02916000818181858888f193505050501580156100bf573d6000803e3d6000fd5b50005b3480156100ce57600080fd5b506100d76102ea565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101115781810151838201526020016100f9565b50505050905090810190601f16801561013e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015857600080fd5b506101856004803603604081101561016f57600080fd5b506001600160a01b038135169060200135610313565b604080519115158252519081900360200190f35b3480156101a557600080fd5b506101ae61037a565b60408051918252519081900360200190f35b3480156101cc57600080fd5b50610185600480360360608110156101e357600080fd5b506001600160a01b03813581169160208101359091169060400135610380565b34801561020f57600080fd5b5061021861046d565b6040805160ff9092168252519081900360200190f35b34801561023a57600080fd5b506101ae6004803603602081101561025157600080fd5b50356001600160a01b0316610472565b34801561026d57600080fd5b506100d761048d565b34801561028257600080fd5b506101856004803603604081101561029957600080fd5b506001600160a01b0381351690602001356104ac565b3480156102bb57600080fd5b506101ae600480360360408110156102d257600080fd5b506001600160a01b0381358116916020013516610545565b6040518060400160405280600d81526020016c2330b936902832b9102437bab960991b81525081565b3360008181526003602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60005490565b6001600160a01b03831660009081526002602052604081205482118015906103cb57506001600160a01b03841660009081526003602090815260408083203384529091529020548211155b80156103d75750600082115b15610462576001600160a01b03808416600081815260026020908152604080832080548801905593881680835284832080548890039055600382528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a3506001610466565b5060005b9392505050565b601281565b6001600160a01b031660009081526002602052604090205490565b6040518060400160405280600381526020016208ca0960eb1b81525081565b3360009081526002602052604081205482118015906104cb5750600082115b1561053d57336000818152600260209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610374565b506000610374565b6001600160a01b0391821660009081526003602090815260408083209390941682529190915220549056fea265627a7a72315820c5a5c2e2abb54ed029bfdf7ed13c13b37b1af71ced61acd7f31f842d39028ef664736f6c63430005110032

Deployed Bytecode Sourcemap

684:1997:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2503:11;;:31;;-1:-1:-1;;;;;2503:11:0;;;;2524:9;2503:31;;;;;:11;:31;:11;:31;2524:9;2503:11;:31;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2503:31:0;684:1997;817:45;;8:9:-1;5:2;;;30:1;27;20:12;5:2;817:45:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;817:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2242:208;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2242:208:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2242:208:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;951:92;;8:9:-1;5:2;;;30:1;27;20:12;5:2;951:92:0;;;:::i;:::-;;;;;;;;;;;;;;;;1792:442;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1792:442:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1792:442:0;;;;;;;;;;;;;;;;;:::i;720:35::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;720:35:0;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1163:113;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1163:113:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1163:113:0;-1:-1:-1;;;;;1163:113:0;;:::i;869:37::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;869:37:0;;;:::i;1429:355::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1429:355:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1429:355:0;;;;;;;;:::i;1284:137::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1284:137:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1284:137:0;;;;;;;;;;:::i;817:45::-;;;;;;;;;;;;;;-1:-1:-1;;;817:45:0;;;;:::o;2242:208::-;2340:10;2307:12;2332:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2332:28:0;;;;;;;;;;;:36;;;2384;;;;;;;2307:12;;2332:28;;2340:10;;2384:36;;;;;;;;-1:-1:-1;2438:4:0;2242:208;;;;;:::o;951:92::-;995:7;1022:13;951:92;:::o;1792:442::-;-1:-1:-1;;;;;1900:14:0;;1871:12;1900:14;;;:8;:14;;;;;;:23;-1:-1:-1;1900:23:0;;;:61;;-1:-1:-1;;;;;;1927:13:0;;;;;;:7;:13;;;;;;;;1941:10;1927:25;;;;;;;;:34;-1:-1:-1;1927:34:0;1900:61;:74;;;;;1973:1;1965:5;:9;1900:74;1896:331;;;-1:-1:-1;;;;;1991:12:0;;;;;;;:8;:12;;;;;;;;:21;;;;;;2027:14;;;;;;;;;:23;;;;;;;2065:7;:13;;;;;2079:10;2065:25;;;;;;;;:34;;;;;;;2119:25;;;;;;;1991:12;;2027:14;;2119:25;;;;;;;;;;-1:-1:-1;2166:4:0;2159:11;;1896:331;-1:-1:-1;2210:5:0;1896:331;1792:442;;;;;:::o;720:35::-;753:2;720:35;:::o;1163:113::-;-1:-1:-1;;;;;1253:15:0;1218;1253;;;:8;:15;;;;;;;1163:113::o;869:37::-;;;;;;;;;;;;;;-1:-1:-1;;;869:37:0;;;;:::o;1429:355::-;1528:10;1490:12;1519:20;;;:8;:20;;;;;;:29;-1:-1:-1;1519:29:0;;;:42;;;1560:1;1552:5;:9;1519:42;1515:262;;;1587:10;1578:20;;;;:8;:20;;;;;;;;:29;;;;;;;-1:-1:-1;;;;;1622:12:0;;;;;;;;;:21;;;;;;1663:31;;;;;;;1622:12;;1587:10;1663:31;;;;;;;;;;;-1:-1:-1;1716:4:0;1709:11;;1515:262;-1:-1:-1;1760:5:0;1753:12;;1284:137;-1:-1:-1;;;;;1390:14:0;;;1356;1390;;;:7;:14;;;;;;;;:23;;;;;;;;;;;;;1284:137::o

Swarm Source

bzzr://c5a5c2e2abb54ed029bfdf7ed13c13b37b1af71ced61acd7f31f842d39028ef6
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.