ETH Price: $2,808.02 (+3.15%)

Contract

0x93950467145a9f1e5043daB50318501Fa4053c98
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Emergency_withdr...88353522019-10-29 17:38:051943 days ago1572370685IN
0x93950467...Fa4053c98
0 ETH0.0004150210
Set_tokens_recei...79484172019-06-13 5:22:562082 days ago1560403376IN
0x93950467...Fa4053c98
0 ETH0.000043552
Withdraw78996362019-06-05 13:57:212089 days ago1559743041IN
0x93950467...Fa4053c98
0 ETH0.0071324599
Withdraw78805992019-06-02 14:21:072092 days ago1559485267IN
0x93950467...Fa4053c98
0 ETH0.0009955711.4375
Withdraw75404462019-04-10 12:48:452146 days ago1554900525IN
0x93950467...Fa4053c98
0 ETH0.000522276
Withdraw69595962018-12-27 2:16:442250 days ago1545877004IN
0x93950467...Fa4053c98
0 ETH0.0029538441
Withdraw69083942018-12-18 9:56:362259 days ago1545126996IN
0x93950467...Fa4053c98
0 ETH0.001440920
Withdraw68147842018-12-02 21:41:122274 days ago1543786872IN
0x93950467...Fa4053c98
0 ETH0.0002416811
Withdraw67467452018-11-21 17:05:592285 days ago1542819959IN
0x93950467...Fa4053c98
0 ETH0.001740920
Withdraw67332852018-11-19 11:40:262288 days ago1542627626IN
0x93950467...Fa4053c98
0 ETH0.0002197110
Withdraw67056232018-11-14 23:01:222292 days ago1542236482IN
0x93950467...Fa4053c98
0 ETH0.0006591330
Withdraw66731182018-11-09 15:26:382297 days ago1541777198IN
0x93950467...Fa4053c98
0 ETH0.000261133
Withdraw66486142018-11-05 14:57:262301 days ago1541429846IN
0x93950467...Fa4053c98
0 ETH0.0022631726
Withdraw66432122018-11-04 17:38:202302 days ago1541353100IN
0x93950467...Fa4053c98
0 ETH0.000288184
Withdraw66311252018-11-02 18:18:142304 days ago1541182694IN
0x93950467...Fa4053c98
0 ETH0.000348184
Withdraw66212212018-11-01 3:08:302306 days ago1541041710IN
0x93950467...Fa4053c98
0 ETH0.000435225
Withdraw66167302018-10-31 9:13:492307 days ago1540977229IN
0x93950467...Fa4053c98
0 ETH0.0008129237
Withdraw66167282018-10-31 9:12:542307 days ago1540977174IN
0x93950467...Fa4053c98
0 ETH0.0026656637
Withdraw66113142018-10-30 12:00:112308 days ago1540900811IN
0x93950467...Fa4053c98
0 ETH0.000348184
Withdraw66062652018-10-29 16:13:282308 days ago1540829608IN
0x93950467...Fa4053c98
0 ETH0.0009008141
Withdraw66028052018-10-29 2:41:132309 days ago1540780873IN
0x93950467...Fa4053c98
0 ETH0.0029538441
Withdraw65988042018-10-28 10:51:022310 days ago1540723862IN
0x93950467...Fa4053c98
0 ETH0.000576368
Withdraw65850262018-10-26 4:40:222312 days ago1540528822IN
0x93950467...Fa4053c98
0 ETH0.0029538441
Withdraw65628542018-10-22 13:57:022315 days ago1540216622IN
0x93950467...Fa4053c98
0 ETH0.0002197110
Withdraw65615292018-10-22 8:43:262316 days ago1540197806IN
0x93950467...Fa4053c98
0 ETH0.0010086314
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:
EdenchainProxy

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-17
*/

pragma solidity ^0.4.23;

contract Contract {
    mapping (address => uint256) public balances_bonus;
    uint256 public contract_eth_value_bonus;
}

