ETH Price: $3,333.54 (+4.22%)

Contract

0x0504A7Fd883178FA182Cf63D2bB1D67E5a9D876d
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap65303982018-10-17 6:38:302283 days ago1539758310IN
0x0504A7Fd...E5a9D876d
0 ETH0.000112745
Swap65293122018-10-17 2:23:482283 days ago1539743028IN
0x0504A7Fd...E5a9D876d
0 ETH0.000067643
Swap65292782018-10-17 2:16:412283 days ago1539742601IN
0x0504A7Fd...E5a9D876d
0 ETH0.000135296
Swap65069322018-10-13 10:54:392286 days ago1539428079IN
0x0504A7Fd...E5a9D876d
0 ETH0.0009019640
Swap65069252018-10-13 10:52:142286 days ago1539427934IN
0x0504A7Fd...E5a9D876d
0 ETH0.0004509820
Swap65066822018-10-13 9:56:522286 days ago1539424612IN
0x0504A7Fd...E5a9D876d
0 ETH0.0009019640
Swap65066752018-10-13 9:55:112286 days ago1539424511IN
0x0504A7Fd...E5a9D876d
0 ETH0.0011306550
Swap65066392018-10-13 9:46:572287 days ago1539424017IN
0x0504A7Fd...E5a9D876d
0 ETH0.0009949744
Swap65066102018-10-13 9:39:362287 days ago1539423576IN
0x0504A7Fd...E5a9D876d
0 ETH0.0009045240
Swap65017542018-10-12 14:44:062287 days ago1539355446IN
0x0504A7Fd...E5a9D876d
0 ETH0.0009019640
Swap65017452018-10-12 14:42:322287 days ago1539355352IN
0x0504A7Fd...E5a9D876d
0 ETH0.0006764730
Swap65017382018-10-12 14:40:282287 days ago1539355228IN
0x0504A7Fd...E5a9D876d
0 ETH0.0004509820
Swap64993132018-10-12 5:10:052288 days ago1539321005IN
0x0504A7Fd...E5a9D876d
0 ETH0.0009218841
Swap64981922018-10-12 0:51:502288 days ago1539305510IN
0x0504A7Fd...E5a9D876d
0 ETH0.0002248510
Swap64981872018-10-12 0:50:132288 days ago1539305413IN
0x0504A7Fd...E5a9D876d
0 ETH0.0002254910
Swap64981812018-10-12 0:48:262288 days ago1539305306IN
0x0504A7Fd...E5a9D876d
0 ETH0.0002254910
Swap64969642018-10-11 20:07:212288 days ago1539288441IN
0x0504A7Fd...E5a9D876d
0 ETH0.0002254910
Swap64969292018-10-11 20:00:172288 days ago1539288017IN
0x0504A7Fd...E5a9D876d
0 ETH0.0002254910
Swap64969202018-10-11 19:58:592288 days ago1539287939IN
0x0504A7Fd...E5a9D876d
0 ETH0.0002254910
Swap64969082018-10-11 19:56:132288 days ago1539287773IN
0x0504A7Fd...E5a9D876d
0 ETH0.0002261310
Swap64967672018-10-11 19:17:522288 days ago1539285472IN
0x0504A7Fd...E5a9D876d
0 ETH0.0002254910
Swap64967582018-10-11 19:16:012288 days ago1539285361IN
0x0504A7Fd...E5a9D876d
0 ETH0.000112745
Swap64962732018-10-11 17:29:172288 days ago1539278957IN
0x0504A7Fd...E5a9D876d
0 ETH0.000112745
Swap64962462018-10-11 17:24:332288 days ago1539278673IN
0x0504A7Fd...E5a9D876d
0 ETH0.0002254910
Swap64952182018-10-11 13:14:462288 days ago1539263686IN
0x0504A7Fd...E5a9D876d
0 ETH0.0002261310
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenSwap

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-10-02
*/

pragma solidity ^0.4.16;


contract ERC20 {
    bytes32 public standard;
    bytes32 public name;
    bytes32 public symbol;
    uint256 public totalSupply;
    uint8 public decimals;
    bool public allowTransactions;
    mapping (address => uint256) public balanceOf;
    mapping (address => mapping (address => uint256)) public allowance;
    function transfer(address _to, uint256 _value) returns (bool success);
    function approveAndCall(address _spender, uint256 _value, bytes _extraData) returns (bool success);
    function approve(address _spender, uint256 _value) returns (bool success);
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
}


contract TokenSwap{
    uint256 swapSupply = 500000000000000000000000000;
    
    address public CYFMAddress = 0x3f06B5D78406cD97bdf10f5C420B241D32759c80;
    address public XTEAddress = 0xEBf3Aacc50ae14965240a3777eCe8DA1fC490a78;
    
    address tokenAdmin = 0xEd86f5216BCAFDd85E5875d35463Aca60925bF16;
    

    function Swap(uint256 sendAmount) returns (bool success){
        require(swapSupply >= safeMul(safeDiv(sendAmount, 5), 6));
        if(ERC20(CYFMAddress).transferFrom(msg.sender, tokenAdmin, sendAmount)){
            ERC20(XTEAddress).transfer(msg.sender, safeMul(safeDiv(sendAmount, 5), 6));
            swapSupply -= safeMul(safeDiv(sendAmount, 5), 6);
        }
        return true;
    }
    
    function Reclaim(uint256 sendAmount) returns (bool success){
        require(msg.sender == tokenAdmin);
        require(swapSupply >= sendAmount);

        ERC20(XTEAddress).transfer(msg.sender, sendAmount);
        swapSupply -= sendAmount;
        return true;
    }
    
    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 Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"sendAmount","type":"uint256"}],"name":"Reclaim","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"XTEAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"sendAmount","type":"uint256"}],"name":"Swap","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":"CYFMAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]

