Contract 0xd13544acbe99dd77832fbe7c5c60d5e05f00141c 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xb60c2e6390e322ea2022fc21abd196cd0d39e558a326dfb3725d1c8657182e670x6080604065533692021-04-14 8:16:28232 days 22 hrs agoTuringMachine Token: Deployer IN  Contract Creation0 BNB0.00282927
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TuringData

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at BscScan.com on 2021-04-14
*/

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.12;

interface IBEP20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);
    function maxTotalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);
}

interface IPancakeSwapRouter {
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
}

contract TuringData {

    uint256 public version = 100;

    // Dev Locked Contract.
    IPancakeSwapRouter public pancakeSwap;

    IBEP20 public TUR;
    address public wbnb;
    address public busd;

    constructor(
        IBEP20 _tur,
        address _wbnb,
        address _busd,
        IPancakeSwapRouter _pancakeSwap
    ) public {
        pancakeSwap = _pancakeSwap;

        TUR = _tur;
        wbnb = _wbnb;
        busd = _busd;
    }

    function getData() public view returns(uint256 circulatingSupply_, uint256 totalSupply_, uint256 maxSupply_, uint256 price_) 
    {
        totalSupply_ = TUR.totalSupply();
        circulatingSupply_ = totalSupply_;
        maxSupply_ = TUR.maxTotalSupply();
        price_ = getTuringPrice();
    }

    function getTuringPrice() public view returns(uint256) 
    {
        address[] memory path = new address[](3);
        path[0] = address(TUR);
        path[1] = wbnb;
        path[2] = busd;
        uint256 _price;
        try pancakeSwap.getAmountsOut(1e18, path) returns(uint[] memory amounts) {
            _price = amounts[2];
        } catch {
            _price = 0;   
        }
        return _price;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IBEP20","name":"_tur","type":"address"},{"internalType":"address","name":"_wbnb","type":"address"},{"internalType":"address","name":"_busd","type":"address"},{"internalType":"contract IPancakeSwapRouter","name":"_pancakeSwap","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"TUR","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"busd","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getData","outputs":[{"internalType":"uint256","name":"circulatingSupply_","type":"uint256"},{"internalType":"uint256","name":"totalSupply_","type":"uint256"},{"internalType":"uint256","name":"maxSupply_","type":"uint256"},{"internalType":"uint256","name":"price_","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTuringPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pancakeSwap","outputs":[{"internalType":"contract IPancakeSwapRouter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wbnb","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6080604052606460005534801561001557600080fd5b506040516108c43803806108c48339818101604052608081101561003857600080fd5b810190808051906020019092919080519060200190929190805190602001909291908051906020019092919050505080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050506107468061017e6000396000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c806354fd4d501161005b57806354fd4d501461011d5780638d72647e1461013b578063b4347d061461016f578063c850a95e146101a35761007d565b8063375ba378146100825780633bc5de30146100b65780633ca5b234146100e9575b600080fd5b61008a6101c1565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100be6101e7565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b6100f161034a565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610125610370565b6040518082815260200191505060405180910390f35b610143610376565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61017761039c565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101ab6103c2565b6040518082815260200191505060405180910390f35b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561025557600080fd5b505afa158015610269573d6000803e3d6000fd5b505050506040513d602081101561027f57600080fd5b81019080805190602001909291905050509250829350600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632ab4d0526040518163ffffffff1660e01b815260040160206040518083038186803b1580156102fd57600080fd5b505afa158015610311573d6000803e3d6000fd5b505050506040513d602081101561032757600080fd5b810190808051906020019092919050505091506103426103c2565b905090919293565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60005481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006060600367ffffffffffffffff811180156103de57600080fd5b5060405190808252806020026020018201604052801561040d5781602001602082028036833780820191505090505b509050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160008151811061044057fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16816001815181106104aa57fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160028151811061051457fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d06ca61f670de0b6b3a7640000846040518363ffffffff1660e01b81526004018083815260200180602001828103825283818151815260200191508051906020019060200280838360005b838110156105f05780820151818401526020810190506105d5565b50505050905001935050505060006040518083038186803b15801561061457600080fd5b505afa9250505080156106e257506040513d6000823e3d601f19601f82011682018060405250602081101561064857600080fd5b810190808051604051939291908464010000000082111561066857600080fd5b8382019150602082018581111561067e57600080fd5b825186602082028301116401000000008211171561069b57600080fd5b8083526020830192505050908051906020019060200280838360005b838110156106d25780820151818401526020810190506106b7565b5050505090500160405250505060015b6106ef5760009050610708565b806002815181106106fc57fe5b60200260200101519150505b80925050509056fea264697066735822122064cea24371537f2f23a3adfc687f09ba8bc95d99b460ec5a6a0a3de2e712af7064736f6c634300060c003300000000000000000000000076ed05fa250e8e993275e6e78b470b4d70ed120b000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d5600000000000000000000000005ff2b0db69458a0750badebc4f9e13add608c7f

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000076ed05fa250e8e993275e6e78b470b4d70ed120b000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d5600000000000000000000000005ff2b0db69458a0750badebc4f9e13add608c7f

-----Decoded View---------------
Arg [0] : _tur (address): 0x76ed05fa250e8e993275e6e78b470b4d70ed120b
Arg [1] : _wbnb (address): 0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c
Arg [2] : _busd (address): 0xe9e7cea3dedca5984780bafc599bd69add087d56
Arg [3] : _pancakeSwap (address): 0x05ff2b0db69458a0750badebc4f9e13add608c7f

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 00000000000000000000000076ed05fa250e8e993275e6e78b470b4d70ed120b
Arg [1] : 000000000000000000000000bb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c
Arg [2] : 000000000000000000000000e9e7cea3dedca5984780bafc599bd69add087d56
Arg [3] : 00000000000000000000000005ff2b0db69458a0750badebc4f9e13add608c7f


Deployed ByteCode Sourcemap

596:1224:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;691:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;1075:306;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;787:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;625:28;;;:::i;:::-;;;;;;;;;;;;;;;;;;;761:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;737:17;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;1389:428;;;:::i;:::-;;;;;;;;;;;;;;;;;;;691:37;;;;;;;;;;;;;:::o;1075:306::-;1114:26;1142:20;1164:18;1184:14;1232:3;;;;;;;;;;;:15;;;:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1217:32;;1281:12;1260:33;;1317:3;;;;;;;;;;;:18;;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1304:33;;1357:16;:14;:16::i;:::-;1348:25;;1075:306;;;;:::o;787:19::-;;;;;;;;;;;;;:::o;625:28::-;;;;:::o;761:19::-;;;;;;;;;;;;;:::o;737:17::-;;;;;;;;;;;;;:::o;1389:428::-;1435:7;1461:21;1499:1;1485:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1461:40;;1530:3;;;;;;;;;;;1512:4;1517:1;1512:7;;;;;;;;;;;;;:22;;;;;;;;;;;1555:4;;;;;;;;;;;1545;1550:1;1545:7;;;;;;;;;;;;;:14;;;;;;;;;;;1580:4;;;;;;;;;;;1570;1575:1;1570:7;;;;;;;;;;;;;:14;;;;;;;;;;;1595;1624:11;;;;;;;;;;;:25;;;1650:4;1656;1624:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1620:166;;1770:1;1761:10;;1620:166;;;1717:7;1725:1;1717:10;;;;;;;;;;;;;;1708:19;;1662:77;1620:166;1803:6;1796:13;;;;1389:428;:::o

Swarm Source

ipfs://64cea24371537f2f23a3adfc687f09ba8bc95d99b460ec5a6a0a3de2e712af70
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.