Token Orient

 

Overview [ERC-20]

Max Total Supply:
25,000 OFT

Holders:
1

Transfers:
-

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

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

Contract Source Code Verified (Exact Match)

Contract Name:
Orient

Compiler Version
v0.5.2+commit.1df8f40c

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.5.0;

// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
    function totalSupply() public view returns (uint);
    function balanceOf(address tokenOwner) public view returns (uint balance);
    function allowance(address tokenOwner, address spender) public view returns (uint remaining);
    function transfer(address to, uint tokens) public returns (bool success);
    function approve(address spender, uint tokens) public returns (bool success);
    function transferFrom(address from, address to, uint tokens) public returns (bool success);

    event Transfer(address indexed from, address indexed to, uint tokens);
    event Approval(address indexed tokenOwner, address indexed spender, uint tokens);
}

// ----------------------------------------------------------------------------
// Safe Math Library 
// ----------------------------------------------------------------------------
contract SafeMath {
    function safeAdd(uint a, uint b) public pure returns (uint c) {
        c = a + b;
        require(c >= a);
    }
    function safeSub(uint a, uint b) public pure returns (uint c) {
        require(b <= a); c = a - b; } function safeMul(uint a, uint b) public pure returns (uint c) { c = a * b; require(a == 0 || c / a == b); } function safeDiv(uint a, uint b) public pure returns (uint c) { require(b > 0);
        c = a / b;
    }
}


