ETH Price: $3,669.70 (+0.72%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Send Coin58928492018-07-02 14:18:282380 days ago1530541108IN
0x47f8c173...296500bAF
0 ETH0.00486147181
Create Campaign58920272018-07-02 10:57:312380 days ago1530529051IN
0x47f8c173...296500bAF
0 ETH0.01646041128
Finish Campaign58912432018-07-02 7:31:452381 days ago1530516705IN
0x47f8c173...296500bAF
0 ETH0.0037857971
Finish Campaign58912132018-07-02 7:24:512381 days ago1530516291IN
0x47f8c173...296500bAF
0 ETH0.0058072885
Send Coin58911372018-07-02 7:05:552381 days ago1530515155IN
0x47f8c173...296500bAF
0 ETH0.0047129680
Create Campaign58891362018-07-01 23:09:442381 days ago1530486584IN
0x47f8c173...296500bAF
0 ETH0.0011192244
Create Campaign58891362018-07-01 23:09:442381 days ago1530486584IN
0x47f8c173...296500bAF
0 ETH0.0057997245.1
Create Campaign58888772018-07-01 22:05:062381 days ago1530482706IN
0x47f8c173...296500bAF
0 ETH0.0021727640
Create Campaign58888622018-07-01 22:02:212381 days ago1530482541IN
0x47f8c173...296500bAF
0 ETH0.0024443545
Create Campaign58888392018-07-01 21:57:002381 days ago1530482220IN
0x47f8c173...296500bAF
0 ETH0.002676949.28125
Create Campaign58887952018-07-01 21:45:312381 days ago1530481531IN
0x47f8c173...296500bAF
0 ETH0.0021727640
Create Campaign58887792018-07-01 21:41:392381 days ago1530481299IN
0x47f8c173...296500bAF
0 ETH0.0021727640

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Deal

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.4.21;

contract ERC223Interface {
    uint public totalSupply;
    function balanceOf(address who) constant returns (uint);
    function transfer(address to, uint value) public returns (bool success);
    function transfer(address to, uint value, bytes data) 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 value);
    event Transfer(address indexed from, address indexed to, uint value, bytes data);
}

