ETH Price: $3,459.86 (+1.32%)
Gas: 17 Gwei

Contract

0x8bCCc9BA2E5706E24a36ddA02ca2A846E39a7bbF
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Execute175678342023-06-27 2:46:47386 days ago1687834007IN
VsliceMSig
0 ETH0.0003627314.37750598
Stop Token Swap175678282023-06-27 2:45:35386 days ago1687833935IN
VsliceMSig
0 ETH0.0003208813.60604755
Is Owner175678232023-06-27 2:44:23386 days ago1687833863IN
VsliceMSig
0 ETH0.0003306113.80705855
Change Requireme...175678112023-06-27 2:41:47386 days ago1687833707IN
VsliceMSig
0 ETH0.0002887411.87045847
Revoke175678072023-06-27 2:40:59386 days ago1687833659IN
VsliceMSig
0 ETH0.0002788811.41315417
Is Owner175678002023-06-27 2:39:35386 days ago1687833575IN
VsliceMSig
0 ETH0.0002734711.42081726
Change Owner175677932023-06-27 2:38:11386 days ago1687833491IN
VsliceMSig
0 ETH0.0003100712.39405361
Kill172353582023-05-11 6:33:23433 days ago1683786803IN
VsliceMSig
0 ETH0.0018108373.66817937
Remove Owner172353522023-05-11 6:32:11433 days ago1683786731IN
VsliceMSig
0 ETH0.0018744977.88011994
Execute79972802019-06-20 20:45:141853 days ago1561063514IN
VsliceMSig
0 ETH0.000981724
Execute79972502019-06-20 20:39:341853 days ago1561063174IN
VsliceMSig
0 ETH0.001039924
Execute79972092019-06-20 20:31:241853 days ago1561062684IN
VsliceMSig
0 ETH0.001041464
Execute79971352019-06-20 20:13:161853 days ago1561061596IN
VsliceMSig
0 ETH0.001041464
Execute79961892019-06-20 16:38:581853 days ago1561048738IN
VsliceMSig
0 ETH0.001041464
Execute79961872019-06-20 16:38:501853 days ago1561048730IN
VsliceMSig
0 ETH0.000155184
Execute79952242019-06-20 12:57:541854 days ago1561035474IN
VsliceMSig
0 ETH0.001041464
Execute79951682019-06-20 12:45:281854 days ago1561034728IN
VsliceMSig
0 ETH0.000193114
Execute79897502019-06-19 16:18:151854 days ago1560961095IN
VsliceMSig
0 ETH0.001081394
0x0a9059cb79396652019-06-11 20:23:391862 days ago1560284619IN
VsliceMSig
0 ETH0.0020541
Execute79396532019-06-11 20:20:301862 days ago1560284430IN
VsliceMSig
0 ETH0.0014344820
Execute79396512019-06-11 20:19:391862 days ago1560284379IN
VsliceMSig
0 ETH0.0064374420
0x0a9059cb79396272019-06-11 20:13:341862 days ago1560284014IN
VsliceMSig
0 ETH0.0020541
0x0b61d27f79396152019-06-11 20:10:111862 days ago1560283811IN
VsliceMSig
0 ETH0.0020541
Execute79387542019-06-11 16:55:521862 days ago1560272152IN
VsliceMSig
0 ETH0.0015649241
Execute79386002019-06-11 16:19:431862 days ago1560269983IN
VsliceMSig
0 ETH0.0018069141
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
40690992017-07-24 23:41:222549 days ago1500939682
VsliceMSig
25,034.44605278 ETH
40690502017-07-24 23:27:172549 days ago1500938837
VsliceMSig
11,000 ETH
40672342017-07-24 14:03:252550 days ago1500905005
VsliceMSig
10,000 ETH
40625302017-07-23 13:37:132551 days ago1500817033
VsliceMSig
10,000 ETH
40577992017-07-22 13:09:522552 days ago1500728992
VsliceMSig
10,000 ETH
40531882017-07-21 13:02:032553 days ago1500642123
VsliceMSig
10,000 ETH
40471312017-07-20 5:28:142554 days ago1500528494
VsliceMSig
10,000 ETH
40141362017-07-12 23:26:072561 days ago1499901967
VsliceMSig
4,000 ETH
39813992017-07-06 5:07:422568 days ago1499317662
VsliceMSig
3,000 ETH
39594952017-07-01 20:48:162572 days ago1498942096
VsliceMSig
2,000 ETH
39492492017-06-29 19:50:492574 days ago1498765849
VsliceMSig
1,000 ETH
39356512017-06-27 2:27:162577 days ago1498530436
VsliceMSig
2,000 ETH
39294962017-06-25 20:46:362578 days ago1498423596
VsliceMSig
2,000 ETH
39099782017-06-21 21:39:542582 days ago1498081194
VsliceMSig
1,000 ETH
39049692017-06-20 20:58:232583 days ago1497992303
VsliceMSig
1,000 ETH
38915952017-06-18 7:18:442586 days ago1497770324
VsliceMSig
3,400 ETH
38621762017-06-12 18:21:392591 days ago1497291699
VsliceMSig
5,000 ETH
38040642017-06-01 15:01:222602 days ago1496329282
VsliceMSig
6,000 ETH
36962602017-05-12 20:48:262622 days ago1494622106
VsliceMSig
10,000 ETH
34522812017-03-31 14:59:512664 days ago1490972391
VsliceMSig
5,000 ETH
33627572017-03-16 15:05:582679 days ago1489676758
VsliceMSig
5,000 ETH
33569642017-03-15 15:44:182680 days ago1489592658
VsliceMSig
3,900 ETH
32663022017-02-28 12:39:242696 days ago1488285564
VsliceMSig
6,000 ETH
32400872017-02-24 4:38:422700 days ago1487911122
VsliceMSig
10,000 ETH
31983452017-02-17 5:57:122707 days ago1487311032
VsliceMSig
10,000 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x0F8Dffce...2Ac10c687
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Wallet