contract Orient is ERC20Interface, SafeMath {
    string public name;
    string public symbol;
    uint8 public decimals; // 18 decimals is the strongly suggested default, avoid changing it
    
    uint256 public _totalSupply;
    
    mapping(address => uint) balances;
    mapping(address => mapping(address => uint)) allowed;
    
    /**
     * Constrctor function
     *
     * Initializes contract with initial supply tokens to the creator of the contract
     */
    constructor() public {
        name = "Orient";
        symbol = "OFT";
        decimals = 18;
        _totalSupply = 25000000000000000000000;
        
        balances[msg.sender] = _totalSupply;
        emit Transfer(address(0), msg.sender, _totalSupply);
    }
    
    function totalSupply() public view returns (uint) {
        return _totalSupply  - balances[address(0)];
    }
    
    function balanceOf(address tokenOwner) public view returns (uint balance) {
        return balances[tokenOwner];
    }
    
    function allowance(address tokenOwner, address spender) public view returns (uint remaining) {
        return allowed[tokenOwner][spender];
    }
    
    function approve(address spender, uint tokens) public returns (bool success) {
        allowed[msg.sender][spender] = tokens;
        emit Approval(msg.sender, spender, tokens);
        return true;
    }
    
    function transfer(address to, uint tokens) public returns (bool success) {
        balances[msg.sender] = safeSub(balances[msg.sender], tokens);
        balances[to] = safeAdd(balances[to], tokens);
        emit Transfer(msg.sender, to, tokens);
        return true;
    }
    
    function transferFrom(address from, address to, uint tokens) public returns (bool success) {
        balances[from] = safeSub(balances[from], tokens);
        allowed[from][msg.sender] = safeSub(allowed[from][msg.sender], tokens);
        balances[to] = safeAdd(balances[to], tokens);
        emit Transfer(from, to, tokens);
        return true;
    }
}

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":"tokens","type":"uint256"}],"name":"approve","outputs":[{"name":"success","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":"tokens","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","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":"_totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeSub","outputs":[{"name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"tokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeDiv","outputs":[{"name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeMul","outputs":[{"name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"name":"tokenOwner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"safeAdd","outputs":[{"name":"c","type":"uint256"}],"payable":false,"stateMutability":"pure","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":"tokens","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"}]

608060405234801561001057600080fd5b506040805190810160405280600681526020017f4f7269656e7400000000000000000000000000000000000000000000000000008152506000908051906020019061005c929190610189565b506040805190810160405280600381526020017f4f46540000000000000000000000000000000000000000000000000000000000815250600190805190602001906100a8929190610189565b506012600260006101000a81548160ff021916908360ff16021790555069054b40b1f852bda00000600381905550600354600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef6003546040518082815260200191505060405180910390a361022e565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101ca57805160ff19168380011785556101f8565b828001600101855582156101f8579182015b828111156101f75782518255916020019190600101906101dc565b5b5090506102059190610209565b5090565b61022b91905b8082111561022757600081600090555060010161020f565b5090565b90565b610df88061023d6000396000f3fe608060405234801561001057600080fd5b5060043610610107576000357c01000000000000000000000000000000000000000000000000000000009004806395d89b41116100a9578063b5931f7c11610083578063b5931f7c14610468578063d05c78da146104b4578063dd62ed3e14610500578063e6cb90131461057857610107565b806395d89b4114610333578063a293d1e8146103b6578063a9059cbb1461040257610107565b806323b872dd116100e557806323b872dd14610213578063313ce567146102995780633eaaf86b146102bd57806370a08231146102db57610107565b806306fdde031461010c578063095ea7b31461018f57806318160ddd146101f5575b600080fd5b6101146105c4565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610154578082015181840152602081019050610139565b50505050905090810190601f1680156101815780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101db600480360360408110156101a557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610662565b604051808215151515815260200191505060405180910390f35b6101fd610754565b6040518082815260200191505060405180910390f35b61027f6004803603606081101561022957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061079f565b604051808215151515815260200191505060405180910390f35b6102a1610a2f565b604051808260ff1660ff16815260200191505060405180910390f35b6102c5610a42565b6040518082815260200191505060405180910390f35b61031d600480360360208110156102f157600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a48565b6040518082815260200191505060405180910390f35b61033b610a91565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561037b578082015181840152602081019050610360565b50505050905090810190601f1680156103a85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103ec600480360360408110156103cc57600080fd5b810190808035906020019092919080359060200190929190505050610b2f565b6040518082815260200191505060405180910390f35b61044e6004803603604081101561041857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b4b565b604051808215151515815260200191505060405180910390f35b61049e6004803603604081101561047e57600080fd5b810190808035906020019092919080359060200190929190505050610cd4565b6040518082815260200191505060405180910390f35b6104ea600480360360408110156104ca57600080fd5b810190808035906020019092919080359060200190929190505050610cf8565b6040518082815260200191505060405180910390f35b6105626004803603604081101561051657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d29565b6040518082815260200191505060405180910390f35b6105ae6004803603604081101561058e57600080fd5b810190808035906020019092919080359060200190929190505050610db0565b6040518082815260200191505060405180910390f35b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561065a5780601f1061062f5761010080835404028352916020019161065a565b820191906000526020600020905b81548152906001019060200180831161063d57829003601f168201915b505050505081565b600081600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b6000600460008073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460035403905090565b60006107ea600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610b2f565b600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506108b3600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610b2f565b600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061097c600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610db0565b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600260009054906101000a900460ff1681565b60035481565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b275780601f10610afc57610100808354040283529160200191610b27565b820191906000526020600020905b815481529060010190602001808311610b0a57829003601f168201915b505050505081565b6000828211151515610b4057600080fd5b818303905092915050565b6000610b96600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610b2f565b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610c22600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205483610db0565b600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b60008082111515610ce457600080fd5b8183811515610cef57fe5b04905092915050565b600081830290506000831480610d185750818382811515610d1557fe5b04145b1515610d2357600080fd5b92915050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60008183019050828110151515610dc657600080fd5b9291505056fea165627a7a723058202c294842afa8f4e9909375a5c6ad871e7e44daa14606f122d18746b148269a950029

Deployed ByteCode Sourcemap

1579:2059:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1579:2059:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1630:18;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1630:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2768:208;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2768:208:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;2353:112;;;:::i;:::-;;;;;;;;;;;;;;;;;;;3277:358;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;3277:358:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1682:21;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1784:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2477:120;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2477:120:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1655:20;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1655:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1253:102;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1253:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2988:277;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2988:277:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1464:106;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1464:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1356:107;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1356:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2609:147;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;2609:147:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1131:116;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1131:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1630:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2768:208::-;2831:12;2887:6;2856:7;:19;2864:10;2856:19;;;;;;;;;;;;;;;:28;2876:7;2856:28;;;;;;;;;;;;;;;:37;;;;2930:7;2909:37;;2918:10;2909:37;;;2939:6;2909:37;;;;;;;;;;;;;;;;;;2964:4;2957:11;;2768:208;;;;:::o;2353:112::-;2397:4;2437:8;:20;2454:1;2437:20;;;;;;;;;;;;;;;;2421:12;;:36;2414:43;;2353:112;:::o;3277:358::-;3354:12;3396:31;3404:8;:14;3413:4;3404:14;;;;;;;;;;;;;;;;3420:6;3396:7;:31::i;:::-;3379:8;:14;3388:4;3379:14;;;;;;;;;;;;;;;:48;;;;3466:42;3474:7;:13;3482:4;3474:13;;;;;;;;;;;;;;;:25;3488:10;3474:25;;;;;;;;;;;;;;;;3501:6;3466:7;:42::i;:::-;3438:7;:13;3446:4;3438:13;;;;;;;;;;;;;;;:25;3452:10;3438:25;;;;;;;;;;;;;;;:70;;;;3534:29;3542:8;:12;3551:2;3542:12;;;;;;;;;;;;;;;;3556:6;3534:7;:29::i;:::-;3519:8;:12;3528:2;3519:12;;;;;;;;;;;;;;;:44;;;;3594:2;3579:26;;3588:4;3579:26;;;3598:6;3579:26;;;;;;;;;;;;;;;;;;3623:4;3616:11;;3277:358;;;;;:::o;1682:21::-;;;;;;;;;;;;;:::o;1784:27::-;;;;:::o;2477:120::-;2537:12;2569:8;:20;2578:10;2569:20;;;;;;;;;;;;;;;;2562:27;;2477:120;;;:::o;1655:20::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1253:102::-;1307:6;1339:1;1334;:6;;1326:15;;;;;;;;1351:1;1347;:5;1343:9;;1253:102;;;;:::o;2988:277::-;3047:12;3095:37;3103:8;:20;3112:10;3103:20;;;;;;;;;;;;;;;;3125:6;3095:7;:37::i;:::-;3072:8;:20;3081:10;3072:20;;;;;;;;;;;;;;;:60;;;;3158:29;3166:8;:12;3175:2;3166:12;;;;;;;;;;;;;;;;3180:6;3158:7;:29::i;:::-;3143:8;:12;3152:2;3143:12;;;;;;;;;;;;;;;:44;;;;3224:2;3203:32;;3212:10;3203:32;;;3228:6;3203:32;;;;;;;;;;;;;;;;;;3253:4;3246:11;;2988:277;;;;:::o;1464:106::-;1518:6;1540:1;1536;:5;1528:14;;;;;;;;1561:1;1557;:5;;;;;;;;1553:9;;1464:106;;;;:::o;1356:107::-;1410:6;1428:1;1424;:5;1420:9;;1444:1;1439;:6;:20;;;;1458:1;1453;1449;:5;;;;;;;;:10;1439:20;1431:29;;;;;;;;1356:107;;;;:::o;2609:147::-;2686:14;2720:7;:19;2728:10;2720:19;;;;;;;;;;;;;;;:28;2740:7;2720:28;;;;;;;;;;;;;;;;2713:35;;2609:147;;;;:::o;1131:116::-;1185:6;1212:1;1208;:5;1204:9;;1237:1;1232;:6;;1224:15;;;;;;;;1131:116;;;;:::o

Swarm Source

bzzr://2c294842afa8f4e9909375a5c6ad871e7e44daa14606f122d18746b148269a95

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.