contract ERC20 {
  function transfer(address _to, uint256 _value) public returns (bool success);
  function balanceOf(address _owner) public constant returns (uint256 balance);
}

contract EdenchainProxy {

  struct Snapshot {
    uint256 tokens_balance;
    uint256 eth_balance;
  }


  Contract contr;
  uint256 public eth_balance;
  ERC20 public token;
  mapping (address => uint8) public contributor_rounds;
  Snapshot[] public snapshots;
  address owner;
  uint8 public rounds;

  constructor(address _contract, address _token) {
      owner = msg.sender;
      contr = Contract(_contract);
      token = ERC20(_token);
      eth_balance = contr.contract_eth_value_bonus();
  }

  //public functions
  function withdraw()  {
  		/* require(contract_token_balance != 0); */
  		if (contributor_rounds[msg.sender] < rounds) {
            uint256 balance = contr.balances_bonus(msg.sender);
  			Snapshot storage snapshot = snapshots[contributor_rounds[msg.sender]];
            uint256 tokens_to_withdraw = (balance * snapshot.tokens_balance) / snapshot.eth_balance;
            /* require(tokens_to_withdraw != 0); */
  			snapshot.tokens_balance -= tokens_to_withdraw;
  			snapshot.eth_balance -= balance;
            contributor_rounds[msg.sender]++;
            require(token.transfer(msg.sender, tokens_to_withdraw));
      }
  }

  function emergency_withdraw(address _token) {
      require(msg.sender == owner);
      require(ERC20(_token).transfer(owner, ERC20(_token).balanceOf(this)));
  }

  function set_tokens_received() {
    require(msg.sender == owner);
    uint256 previous_balance;
    uint256 tokens_this_round;
    for (uint8 i = 0; i < snapshots.length; i++) {
      previous_balance += snapshots[i].tokens_balance;
    }
    tokens_this_round = token.balanceOf(address(this)) - previous_balance;
    require(tokens_this_round != 0);
    snapshots.push(Snapshot(tokens_this_round, eth_balance));
    rounds++;
  }

  function set_token_address(address _token) {
    require(msg.sender == owner && _token != 0x0);
    token = ERC20(_token);
  }

  function set_contract_address(address _contract) {
    require(msg.sender == owner);
    contr = Contract(_contract);
  }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"eth_balance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"set_token_address","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"set_tokens_received","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_contract","type":"address"}],"name":"set_contract_address","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"contributor_rounds","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rounds","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_token","type":"address"}],"name":"emergency_withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"snapshots","outputs":[{"name":"tokens_balance","type":"uint256"},{"name":"eth_balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_contract","type":"address"},{"name":"_token","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"}]