Compiler Version
v0.4.4+commit.4633f3de

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2016-11-14
*/

pragma solidity ^0.4.0;
/*
This vSlice token contract is based on the ERC20 token contract. Additional
functionality has been integrated:
* the contract Lockable, which is used as a parent of the Token contract
* the function mintTokens(), which makes use of the currentSwapRate() and safeToAdd() helpers
* the function disableTokenSwapLock()
*/

contract Lockable {
    uint public numOfCurrentEpoch;
    uint public creationTime;
    uint public constant UNLOCKED_TIME = 25 days;
    uint public constant LOCKED_TIME = 5 days;
    uint public constant EPOCH_LENGTH = 30 days;
    bool public lock;
    bool public tokenSwapLock;

    event Locked();
    event Unlocked();

    // This modifier should prevent tokens transfers while the tokenswap
    // is still ongoing
    modifier isTokenSwapOn {
        if (tokenSwapLock) throw;
        _;
    }

    // This modifier checks and, if needed, updates the value of current
    // token contract epoch, before executing a token transfer of any
    // kind
    modifier isNewEpoch {
        if (numOfCurrentEpoch * EPOCH_LENGTH + creationTime < now ) {
            numOfCurrentEpoch = (now - creationTime) / EPOCH_LENGTH + 1;
        }
        _;
    }

    // This modifier check whether the contract should be in a locked
    // or unlocked state, then acts and updates accordingly if
    // necessary
    modifier checkLock {
        if ((creationTime + numOfCurrentEpoch * UNLOCKED_TIME) +
        (numOfCurrentEpoch - 1) * LOCKED_TIME < now) {
            // avoids needless lock state change and event spamming
            if (lock) throw;

            lock = true;
            Locked();
            return;
        }
        else {
            // only set to false if in a locked state, to avoid
            // needless state change and event spam
            if (lock) {
                lock = false;
                Unlocked();
            }
        }
        _;
    }

    function Lockable() {
        creationTime = now;
        numOfCurrentEpoch = 1;
        tokenSwapLock = true;
    }
}


contract ERC20 {
    function totalSupply() constant returns (uint);
    function balanceOf(address who) constant returns (uint);
    function allowance(address owner, address spender) constant returns (uint);

    function transfer(address to, uint value) returns (bool ok);
    function transferFrom(address from, address to, uint value) returns (bool ok);
    function approve(address spender, uint value) returns (bool ok);

    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
}