contract Deal {

    enum Status { created, destroyed, finished }

    event CreateCampaign(bytes32 campaignId);
    event SendCoinForCampaign(bytes32 campaignId);

    struct Campaign {
        address creator;
        uint tokenAmount;
        uint currentBalance;
        Status status;
    }

    address public owner;

    address public fee;

    ERC223Interface public token;

    mapping (bytes32 => Campaign) public campaigns;

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

    function Deal(address tokenAddress, address _owner, address _fee) {
      owner = _owner;
      fee = _fee;
      token = ERC223Interface(tokenAddress);
    }

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

    function safeMul(uint a, uint b) internal returns (uint) {
      uint c = a * b;
      assert(a == 0 || c / a == b);
      return c;
    }

    function safeDiv(uint a, uint b) internal returns (uint) {
      assert(b > 0);
      uint c = a / b;
      assert(a == b * c + a % b);
      return c;
    }

    function safeSub(uint a, uint b) internal returns (uint) {
      assert(b <= a);
      return a - b;
    }

    function safeAdd(uint a, uint b) internal returns (uint) {
      uint c = a + b;
      assert(c>=a && c>=b);
      return c;
    }

    function sum(uint[] array) public returns (uint) {
        uint summa;
        for (uint i; i < array.length; i++) {
            summa += array[i];
        }
        return summa;
    }

    function changeFeeAddress(address newFee) onlyOwner {
        fee = newFee;
    }

    function createCampaign(bytes32 id, uint value, address campaignCreator) onlyOwner returns (uint) {
       require(getAddressCreatorById(id) == address(0));
       token.transferFrom(campaignCreator, this, value);
       campaigns[id] = Campaign(campaignCreator, value, value, Status.created);
       CreateCampaign(id);
    }

    function addTokensToCampaign(bytes32 id, uint value) onlyOwner returns (bool success) {
        token.transferFrom(getAddressCreatorById(id), this, value);
        campaigns[id].tokenAmount += value;
        campaigns[id].currentBalance += value;
    }

    function updateTokenAddress(address newAddr) onlyOwner {
        token = ERC223Interface(newAddr);
    }

    function destroyCampaign(bytes32 id) onlyOwner returns (bool success) {
        token.transfer(campaigns[id].creator, campaigns[id].tokenAmount);
        campaigns[id].status = Status.destroyed;
        campaigns[id].currentBalance = 0;
    }

    function checkStatus(bytes32 id) public constant returns (Status status) {
        return campaigns[id].status;
    }

    function getAddressCreatorById(bytes32 id) public constant returns(address) {
        return campaigns[id].creator;
    }

    function getTokenAmountForCampaign(bytes32 id) public constant returns (uint value) {
        return campaigns[id].tokenAmount;
    }

    function getCurrentBalanceForCampaign(bytes32 id) public constant returns (uint value) {
        return campaigns[id].currentBalance;
    }

    function finishCampaign(bytes32 id) onlyOwner returns (bool success) {
        campaigns[id].status = Status.finished;
        token.transfer(campaigns[id].creator, campaigns[id].currentBalance);
        campaigns[id].currentBalance = 0;
    }

    function sendCoin(address[] _routerOwners, uint[] amount, bytes32 id) onlyOwner {
        require(campaigns[id].status == Status.created);
        require(amount.length == _routerOwners.length);
        require(sum(amount) <= campaigns[id].tokenAmount);

        for (var i = 0; i < amount.length; i++) {
           token.transfer(_routerOwners[i], safeDiv(safeMul(amount[i], 95), 100)); 
        }
        token.transfer(fee, safeDiv(safeMul(sum(amount), 5), 100) );
        campaigns[id].currentBalance = safeSub(campaigns[id].currentBalance, sum(amount));
        SendCoinForCampaign(id);
    }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"array","type":"uint256[]"}],"name":"sum","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"id","type":"bytes32"}],"name":"getCurrentBalanceForCampaign","outputs":[{"name":"value","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newFee","type":"address"}],"name":"changeFeeAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"bytes32"}],"name":"finishCampaign","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"id","type":"bytes32"}],"name":"getAddressCreatorById","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newAddr","type":"address"}],"name":"updateTokenAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"id","type":"bytes32"}],"name":"getTokenAmountForCampaign","outputs":[{"name":"value","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_routerOwners","type":"address[]"},{"name":"amount","type":"uint256[]"},{"name":"id","type":"bytes32"}],"name":"sendCoin","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"campaigns","outputs":[{"name":"creator","type":"address"},{"name":"tokenAmount","type":"uint256"},{"name":"currentBalance","type":"uint256"},{"name":"status","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"id","type":"bytes32"}],"name":"checkStatus","outputs":[{"name":"status","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"fee","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"bytes32"}],"name":"destroyCampaign","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"bytes32"},{"name":"value","type":"uint256"}],"name":"addTokensToCampaign","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"bytes32"},{"name":"value","type":"uint256"},{"name":"campaignCreator","type":"address"}],"name":"createCampaign","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"tokenAddress","type":"address"},{"name":"_owner","type":"address"},{"name":"_fee","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"campaignId","type":"bytes32"}],"name":"CreateCampaign","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"campaignId","type":"bytes32"}],"name":"SendCoinForCampaign","type":"event"}]