608060405234801561001057600080fd5b5060405160408061096a83398101604081815282516020938401516005805433600160a060020a031991821617909155600080548216600160a060020a038086169190911780835560028054909416828616179093557fa8644cd5000000000000000000000000000000000000000000000000000000008752945193969295919094169363a8644cd593600480840194939192918390030190829087803b1580156100ba57600080fd5b505af11580156100ce573d6000803e3d6000fd5b505050506040513d60208110156100e457600080fd5b50516001555050610870806100fa6000396000f3006080604052600436106100a35763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663306c729081146100a85780633ccfd60b146100cf57806342263aa2146100e6578063481030771461010757806359f988801461011c578063885ae1dd1461013d578063a2e800ad14610174578063a852d5ba14610189578063d6565a2d146101aa578063fc0c546a146101db575b600080fd5b3480156100b457600080fd5b506100bd61020c565b60408051918252519081900360200190f35b3480156100db57600080fd5b506100e4610212565b005b3480156100f257600080fd5b506100e4600160a060020a0360043516610417565b34801561011357600080fd5b506100e4610473565b34801561012857600080fd5b506100e4600160a060020a036004351661063a565b34801561014957600080fd5b5061015e600160a060020a0360043516610680565b6040805160ff9092168252519081900360200190f35b34801561018057600080fd5b5061015e610695565b34801561019557600080fd5b506100e4600160a060020a03600435166106b6565b3480156101b657600080fd5b506101c2600435610809565b6040805192835260208301919091528051918290030190f35b3480156101e757600080fd5b506101f0610835565b60408051600160a060020a039092168252519081900360200190f35b60015481565b6005543360009081526003602052604081205490918291829160ff740100000000000000000000000000000000000000009091048116911610156104125760008054604080517f1e4532f10000000000000000000000000000000000000000000000000000000081523360048201529051600160a060020a0390921692631e4532f1926024808401936020939083900390910190829087803b1580156102b757600080fd5b505af11580156102cb573d6000803e3d6000fd5b505050506040513d60208110156102e157600080fd5b505133600090815260036020526040902054600480549295509160ff90911690811061030957fe5b9060005260206000209060020201915081600101548260000154840281151561032e57fe5b8354919004908190038355600180840180548690039055336000818152600360209081526040808320805460ff19811660ff918216909701169590951790945560025484517fa9059cbb0000000000000000000000000000000000000000000000000000000081526004810194909452602484018690529351949550600160a060020a039093169363a9059cbb936044808501949193918390030190829087803b1580156103db57600080fd5b505af11580156103ef573d6000803e3d6000fd5b505050506040513d602081101561040557600080fd5b5051151561041257600080fd5b505050565b600554600160a060020a0316331480156104395750600160a060020a03811615155b151561044457600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60055460009081908190600160a060020a0316331461049157600080fd5b5060005b60045460ff821610156104d1576004805460ff83169081106104b357fe5b60009182526020909120600290910201549290920191600101610495565b600254604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290518592600160a060020a0316916370a082319160248083019260209291908290030181600087803b15801561053657600080fd5b505af115801561054a573d6000803e3d6000fd5b505050506040513d602081101561056057600080fd5b505103915081151561057157600080fd5b5060408051808201909152908152600180546020830190815260048054808401825560009190915292517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600290940293840155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909201919091556005805474ff0000000000000000000000000000000000000000198116740100000000000000000000000000000000000000009182900460ff9081169094019093160291909117905550565b600554600160a060020a0316331461065157600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60036020526000908152604090205460ff1681565b60055474010000000000000000000000000000000000000000900460ff1681565b600554600160a060020a031633146106cd57600080fd5b600554604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a038085169363a9059cbb9391169184916370a082319160248083019260209291908290030181600087803b15801561073d57600080fd5b505af1158015610751573d6000803e3d6000fd5b505050506040513d602081101561076757600080fd5b5051604080517c010000000000000000000000000000000000000000000000000000000063ffffffff8616028152600160a060020a03909316600484015260248301919091525160448083019260209291908290030181600087803b1580156107cf57600080fd5b505af11580156107e3573d6000803e3d6000fd5b505050506040513d60208110156107f957600080fd5b5051151561080657600080fd5b50565b600480548290811061081757fe5b60009182526020909120600290910201805460019091015490915082565b600254600160a060020a0316815600a165627a7a72305820b6d5819eb4493152b7701f83b9547c68a0fcb078278de4bc49f3f60c67db2226002900000000000000000000000079137ad8bfed047ab7a06e2e946143f2dda9d06d00000000000000000000000005860d453c7974cbf46508c06cba14e211c629ce

Deployed Bytecode