contract Token is ERC20, Lockable {

  mapping( address => uint ) _balances;
  mapping( address => mapping( address => uint ) ) _approvals;
  uint _supply;
  address public walletAddress;

  event TokenMint(address newTokenHolder, uint amountOfTokens);
  event TokenSwapOver();

  modifier onlyFromWallet {
      if (msg.sender != walletAddress) throw;
      _;
  }

  function Token( uint initial_balance, address wallet) {
    _balances[msg.sender] = initial_balance;
    _supply = initial_balance;
    walletAddress = wallet;
  }

  function totalSupply() constant returns (uint supply) {
    return _supply;
  }

  function balanceOf( address who ) constant returns (uint value) {
    return _balances[who];
  }

  function allowance(address owner, address spender) constant returns (uint _allowance) {
    return _approvals[owner][spender];
  }

  // A helper to notify if overflow occurs
  function safeToAdd(uint a, uint b) internal returns (bool) {
    return (a + b >= a && a + b >= b);
  }

  function transfer( address to, uint value)
    isTokenSwapOn
    isNewEpoch
    checkLock
    returns (bool ok) {

    if( _balances[msg.sender] < value ) {
        throw;
    }
    if( !safeToAdd(_balances[to], value) ) {
        throw;
    }

    _balances[msg.sender] -= value;
    _balances[to] += value;
    Transfer( msg.sender, to, value );
    return true;
  }

  function transferFrom( address from, address to, uint value)
    isTokenSwapOn
    isNewEpoch
    checkLock
    returns (bool ok) {
    // if you don't have enough balance, throw
    if( _balances[from] < value ) {
        throw;
    }
    // if you don't have approval, throw
    if( _approvals[from][msg.sender] < value ) {
        throw;
    }
    if( !safeToAdd(_balances[to], value) ) {
        throw;
    }
    // transfer and return true
    _approvals[from][msg.sender] -= value;
    _balances[from] -= value;
    _balances[to] += value;
    Transfer( from, to, value );
    return true;
  }

  function approve(address spender, uint value)
    isTokenSwapOn
    isNewEpoch
    checkLock
    returns (bool ok) {
    _approvals[msg.sender][spender] = value;
    Approval( msg.sender, spender, value );
    return true;
  }

  // The function currentSwapRate() returns the current exchange rate
  // between vSlice tokens and Ether during the token swap period
  function currentSwapRate() constant returns(uint) {
      if (creationTime + 1 weeks > now) {
          return 130;
      }
      else if (creationTime + 2 weeks > now) {
          return 120;
      }
      else if (creationTime + 4 weeks > now) {
          return 100;
      }
      else {
          return 0;
      }
  }

  // The function mintTokens is only usable by the chosen wallet
  // contract to mint a number of tokens proportional to the
  // amount of ether sent to the wallet contract. The function
  // can only be called during the tokenswap period
  function mintTokens(address newTokenHolder, uint etherAmount)
    external
    onlyFromWallet {

        uint tokensAmount = currentSwapRate() * etherAmount;
        if(!safeToAdd(_balances[newTokenHolder],tokensAmount )) throw;
        if(!safeToAdd(_supply,tokensAmount)) throw;

        _balances[newTokenHolder] += tokensAmount;
        _supply += tokensAmount;

        TokenMint(newTokenHolder, tokensAmount);
  }

  // The function disableTokenSwapLock() is called by the wallet
  // contract once the token swap has reached its end conditions
  function disableTokenSwapLock()
    external
    onlyFromWallet {
        tokenSwapLock = false;
        TokenSwapOver();
  }
}

pragma solidity ^0.4.0;

/*
The standard Wallet contract, retrievable at
https://github.com/ethereum/dapp-bin/blob/master/wallet/wallet.sol has been
modified to include additional functionality, in particular:
* An additional parent of wallet contract called tokenswap, implementing almost
all the changes:
    - Functions for starting and stopping the tokenswap
    - A set-only-once function for the token contract
    - buyTokens(), which calls mintTokens() in the token contract
    - Modifiers for enforcing tokenswap time limits and max ether cap
* the wallet fallback function calls the buyTokens function
* the wallet contract cannot selfdestruct during the tokenswap
*/