608060405234801561001057600080fd5b50604051606080611a5d833981018060405281019080805190602001909291908051906020019092919080519060200190929190505050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506119428061011b6000396000f3006080604052600436106100f1576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630194db8e146100f6578063257c360d14610170578063285e1406146101b55780632a874f34146101f85780636235e3a2146102415780636691461a146102b257806381ffdfab146102f557806389b52b9b1461033a5780638da5cb5b146103f15780639eca2f1e14610448578063a2200278146104dc578063ddca3f431461052f578063f158e47814610586578063f2fde38b146105cf578063f922da7e14610612578063fb65a3cb14610665578063fc0c546a146106d4575b600080fd5b34801561010257600080fd5b5061015a6004803603810190808035906020019082018035906020019080806020026020016040519081016040528093929190818152602001838360200280828437820191505050505050919291929050505061072b565b6040518082815260200191505060405180910390f35b34801561017c57600080fd5b5061019f600480360381019080803560001916906020019092919050505061076d565b6040518082815260200191505060405180910390f35b3480156101c157600080fd5b506101f6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610795565b005b34801561020457600080fd5b506102276004803603810190808035600019169060200190929190505050610834565b604051808215151515815260200191505060405180910390f35b34801561024d57600080fd5b506102706004803603810190808035600019169060200190929190505050610a57565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102be57600080fd5b506102f3600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a9f565b005b34801561030157600080fd5b506103246004803603810190808035600019169060200190929190505050610b3e565b6040518082815260200191505060405180910390f35b34801561034657600080fd5b506103ef60048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091929192908035600019169060200190929190505050610b66565b005b3480156103fd57600080fd5b50610406610f95565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561045457600080fd5b506104776004803603810190808035600019169060200190929190505050610fba565b604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018381526020018260028111156104c557fe5b60ff16815260200194505050505060405180910390f35b3480156104e857600080fd5b5061050b6004803603810190808035600019169060200190929190505050611017565b6040518082600281111561051b57fe5b60ff16815260200191505060405180910390f35b34801561053b57600080fd5b5061054461104c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561059257600080fd5b506105b56004803603810190808035600019169060200190929190505050611072565b604051808215151515815260200191505060405180910390f35b3480156105db57600080fd5b50610610600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611295565b005b34801561061e57600080fd5b5061064b60048036038101908080356000191690602001909291908035906020019092919050505061136a565b604051808215151515815260200191505060405180910390f35b34801561067157600080fd5b506106be600480360381019080803560001916906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611562565b6040518082815260200191505060405180910390f35b3480156106e057600080fd5b506106e9611863565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60008060005b835181101561076357838181518110151561074857fe5b90602001906020020151820191508080600101915050610731565b8192505050919050565b6000600360008360001916600019168152602001908152602001600020600201549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156107f057600080fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561089157600080fd5b600260036000846000191660001916815260200190815260200160002060030160006101000a81548160ff021916908360028111156108cc57fe5b0217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60036000856000191660001916815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360008660001916600019168152602001908152602001600020600201546040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156109f257600080fd5b505af1158015610a06573d6000803e3d6000fd5b505050506040513d6020811015610a1c57600080fd5b810190808051906020019092919050505050600060036000846000191660001916815260200190815260200160002060020181905550919050565b600060036000836000191660001916815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610afa57600080fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600360008360001916600019168152602001908152602001600020600101549050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610bc357600080fd5b60006002811115610bd057fe5b60036000846000191660001916815260200190815260200160002060030160009054906101000a900460ff166002811115610c0757fe5b141515610c1357600080fd5b83518351141515610c2357600080fd5b60036000836000191660001916815260200190815260200160002060010154610c4b8461072b565b11151515610c5857600080fd5b600090505b82518160ff161015610dbf57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb858360ff16815181101515610cb857fe5b90602001906020020151610cf1610cea878660ff16815181101515610cd957fe5b90602001906020020151605f611889565b60646118bc565b6040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610d7657600080fd5b505af1158015610d8a573d6000803e3d6000fd5b505050506040513d6020811015610da057600080fd5b8101908080519060200190929190505050508080600101915050610c5d565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610e3d610e36610e2f8861072b565b6005611889565b60646118bc565b6040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610ec257600080fd5b505af1158015610ed6573d6000803e3d6000fd5b505050506040513d6020811015610eec57600080fd5b810190808051906020019092919050505050610f2e60036000846000191660001916815260200190815260200160002060020154610f298561072b565b6118fd565b600360008460001916600019168152602001908152602001600020600201819055507fb7f3afd33d94b1822195b6f5e018acfef2b4eac9383e5e43ccf14b46577cdf908260405180826000191660001916815260200191505060405180910390a150505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030160009054906101000a900460ff16905084565b600060036000836000191660001916815260200190815260200160002060030160009054906101000a900460ff169050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156110cf57600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60036000856000191660001916815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360008660001916600019168152602001908152602001600020600101546040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156111f057600080fd5b505af1158015611204573d6000803e3d6000fd5b505050506040513d602081101561121a57600080fd5b810190808051906020019092919050505050600160036000846000191660001916815260200190815260200160002060030160006101000a81548160ff0219169083600281111561126757fe5b0217905550600060036000846000191660001916815260200190815260200160002060020181905550919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112f057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151561136757806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156113c757600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd61140e85610a57565b30856040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156114c857600080fd5b505af11580156114dc573d6000803e3d6000fd5b505050506040513d60208110156114f257600080fd5b8101908080519060200190929190505050508160036000856000191660001916815260200190815260200160002060010160008282540192505081905550816003600085600019166000191681526020019081526020016000206002016000828254019250508190555092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156115bf57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166115e085610a57565b73ffffffffffffffffffffffffffffffffffffffff1614151561160257600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8330866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156116fb57600080fd5b505af115801561170f573d6000803e3d6000fd5b505050506040513d602081101561172557600080fd5b8101908080519060200190929190505050506080604051908101604052808373ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018481526020016000600281111561177857fe5b81525060036000866000191660001916815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030160006101000a81548160ff0219169083600281111561181557fe5b02179055509050507f32e4a6410c6ecedac7c04ecdf89f43a5eabc3fff9d464195325cc2c6e38f3b848460405180826000191660001916815260200191505060405180910390a19392505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080828402905060008414806118aa57508284828115156118a757fe5b04145b15156118b257fe5b8091505092915050565b6000806000831115156118cb57fe5b82848115156118d657fe5b04905082848115156118e457fe5b0681840201841415156118f357fe5b8091505092915050565b600082821115151561190b57fe5b8183039050929150505600a165627a7a723058201d06d93e89db4ccbc9c48ddf2b0be8de1f7d04e01a1ce9be65dcc80fed8e174b0029000000000000000000000000aae81c0194d6459f320b70ca0cedf88e11a242ce00000000000000000000000057caffdf21fce7bc085a8ccb37a0c185f2e25a9d00000000000000000000000057caffdf21fce7bc085a8ccb37a0c185f2e25a9d

