Sponsored:   LH-CRYPTO - 200 instruments (BTC, EUR, GOLD, OIL, SHARES). Leverage up to 1:500. OPEN ACCOUNT
Contract Overview
Balance: 0 Ether
Ether Value: $0
Transactions: 12 txns
Token Tracker: YuanDevelopersCoin (YDS)
Misc:
Address Watch: Add To Watch List
Contract Creator: 0x0b8d528b35d0e5d6826ecad665c51dab5a671c13at txn 0x1ed4cc2c68e31416216528d775f4689a42fc7101326e1537bfe87612848e9346
 Latest 12 txns

TxHash Age From To Value [TxFee]
0x564fe68f45ec15416ecb218adcadf1b9775b8afc57a1df4deba62962b9bcc23d165 days 16 hrs ago0x598f75e3e572f31529b738cc8bf85821ed827f57  IN   0x755957b8bf4cac92e5291443dd744b3859ea2b8d0 Ether0.000479424413
0xca65745436d8feed6751be03cb807917ec1e464e3953f2d0c5a55a2faddcdb3f186 days 17 hrs ago0x598f75e3e572f31529b738cc8bf85821ed827f57  IN   0x755957b8bf4cac92e5291443dd744b3859ea2b8d0 Ether0.000374510813
0x0a75e8d5651d26d1ee9d96c5e685ba831c68774827adfee27d26cd16dfe50638188 days 19 hrs ago0x598f75e3e572f31529b738cc8bf85821ed827f57  IN   0x755957b8bf4cac92e5291443dd744b3859ea2b8d0 Ether0.000491532634
0x98e08ee742ae6bb9122d7d4a475c383318f96a3006d6587ec755501d2faa7024188 days 19 hrs ago0x598f75e3e572f31529b738cc8bf85821ed827f57  IN   0x755957b8bf4cac92e5291443dd744b3859ea2b8d0 Ether0.000320350947
0x7168d7bd5c89ed327e7b58265be3e378ad58d94b6974de70cd357914382cdb91188 days 19 hrs ago0x598f75e3e572f31529b738cc8bf85821ed827f57  IN   0x755957b8bf4cac92e5291443dd744b3859ea2b8d0 Ether0.000433021724
0x1d8951acef9b3df87bf045bda756e888cea429db60881013deb652ec0ed2225b188 days 21 hrs ago0x598f75e3e572f31529b738cc8bf85821ed827f57  IN   0x755957b8bf4cac92e5291443dd744b3859ea2b8d0 Ether0.000609292824
0xf0338f40dc9ba88cc685fcb98d13b4ea059eab85e2f9b7886aa17b66cc738239188 days 21 hrs ago0x598f75e3e572f31529b738cc8bf85821ed827f57  IN   0x755957b8bf4cac92e5291443dd744b3859ea2b8d0 Ether0.000609292824
0x4e4ce31487aa48101fa4a9e5580d2978926ef7d7dec22da497f2d1e48f6b9bdd188 days 22 hrs ago0x598f75e3e572f31529b738cc8bf85821ed827f57  IN   0x755957b8bf4cac92e5291443dd744b3859ea2b8d0 Ether0.000374510813
0x0d84370afaeba4be65341c7b5d82a46bbdf90a9af47854b7c2ff671b81f76d86188 days 22 hrs ago0x598f75e3e572f31529b738cc8bf85821ed827f57  IN   0x755957b8bf4cac92e5291443dd744b3859ea2b8d0 Ether0.000521419984
0xa8eecbadec73f9df6c00afdecacfbed9cd386b4e0822eb760ba9966828f0d481189 days 2 hrs ago0x916c83760051ab9a2ab0b583193756867ba2cb3a  IN   0x755957b8bf4cac92e5291443dd744b3859ea2b8d0 Ether0.000535415837
0xf8ffef2a19df24aae2b2a0a655e91b85943162c8ba14847a8bbf5957c6f749b8227 days 4 hrs ago0x0b8d528b35d0e5d6826ecad665c51dab5a671c13  IN   0x755957b8bf4cac92e5291443dd744b3859ea2b8d0 Ether0.00075368
0x1ed4cc2c68e31416216528d775f4689a42fc7101326e1537bfe87612848e9346227 days 4 hrs ago0x0b8d528b35d0e5d6826ecad665c51dab5a671c13  IN    Contract Creation0 Ether0.001670086
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity), NestedArrayFunctionCallDecoder (medium-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: CustomToken
Compiler Text: v0.4.19+commit.c4cbbb05
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.19;

contract BaseToken {
    string public name;
    string public symbol;
    uint8 public decimals;
    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 owner, address indexed spender, uint256 value);

    function _transfer(address _from, address _to, uint _value) internal {
        require(_to != 0x0);
        require(balanceOf[_from] >= _value);
        require(balanceOf[_to] + _value > balanceOf[_to]);
        uint previousBalances = balanceOf[_from] + balanceOf[_to];
        balanceOf[_from] -= _value;
        balanceOf[_to] += _value;
        assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
        Transfer(_from, _to, _value);
    }

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

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

    function approve(address _spender, uint256 _value) public returns (bool success) {
        allowance[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }
}

contract ICOToken is BaseToken {
    // 1 ether = icoRatio token
    uint256 public icoRatio;
    uint256 public icoBegintime;
    uint256 public icoEndtime;
    address public icoSender;
    address public icoHolder;

    event ICO(address indexed from, uint256 indexed value, uint256 tokenValue);
    event Withdraw(address indexed from, address indexed holder, uint256 value);

    function ico() public payable {
        require(now >= icoBegintime && now <= icoEndtime);
        uint256 tokenValue = (msg.value * icoRatio * 10 ** uint256(decimals)) / (1 ether / 1 wei);
        if (tokenValue == 0 || balanceOf[icoSender] < tokenValue) {
            revert();
        }
        _transfer(icoSender, msg.sender, tokenValue);
        ICO(msg.sender, msg.value, tokenValue);
    }

    function withdraw() public {
        uint256 balance = this.balance;
        icoHolder.transfer(balance);
        Withdraw(msg.sender, icoHolder, balance);
    }
}

contract CustomToken is BaseToken, ICOToken {
    function CustomToken() public {
        totalSupply = 268000000000000000000000000;
        name = 'YuanDevelopersCoin';
        symbol = 'YDS';
        decimals = 18;
        balanceOf[0x0b8d528b35d0e5d6826ecad665c51dab5a671c13] = totalSupply;
        Transfer(address(0), 0x0b8d528b35d0e5d6826ecad665c51dab5a671c13, totalSupply);

        icoRatio = 6000;
        icoBegintime = 1530504000;
        icoEndtime = 1533182400;
        icoSender = 0x916c83760051ab9a2ab0b583193756867ba2cb3a;
        icoHolder = 0x916c83760051ab9a2ab0b583193756867ba2cb3a;
    }

    function() public payable {
        ico();
    }
}

    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":"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":"_value","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":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"ico","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","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":true,"inputs":[],"name":"icoHolder","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"icoRatio","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"icoEndtime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"icoSender","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"icoBegintime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"value","type":"uint256"},{"indexed":false,"name":"tokenValue","type":"uint256"}],"name":"ICO","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"holder","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Withdraw","type":"event"},{"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"}]

  Contract Creation Code Switch To Opcodes View
