ETH Price: $3,358.09 (-8.70%)

Token

Agri Block (AGBC)
 

Overview

Max Total Supply

968,000,000 AGBC

Holders

314

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
100 AGBC

Value
$0.00
0x33066935242497386917475b5a94b91e92a378d1
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:
AGBC

Compiler Version
v0.4.26+commit.4563c3fc

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2019-05-15
*/

pragma solidity ^0.4.26;

contract Token {

    /// @return total amount of tokens
    function totalSupply() constant returns (uint supply) {}

    /// @param _owner The address from which the balance will be retrieved
    /// @return The balance
    function balanceOf(address _owner) constant returns (uint 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, uint _value) 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, uint _value) 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, uint _value) 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) constant returns (uint remaining) {}

    event Transfer(address indexed _from, address indexed _to, uint _value);
    event Approval(address indexed _owner, address indexed _spender, uint _value);
}

contract RegularToken is Token {

    function transfer(address _to, uint _value) returns (bool) {
        //Default assumes totalSupply can't be over max (2^256 - 1).
        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; }
    }

    function transferFrom(address _from, address _to, uint _value) returns (bool) {
        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; }
    }

    function balanceOf(address _owner) constant returns (uint) {
        return balances[_owner];
    }

    function approve(address _spender, uint _value) returns (bool) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }

    function allowance(address _owner, address _spender) constant returns (uint) {
        return allowed[_owner][_spender];
    }

    mapping (address => uint) balances;
    mapping (address => mapping (address => uint)) allowed;
    uint public totalSupply;
}

contract UnboundedRegularToken is RegularToken {

    uint constant MAX_UINT = 2**256 - 1;
    
    /// @dev ERC20 transferFrom, modified such that an allowance of MAX_UINT represents an unlimited amount.
    /// @param _from Address to transfer from.
    /// @param _to Address to transfer to.
    /// @param _value Amount to transfer.
    /// @return Success of transfer.
    function transferFrom(address _from, address _to, uint _value)
        public
        returns (bool)
    {
        uint allowance = allowed[_from][msg.sender];
        if (balances[_from] >= _value
            && allowance >= _value
            && balances[_to] + _value >= balances[_to]
        ) {
            balances[_to] += _value;
            balances[_from] -= _value;
            if (allowance < MAX_UINT) {
                allowed[_from][msg.sender] -= _value;
            }
            Transfer(_from, _to, _value);
            return true;
        } else {
            return false;
        }
    }
}

contract AGBC is UnboundedRegularToken {

    uint public totalSupply = 9.68*10**26;
    uint8 constant public decimals = 18;
    string constant public name = "Agri Block";
    string constant public symbol = "AGBC";

    function AGBC() {
        balances[msg.sender] = totalSupply;
        Transfer(address(0), msg.sender, totalSupply);
    }
}

Contract Security Audit

Contract ABI

[{"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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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"}]

60806040526b0320b5f925f6e288c800000060035534801561002057600080fd5b5060035433600081815260208181526040808320859055805194855251929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a361058d8061007a6000396000f3006080604052600436106100985763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461009d578063095ea7b31461012757806318160ddd1461015f57806323b872dd14610186578063313ce567146101b057806370a08231146101db57806395d89b41146101fc578063a9059cbb14610211578063dd62ed3e14610235575b600080fd5b3480156100a957600080fd5b506100b261025c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100ec5781810151838201526020016100d4565b50505050905090810190601f1680156101195780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013357600080fd5b5061014b600160a060020a0360043516602435610293565b604080519115158252519081900360200190f35b34801561016b57600080fd5b506101746102fa565b60408051918252519081900360200190f35b34801561019257600080fd5b5061014b600160a060020a0360043581169060243516604435610300565b3480156101bc57600080fd5b506101c561042e565b6040805160ff9092168252519081900360200190f35b3480156101e757600080fd5b50610174600160a060020a0360043516610433565b34801561020857600080fd5b506100b261044e565b34801561021d57600080fd5b5061014b600160a060020a0360043516602435610485565b34801561024157600080fd5b50610174600160a060020a0360043581169060243516610536565b60408051808201909152600a81527f4167726920426c6f636b00000000000000000000000000000000000000000000602082015281565b336000818152600160209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60035481565b600160a060020a03831660008181526001602090815260408083203384528252808320549383529082905281205490919083118015906103405750828110155b80156103665750600160a060020a03841660009081526020819052604090205483810110155b1561042157600160a060020a03808516600090815260208190526040808220805487019055918716815220805484900390556000198110156103cd57600160a060020a03851660009081526001602090815260408083203384529091529020805484900390555b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a360019150610426565b600091505b509392505050565b601281565b600160a060020a031660009081526020819052604090205490565b60408051808201909152600481527f4147424300000000000000000000000000000000000000000000000000000000602082015281565b3360009081526020819052604081205482118015906104be5750600160a060020a03831660009081526020819052604090205482810110155b1561052e573360008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060016102f4565b5060006102f4565b600160a060020a039182166000908152600160209081526040808320939094168252919091522054905600a165627a7a7230582076348b9200ed1a254cb157b883f3468a259c2406c1ae174f54ffa4835f69595b0029

Deployed Bytecode