contract multiowned {

	// TYPES

    // struct for the status of a pending operation.
    struct PendingState {
        uint yetNeeded;
        uint ownersDone;
        uint index;
    }

	// EVENTS

    // this contract only has six types of events: it can accept a confirmation, in which case
    // we record owner and operation (hash) alongside it.
    event Confirmation(address owner, bytes32 operation);
    event Revoke(address owner, bytes32 operation);
    // some others are in the case of an owner changing.
    event OwnerChanged(address oldOwner, address newOwner);
    event OwnerAdded(address newOwner);
    event OwnerRemoved(address oldOwner);
    // the last one is emitted if the required signatures change
    event RequirementChanged(uint newRequirement);

	// MODIFIERS

    // simple single-sig function modifier.
    modifier onlyowner {
        if (isOwner(msg.sender))
            _;
    }
    // multi-sig function modifier: the operation must have an intrinsic hash in order
    // that later attempts can be realised as the same underlying operation and
    // thus count as confirmations.
    modifier onlymanyowners(bytes32 _operation) {
        if (confirmAndCheck(_operation))
            _;
    }

	// METHODS

    // constructor is given number of sigs required to do protected "onlymanyowners" transactions
    // as well as the selection of addresses capable of confirming them.
    function multiowned(address[] _owners, uint _required) {
        m_numOwners = _owners.length + 1;
        m_owners[1] = uint(msg.sender);
        m_ownerIndex[uint(msg.sender)] = 1;
        for (uint i = 0; i < _owners.length; ++i)
        {
            m_owners[2 + i] = uint(_owners[i]);
            m_ownerIndex[uint(_owners[i])] = 2 + i;
        }
        m_required = _required;
    }

    // Revokes a prior confirmation of the given operation
    function revoke(bytes32 _operation) external {
        uint ownerIndex = m_ownerIndex[uint(msg.sender)];
        // make sure they're an owner
        if (ownerIndex == 0) return;
        uint ownerIndexBit = 2**ownerIndex;
        var pending = m_pending[_operation];
        if (pending.ownersDone & ownerIndexBit > 0) {
            pending.yetNeeded++;
            pending.ownersDone -= ownerIndexBit;
            Revoke(msg.sender, _operation);
        }
    }

    // Replaces an owner `_from` with another `_to`.
    function changeOwner(address _from, address _to) onlymanyowners(sha3(msg.data)) external {
        if (isOwner(_to)) return;
        uint ownerIndex = m_ownerIndex[uint(_from)];
        if (ownerIndex == 0) return;

        clearPending();
        m_owners[ownerIndex] = uint(_to);
        m_ownerIndex[uint(_from)] = 0;
        m_ownerIndex[uint(_to)] = ownerIndex;
        OwnerChanged(_from, _to);
    }

    function addOwner(address _owner) onlymanyowners(sha3(msg.data)) external {
        if (isOwner(_owner)) return;

        clearPending();
        if (m_numOwners >= c_maxOwners)
            reorganizeOwners();
        if (m_numOwners >= c_maxOwners)
            return;
        m_numOwners++;
        m_owners[m_numOwners] = uint(_owner);
        m_ownerIndex[uint(_owner)] = m_numOwners;
        OwnerAdded(_owner);
    }

    function removeOwner(address _owner) onlymanyowners(sha3(msg.data)) external {
        uint ownerIndex = m_ownerIndex[uint(_owner)];
        if (ownerIndex == 0) return;
        if (m_required > m_numOwners - 1) return;

        m_owners[ownerIndex] = 0;
        m_ownerIndex[uint(_owner)] = 0;
        clearPending();
        reorganizeOwners(); //make sure m_numOwner is equal to the number of owners and always points to the optimal free slot
        OwnerRemoved(_owner);
    }

    function changeRequirement(uint _newRequired) onlymanyowners(sha3(msg.data)) external {
        if (_newRequired > m_numOwners) return;
        m_required = _newRequired;
        clearPending();
        RequirementChanged(_newRequired);
    }

    // Gets an owner by 0-indexed position (using numOwners as the count)
    function getOwner(uint ownerIndex) external constant returns (address) {
        return address(m_owners[ownerIndex + 1]);
    }

    function isOwner(address _addr) returns (bool) {
        return m_ownerIndex[uint(_addr)] > 0;
    }

    function hasConfirmed(bytes32 _operation, address _owner) constant returns (bool) {
        var pending = m_pending[_operation];
        uint ownerIndex = m_ownerIndex[uint(_owner)];

        // make sure they're an owner
        if (ownerIndex == 0) return false;

        // determine the bit to set for this owner.
        uint ownerIndexBit = 2**ownerIndex;
        return !(pending.ownersDone & ownerIndexBit == 0);
    }

    // INTERNAL METHODS

    function confirmAndCheck(bytes32 _operation) internal returns (bool) {
        // determine what index the present sender is:
        uint ownerIndex = m_ownerIndex[uint(msg.sender)];
        // make sure they're an owner
        if (ownerIndex == 0) return;

        var pending = m_pending[_operation];
        // if we're not yet working on this operation, switch over and reset the confirmation status.
        if (pending.yetNeeded == 0) {
            // reset count of confirmations needed.
            pending.yetNeeded = m_required;
            // reset which owners have confirmed (none) - set our bitmap to 0.
            pending.ownersDone = 0;
            pending.index = m_pendingIndex.length++;
            m_pendingIndex[pending.index] = _operation;
        }
        // determine the bit to set for this owner.
        uint ownerIndexBit = 2**ownerIndex;
        // make sure we (the message sender) haven't confirmed this operation previously.
        if (pending.ownersDone & ownerIndexBit == 0) {
            Confirmation(msg.sender, _operation);
            // ok - check if count is enough to go ahead.
            if (pending.yetNeeded <= 1) {
                // enough confirmations: reset and run interior.
                delete m_pendingIndex[m_pending[_operation].index];
                delete m_pending[_operation];
                return true;
            }
            else
            {
                // not enough: record that this owner in particular confirmed.
                pending.yetNeeded--;
                pending.ownersDone |= ownerIndexBit;
            }
        }
    }

    function reorganizeOwners() private {
        uint free = 1;
        while (free < m_numOwners)
        {
            while (free < m_numOwners && m_owners[free] != 0) free++;
            while (m_numOwners > 1 && m_owners[m_numOwners] == 0) m_numOwners--;
            if (free < m_numOwners && m_owners[m_numOwners] != 0 && m_owners[free] == 0)
            {
                m_owners[free] = m_owners[m_numOwners];
                m_ownerIndex[m_owners[free]] = free;
                m_owners[m_numOwners] = 0;
            }
        }
    }

    function clearPending() internal {
        uint length = m_pendingIndex.length;
        for (uint i = 0; i < length; ++i)
            if (m_pendingIndex[i] != 0)
                delete m_pending[m_pendingIndex[i]];
        delete m_pendingIndex;
    }

   	// FIELDS

    // the number of owners that must confirm the same operation before it is run.
    uint public m_required;
    // pointer used to find a free slot in m_owners
    uint public m_numOwners;

    // list of owners
    uint[256] m_owners;
    uint constant c_maxOwners = 250;
    // index on the list of owners to allow reverse lookup
    mapping(uint => uint) m_ownerIndex;
    // the ongoing operations.
    mapping(bytes32 => PendingState) m_pending;
    bytes32[] m_pendingIndex;
}