Deployed Bytecode

0x6080604052600436106100f1576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630194db8e146100f6578063257c360d14610170578063285e1406146101b55780632a874f34146101f85780636235e3a2146102415780636691461a146102b257806381ffdfab146102f557806389b52b9b1461033a5780638da5cb5b146103f15780639eca2f1e14610448578063a2200278146104dc578063ddca3f431461052f578063f158e47814610586578063f2fde38b146105cf578063f922da7e14610612578063fb65a3cb14610665578063fc0c546a146106d4575b600080fd5b34801561010257600080fd5b5061015a6004803603810190808035906020019082018035906020019080806020026020016040519081016040528093929190818152602001838360200280828437820191505050505050919291929050505061072b565b6040518082815260200191505060405180910390f35b34801561017c57600080fd5b5061019f600480360381019080803560001916906020019092919050505061076d565b6040518082815260200191505060405180910390f35b3480156101c157600080fd5b506101f6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610795565b005b34801561020457600080fd5b506102276004803603810190808035600019169060200190929190505050610834565b604051808215151515815260200191505060405180910390f35b34801561024d57600080fd5b506102706004803603810190808035600019169060200190929190505050610a57565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156102be57600080fd5b506102f3600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a9f565b005b34801561030157600080fd5b506103246004803603810190808035600019169060200190929190505050610b3e565b6040518082815260200191505060405180910390f35b34801561034657600080fd5b506103ef60048036038101908080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284378201915050505050509192919290803590602001908201803590602001908080602002602001604051908101604052809392919081815260200183836020028082843782019150505050505091929192908035600019169060200190929190505050610b66565b005b3480156103fd57600080fd5b50610406610f95565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561045457600080fd5b506104776004803603810190808035600019169060200190929190505050610fba565b604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018381526020018260028111156104c557fe5b60ff16815260200194505050505060405180910390f35b3480156104e857600080fd5b5061050b6004803603810190808035600019169060200190929190505050611017565b6040518082600281111561051b57fe5b60ff16815260200191505060405180910390f35b34801561053b57600080fd5b5061054461104c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561059257600080fd5b506105b56004803603810190808035600019169060200190929190505050611072565b604051808215151515815260200191505060405180910390f35b3480156105db57600080fd5b50610610600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611295565b005b34801561061e57600080fd5b5061064b60048036038101908080356000191690602001909291908035906020019092919050505061136a565b604051808215151515815260200191505060405180910390f35b34801561067157600080fd5b506106be600480360381019080803560001916906020019092919080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611562565b6040518082815260200191505060405180910390f35b3480156106e057600080fd5b506106e9611863565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b60008060005b835181101561076357838181518110151561074857fe5b90602001906020020151820191508080600101915050610731565b8192505050919050565b6000600360008360001916600019168152602001908152602001600020600201549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156107f057600080fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561089157600080fd5b600260036000846000191660001916815260200190815260200160002060030160006101000a81548160ff021916908360028111156108cc57fe5b0217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60036000856000191660001916815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360008660001916600019168152602001908152602001600020600201546040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156109f257600080fd5b505af1158015610a06573d6000803e3d6000fd5b505050506040513d6020811015610a1c57600080fd5b810190808051906020019092919050505050600060036000846000191660001916815260200190815260200160002060020181905550919050565b600060036000836000191660001916815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610afa57600080fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600360008360001916600019168152602001908152602001600020600101549050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610bc357600080fd5b60006002811115610bd057fe5b60036000846000191660001916815260200190815260200160002060030160009054906101000a900460ff166002811115610c0757fe5b141515610c1357600080fd5b83518351141515610c2357600080fd5b60036000836000191660001916815260200190815260200160002060010154610c4b8461072b565b11151515610c5857600080fd5b600090505b82518160ff161015610dbf57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb858360ff16815181101515610cb857fe5b90602001906020020151610cf1610cea878660ff16815181101515610cd957fe5b90602001906020020151605f611889565b60646118bc565b6040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610d7657600080fd5b505af1158015610d8a573d6000803e3d6000fd5b505050506040513d6020811015610da057600080fd5b8101908080519060200190929190505050508080600101915050610c5d565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16610e3d610e36610e2f8861072b565b6005611889565b60646118bc565b6040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610ec257600080fd5b505af1158015610ed6573d6000803e3d6000fd5b505050506040513d6020811015610eec57600080fd5b810190808051906020019092919050505050610f2e60036000846000191660001916815260200190815260200160002060020154610f298561072b565b6118fd565b600360008460001916600019168152602001908152602001600020600201819055507fb7f3afd33d94b1822195b6f5e018acfef2b4eac9383e5e43ccf14b46577cdf908260405180826000191660001916815260200191505060405180910390a150505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60036020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154908060020154908060030160009054906101000a900460ff16905084565b600060036000836000191660001916815260200190815260200160002060030160009054906101000a900460ff169050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156110cf57600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb60036000856000191660001916815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360008660001916600019168152602001908152602001600020600101546040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156111f057600080fd5b505af1158015611204573d6000803e3d6000fd5b505050506040513d602081101561121a57600080fd5b810190808051906020019092919050505050600160036000846000191660001916815260200190815260200160002060030160006101000a81548160ff0219169083600281111561126757fe5b0217905550600060036000846000191660001916815260200190815260200160002060020181905550919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112f057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151561136757806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b50565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156113c757600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd61140e85610a57565b30856040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156114c857600080fd5b505af11580156114dc573d6000803e3d6000fd5b505050506040513d60208110156114f257600080fd5b8101908080519060200190929190505050508160036000856000191660001916815260200190815260200160002060010160008282540192505081905550816003600085600019166000191681526020019081526020016000206002016000828254019250508190555092915050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156115bf57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166115e085610a57565b73ffffffffffffffffffffffffffffffffffffffff1614151561160257600080fd5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8330866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156116fb57600080fd5b505af115801561170f573d6000803e3d6000fd5b505050506040513d602081101561172557600080fd5b8101908080519060200190929190505050506080604051908101604052808373ffffffffffffffffffffffffffffffffffffffff1681526020018481526020018481526020016000600281111561177857fe5b81525060036000866000191660001916815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101556040820151816002015560608201518160030160006101000a81548160ff0219169083600281111561181557fe5b02179055509050507f32e4a6410c6ecedac7c04ecdf89f43a5eabc3fff9d464195325cc2c6e38f3b848460405180826000191660001916815260200191505060405180910390a19392505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080828402905060008414806118aa57508284828115156118a757fe5b04145b15156118b257fe5b8091505092915050565b6000806000831115156118cb57fe5b82848115156118d657fe5b04905082848115156118e457fe5b0681840201841415156118f357fe5b8091505092915050565b600082821115151561190b57fe5b8183039050929150505600a165627a7a723058201d06d93e89db4ccbc9c48ddf2b0be8de1f7d04e01a1ce9be65dcc80fed8e174b0029

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

000000000000000000000000aae81c0194d6459f320b70ca0cedf88e11a242ce00000000000000000000000057caffdf21fce7bc085a8ccb37a0c185f2e25a9d00000000000000000000000057caffdf21fce7bc085a8ccb37a0c185f2e25a9d

-----Decoded View---------------
Arg [0] : tokenAddress (address): 0xAAE81c0194D6459F320b70CA0CEdf88e11a242CE
Arg [1] : _owner (address): 0x57CaFfdF21FcE7bc085a8cCb37A0c185f2e25A9D
Arg [2] : _fee (address): 0x57CaFfdF21FcE7bc085a8cCb37A0c185f2e25A9D

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000aae81c0194d6459f320b70ca0cedf88e11a242ce
Arg [1] : 00000000000000000000000057caffdf21fce7bc085a8ccb37a0c185f2e25a9d
Arg [2] : 00000000000000000000000057caffdf21fce7bc085a8ccb37a0c185f2e25a9d


Swarm Source

bzzr://1d06d93e89db4ccbc9c48ddf2b0be8de1f7d04e01a1ce9be65dcc80fed8e174b

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.