0x6080604052600436106100985763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461009d578063095ea7b31461012757806318160ddd1461015f57806323b872dd14610186578063313ce567146101b057806370a08231146101db57806395d89b41146101fc578063a9059cbb14610211578063dd62ed3e14610235575b600080fd5b3480156100a957600080fd5b506100b261025c565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100ec5781810151838201526020016100d4565b50505050905090810190601f1680156101195780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013357600080fd5b5061014b600160a060020a0360043516602435610293565b604080519115158252519081900360200190f35b34801561016b57600080fd5b506101746102fa565b60408051918252519081900360200190f35b34801561019257600080fd5b5061014b600160a060020a0360043581169060243516604435610300565b3480156101bc57600080fd5b506101c561042e565b6040805160ff9092168252519081900360200190f35b3480156101e757600080fd5b50610174600160a060020a0360043516610433565b34801561020857600080fd5b506100b261044e565b34801561021d57600080fd5b5061014b600160a060020a0360043516602435610485565b34801561024157600080fd5b50610174600160a060020a0360043581169060243516610536565b60408051808201909152600a81527f4167726920426c6f636b00000000000000000000000000000000000000000000602082015281565b336000818152600160209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b60035481565b600160a060020a03831660008181526001602090815260408083203384528252808320549383529082905281205490919083118015906103405750828110155b80156103665750600160a060020a03841660009081526020819052604090205483810110155b1561042157600160a060020a03808516600090815260208190526040808220805487019055918716815220805484900390556000198110156103cd57600160a060020a03851660009081526001602090815260408083203384529091529020805484900390555b83600160a060020a031685600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a360019150610426565b600091505b509392505050565b601281565b600160a060020a031660009081526020819052604090205490565b60408051808201909152600481527f4147424300000000000000000000000000000000000000000000000000000000602082015281565b3360009081526020819052604081205482118015906104be5750600160a060020a03831660009081526020819052604090205482810110155b1561052e573360008181526020818152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060016102f4565b5060006102f4565b600160a060020a039182166000908152600160209081526040808320939094168252919091522054905600a165627a7a7230582076348b9200ed1a254cb157b883f3468a259c2406c1ae174f54ffa4835f69595b0029

Deployed Bytecode Sourcemap

4408:358:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4542:42;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4542:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;4542:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2918:191;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2918:191:0;-1:-1:-1;;;;;2918:191:0;;;;;;;;;;;;;;;;;;;;;;;;;4456:37;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4456:37:0;;;;;;;;;;;;;;;;;;;;3773:628;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3773:628:0;-1:-1:-1;;;;;3773:628:0;;;;;;;;;;;;4500:35;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4500:35:0;;;;;;;;;;;;;;;;;;;;;;;2809:101;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2809:101:0;-1:-1:-1;;;;;2809:101:0;;;;;4591:38;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4591:38:0;;;;1932:418;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1932:418:0;-1:-1:-1;;;;;1932:418:0;;;;;;;3117:128;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3117:128:0;-1:-1:-1;;;;;3117:128:0;;;;;;;;;;4542:42;;;;;;;;;;;;;;;;;;;:::o;2918:191::-;3000:10;2975:4;2992:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2992:29:0;;;;;;;;;;;:38;;;3041;;;;;;;2975:4;;2992:29;;3000:10;;3041:38;;;;;;;;-1:-1:-1;3097:4:0;2918:191;;;;;:::o;4456:37::-;;;;:::o;3773:628::-;-1:-1:-1;;;;;3909:14:0;;3870:4;3909:14;;;:7;:14;;;;;;;;3924:10;3909:26;;;;;;;;3950:15;;;;;;;;;;3870:4;;3909:26;3950:25;-1:-1:-1;3950:25:0;;;:61;;;4005:6;3992:9;:19;;3950:61;:117;;;;-1:-1:-1;;;;;;4054:13:0;;:8;:13;;;;;;;;;;;4028:22;;;:39;;3950:117;3946:448;;;-1:-1:-1;;;;;4094:13:0;;;:8;:13;;;;;;;;;;;:23;;;;;;4132:15;;;;;;:25;;;;;;;-1:-1:-1;;4176:20:0;;4172:97;;;-1:-1:-1;;;;;4217:14:0;;;;;;:7;:14;;;;;;;;4232:10;4217:26;;;;;;;:36;;;;;;;4172:97;4299:3;-1:-1:-1;;;;;4283:28:0;4292:5;-1:-1:-1;;;;;4283:28:0;;4304:6;4283:28;;;;;;;;;;;;;;;;;;4333:4;4326:11;;;;3946:448;4377:5;4370:12;;3946:448;3773:628;;;;;;:::o;4500:35::-;4533:2;4500:35;:::o;2809:101::-;-1:-1:-1;;;;;2886:16:0;2862:4;2886:16;;;;;;;;;;;;2809:101::o;4591:38::-;;;;;;;;;;;;;;;;;;;:::o;1932:418::-;2085:10;1985:4;2076:20;;;;;;;;;;;:30;-1:-1:-1;2076:30:0;;;:73;;-1:-1:-1;;;;;;2136:13:0;;:8;:13;;;;;;;;;;;2110:22;;;:39;;2076:73;2072:271;;;2175:10;2166:8;:20;;;;;;;;;;;:30;;;;;;;-1:-1:-1;;;;;2211:13:0;;;;;;;;;:23;;;;;;2249:33;;;;;;;2211:13;;2175:10;2249:33;;;;;;;;;;;-1:-1:-1;2304:4:0;2297:11;;2072:271;-1:-1:-1;2335:5:0;2328:12;;3117:128;-1:-1:-1;;;;;3212:15:0;;;3188:4;3212:15;;;:7;:15;;;;;;;;:25;;;;;;;;;;;;;3117:128::o

Swarm Source

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