Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 617 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Token | 4358698 | 2640 days ago | IN | 0 ETH | 0.00057867 | ||||
Withdraw Token | 4358688 | 2640 days ago | IN | 0 ETH | 0.00061412 | ||||
Withdraw Token | 4358617 | 2640 days ago | IN | 0 ETH | 0.00070556 | ||||
Withdraw ETH | 4276293 | 2667 days ago | IN | 0 ETH | 0.00125234 | ||||
Transfer | 4251145 | 2674 days ago | IN | 15,993 ETH | 0.00037018 | ||||
Withdraw ETH | 4250175 | 2674 days ago | IN | 0 ETH | 0.00090774 | ||||
Withdraw Token | 4250166 | 2674 days ago | IN | 0 ETH | 0.0008004 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028309 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028245 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028245 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 | ||||
Set Credit | 4249447 | 2675 days ago | IN | 0 ETH | 0.00028277 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
4276293 | 2667 days ago | 12,154.86622644 ETH | ||||
4276240 | 2667 days ago | 9.96670807 ETH | ||||
4275694 | 2667 days ago | 2.97490931 ETH | ||||
4275673 | 2667 days ago | 11.97198418 ETH | ||||
4275543 | 2667 days ago | 30 ETH | ||||
4275348 | 2667 days ago | 11.00393875 ETH | ||||
4273443 | 2668 days ago | 8.20913739 ETH | ||||
4273346 | 2668 days ago | 6.08984596 ETH | ||||
4266244 | 2670 days ago | 0.00414186 ETH | ||||
4266150 | 2670 days ago | 29.8 ETH | ||||
4265920 | 2670 days ago | 5 ETH | ||||
4265685 | 2670 days ago | 0.99378881 ETH | ||||
4265685 | 2670 days ago | 30 ETH | ||||
4265676 | 2670 days ago | 30 ETH | ||||
4265670 | 2670 days ago | 5.21689632 ETH | ||||
4265656 | 2670 days ago | 30 ETH | ||||
4265636 | 2670 days ago | 30 ETH | ||||
4265614 | 2670 days ago | 30 ETH | ||||
4265602 | 2670 days ago | 30 ETH | ||||
4265592 | 2670 days ago | 30 ETH | ||||
4265548 | 2670 days ago | 30 ETH | ||||
4265525 | 2670 days ago | 30 ETH | ||||
4265516 | 2670 days ago | 24.18681952 ETH | ||||
4265497 | 2670 days ago | 30 ETH | ||||
4265485 | 2670 days ago | 30 ETH |
Loading...
Loading
Contract Name:
Rollback
Compiler Version
v0.4.11+commit.68ef5810
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-09-07 */ pragma solidity ^0.4.11; contract Owned { address public owner; function Owned() { owner = msg.sender; } modifier onlyOwner() { require(msg.sender == owner); _; } function setOwner(address _newOwner) onlyOwner { owner = _newOwner; } } // Abstract contract for the full ERC 20 Token standard // https://github.com/ethereum/EIPs/issues/20 contract Token { /* This is a slight change to the ERC20 base standard. function totalSupply() constant returns (uint256 supply); is replaced with: uint256 public totalSupply; This automatically creates a getter function for the totalSupply. This is moved to the base contract since public getter functions are not currently recognised as an implementation of the matching abstract function by the compiler. */ /// total amount of tokens //uint256 public totalSupply; function totalSupply() constant returns (uint256 supply); /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) 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) 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) 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) 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) constant returns (uint256 remaining); event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) internal constant 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 constant returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } function toUINT112(uint256 a) internal constant returns(uint112) { assert(uint112(a) == a); return uint112(a); } function toUINT120(uint256 a) internal constant returns(uint120) { assert(uint120(a) == a); return uint120(a); } function toUINT128(uint256 a) internal constant returns(uint128) { assert(uint128(a) == a); return uint128(a); } } contract ApprovalReceiver { function receiveApproval(address _from, uint256 _value, address _tokenContract, bytes _extraData); } contract Rollback is Owned, ApprovalReceiver { event onSetCredit(address account , uint256 amount); event onReturned(address who, uint256 tokenAmount, uint256 ethAmount); using SafeMath for uint256; Token public token = Token(0xD850942eF8811f2A866692A623011bDE52a462C1); uint256 public totalSetCredit; //set ven that should be returned uint256 public totalReturnedCredit; //returned ven struct Credit { uint128 total; uint128 used; } mapping(address => Credit) credits; //public function Rollback() { } function() payable { } function withdrawETH(address _address,uint256 _amount) onlyOwner { require(_address != 0); _address.transfer(_amount); } function withdrawToken(address _address, uint256 _amount) onlyOwner { require(_address != 0); token.transfer(_address, _amount); } function setCredit(address _account, uint256 _amount) onlyOwner { totalSetCredit += _amount; totalSetCredit -= credits[_account].total; credits[_account].total = _amount.toUINT128(); require(credits[_account].total >= credits[_account].used); onSetCredit(_account, _amount); } function getCredit(address _account) constant returns (uint256 total, uint256 used) { return (credits[_account].total, credits[_account].used); } function receiveApproval(address _from, uint256 _value, address /*_tokenContract*/, bytes /*_extraData*/) { require(msg.sender == address(token)); require(credits[_from].total >= credits[_from].used); uint256 remainedCredit = credits[_from].total - credits[_from].used; if(_value > remainedCredit) _value = remainedCredit; uint256 balance = token.balanceOf(_from); if(_value > balance) _value = balance; require(_value > 0); require(token.transferFrom(_from, this, _value)); uint256 ethAmount = _value / 4025; require(ethAmount > 0); credits[_from].used += _value.toUINT128(); totalReturnedCredit +=_value; _from.transfer(ethAmount); onReturned(_from, _value, ethAmount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"},{"name":"_amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSetCredit","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_account","type":"address"}],"name":"getCredit","outputs":[{"name":"total","type":"uint256"},{"name":"used","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"},{"name":"","type":"address"},{"name":"","type":"bytes"}],"name":"receiveApproval","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"},{"name":"_amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_account","type":"address"},{"name":"_amount","type":"uint256"}],"name":"setCredit","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalReturnedCredit","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"account","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"onSetCredit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"who","type":"address"},{"indexed":false,"name":"tokenAmount","type":"uint256"},{"indexed":false,"name":"ethAmount","type":"uint256"}],"name":"onReturned","type":"event"}]
Contract Creation Code
606060405260018054600160a060020a03191673d850942ef8811f2a866692a623011bde52a462c1179055341561003257fe5b5b5b60008054600160a060020a03191633600160a060020a03161790555b5b5b61085e806100616000396000f300606060405236156100a15763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166313af403581146100aa5780634782f779146100c857806351e82eec146100e957806357344e6f1461010b5780638da5cb5b146101405780638f4ffcb11461016c5780639e281a98146101da578063b40ee8b4146101fb578063b9413c471461021c578063fc0c546a1461023e575b6100a85b5b565b005b34156100b257fe5b6100a8600160a060020a036004351661026a565b005b34156100d057fe5b6100a8600160a060020a03600435166024356102b3565b005b34156100f157fe5b6100f9610318565b60408051918252519081900360200190f35b341561011357fe5b610127600160a060020a036004351661031e565b6040805192835260208301919091528051918290030190f35b341561014857fe5b61015061035a565b60408051600160a060020a039092168252519081900360200190f35b341561017457fe5b604080516020600460643581810135601f81018490048402850184019095528484526100a8948235600160a060020a039081169560248035966044359093169594608494929391019190819084018382808284375094965061036995505050505050565b005b34156101e257fe5b6100a8600160a060020a0360043516602435610636565b005b341561020357fe5b6100a8600160a060020a03600435166024356106f4565b005b341561022457fe5b6100f96107f8565b60408051918252519081900360200190f35b341561024657fe5b6101506107fe565b60408051600160a060020a039092168252519081900360200190f35b60005433600160a060020a039081169116146102865760006000fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a039081169116146102cf5760006000fd5b600160a060020a03821615156102e55760006000fd5b604051600160a060020a0383169082156108fc029083906000818181858888f19350505050151561031257fe5b5b5b5050565b60025481565b600160a060020a0381166000908152600460205260409020546fffffffffffffffffffffffffffffffff80821691608060020a9004165b915091565b600054600160a060020a031681565b6001546000908190819033600160a060020a0390811691161461038c5760006000fd5b600160a060020a0387166000908152600460205260409020546fffffffffffffffffffffffffffffffff608060020a82048116911610156103cd5760006000fd5b600160a060020a0387166000908152600460205260409020546fffffffffffffffffffffffffffffffff608060020a820481169181169190910316925082861115610416578295505b600154604080516000602091820181905282517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a038c81166004830152935193909416936370a08231936024808301949391928390030190829087803b151561048457fe5b6102c65a03f1151561049257fe5b505060405151925050818611156104a7578195505b600086116104b55760006000fd5b600154604080516000602091820181905282517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038c811660048301523081166024830152604482018c9052935193909416936323b872dd936064808301949391928390030190829087803b151561053257fe5b6102c65a03f1151561054057fe5b505060405151151590506105545760006000fd5b610fb9865b0490506000811161056a5760006000fd5b6105738661080d565b600160a060020a03881660008181526004602052604080822080546fffffffffffffffffffffffffffffffff608060020a80830482169097018116909602951694909417909355600380548a0190559151909183156108fc02918491818181858888f1935050505015156105e357fe5b60408051600160a060020a03891681526020810188905280820183905290517f9a84792b61ff7122b8808b79ec079ef0da4de94236873c973605e4c98a27f1e29181900360600190a15b50505050505050565b60005433600160a060020a039081169116146106525760006000fd5b600160a060020a03821615156106685760006000fd5b600154604080516000602091820181905282517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152602482018790529351939094169363a9059cbb936044808301949391928390030190829087803b15156106dd57fe5b6102c65a03f115156106eb57fe5b5050505b5b5050565b60005433600160a060020a039081169116146107105760006000fd5b600280548201808255600160a060020a0384166000908152600460205260409020546fffffffffffffffffffffffffffffffff16900390556107518161080d565b600160a060020a038316600090815260046020526040902080546fffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff9283161790819055608060020a81048216911610156107ae5760006000fd5b60408051600160a060020a03841681526020810183905281517fcc9fd9d90de7a2135149a968c984dafeac1083f781875a525248b63d9a4f574d929181900390910190a15b5b5050565b60035481565b600154600160a060020a031681565b60006fffffffffffffffffffffffffffffffff8216821461082a57fe5b50805b9190505600a165627a7a723058202d7fbc6c951a2a0572486646ab3e337c48a766a5c23028cd43eeac52148368f20029
Deployed Bytecode
0x606060405236156100a15763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166313af403581146100aa5780634782f779146100c857806351e82eec146100e957806357344e6f1461010b5780638da5cb5b146101405780638f4ffcb11461016c5780639e281a98146101da578063b40ee8b4146101fb578063b9413c471461021c578063fc0c546a1461023e575b6100a85b5b565b005b34156100b257fe5b6100a8600160a060020a036004351661026a565b005b34156100d057fe5b6100a8600160a060020a03600435166024356102b3565b005b34156100f157fe5b6100f9610318565b60408051918252519081900360200190f35b341561011357fe5b610127600160a060020a036004351661031e565b6040805192835260208301919091528051918290030190f35b341561014857fe5b61015061035a565b60408051600160a060020a039092168252519081900360200190f35b341561017457fe5b604080516020600460643581810135601f81018490048402850184019095528484526100a8948235600160a060020a039081169560248035966044359093169594608494929391019190819084018382808284375094965061036995505050505050565b005b34156101e257fe5b6100a8600160a060020a0360043516602435610636565b005b341561020357fe5b6100a8600160a060020a03600435166024356106f4565b005b341561022457fe5b6100f96107f8565b60408051918252519081900360200190f35b341561024657fe5b6101506107fe565b60408051600160a060020a039092168252519081900360200190f35b60005433600160a060020a039081169116146102865760006000fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60005433600160a060020a039081169116146102cf5760006000fd5b600160a060020a03821615156102e55760006000fd5b604051600160a060020a0383169082156108fc029083906000818181858888f19350505050151561031257fe5b5b5b5050565b60025481565b600160a060020a0381166000908152600460205260409020546fffffffffffffffffffffffffffffffff80821691608060020a9004165b915091565b600054600160a060020a031681565b6001546000908190819033600160a060020a0390811691161461038c5760006000fd5b600160a060020a0387166000908152600460205260409020546fffffffffffffffffffffffffffffffff608060020a82048116911610156103cd5760006000fd5b600160a060020a0387166000908152600460205260409020546fffffffffffffffffffffffffffffffff608060020a820481169181169190910316925082861115610416578295505b600154604080516000602091820181905282517f70a08231000000000000000000000000000000000000000000000000000000008152600160a060020a038c81166004830152935193909416936370a08231936024808301949391928390030190829087803b151561048457fe5b6102c65a03f1151561049257fe5b505060405151925050818611156104a7578195505b600086116104b55760006000fd5b600154604080516000602091820181905282517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a038c811660048301523081166024830152604482018c9052935193909416936323b872dd936064808301949391928390030190829087803b151561053257fe5b6102c65a03f1151561054057fe5b505060405151151590506105545760006000fd5b610fb9865b0490506000811161056a5760006000fd5b6105738661080d565b600160a060020a03881660008181526004602052604080822080546fffffffffffffffffffffffffffffffff608060020a80830482169097018116909602951694909417909355600380548a0190559151909183156108fc02918491818181858888f1935050505015156105e357fe5b60408051600160a060020a03891681526020810188905280820183905290517f9a84792b61ff7122b8808b79ec079ef0da4de94236873c973605e4c98a27f1e29181900360600190a15b50505050505050565b60005433600160a060020a039081169116146106525760006000fd5b600160a060020a03821615156106685760006000fd5b600154604080516000602091820181905282517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a038781166004830152602482018790529351939094169363a9059cbb936044808301949391928390030190829087803b15156106dd57fe5b6102c65a03f115156106eb57fe5b5050505b5b5050565b60005433600160a060020a039081169116146107105760006000fd5b600280548201808255600160a060020a0384166000908152600460205260409020546fffffffffffffffffffffffffffffffff16900390556107518161080d565b600160a060020a038316600090815260046020526040902080546fffffffffffffffffffffffffffffffff19166fffffffffffffffffffffffffffffffff9283161790819055608060020a81048216911610156107ae5760006000fd5b60408051600160a060020a03841681526020810183905281517fcc9fd9d90de7a2135149a968c984dafeac1083f781875a525248b63d9a4f574d929181900390910190a15b5b5050565b60035481565b600154600160a060020a031681565b60006fffffffffffffffffffffffffffffffff8216821461082a57fe5b50805b9190505600a165627a7a723058202d7fbc6c951a2a0572486646ab3e337c48a766a5c23028cd43eeac52148368f20029
Swarm Source
bzzr://2d7fbc6c951a2a0572486646ab3e337c48a766a5c23028cd43eeac52148368f2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.054459 | 1,295.2077 | $70.54 |
Loading...
Loading
[ Download: CSV Export ]
[ 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.