0x6080604052600436106100a35763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663306c729081146100a85780633ccfd60b146100cf57806342263aa2146100e6578063481030771461010757806359f988801461011c578063885ae1dd1461013d578063a2e800ad14610174578063a852d5ba14610189578063d6565a2d146101aa578063fc0c546a146101db575b600080fd5b3480156100b457600080fd5b506100bd61020c565b60408051918252519081900360200190f35b3480156100db57600080fd5b506100e4610212565b005b3480156100f257600080fd5b506100e4600160a060020a0360043516610417565b34801561011357600080fd5b506100e4610473565b34801561012857600080fd5b506100e4600160a060020a036004351661063a565b34801561014957600080fd5b5061015e600160a060020a0360043516610680565b6040805160ff9092168252519081900360200190f35b34801561018057600080fd5b5061015e610695565b34801561019557600080fd5b506100e4600160a060020a03600435166106b6565b3480156101b657600080fd5b506101c2600435610809565b6040805192835260208301919091528051918290030190f35b3480156101e757600080fd5b506101f0610835565b60408051600160a060020a039092168252519081900360200190f35b60015481565b6005543360009081526003602052604081205490918291829160ff740100000000000000000000000000000000000000009091048116911610156104125760008054604080517f1e4532f10000000000000000000000000000000000000000000000000000000081523360048201529051600160a060020a0390921692631e4532f1926024808401936020939083900390910190829087803b1580156102b757600080fd5b505af11580156102cb573d6000803e3d6000fd5b505050506040513d60208110156102e157600080fd5b505133600090815260036020526040902054600480549295509160ff90911690811061030957fe5b9060005260206000209060020201915081600101548260000154840281151561032e57fe5b8354919004908190038355600180840180548690039055336000818152600360209081526040808320805460ff19811660ff918216909701169590951790945560025484517fa9059cbb0000000000000000000000000000000000000000000000000000000081526004810194909452602484018690529351949550600160a060020a039093169363a9059cbb936044808501949193918390030190829087803b1580156103db57600080fd5b505af11580156103ef573d6000803e3d6000fd5b505050506040513d602081101561040557600080fd5b5051151561041257600080fd5b505050565b600554600160a060020a0316331480156104395750600160a060020a03811615155b151561044457600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60055460009081908190600160a060020a0316331461049157600080fd5b5060005b60045460ff821610156104d1576004805460ff83169081106104b357fe5b60009182526020909120600290910201549290920191600101610495565b600254604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290518592600160a060020a0316916370a082319160248083019260209291908290030181600087803b15801561053657600080fd5b505af115801561054a573d6000803e3d6000fd5b505050506040513d602081101561056057600080fd5b505103915081151561057157600080fd5b5060408051808201909152908152600180546020830190815260048054808401825560009190915292517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600290940293840155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909201919091556005805474ff0000000000000000000000000000000000000000198116740100000000000000000000000000000000000000009182900460ff9081169094019093160291909117905550565b600554600160a060020a0316331461065157600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60036020526000908152604090205460ff1681565b60055474010000000000000000000000000000000000000000900460ff1681565b600554600160a060020a031633146106cd57600080fd5b600554604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a038085169363a9059cbb9391169184916370a082319160248083019260209291908290030181600087803b15801561073d57600080fd5b505af1158015610751573d6000803e3d6000fd5b505050506040513d602081101561076757600080fd5b5051604080517c010000000000000000000000000000000000000000000000000000000063ffffffff8616028152600160a060020a03909316600484015260248301919091525160448083019260209291908290030181600087803b1580156107cf57600080fd5b505af11580156107e3573d6000803e3d6000fd5b505050506040513d60208110156107f957600080fd5b5051151561080657600080fd5b50565b600480548290811061081757fe5b60009182526020909120600290910201805460019091015490915082565b600254600160a060020a0316815600a165627a7a72305820b6d5819eb4493152b7701f83b9547c68a0fcb078278de4bc49f3f60c67db22260029

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

00000000000000000000000079137ad8bfed047ab7a06e2e946143f2dda9d06d00000000000000000000000005860d453c7974cbf46508c06cba14e211c629ce

-----Decoded View---------------
Arg [0] : _contract (address): 0x79137aD8BfeD047AB7a06E2e946143F2dDa9D06d
Arg [1] : _token (address): 0x05860d453C7974CbF46508c06CBA14e211c629Ce

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000079137ad8bfed047ab7a06e2e946143f2dda9d06d
Arg [1] : 00000000000000000000000005860d453c7974cbf46508c06cba14e211c629ce


Swarm Source

bzzr://b6d5819eb4493152b7701f83b9547c68a0fcb078278de4bc49f3f60c67db2226

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.