// inheritable "property" contract that enables methods to be protected by placing a linear limit (specifiable)
// on a particular resource per calendar day. is multiowned to allow the limit to be altered. resource that method
// uses is specified in the modifier.
contract daylimit is multiowned {

	// MODIFIERS

    // simple modifier for daily limit.
    modifier limitedDaily(uint _value) {
        if (underLimit(_value))
            _;
    }

	// METHODS

    // constructor - stores initial daily limit and records the present day's index.
    function daylimit(uint _limit) {
        m_dailyLimit = _limit;
        m_lastDay = today();
    }
    // (re)sets the daily limit. needs many of the owners to confirm. doesn't alter the amount already spent today.
    function setDailyLimit(uint _newLimit) onlymanyowners(sha3(msg.data)) external {
        m_dailyLimit = _newLimit;
    }
    // resets the amount already spent today. needs many of the owners to confirm.
    function resetSpentToday() onlymanyowners(sha3(msg.data)) external {
        m_spentToday = 0;
    }

    // INTERNAL METHODS

    // checks to see if there is at least `_value` left from the daily limit today. if there is, subtracts it and
    // returns true. otherwise just returns false.
    function underLimit(uint _value) internal onlyowner returns (bool) {
        // reset the spend limit if we're on a different day to last time.
        if (today() > m_lastDay) {
            m_spentToday = 0;
            m_lastDay = today();
        }
        // check to see if there's enough left - if so, subtract and return true.
        // overflow protection                    // dailyLimit check
        if (m_spentToday + _value >= m_spentToday && m_spentToday + _value <= m_dailyLimit) {
            m_spentToday += _value;
            return true;
        }
        return false;
    }
    // determines today's index.
    function today() private constant returns (uint) { return now / 1 days; }

	// FIELDS

    uint public m_dailyLimit;
    uint public m_spentToday;
    uint public m_lastDay;
}

// interface contract for multisig proxy contracts; see below for docs.
contract multisig {

	// EVENTS

    // logged events:
    // Funds has arrived into the wallet (record how much).
    event Deposit(address _from, uint value);
    // Single transaction going out of the wallet (record who signed for it, how much, and to whom it's going).
    event SingleTransact(address owner, uint value, address to, bytes data);
    // Multi-sig transaction going out of the wallet (record who signed for it last, the operation hash, how much, and to whom it's going).
    event MultiTransact(address owner, bytes32 operation, uint value, address to, bytes data);
    // Confirmation still needed for a transaction.
    event ConfirmationNeeded(bytes32 operation, address initiator, uint value, address to, bytes data);

    // FUNCTIONS

    // TODO: document
    function changeOwner(address _from, address _to) external;
    function execute(address _to, uint _value, bytes _data) external returns (bytes32);
    function confirm(bytes32 _h) returns (bool);
}

contract tokenswap is multisig, multiowned {
    Token public tokenCtr;
    bool public tokenSwap;
    uint public constant SWAP_LENGTH = 4  weeks;
    uint public constant MAX_ETH = 700000 ether;
    uint public amountRaised;

    modifier isZeroValue {
        if (msg.value == 0) throw;
        _;
    }

    modifier isOverCap {
	if (amountRaised + msg.value > MAX_ETH) throw;
        _;
    }

    modifier isSwapStopped {
        if (!tokenSwap) throw;
        _;
    }

    modifier areConditionsSatisfied {
	// End token swap if sale period ended
	if (tokenCtr.creationTime() + SWAP_LENGTH < now) {
            tokenCtr.disableTokenSwapLock();
            tokenSwap = false;
        }
        else {
            _;
	        // Check if cap has been reached in this tx
            if (amountRaised == MAX_ETH) {
                tokenCtr.disableTokenSwapLock();
                tokenSwap = false;
            }
        }
    }

    function safeToAdd(uint a, uint b) internal returns (bool) {
      return (a + b >= a && a + b >= b);
    }

    function startTokenSwap() onlyowner {
        tokenSwap = true;
    }

    function stopTokenSwap() onlyowner {
        tokenSwap = false;
    }

    function setTokenContract(address newTokenContractAddr) onlyowner {
        if (newTokenContractAddr == address(0x0)) throw;
        // Allow setting only once
        if (tokenCtr != address(0x0)) throw;

        tokenCtr = Token(newTokenContractAddr);
    }

    function buyTokens(address _beneficiary)
    payable
    isZeroValue
    isOverCap
    isSwapStopped
    areConditionsSatisfied {
        Deposit(msg.sender, msg.value);
        tokenCtr.mintTokens(_beneficiary, msg.value);
        if (!safeToAdd(amountRaised, msg.value)) throw;
        amountRaised += msg.value;
    }
}