60806040526b019d971e4fe8401e7400000060005560018054600160a060020a0319908116733f06b5d78406cd97bdf10f5c420b241d32759c801790915560028054821673ebf3aacc50ae14965240a3777ece8da1fc490a781790556003805490911673ed86f5216bcafdd85e5875d35463aca60925bf1617905534801561008657600080fd5b5061045e806100966000396000f3006080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166359cf3173811461007c57806369891622146100a857806389f1d38d146100d9578063b5931f7c146100f1578063d05c78da1461011e578063e3f7765914610139575b600080fd5b34801561008857600080fd5b5061009460043561014e565b604080519115158252519081900360200190f35b3480156100b457600080fd5b506100bd610221565b60408051600160a060020a039092168252519081900360200190f35b3480156100e557600080fd5b50610094600435610230565b3480156100fd57600080fd5b5061010c6004356024356103d7565b60408051918252519081900360200190f35b34801561012a57600080fd5b5061010c6004356024356103f8565b34801561014557600080fd5b506100bd610423565b600354600090600160a060020a0316331461016857600080fd5b60005482111561017757600080fd5b600254604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590529051600160a060020a039092169163a9059cbb916044808201926020929091908290030181600087803b1580156101e457600080fd5b505af11580156101f8573d6000803e3d6000fd5b505050506040513d602081101561020e57600080fd5b5050600080548390039055506001919050565b600254600160a060020a031681565b60006102476102408360056103d7565b60066103f8565b600054101561025557600080fd5b600154600354604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152600160a060020a03928316602482015260448101869052905191909216916323b872dd9160648083019260209291908290030181600087803b1580156102cd57600080fd5b505af11580156102e1573d6000803e3d6000fd5b505050506040513d60208110156102f757600080fd5b5051156103cf57600254600160a060020a031663a9059cbb3361031e6102408660056103d7565b6040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050602060405180830381600087803b15801561038957600080fd5b505af115801561039d573d6000803e3d6000fd5b505050506040513d60208110156103b357600080fd5b506103c490506102408360056103d7565b600080549190910390555b506001919050565b60008082116103e557600080fd5b81838115156103f057fe5b049392505050565b818102821580610412575081838281151561040f57fe5b04145b151561041d57600080fd5b92915050565b600154600160a060020a0316815600a165627a7a72305820dc0e20df220fb5a55fb39b4f133f2395a3abf24026f0920a113ab7cb967c98e40029

Deployed Bytecode

0x6080604052600436106100775763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166359cf3173811461007c57806369891622146100a857806389f1d38d146100d9578063b5931f7c146100f1578063d05c78da1461011e578063e3f7765914610139575b600080fd5b34801561008857600080fd5b5061009460043561014e565b604080519115158252519081900360200190f35b3480156100b457600080fd5b506100bd610221565b60408051600160a060020a039092168252519081900360200190f35b3480156100e557600080fd5b50610094600435610230565b3480156100fd57600080fd5b5061010c6004356024356103d7565b60408051918252519081900360200190f35b34801561012a57600080fd5b5061010c6004356024356103f8565b34801561014557600080fd5b506100bd610423565b600354600090600160a060020a0316331461016857600080fd5b60005482111561017757600080fd5b600254604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590529051600160a060020a039092169163a9059cbb916044808201926020929091908290030181600087803b1580156101e457600080fd5b505af11580156101f8573d6000803e3d6000fd5b505050506040513d602081101561020e57600080fd5b5050600080548390039055506001919050565b600254600160a060020a031681565b60006102476102408360056103d7565b60066103f8565b600054101561025557600080fd5b600154600354604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152600160a060020a03928316602482015260448101869052905191909216916323b872dd9160648083019260209291908290030181600087803b1580156102cd57600080fd5b505af11580156102e1573d6000803e3d6000fd5b505050506040513d60208110156102f757600080fd5b5051156103cf57600254600160a060020a031663a9059cbb3361031e6102408660056103d7565b6040518363ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018083600160a060020a0316600160a060020a0316815260200182815260200192505050602060405180830381600087803b15801561038957600080fd5b505af115801561039d573d6000803e3d6000fd5b505050506040513d60208110156103b357600080fd5b506103c490506102408360056103d7565b600080549190910390555b506001919050565b60008082116103e557600080fd5b81838115156103f057fe5b049392505050565b818102821580610412575081838281151561040f57fe5b04145b151561041d57600080fd5b92915050565b600154600160a060020a0316815600a165627a7a72305820dc0e20df220fb5a55fb39b4f133f2395a3abf24026f0920a113ab7cb967c98e40029

Swarm Source

bzzr://dc0e20df220fb5a55fb39b4f133f2395a3abf24026f0920a113ab7cb967c98e4

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.