6060604052341561000f57600080fd5b6addaf351c7e88c48c00000060035560408051908101604052601281527f5975616e446576656c6f70657273436f696e000000000000000000000000000060208201526000908051610065929160200190610187565b5060408051908101604052600381527f5944530000000000000000000000000000000000000000000000000000000000602082015260019080516100ad929160200190610187565b506002805460ff19166012179055600354730b8d528b35d0e5d6826ecad665c51dab5a671c13600081815260046020527f04557135e55206e28d2d1236bd9637ebac5ed7f9b61d0ab81316b362da700bfa83905590917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060405190815260200160405180910390a3611770600655635b39a340600755635b6281c06008556009805473916c83760051ab9a2ab0b583193756867ba2cb3a600160a060020a03199182168117909255600a80549091169091179055610222565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106101c857805160ff19168380011785556101f5565b828001600101855582156101f5579182015b828111156101f55782518255916020019190600101906101da565b50610201929150610205565b5090565b61021f91905b80821115610201576000815560010161020b565b90565b610800806102316000396000f3006060604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100ef578063095ea7b31461017957806318160ddd146101af57806323b872dd146101d4578063313ce567146101fc5780633ccfd60b146102255780635d452201146100e557806370a082311461023857806395d89b4114610257578063a2ebb20b1461026a578063a9059cbb14610299578063b3b8c620146102bb578063d211fe86146102ce578063dd62ed3e146102e1578063de28fc1d14610306578063e6136d8414610319575b6100ed61032c565b005b34156100fa57600080fd5b6101026103f4565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561013e578082015183820152602001610126565b50505050905090810190601f16801561016b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018457600080fd5b61019b600160a060020a0360043516602435610492565b604051901515815260200160405180910390f35b34156101ba57600080fd5b6101c26104fe565b60405190815260200160405180910390f35b34156101df57600080fd5b61019b600160a060020a0360043581169060243516604435610504565b341561020757600080fd5b61020f61057b565b60405160ff909116815260200160405180910390f35b341561023057600080fd5b6100ed610584565b341561024357600080fd5b6101c2600160a060020a0360043516610603565b341561026257600080fd5b610102610615565b341561027557600080fd5b61027d610680565b604051600160a060020a03909116815260200160405180910390f35b34156102a457600080fd5b61019b600160a060020a036004351660243561068f565b34156102c657600080fd5b6101c26106a5565b34156102d957600080fd5b6101c26106ab565b34156102ec57600080fd5b6101c2600160a060020a03600435811690602435166106b1565b341561031157600080fd5b61027d6106ce565b341561032457600080fd5b6101c26106dd565b6000600754421015801561034257506008544211155b151561034d57600080fd5b600254600654670de0b6b3a76400009160ff16600a0a34909102020490508015806103925750600954600160a060020a03166000908152600460205260409020548190105b1561039c57600080fd5b6009546103b390600160a060020a031633836106e3565b3433600160a060020a03167f4a987bc3d04b32db133ad9a3c7c0d8ecc441eb56f45a62b92c38384c095e7ac08360405190815260200160405180910390a350565b60008054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561048a5780601f1061045f5761010080835404028352916020019161048a565b820191906000526020600020905b81548152906001019060200180831161046d57829003601f168201915b505050505081565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600160a060020a0380841660009081526005602090815260408083203390941683529290529081205482111561053957600080fd5b600160a060020a03808516600090815260056020908152604080832033909416835292905220805483900390556105718484846106e3565b5060019392505050565b60025460ff1681565b600a54600160a060020a0330811631911681156108fc0282604051600060405180830381858888f1935050505015156105bc57600080fd5b600a54600160a060020a039081169033167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb8360405190815260200160405180910390a350565b60046020526000908152604090205481565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561048a5780601f1061045f5761010080835404028352916020019161048a565b600a54600160a060020a031681565b600061069c3384846106e3565b50600192915050565b60065481565b60085481565b600560209081526000928352604080842090915290825290205481565b600954600160a060020a031681565b60075481565b6000600160a060020a03831615156106fa57600080fd5b600160a060020a0384166000908152600460205260409020548290101561072057600080fd5b600160a060020a0383166000908152600460205260409020548281011161074657600080fd5b50600160a060020a03828116600090815260046020526040808220805493871683529120805484810382558254850192839055905492019101811461078757fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a3505050505600a165627a7a7230582014be552586157a6f8299444a2c9edb2e433d82a4d9256f5749271ecee6c1cb1f0029

   Swarm Source:
bzzr://14be552586157a6f8299444a2c9edb2e433d82a4d9256f5749271ecee6c1cb1f

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.