// usage:
// bytes32 h = Wallet(w).from(oneOwner).transact(to, value, data);
// Wallet(w).from(anotherOwner).confirm(h);
contract Wallet is multisig, multiowned, daylimit, tokenswap {

	// TYPES

    // Transaction structure to remember details of transaction lest it need be saved for a later call.
    struct Transaction {
        address to;
        uint value;
        bytes data;
    }

    // METHODS

    // constructor - just pass on the owner array to the multiowned and
    // the limit to daylimit
    function Wallet(address[] _owners, uint _required, uint _daylimit)
            multiowned(_owners, _required) daylimit(_daylimit) {
    }

    // kills the contract sending everything to `_to`.
    function kill(address _to) onlymanyowners(sha3(msg.data)) external {
        //ensure owners can't prematurely stop token sale
        //and then render tokens untradable, as without this
        //check, the tokenSwapLock would never get disiabled
        //if this fires
        if (tokenCtr.tokenSwapLock()) throw;

        suicide(_to);
    }

    // gets called when no other function matches
    function()
    payable {
        buyTokens(msg.sender);
    }

    // Outside-visible transact entry point. Executes transaction immediately if below daily spend limit.
    // If not, goes into multisig process. We provide a hash on return to allow the sender to provide
    // shortcuts for the other confirmations (allowing them to avoid replicating the _to, _value
    // and _data arguments). They still get the option of using them if they want, anyways.
    function execute(address _to, uint _value, bytes _data) external onlyowner returns (bytes32 _r) {
        // Disallow the wallet contract from calling token contract once it's set
        // so tokens can't be minted arbitrarily once the sale starts.
        // Tokens can be minted for premine before the sale opens and tokenCtr is set.
        if (_to == address(tokenCtr)) throw;

        // first, take the opportunity to check that we're under the daily limit.
        if (underLimit(_value)) {
            SingleTransact(msg.sender, _value, _to, _data);
            // yes - just execute the call.
            if(!_to.call.value(_value)(_data))
            return 0;
        }
        // determine our operation hash.
        _r = sha3(msg.data, block.number);
        if (!confirm(_r) && m_txs[_r].to == 0) {
            m_txs[_r].to = _to;
            m_txs[_r].value = _value;
            m_txs[_r].data = _data;
            ConfirmationNeeded(_r, msg.sender, _value, _to, _data);
        }
    }

    // confirm a transaction through just the hash. we use the previous transactions map, m_txs, in order
    // to determine the body of the transaction from the hash provided.
    function confirm(bytes32 _h) onlymanyowners(_h) returns (bool) {
        if (m_txs[_h].to != 0) {
            if(!m_txs[_h].to.call.value(m_txs[_h].value)(m_txs[_h].data))
            MultiTransact(msg.sender, _h, m_txs[_h].value, m_txs[_h].to, m_txs[_h].data);
            delete m_txs[_h];
            return true;
        }
    }

    // INTERNAL METHODS

    function clearPending() internal {
        uint length = m_pendingIndex.length;
        for (uint i = 0; i < length; ++i)
            delete m_txs[m_pendingIndex[i]];
        super.clearPending();
    }

	// FIELDS

    // pending transactions we have at present.
    mapping (bytes32 => Transaction) m_txs;
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"removeOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"}],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"SWAP_LENGTH","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"stopTokenSwap","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"startTokenSwap","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"m_numOwners","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"m_lastDay","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"resetSpentToday","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"m_spentToday","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"addOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"m_required","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_h","type":"bytes32"}],"name":"confirm","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"amountRaised","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenSwap","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"MAX_ETH","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenCtr","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newLimit","type":"uint256"}],"name":"setDailyLimit","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"execute","outputs":[{"name":"_r","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_operation","type":"bytes32"}],"name":"revoke","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newRequired","type":"uint256"}],"name":"changeRequirement","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newTokenContractAddr","type":"address"}],"name":"setTokenContract","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_operation","type":"bytes32"},{"name":"_owner","type":"address"}],"name":"hasConfirmed","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"ownerIndex","type":"uint256"}],"name":"getOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"}],"name":"kill","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_beneficiary","type":"address"}],"name":"buyTokens","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"m_dailyLimit","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"_owners","type":"address[]"},{"name":"_required","type":"uint256"},{"name":"_daylimit","type":"uint256"}],"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"}],"name":"Confirmation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"}],"name":"Revoke","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"},{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"}],"name":"OwnerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newRequirement","type":"uint256"}],"name":"RequirementChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"SingleTransact","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"MultiTransact","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"operation","type":"bytes32"},{"indexed":false,"name":"initiator","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"ConfirmationNeeded","type":"event"}]

Deployed Bytecode

0x6060604052361561013d5760e060020a6000350463173825d981146101495780632f54bf6e146101a1578063351b68db146101b15780633c1cc14e146101c057806340482475146101ee5780634123cb6b146101ff578063523750931461020d5780635c52c2f51461021c578063659010e71461024b5780637065cb481461025a578063746c91711461028c578063797af6271461029a5780637b3e5e7b146102aa5780639653dee5146102b95780639dfd4e2f146102d3578063aef251a7146102e9578063b20d30a914610301578063b61d27f614610333578063b75c7dc614610359578063ba51a6df1461038c578063bbcd5bbe146103be578063c2cf7326146103d2578063c41a360a14610418578063cbf0b0c01461043e578063ec8ac4d814610470578063f00d4b5d14610483578063f1736d86146104ba575b6104c96104cb33610477565b34610002576104c960043560006000366040518083838082843782019150509250505060405180910390206107c8815b600160a060020a0333166000908152610102602052604081205481808215156111b2576112fb565b34610002576104cd6004356101cd565b34610002576104e16224ea0081565b34610002576104c9610943335b600160a060020a03811660009081526101026020526040812054115b919050565b34610002576104c961095b336101cd565b34610002576104e160015481565b34610002576104e16101075481565b34610002576104c960003660405180838380828437820191505092505050604051809103902061097981610179565b34610002576104e16101065481565b34610002576104c960043560003660405180838380828437820191505092505050604051809103902061098781610179565b34610002576104e160005481565b34610002576104cd600435610522565b34610002576104e16101095481565b34610002576104cd6101085460ff60a060020a9091041681565b34610002576104e169943b1377290cbd80000081565b346100025761052e61010854600160a060020a031681565b34610002576104c9600435600036604051808383808284378201915050925050506040518091039020610ca381610179565b34610002576104e1600480359060248035916044359182019101356000610caf336101cd565b34610002576104c9600435600160a060020a033316600090815261010260205260408120549080821515610f1957610f95565b34610002576104c9600435600036604051808383808284378201915050925050506040518091039020610f9b81610179565b34610002576104c9600435610ff3336101cd565b34610002576104cd600435602435600082815261010360209081526040808320600160a060020a03851684526101029092528220548281151561104d5760009350611060565b346100025761052e600435600060026001830161010081101561000257015490506101e9565b34610002576104c960043560003660405180838380828437820191505092505050604051809103902061106981610179565b6104c96004355b34151561054a57610002565b34610002576104c960043560243560006000366040518083838082843782019150509250505060405180910390206110e981610179565b34610002576104e16101055481565b005b565b604080519115158252519081900360200190f35b60408051918252519081900360200190f35b600036436040518084848082843782019150508281526020019350505050604051809103902090508050610da2815b600081610a4881610179565b60408051600160a060020a039092168252519081900360200190f35b69943b1377290cbd800000346101096000505401111561056957610002565b6101085460a060020a900460ff16151561058257610002565b426224ea0061010860009054906101000a9004600160a060020a0316600160a060020a031663d8270dce6000604051602001526040518160e060020a028152600401809050602060405180830381600087803b156100025760325a03f115610002575050506040518051906020015001101561065e57610108546040805160e060020a633592f3690281529051600160a060020a0390921691633592f3699160048082019260009290919082900301818387803b156100025760325a03f115610002575050610108805460a060020a60ff0219169055506107c5565b60408051600160a060020a033316815234602082015281517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c929181900390910190a160408051610108547ff0dda65c000000000000000000000000000000000000000000000000000000008252600160a060020a038481166004840152346024840152925192169163f0dda65c9160448082019260009290919082900301818387803b156100025760325a03f1156100025750506101095461073a9150346000828284011015801561073357508182840110155b9392505050565b151561074557610002565b6101098054340190556101095469943b1377290cbd80000014156107c557610108546040805160e060020a633592f3690281529051600160a060020a0390921691633592f3699160048082019260009290919082900301818387803b156100025760325a03f115610002575050610108805460a060020a60ff0219169055505b50565b1561083257600160a060020a03831660009081526101026020526040902054915081151561083757610832565b60408051600160a060020a038516815290517f58619076adf5bb0943d100ef88d52d7c3fd691b19d3a9071b555b651fbf418da9181900360200190a15b505050565b60015460005460001990910190111561084f57610832565b6000600283610100811015610002570155600160a060020a038316600090815261010260205260408120556109065b6101045460005b8181101561130357610104805461010a916000918490811015610002576000918252602080832090910154835282019290925260400181208054600160a060020a031916815560018082018390556002808301805485825593949390926101009082161502600019011604601f81901061137b57505b505050600101610885565b6107f55b60015b6001548110156107c5575b60015481108015610936575060028161010081101561000257015415155b1561139957600101610918565b156104cb57610108805460a060020a60ff0219169055565b156104cb57610108805460a060020a60ff02191660a060020a179055565b156107c55760006101065550565b15610a0f57610a13826101cd565b60018054810190819055600160a060020a03831690600290610100811015610002570155600154600160a060020a03831660008181526101026020908152604091829020939093558051918252517f994a936646fe87ffe4f1e469d3d6aa417d6b855598397f323de5b449f765f0c3929181900390910190a15b5050565b15610a1d57610a0f565b610a2561087e565b60015460fa9010610a3857610a3861090a565b60015460fa901061099557610a0f565b15610b6457600083815261010a6020526040902054600160a060020a031615610b6457600083815261010a6020526040908190208054600180830154935160029384018054600160a060020a039094169594909391928392859291811615610100026000190116048015610b955780601f10610b6a57610100808354040283529160200191610b95565b820191906000526020600020905b815481529060010190602001808311610ae057829003601f168201915b5050965050505050505060405180910390a15b600083815261010a602052604081208054600160a060020a0319168155600180820183905560028083018054858255939493909281161561010002600019011604601f819010610c7157505b505050600191505b50919050565b820191906000526020600020905b815481529060010190602001808311610b7857829003601f168201915b505091505060006040518083038185876185025a03f1925050501515610b1057600083815261010a602090815260409182902060018082015482548551600160a060020a033381811683529682018b905296810183905295166060860181905260a06080870181815260029586018054958616156101000260001901909516959095049087018190527fe7c957c06e9a662c1a6c77366179f5b702b97651dc28eee7d5bf1dff6e40bb4a968a9593949293909160c083019084908015610afd5780601f10610ad257610100808354040283529160200191610afd565b601f016020900490600052602060002090810190610b5c91905b80821115610c9f5760008155600101610c8b565b5090565b15610a0f575061010555565b15610ee15761010854600160a060020a0386811691161415610cd057610002565b610cdf846000611470336101cd565b156104f3577f92ca3a80853e6663fa31fa10b99225f18d4902939b4c53a9caae9043f6efd00433858786866040518086600160a060020a0316815260200185815260200184600160a060020a031681526020018060200182810382528484828181526020019250808284378201915050965050505050505060405180910390a184600160a060020a03168484846040518083838082843782019150509250505060006040518083038185876185025a03f19250505015156104f357506000610ee1565b158015610dc55750600081815261010a6020526040902054600160a060020a0316155b15610ee157600081815261010a60209081526040822080546c01000000000000000000000000808a0204600160a060020a0319909116178155600180820188905560029182018054818652948490209094601f92811615610100026000190116929092048101929092048101918591908790839010610ee95782800160ff198235161785555b50610e57929150610c8b565b50507f1733cbb53659d713b79580f79f3f9ff215f78a7c7aa45890f3b89fc5cddfbf32813386888787604051808760001916815260200186600160a060020a0316815260200185815260200184600160a060020a03168152602001806020018281038252848482818152602001925080828437820191505097505050505050505060405180910390a15b949350505050565b82800160010185558215610e4b579182015b82811115610e4b578235826000505591602001919060010190610efb565b50506000828152610103602052604081206001810154600284900a929083161115610f955780546001908101825581018054839003905560408051600160a060020a03331681526020810186905281517fc7fb647e59b18047309aa15aad418e5d7ca96d173ad704f1031a2c3d7591734b929181900390910190a15b50505050565b15610a0f57600154821115610faf57610a0f565b6000829055610fbc61087e565b6040805183815290517facbdb084c721332ac59f9b8e392196c9eb0e4932862da8eb9beaf0dad4f550da9181900360200190a15050565b156107c557600160a060020a038116151561100d57610002565b61010854600160a060020a03161561102457610002565b61010880546c0100000000000000000000000080840204600160a060020a031990911617905550565b506001820154600282900a908116151593505b50505092915050565b15610a0f5761010860009054906101000a9004600160a060020a0316600160a060020a031663ef40c3e66000604051602001526040518160e060020a028152600401809050602060405180830381600087803b156100025760325a03f115610002575050604051511590506110dd57610002565b81600160a060020a0316ff5b15610f95576110f7836101cd565b1561110157610f95565b600160a060020a03841660009081526101026020526040902054915081151561112957610f95565b61113161087e565b600160a060020a038316600283610100811015610002570155600160a060020a0384811660008181526101026020908152604080832083905593871680835291849020869055835192835282015281517fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c929181900390910190a150505050565b6000858152610103602052604090208054909250151561122d57600080548355600180840191909155610104805491820180825582801582901161120757600083815260209020611207918101908301610c8b565b505050600283018190556101048054879290811015610002576000918252602090912001555b506001810154600283900a90811615156112fb5760408051600160a060020a03331681526020810187905281517fe1c52dc63b719ade82e8bea94cc41a0d5d28e4aaf536adb5e9cccc9ff8c1aeda929181900390910190a18154600190116112e8576000858152610103602052604090206002015461010480549091908110156100025760009182526020808320909101829055868252610103905260408120818155600180820183905560029091019190915593506112fb565b8154600019018255600182018054821790555b505050919050565b610a0f6101045460005b818110156114da576101048054829081101561000257600091825260209091200154156113735761010480546101039160009184908110156100025760009182526020808320909101548352820192909252604001812081815560018101829055600201555b60010161130d565b601f0160209004906000526020600020908101906108fb9190610c8b565b5b600180541180156113ba5750600154600290610100811015610002570154155b156113ce576001805460001901905561139a565b600154811080156113ef575060015460029061010081101561000257015415155b80156114075750600281610100811015610002570154155b1561146b57600154600290610100811015610002570154600282610100811015610002570155806101026000600283610100811015610002570154815260208101919091526040016000908120919091556001546002906101008110156100025701555b61090d565b156101e957610107546114865b62015180420490565b111561149f5760006101065561149a61147d565b610107555b61010654828101108015906114bc57506101055461010654830111155b156114d2575061010680548201905560016101e9565b5060006101e9565b6101048054600080835591909152610832907f4c0be60200faa20559308cb7b5a1bb3255c16cb1cab91f525b5ae7a03d02fabe90810190610c8b56

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  ]
[ 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.