Token USDA

 

Overview [ERC-20]

Max Total Supply:
1,000,000,000 USDA

Holders:
1,855 (0.00%)

Transfers:
-

 
Loading
[ Download CSV Export  ] 
Loading
[ Download CSV Export  ] 
Loading

OVERVIEW

USDA is a traditional economic and encrypted currency exchange platform based on Block Chain Technology 3.0 issued by APDB for the natural economic regions of Asia-Pacific and its surrounding regions.

Market

Volume (24H):$0.00
Market Capitalization:$0.00
Circulating Supply:0.00 USDA
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
USDA

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2019-09-24
*/

/**
 *Submitted for verification at Etherscan.io on 2019-03-11
*/

pragma solidity ^0.4.16;

contract owned {
    address public owner;

    constructor() public {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    function transferOwnership(address newOwner) public onlyOwner {
        owner = newOwner;
    }
}

library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }
    uint256 c = a * b;
    assert(c / a == b);
    return c;
  }

  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a / b;
    return c;
  }

  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}


contract USDA is owned{
    
    using SafeMath for uint256;
    
    string public name;
    string public symbol;
    uint8 public decimals = 8;  
    uint256 public totalSupply;

    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;
    
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
    event Lock(address indexed ac, uint256 value, uint256 time);
    event Burn(uint256 amount);
    
    constructor() public {
        totalSupply = 100000 * 10 ** uint256(decimals);  
        balanceOf[msg.sender] = totalSupply;                
        name = "USDA";                                   
        symbol = "USDA";                               
    }

    function _transfer(address _from, address _to, uint _value) internal {
        require(balanceOf[_from] >= _value);
        require(balanceOf[_to].add(_value) > balanceOf[_to]);
        balanceOf[_from] = balanceOf[_from].sub(_value);
        balanceOf[_to] = balanceOf[_to].add(_value);
        emit Transfer(_from, _to, _value);
    }

    function transfer(address _to, uint256 _value) public returns (bool){
        _transfer(msg.sender, _to, _value);
        return true;
    }

    function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
        require(_value <= allowance[_from][msg.sender]);     
        allowance[_from][msg.sender] = allowance[_from][msg.sender].sub(_value);
        _transfer(_from, _to, _value);
        return true;
    }

    function approve(address _spender, uint256 _value) public returns (bool) {
        require(balanceOf[msg.sender] >= _value);
        allowance[msg.sender][_spender] = _value;
        emit Approval(msg.sender,_spender,_value);
        return true;
    }
    
    function mintToken(uint256 mintedAmount) external onlyOwner {
        require(totalSupply + mintedAmount > totalSupply);
        require(balanceOf[owner] + mintedAmount > balanceOf[owner]);
        balanceOf[owner] += mintedAmount;
        totalSupply += mintedAmount;
        emit Transfer(address(0), owner, mintedAmount);
    }
    
    function burn (uint256 amount) external onlyOwner {
        require(balanceOf[msg.sender] >= amount);
        require(totalSupply >= amount);
        totalSupply -= amount;
        balanceOf[msg.sender] -= amount;
        emit Burn(amount);
    }

}

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":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"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":false,"inputs":[{"name":"mintedAmount","type":"uint256"}],"name":"mintToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"tokenOwner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"ac","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"time","type":"uint256"}],"name":"Lock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"}],"name":"Burn","type":"event"}]

