Contract 0x3091d37ef18cb33Af72Cf7Ca63714733172cE724

 

Contract Overview

Balance:
1.40507781989640906 Ether

EtherValue:
$194.79 (@ $138.63/ETH)
TxHash Block Age From To Value [TxFee]
0x940726a9b8cb8644e9c6b8cf5e0b63f0206ce57a487ce365ecde73adb34a63a674009968 hrs 7 mins ago0xeea04e2da5b54028c1a056a2115045f5692ab0e2 IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.001165672
0x734e00f66a8b3409b16c853eab2ecbdfdfc021ea5adcb0f5c43f7fb73ef6029c74007798 hrs 50 mins ago0xeea04e2da5b54028c1a056a2115045f5692ab0e2 IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.001046184
0x809f28dd633e5b7efc7b2f5ae6f82f71635a87860aaddfc06ad7ced6a41a9f1473896332 days 2 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000395574
0x0ec7f4e7d86d034cdcbada28c4788facc0f7a1ab1ee5d4e890210e49261ae7dc73894962 days 3 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000395382
0x4e8e85af18496b7ead51d9a0ebad97f70bccae072eb056ba206e8bd1015b127073894822 days 3 hrs ago0xeea04e2da5b54028c1a056a2115045f5692ab0e2 IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000437319
0x1a2cc4778117df1222cf0c4ed121f69415e0b49d0eebe8ef518f1732d486bf2273794613 days 16 hrs ago0xb6b3d0bda2b1c81c5626cb8689e917e566fe163a IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000438126
0xe6fb5de815156de6b69059b1946a6825195f4174efe0bddaf3fa48878515740973783953 days 20 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000395382
0x069a284d10d7fe7b039119a0604819b3e496580525a3971d8af4c3a2c2e9a85373769464 days 1 hr ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000440382
0xb1a65a8a45b5639766f2ce26107603fbbe20b2a5b6c420387b37f40232d62f9173746874 days 10 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000395382
0x6158b1ae1a900a7609bc573d5098a7e5ea2d28662b1d6f8264a26afa99f78a6b73746734 days 10 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000395382
0x15c28574f6c5c7db9eaec3e43d786d391a3e88e8e8b5c35d7a9f01dd1f39a8d573746564 days 10 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000440574
0x8fe66ffbde68704d00caf915f657492722fb00e53cec0aa89ccebf7d80b83b1a73675035 days 13 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000527432
0xb4493232111e7d5a504ce23f9f79a361e866b824906d6cc467fb7ccf600ff45173675015 days 13 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000587176
0xa1786dde6703ab5cae879da913a31be8c80739067c1bc435106a3e66bc40d3ab73580987 days 21 mins ago0xb35b57bc0ad18ba48b6f7a625618105876795a9e IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000918302
0xd55de21ddcde9efa132418c6799b28134cec1e091a4c7adba317f55968e40d7673580257 days 38 mins ago0xb35b57bc0ad18ba48b6f7a625618105876795a9e IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000876732
0xf4579314c5b421c3dfa2386d66a4245bfaf6c90a9c12efd59662254c8fa1b07f73559097 days 8 hrs ago0xeea04e2da5b54028c1a056a2115045f5692ab0e2 IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000653865
0x970420d1712d05f2f0f2f23a7fd244dc5a00736c36d7d418acd0c4ff18ce4b8673543607 days 14 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.00065929
0x3ccf1d0be1a64affce1945cc3806b756288872dee61a284ccb2eeaffd254cc5173537187 days 16 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000922558
0x42967a60117d9f21a157b029f825803066666e0b70164993818207554c3982ca73537097 days 16 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000922558
0x060822452cb8b5d20cb3ba74e0fe7d50ed50358fbfb53e455030b7c7ae92827173537007 days 16 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000922558
0x61c11a0c001ade68d4450f6b4addc0b926f7813bc571bdec244c28e3094f92d073533887 days 17 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.00065897
0xe97ae7d47e365afd751592b19a910a8533098f4e388d669b8f884c84f048c9d773493338 days 8 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000527432
0xb6c57d11d71d437a2ff3d2037933072dc84419e59f7c0de64ed739accd6f6d1673459588 days 21 hrs ago0xfeb352c9cf4b5ea1302f9a419f7d7b6319fb557d IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.00065929
0xabd1342a545905a71a71ea1e2dfe2ecf077cf541be233f21c27cd2d39e6d39d473453968 days 23 hrs ago0xecbd9db85e8fdf690cb614527114c798c57fb692 IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000391473
0x2162f912c24f0fc77ff9720d8655fcfea2a5d3a07de1bba5ab41c7ff4a680cdf73453768 days 23 hrs ago0xecbd9db85e8fdf690cb614527114c798c57fb692 IN  0x3091d37ef18cb33af72cf7ca63714733172ce7240 Ether0.000391665
[ Download CSV Export 

Latest 25 internal transaction, Click here to view more Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0xede894a1d821bf4d544dc062866cd4becb786e35c680d47b44bcc8969a12b6e6721639834 days 7 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x12a0e25e62c1dbd32e505446062b26aecb65f0280.005 Ether
0x3056e7f95ac45b82e8c2d2c0533fc03247b0b0a1c41fd912698babe76c40880b721099735 days 14 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x1ff8371b9ccdbd8f1d1134193ee52b0f8d79eee80.005 Ether
0xdbb3e1ef39735479d9218a404d588b6745cdee29b78d976648f005924fb17a0d720649736 days 15 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x1ff8371b9ccdbd8f1d1134193ee52b0f8d79eee80.005 Ether
0xe21e9bd284bc17e0619125688a0955660959fc44b1640daa7026ab0f689dd75b720613436 days 17 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x33d2ea8282a71cc824b9de69768613f27893eec30.005 Ether
0x880845e4c1bffa2aee190331fa6597868d14de2d04d1b1cc284ef97a271a27ae720596136 days 18 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x4fcd0828a7c18df89500b1fe6aa2622d00cdd0c40.005 Ether
0x462f664ec870037679c4554319e8522665328514c48d68a8beb19661b41fe8a9720327237 days 10 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x34dcb1591b0894f4f8da2e6c18c9cd413340cfc60.005 Ether
0xa43daebd54b7727cbbb3e468875ebeea1897a5df79672a68809ac10881a24ff6720315237 days 11 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x1ff8371b9ccdbd8f1d1134193ee52b0f8d79eee80.005 Ether
0x634c0597711448c498c573ee0afd0c08173cc256c7892d40fe145be3da038964720251237 days 14 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x5b0ac407feb47eb755e0629a455e525e25d1de770.001 Ether
0xf299c2dc3eb363f0176c45dae085788d899c3d483f24251840d5617361565833720247237 days 14 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x5b0ac407feb47eb755e0629a455e525e25d1de770.001 Ether
0x0f21d186a4f4571819cd0c5f460da67ee7e162fe989c010205e6f077b133b131720246437 days 14 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x5b0ac407feb47eb755e0629a455e525e25d1de770.001 Ether
0x86c0509e104e33d25aa3c5ae5e23ddfe43e3b92828f1e8cde7c2d5c9606171d7720240837 days 15 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x1ff8371b9ccdbd8f1d1134193ee52b0f8d79eee80.001 Ether
0x87265d7a8e6f3c987dbee1e91dcde94b87286c838f71b3213bcdbd08e7b97863720239937 days 15 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x1ff8371b9ccdbd8f1d1134193ee52b0f8d79eee80.001 Ether
0x2545b4c8f8f9bcd497fdd04b76df21a1136e5ea9f22a60532e69168b32f9421b720239537 days 15 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x5b0ac407feb47eb755e0629a455e525e25d1de770.001 Ether
0xfe81b7723ad649bd78dc9b7d16ccd10d486675df5ae1956c2a4dc5df960c0327719417139 days 8 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240xe3981f8dadd2574339ef4bd2c12da30ab19d19410.01 Ether
0x8a8ccfccbe1f26e1590e611195a0ebac21c5114d9cc4b8bc3394e8c263e867a8719394739 days 9 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x1ff8371b9ccdbd8f1d1134193ee52b0f8d79eee80.01 Ether
0x656424786689dc8fbb0e510ba907c04d3a909a4bd18cda17c96191a694c021e3719384939 days 10 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x34dcb1591b0894f4f8da2e6c18c9cd413340cfc60.01 Ether
0x9293f47b129f40de8f82aa359feeebea98aaf93526ea423d39028a61ee868e91716162245 days 23 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240xf89876ec0eef735f18277fe669e32ab760fdc5710.007241659300812183 Ether
0x5c81a35487d2745901bb8174481704b235e7b7dd9e123e700adfac3029dffe39715315747 days 17 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x7a5b059c535b2df42c39e527a139876b927b9dcf0.01 Ether
0x06c245b5fc4a704e0433067fb2e1e31eeaa746bc5144936342679682c2ab6a62712834852 days 17 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x2f5aa100e36ee3e85f369298c8402423142c77720.001 Ether
0x187bb7c9d42f262cf6e98531a7c7c767c2c23b5f9ef0d3c7b966e0fafc3b441d712829152 days 18 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x12a0e25e62c1dbd32e505446062b26aecb65f0280.001 Ether
0xe8beb7c7afc7402a81ffa9b5129701d57fb384fa450dfd961bdb6709cf0b5e71712821452 days 18 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x2f5aa100e36ee3e85f369298c8402423142c77720.001 Ether
0x265255a0eac2290315239bc8da174b7c0b136f0e5953717087f02e37ec7071f7709628958 days 23 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x97b6e932e193d720da09da484a0f54147fd0f4bb0.05 Ether
0x3d7c33d9f6bac27f94886896c0b3fb9898ef61932bac5f03a819c1e38f5dd417709607359 days 29 mins ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x97b6e932e193d720da09da484a0f54147fd0f4bb0.03 Ether
0xdde62068d500c00b51e4912d94903e6bbbd8297442378d67a51269c57d78ff57709038360 days 25 mins ago0x3091d37ef18cb33af72cf7ca63714733172ce7240x7a5ca736b757f551416749b00b02488bb5f3893c0.03 Ether
0x1cb9e13d38d52031bc998520445f5ad0a69ad7cbcf710530d2bbc83fb1bde791708901160 days 6 hrs ago0x3091d37ef18cb33af72cf7ca63714733172ce7240xde16281000631dd23e550bbfa9be1c06facd9aad0.02 Ether
[ Download CSV Export 
Warning: The compiled contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) Solidity Compiler Bugs.

Contract Source Code Verified (Exact Match)

Contract Name:
Gateway

Compiler Version
v0.4.23+commit.124ca40d

Optimization Enabled:
Yes

Runs (Optimizer):
200

Contract Source Code

pragma solidity ^0.4.18;

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
  function mul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }
    uint256 c = a * b;
    assert(c / a == b);
    return c;
  }

  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return c;
  }

  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  function add(uint256 a, uint256 b) internal pure returns (uint256) {
    uint256 c = a + b;
    assert(c >= a);
    return c;
  }
}

