More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 66 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Emergency_withdr... | 8835352 | 1943 days ago | IN | 0 ETH | 0.00041502 | ||||
Set_tokens_recei... | 7948417 | 2082 days ago | IN | 0 ETH | 0.00004355 | ||||
Withdraw | 7899636 | 2089 days ago | IN | 0 ETH | 0.00713245 | ||||
Withdraw | 7880599 | 2092 days ago | IN | 0 ETH | 0.00099557 | ||||
Withdraw | 7540446 | 2146 days ago | IN | 0 ETH | 0.00052227 | ||||
Withdraw | 6959596 | 2250 days ago | IN | 0 ETH | 0.00295384 | ||||
Withdraw | 6908394 | 2259 days ago | IN | 0 ETH | 0.0014409 | ||||
Withdraw | 6814784 | 2274 days ago | IN | 0 ETH | 0.00024168 | ||||
Withdraw | 6746745 | 2285 days ago | IN | 0 ETH | 0.0017409 | ||||
Withdraw | 6733285 | 2288 days ago | IN | 0 ETH | 0.00021971 | ||||
Withdraw | 6705623 | 2292 days ago | IN | 0 ETH | 0.00065913 | ||||
Withdraw | 6673118 | 2297 days ago | IN | 0 ETH | 0.00026113 | ||||
Withdraw | 6648614 | 2301 days ago | IN | 0 ETH | 0.00226317 | ||||
Withdraw | 6643212 | 2302 days ago | IN | 0 ETH | 0.00028818 | ||||
Withdraw | 6631125 | 2304 days ago | IN | 0 ETH | 0.00034818 | ||||
Withdraw | 6621221 | 2306 days ago | IN | 0 ETH | 0.00043522 | ||||
Withdraw | 6616730 | 2307 days ago | IN | 0 ETH | 0.00081292 | ||||
Withdraw | 6616728 | 2307 days ago | IN | 0 ETH | 0.00266566 | ||||
Withdraw | 6611314 | 2308 days ago | IN | 0 ETH | 0.00034818 | ||||
Withdraw | 6606265 | 2308 days ago | IN | 0 ETH | 0.00090081 | ||||
Withdraw | 6602805 | 2309 days ago | IN | 0 ETH | 0.00295384 | ||||
Withdraw | 6598804 | 2310 days ago | IN | 0 ETH | 0.00057636 | ||||
Withdraw | 6585026 | 2312 days ago | IN | 0 ETH | 0.00295384 | ||||
Withdraw | 6562854 | 2315 days ago | IN | 0 ETH | 0.00021971 | ||||
Withdraw | 6561529 | 2316 days ago | IN | 0 ETH | 0.00100863 |
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
Contract Source Code (Solidity)
/** *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
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.