60806040526003805460ff1916600817905534801561001d57600080fd5b506000805433600160a060020a03199091168117825560035460ff16600a0a620186a0026004818155918352600560209081526040938490209190915582518084019093528183527f55534441000000000000000000000000000000000000000000000000000000009201918252610097916001916100e2565b506040805180820190915260048082527f555344410000000000000000000000000000000000000000000000000000000060209092019182526100dc916002916100e2565b5061017d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061012357805160ff1916838001178555610150565b82800160010185558215610150579182015b82811115610150578251825591602001919060010190610135565b5061015c929150610160565b5090565b61017a91905b8082111561015c5760008155600101610166565b90565b61086c8061018c6000396000f3006080604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c9578063095ea7b31461015357806318160ddd1461018b57806323b872dd146101b2578063313ce567146101dc57806342966c681461020757806370a08231146102215780638da5cb5b1461024257806395d89b4114610273578063a9059cbb14610288578063c634d032146102ac578063dd62ed3e146102c4578063f2fde38b146102eb575b600080fd5b3480156100d557600080fd5b506100de61030c565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610118578181015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015f57600080fd5b50610177600160a060020a0360043516602435610399565b604080519115158252519081900360200190f35b34801561019757600080fd5b506101a061041c565b60408051918252519081900360200190f35b3480156101be57600080fd5b50610177600160a060020a0360043581169060243516604435610422565b3480156101e857600080fd5b506101f16104bf565b6040805160ff9092168252519081900360200190f35b34801561021357600080fd5b5061021f6004356104c8565b005b34801561022d57600080fd5b506101a0600160a060020a0360043516610561565b34801561024e57600080fd5b50610257610573565b60408051600160a060020a039092168252519081900360200190f35b34801561027f57600080fd5b506100de610582565b34801561029457600080fd5b50610177600160a060020a03600435166024356105da565b3480156102b857600080fd5b5061021f6004356105f0565b3480156102d057600080fd5b506101a0600160a060020a03600435811690602435166106a3565b3480156102f757600080fd5b5061021f600160a060020a03600435166106c0565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156103915780601f1061036657610100808354040283529160200191610391565b820191906000526020600020905b81548152906001019060200180831161037457829003601f168201915b505050505081565b336000908152600560205260408120548211156103b557600080fd5b336000818152600660209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60045481565b600160a060020a038316600090815260066020908152604080832033845290915281205482111561045257600080fd5b600160a060020a0384166000908152600660209081526040808320338452909152902054610486908363ffffffff61070616565b600160a060020a03851660009081526006602090815260408083203384529091529020556104b5848484610718565b5060019392505050565b60035460ff1681565b600054600160a060020a031633146104df57600080fd5b336000908152600560205260409020548111156104fb57600080fd5b60045481111561050a57600080fd5b6004805482900390553360009081526005602090815260409182902080548490039055815183815291517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9281900390910190a150565b60056020526000908152604090205481565b600054600160a060020a031681565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156103915780601f1061036657610100808354040283529160200191610391565b60006105e7338484610718565b50600192915050565b600054600160a060020a0316331461060757600080fd5b6004548181011161061757600080fd5b60008054600160a060020a03168152600560205260409020548181011161063d57600080fd5b60008054600160a060020a0390811682526005602090815260408084208054860190556004805486019055835481518681529151931693927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350565b600660209081526000928352604080842090915290825290205481565b600054600160a060020a031633146106d757600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008282111561071257fe5b50900390565b600160a060020a03831660009081526005602052604090205481111561073d57600080fd5b600160a060020a038216600090815260056020526040902054610766818363ffffffff61082a16565b1161077057600080fd5b600160a060020a038316600090815260056020526040902054610799908263ffffffff61070616565b600160a060020a0380851660009081526005602052604080822093909355908416815220546107ce908263ffffffff61082a16565b600160a060020a0380841660008181526005602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008282018381101561083957fe5b93925050505600a165627a7a72305820769fc64bfe30f28b20810e95fe5cbddaaa3685c356f89adbab8b91ab65e37ebc0029

Deployed ByteCode Sourcemap