contract Token {
  /// @return total amount of tokens
  function totalSupply() public constant returns (uint256 supply);

  /// @param _owner The address from which the balance will be retrieved
  /// @return The balance
  function balanceOf(address _owner) public constant returns (uint256 balance);

  /// @notice send `_value` token to `_to` from `msg.sender`
  /// @param _to The address of the recipient
  /// @param _value The amount of token to be transferred
  /// @return Whether the transfer was successful or not
  function transfer(address _to, uint256 _value) public returns (bool success);

  /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from`
  /// @param _from The address of the sender
  /// @param _to The address of the recipient
  /// @param _value The amount of token to be transferred
  /// @return Whether the transfer was successful or not
  function transferFrom(address _from, address _to, uint256 _value) public returns (bool success);

  /// @notice `msg.sender` approves `_addr` to spend `_value` tokens
  /// @param _spender The address of the account able to transfer the tokens
  /// @param _value The amount of wei to be approved for transfer
  /// @return Whether the approval was successful or not
  function approve(address _spender, uint256 _value) public returns (bool success);

  /// @param _owner The address of the account owning tokens
  /// @param _spender The address of the account able to transfer the tokens
  /// @return Amount of remaining tokens allowed to spent
  function allowance(address _owner, address _spender) public constant returns (uint256 remaining);

  event Transfer(address indexed _from, address indexed _to, uint256 _value);
  event Approval(address indexed _owner, address indexed _spender, uint256 _value);

  uint public decimals;
  string public name;
}

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
    
  address public owner;

  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() public {
    owner = msg.sender;
  }

  /**
   * @dev Throws if called by any account other than the owner.
   */
  modifier onlyOwner() {
    require(msg.sender == owner);
    _;
  }

  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param newOwner The address to transfer ownership to.
   */
  function transferOwnership(address newOwner) onlyOwner public {
    require(newOwner != address(0));      
    owner = newOwner;
  }

}
contract Gateway is Ownable{
    using SafeMath for uint;
    address public feeAccount1 = 0x703f9037088A93853163aEaaEd650f3e66aD7A4e; //the account1 that will receive fees
    address public feeAccount2 = 0xc94cac4a4537865753ecdf2ad48F00112dC09ea8; //the account2 that will receive fees
    
    struct BuyInfo {
      address buyerAddress; 
      address sellerAddress;
      uint value;
      address currency;
    }
    
    mapping(address => mapping(uint => BuyInfo)) public payment;
   
    mapping(address => uint) public balances;
    uint balanceFee;
    uint public feePercent;
    uint public maxFee;
    constructor() public{
       feePercent = 1500000; // decimals 6. 1,5% fee by default
       maxFee = 3000000; // fee can not exceed 3%
    }
    
    
    function getBuyerAddressPayment(address _sellerAddress, uint _orderId) public constant returns(address){
      return  payment[_sellerAddress][_orderId].buyerAddress;
    }    
    function getSellerAddressPayment(address _sellerAddress, uint _orderId) public constant returns(address){
      return  payment[_sellerAddress][_orderId].sellerAddress;
    }    
    
    function getValuePayment(address _sellerAddress, uint _orderId) public constant returns(uint){
      return  payment[_sellerAddress][_orderId].value;
    }    
    
    function getCurrencyPayment(address _sellerAddress, uint _orderId) public constant returns(address){
      return  payment[_sellerAddress][_orderId].currency;
    }
    
    
    function setFeeAccount1(address _feeAccount1) onlyOwner public{
      feeAccount1 = _feeAccount1;  
    }
    function setFeeAccount2(address _feeAccount2) onlyOwner public{
      feeAccount2 = _feeAccount2;  
    }
    function setFeePercent(uint _feePercent) onlyOwner public{
      require(_feePercent <= maxFee);
      feePercent = _feePercent;  
    }    
    function payToken(address _tokenAddress, address _sellerAddress, uint _orderId,  uint _value) public returns (bool success){
      require(_tokenAddress != address(0));
      require(_sellerAddress != address(0)); 
      require(_value > 0);
      Token token = Token(_tokenAddress);
      require(token.allowance(msg.sender, this) >= _value);
      token.transferFrom(msg.sender, _sellerAddress, _value);
      payment[_sellerAddress][_orderId] = BuyInfo(msg.sender, _sellerAddress, _value, _tokenAddress);
      success = true;
    }
    function payEth(address _sellerAddress, uint _orderId, uint _value) public returns  (bool success){
      require(_sellerAddress != address(0)); 
      require(_value > 0);
      require(balances[msg.sender] >= _value);
      uint fee = _value.mul(feePercent).div(100000000);
      balances[msg.sender] = balances[msg.sender].sub(_value);
      _sellerAddress.transfer(_value.sub(fee));
      balanceFee = balanceFee.add(fee);
      payment[_sellerAddress][_orderId] = BuyInfo(msg.sender, _sellerAddress, _value, 0x0000000000000000000000000000000000000001);    
      success = true;
    }
    function transferFee() onlyOwner public{
      uint valfee1 = balanceFee.div(2);
      feeAccount1.transfer(valfee1);
      balanceFee = balanceFee.sub(valfee1);
      feeAccount2.transfer(balanceFee);
      balanceFee = 0;
    }
    function balanceOfToken(address _tokenAddress, address _Address) public constant returns (uint) {
      Token token = Token(_tokenAddress);
      return token.balanceOf(_Address);
    }
    function balanceOfEthFee() public constant returns (uint) {
      return balanceFee;
    }
    function refund() public{
      require(balances[msg.sender] > 0);
      uint value = balances[msg.sender];
      balances[msg.sender] = 0;
      msg.sender.transfer(value);
    }
    function getBalanceEth() public constant returns(uint){
      return balances[msg.sender];    
    }
    function() external payable {
      balances[msg.sender] = balances[msg.sender].add(msg.value);    
  }
}

Contract ABI

[{"constant":true,"inputs":[],"name":"maxFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_sellerAddress","type":"address"},{"name":"_orderId","type":"uint256"}],"name":"getSellerAddressPayment","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_sellerAddress","type":"address"},{"name":"_orderId","type":"uint256"}],"name":"getBuyerAddressPayment","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_sellerAddress","type":"address"},{"name":"_orderId","type":"uint256"}],"name":"getValuePayment","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"balanceOfEthFee","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"refund","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"uint256"}],"name":"payment","outputs":[{"name":"buyerAddress","type":"address"},{"name":"sellerAddress","type":"address"},{"name":"value","type":"uint256"},{"name":"currency","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"feeAccount2","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_feePercent","type":"uint256"}],"name":"setFeePercent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"feePercent","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_sellerAddress","type":"address"},{"name":"_orderId","type":"uint256"},{"name":"_value","type":"uint256"}],"name":"payEth","outputs":[{"name":"success","type":"bool"}],"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":"_sellerAddress","type":"address"},{"name":"_orderId","type":"uint256"}],"name":"getCurrencyPayment","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getBalanceEth","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"feeAccount1","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"transferFee","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_feeAccount1","type":"address"}],"name":"setFeeAccount1","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_feeAccount2","type":"address"}],"name":"setFeeAccount2","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_tokenAddress","type":"address"},{"name":"_Address","type":"address"}],"name":"balanceOfToken","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenAddress","type":"address"},{"name":"_sellerAddress","type":"address"},{"name":"_orderId","type":"uint256"},{"name":"_value","type":"uint256"}],"name":"payToken","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"}]

Contract Creation Code

608060405260018054600160a060020a031990811673703f9037088a93853163aeaaed650f3e66ad7a4e179091556002805490911673c94cac4a4537865753ecdf2ad48f00112dc09ea817905534801561005857600080fd5b5060008054600160a060020a033316600160a060020a03199091161790556216e360600655622dc6c0600755610d38806100936000396000f3006080604052600436106101275763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166301f59d16811461016b5780631987e50c1461019257806323146c20146101d257806327e235e3146101f65780633b8ea9e7146102175780633ed08dc91461023b578063590e1ae31461025057806367a09c23146102675780636d736fac146102bf5780637ce3489b146102d45780637fd6f15c146102ec5780638a7c2be2146103015780638da5cb5b1461033c57806398445e6f146103515780639caf34c414610375578063a01799491461038a578063acb2ad6f1461039f578063bc0aca61146103b4578063e7b89977146103d5578063f2fde38b146103f6578063f59e38b714610417578063f64ccca61461043e575b600160a060020a033316600090815260046020526040902054610150903463ffffffff61046b16565b600160a060020a033316600090815260046020526040902055005b34801561017757600080fd5b50610180610485565b60408051918252519081900360200190f35b34801561019e57600080fd5b506101b6600160a060020a036004351660243561048b565b60408051600160a060020a039092168252519081900360200190f35b3480156101de57600080fd5b506101b6600160a060020a03600435166024356104b6565b34801561020257600080fd5b50610180600160a060020a03600435166104de565b34801561022357600080fd5b50610180600160a060020a03600435166024356104f0565b34801561024757600080fd5b5061018061051b565b34801561025c57600080fd5b50610265610521565b005b34801561027357600080fd5b5061028b600160a060020a0360043516602435610594565b60408051600160a060020a039586168152938516602085015283810192909252909216606082015290519081900360800190f35b3480156102cb57600080fd5b506101b66105d2565b3480156102e057600080fd5b506102656004356105e1565b3480156102f857600080fd5b50610180610610565b34801561030d57600080fd5b50610328600160a060020a0360043516602435604435610616565b604080519115158252519081900360200190f35b34801561034857600080fd5b506101b66107c6565b34801561035d57600080fd5b506101b6600160a060020a03600435166024356107d5565b34801561038157600080fd5b50610180610800565b34801561039657600080fd5b506101b661081c565b3480156103ab57600080fd5b5061026561082b565b3480156103c057600080fd5b50610265600160a060020a03600435166108f0565b3480156103e157600080fd5b50610265600160a060020a036004351661093a565b34801561040257600080fd5b50610265600160a060020a0360043516610984565b34801561042357600080fd5b50610180600160a060020a03600435811690602435166109e3565b34801561044a57600080fd5b50610328600160a060020a0360043581169060243516604435606435610a91565b60008282018381101561047a57fe5b8091505b5092915050565b60075481565b600160a060020a03918216600090815260036020908152604080832093835292905220600101541690565b600160a060020a03918216600090815260036020908152604080832093835292905220541690565b60046020526000908152604090205481565b600160a060020a03919091166000908152600360209081526040808320938352929052206002015490565b60055490565b600160a060020a033316600090815260046020526040812054811061054557600080fd5b50600160a060020a033316600081815260046020526040808220805490839055905190929183156108fc02918491818181858888f19350505050158015610590573d6000803e3d6000fd5b5050565b600360208181526000938452604080852090915291835291208054600182015460028301549290930154600160a060020a0391821693821692911684565b600254600160a060020a031681565b60005433600160a060020a039081169116146105fc57600080fd5b60075481111561060b57600080fd5b600655565b60065481565b600080600160a060020a038516151561062e57600080fd5b6000831161063b57600080fd5b600160a060020a03331660009081526004602052604090205483111561066057600080fd5b6106896305f5e10061067d60065486610cb890919063ffffffff16565b9063ffffffff610ce316565b600160a060020a0333166000908152600460205260409020549091506106b5908463ffffffff610cfa16565b600160a060020a0333811660009081526004602052604090209190915585166108fc6106e7858463ffffffff610cfa16565b6040518115909202916000818181858888f1935050505015801561070f573d6000803e3d6000fd5b50600554610723908263ffffffff61046b16565b600555505060408051608081018252600160a060020a03338116825294851660208083018281528385019586526001606085018181526000948552600380855287862099865298909352949092209251835490881673ffffffffffffffffffffffffffffffffffffffff19918216178455915183850180549189169184169190911790559351600283015592519301805493909416929091169190911790915590565b600054600160a060020a031681565b600160a060020a03918216600090815260036020818152604080842094845293905291902001541690565b600160a060020a03331660009081526004602052604090205490565b600154600160a060020a031681565b6000805433600160a060020a0390811691161461084757600080fd5b60055461085b90600263ffffffff610ce316565b600154604051919250600160a060020a03169082156108fc029083906000818181858888f19350505050158015610896573d6000803e3d6000fd5b506005546108aa908263ffffffff610cfa16565b6005819055600254604051600160a060020a039091169180156108fc02916000818181858888f193505050501580156108e7573d6000803e3d6000fd5b50506000600555565b60005433600160a060020a0390811691161461090b57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60005433600160a060020a0390811691161461095557600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60005433600160a060020a0390811691161461099f57600080fd5b600160a060020a03811615156109b457600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60008083905080600160a060020a03166370a08231846040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b158015610a5d57600080fd5b505af1158015610a71573d6000803e3d6000fd5b505050506040513d6020811015610a8757600080fd5b5051949350505050565b600080600160a060020a0386161515610aa957600080fd5b600160a060020a0385161515610abe57600080fd5b60008311610acb57600080fd5b50604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152600160a060020a03338116600483015230811660248301529151879285929084169163dd62ed3e916044808201926020929091908290030181600087803b158015610b3d57600080fd5b505af1158015610b51573d6000803e3d6000fd5b505050506040513d6020811015610b6757600080fd5b50511015610b7457600080fd5b604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a0333811660048301528781166024830152604482018690529151918316916323b872dd916064808201926020929091908290030181600087803b158015610be857600080fd5b505af1158015610bfc573d6000803e3d6000fd5b505050506040513d6020811015610c1257600080fd5b505060408051608081018252600160a060020a03338116825296871660208281018281528385019788529989166060840190815260009283526003808352858420998452989091529290209051815490881673ffffffffffffffffffffffffffffffffffffffff19918216178255975160018083018054928a16928b16929092179091559451600282015590519401805494909516939095169290921790925550919050565b600080831515610ccb576000915061047e565b50828202828482811515610cdb57fe5b041461047a57fe5b6000808284811515610cf157fe5b04949350505050565b600082821115610d0657fe5b509003905600a165627a7a72305820e99e4f546c8211fcf5a4c353a534de431495cee102cb3d2d7489252a108a5d3c0029

Swarm Source

bzzr://e99e4f546c8211fcf5a4c353a534de431495cee102cb3d2d7489252a108a5d3c
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.