993:2556:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1067:18;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1067:18: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;1067:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2675:257;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2675:257:0;-1:-1:-1;;;;;2675:257:0;;;;;;;;;;;;;;;;;;;;;;;;;1153:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1153:26:0;;;;;;;;;;;;;;;;;;;;2364:303;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2364:303:0;-1:-1:-1;;;;;2364:303:0;;;;;;;;;;;;1119:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1119:25:0;;;;;;;;;;;;;;;;;;;;;;;3292:252;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3292:252:0;;;;;;;1188:45;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1188:45:0;-1:-1:-1;;;;;1188:45:0;;;;;121:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;121:20:0;;;;;;;;-1:-1:-1;;;;;121:20:0;;;;;;;;;;;;;;1092;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1092:20:0;;;;2213:143;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2213:143:0;-1:-1:-1;;;;;2213:143:0;;;;;;;2944:336;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2944:336:0;;;;;1240:66;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1240:66:0;-1:-1:-1;;;;;1240:66:0;;;;;;;;;;302:97;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;302:97:0;-1:-1:-1;;;;;302:97:0;;;;;1067:18;;;;;;;;;;;;;;;-1:-1:-1;;1067:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2675:257::-;2777:10;2742:4;2767:21;;;:9;:21;;;;;;:31;-1:-1:-1;2767:31:0;2759:40;;;;;;2820:10;2810:21;;;;:9;:21;;;;;;;;-1:-1:-1;;;;;2810:31:0;;;;;;;;;;;;:40;;;2866:36;;;;;;;2810:31;;2820:10;2866:36;;;;;;;;;;;-1:-1:-1;2920:4:0;2675:257;;;;:::o;1153:26::-;;;;:::o;2364:303::-;-1:-1:-1;;;;;2481:16:0;;2446:4;2481:16;;;:9;:16;;;;;;;;2498:10;2481:28;;;;;;;;2471:38;;;2463:47;;;;;;-1:-1:-1;;;;;2557:16:0;;;;;;:9;:16;;;;;;;;2574:10;2557:28;;;;;;;;:40;;2590:6;2557:40;:32;:40;:::i;:::-;-1:-1:-1;;;;;2526:16:0;;;;;;:9;:16;;;;;;;;2543:10;2526:28;;;;;;;:71;2608:29;2536:5;2625:3;2630:6;2608:9;:29::i;:::-;-1:-1:-1;2655:4:0;2364:303;;;;;:::o;1119:25::-;;;;;;:::o;3292:252::-;268:5;;-1:-1:-1;;;;;268:5:0;254:10;:19;246:28;;;;;;3371:10;3361:21;;;;:9;:21;;;;;;:31;-1:-1:-1;3361:31:0;3353:40;;;;;;3412:11;;:21;-1:-1:-1;3412:21:0;3404:30;;;;;;3445:11;:21;;;;;;;3487:10;3445:11;3477:21;;;:9;:21;;;;;;;;;:31;;;;;;;3524:12;;;;;;;;;;;;;;;;;3292:252;:::o;1188:45::-;;;;;;;;;;;;;:::o;121:20::-;;;-1:-1:-1;;;;;121:20:0;;:::o;1092:::-;;;;;;;;;;;;;;-1:-1:-1;;1092:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2213:143;2276:4;2292:34;2302:10;2314:3;2319:6;2292:9;:34::i;:::-;-1:-1:-1;2344:4:0;2213:143;;;;:::o;2944:336::-;268:5;;-1:-1:-1;;;;;268:5:0;254:10;:19;246:28;;;;;;3052:11;;3023:26;;;:40;3015:49;;;;;;3117:16;3127:5;;-1:-1:-1;;;;;3127:5:0;3117:16;;:9;:16;;;;;;3083:31;;;:50;3075:59;;;;;;3145:16;3155:5;;-1:-1:-1;;;;;3155:5:0;;;3145:16;;:9;:16;;;;;;;;:32;;;;;;3188:11;:27;;;;;;3252:5;;3231:41;;;;;;;3252:5;;;3145:16;3231:41;;;;;;;;;;;2944:336;:::o;1240:66::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;302:97::-;268:5;;-1:-1:-1;;;;;268:5:0;254:10;:19;246:28;;;;;;375:5;:16;;-1:-1:-1;;375:16:0;-1:-1:-1;;;;;375:16:0;;;;;;;;;;302:97::o;732:113::-;790:7;813:6;;;;806:14;;;;-1:-1:-1;834:5:0;;;732:113::o;1863:342::-;-1:-1:-1;;;;;1951:16:0;;;;;;:9;:16;;;;;;:26;-1:-1:-1;1951:26:0;1943:35;;;;;;-1:-1:-1;;;;;2026:14:0;;;;;;:9;:14;;;;;;1997:26;2026:14;2016:6;1997:26;:18;:26;:::i;:::-;:43;1989:52;;;;;;-1:-1:-1;;;;;2071:16:0;;;;;;:9;:16;;;;;;:28;;2092:6;2071:28;:20;:28;:::i;:::-;-1:-1:-1;;;;;2052:16:0;;;;;;;:9;:16;;;;;;:47;;;;2127:14;;;;;;;:26;;2146:6;2127:26;:18;:26;:::i;:::-;-1:-1:-1;;;;;2110:14:0;;;;;;;:9;:14;;;;;;;;;:43;;;;2169:28;;;;;;;2110:14;;2169:28;;;;;;;;;;;;;1863:342;;;:::o;851:133::-;909:7;937:5;;;956:6;;;;949:14;;;;977:1;851:133;-1:-1:-1;;;851:133:0:o

Swarm Source

bzzr://769fc64bfe30f28b20810e95fe5cbddaaa3685c356f89adbab8b91ab65e37ebc

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.