Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 253 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Execute Transact... | 20633947 | 134 days ago | IN | 0 ETH | 0.0002099 | ||||
Confirm Transact... | 20633931 | 134 days ago | IN | 0 ETH | 0.00028222 | ||||
Confirm Transact... | 20633646 | 134 days ago | IN | 0 ETH | 0.00010054 | ||||
Submit Transacti... | 20633571 | 134 days ago | IN | 0 ETH | 0.00046243 | ||||
Execute Transact... | 20611362 | 137 days ago | IN | 0 ETH | 0.00009266 | ||||
Confirm Transact... | 20611351 | 137 days ago | IN | 0 ETH | 0.00009125 | ||||
Confirm Transact... | 20611331 | 137 days ago | IN | 0 ETH | 0.00015571 | ||||
Submit Transacti... | 20611310 | 137 days ago | IN | 0 ETH | 0.00014238 | ||||
Execute Transact... | 19619007 | 276 days ago | IN | 0 ETH | 0.0060524 | ||||
Confirm Transact... | 19618970 | 276 days ago | IN | 0 ETH | 0.00593417 | ||||
Confirm Transact... | 19618119 | 276 days ago | IN | 0 ETH | 0.00217406 | ||||
Submit Transacti... | 19617075 | 276 days ago | IN | 0 ETH | 0.00508081 | ||||
Execute Transact... | 19519078 | 290 days ago | IN | 0 ETH | 0.00551786 | ||||
Confirm Transact... | 19519029 | 290 days ago | IN | 0 ETH | 0.00435411 | ||||
Confirm Transact... | 19518912 | 290 days ago | IN | 0 ETH | 0.00262723 | ||||
Submit Transacti... | 19516155 | 290 days ago | IN | 0 ETH | 0.00353016 | ||||
Execute Multiple... | 18009849 | 501 days ago | IN | 0 ETH | 0.00527022 | ||||
Confirm Transact... | 18009591 | 501 days ago | IN | 0 ETH | 0.00146424 | ||||
Confirm Transact... | 18009589 | 501 days ago | IN | 0 ETH | 0.0014577 | ||||
Confirm Transact... | 18009586 | 501 days ago | IN | 0 ETH | 0.00141485 | ||||
Confirm Transact... | 18009581 | 501 days ago | IN | 0 ETH | 0.00173986 | ||||
Confirm Transact... | 18003400 | 502 days ago | IN | 0 ETH | 0.0010012 | ||||
Confirm Transact... | 18003400 | 502 days ago | IN | 0 ETH | 0.00092493 | ||||
Confirm Transact... | 18003400 | 502 days ago | IN | 0 ETH | 0.00091032 | ||||
Confirm Transact... | 18003400 | 502 days ago | IN | 0 ETH | 0.00085931 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x74C3cA94...078174f8a The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
DelayedMultiSig
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity Standard Json-Input format)
/** *Submitted for verification at Etherscan.io on 2019-05-13 */ /* Copyright 2019 dYdX Trading Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ pragma solidity 0.6.12; pragma experimental ABIEncoderV2; library LibBytes { /***********************************| | Read Bytes Functions | |__________________________________*/ /** * @dev Reads a bytes32 value from a position in a byte array. * @param b Byte array containing a bytes32 value. * @param index Index in byte array of bytes32 value. * @return result bytes32 value from byte array. */ function readBytes32( bytes memory b, uint256 index ) internal pure returns (bytes32 result) { require( b.length >= index + 32, "LibBytes#readBytes32 greater or equal to 32 length required" ); // Arrays are prefixed by a 256 bit length parameter index += 32; // Read the bytes32 from array memory assembly { result := mload(add(b, index)) } return result; } } import "./MultiSigLibEIP712.sol"; // File: contracts/external/multisig/MultiSig.sol /** * @title MultiSig * @author dYdX * * Multi-Signature Wallet. * Allows multiple parties to agree on transactions before execution. * Adapted from Stefan George's MultiSigWallet contract. * * Logic Changes: * - Removed the fallback function * - Ensure newOwner is notNull * * Syntax Changes: * - Update Solidity syntax for 0.5.X: use `emit` keyword (events), use `view` keyword (functions) * - Add braces to all `if` and `for` statements * - Remove named return variables * - Add space before and after comparison operators * - Add ADDRESS_ZERO as a constant * - uint => uint256 * - external_call => externalCall */ contract MultiSig is MultiSigLibEIP712 { using LibBytes for bytes; // ============ Events ============ event Deposit(address indexed depositer, uint256 amount); event Confirmation(address indexed sender, uint256 indexed transactionId); event Revocation(address indexed sender, uint256 indexed transactionId); event Submission(uint256 indexed transactionId); event Execution(uint256 indexed transactionId); event ExecutionFailure(uint256 indexed transactionId); event OwnerAddition(address indexed owner); event OwnerRemoval(address indexed owner); event RequirementChange(uint256 required); // ============ Constants ============ uint256 constant public MAX_OWNER_COUNT = 50; address constant ADDRESS_ZERO = address(0x0); // ============ Storage ============ mapping (uint256 => Transaction) public transactions; mapping (uint256 => mapping (address => bool)) public confirmations; mapping (address => bool) public isOwner; address[] public owners; uint256 public required; uint256 public transactionCount; // ============ Structs ============ struct Transaction { address destination; uint256 value; bytes data; bool executed; } // ============ Modifiers ============ modifier onlyWallet() { /* solium-disable-next-line error-reason */ require(msg.sender == address(this)); _; } modifier ownerDoesNotExist( address owner ) { /* solium-disable-next-line error-reason */ require(!isOwner[owner]); _; } modifier ownerExists( address owner ) { /* solium-disable-next-line error-reason */ require(isOwner[owner]); _; } modifier transactionExists( uint256 transactionId ) { /* solium-disable-next-line error-reason */ require(transactions[transactionId].destination != ADDRESS_ZERO); _; } modifier confirmed( uint256 transactionId, address owner ) { /* solium-disable-next-line error-reason */ require(confirmations[transactionId][owner]); _; } modifier notConfirmed( uint256 transactionId, address owner ) { /* solium-disable-next-line error-reason */ require(!confirmations[transactionId][owner]); _; } modifier notExecuted( uint256 transactionId ) { /* solium-disable-next-line error-reason */ require(!transactions[transactionId].executed); _; } modifier notNull( address _address ) { /* solium-disable-next-line error-reason */ require(_address != ADDRESS_ZERO); _; } modifier validRequirement( uint256 ownerCount, uint256 _required ) { /* solium-disable-next-line error-reason */ require( ownerCount <= MAX_OWNER_COUNT && _required <= ownerCount && _required != 0 && ownerCount != 0 ); _; } // ========= Fallback function ========== receive() external payable { emit Deposit(msg.sender, msg.value); } // ============ Constructor ============ /** * Contract constructor sets initial owners and required number of confirmations. * * @param _owners List of initial owners. * @param _required Number of required confirmations. */ constructor( address[] memory _owners, uint256 _required ) public validRequirement(_owners.length, _required) MultiSigLibEIP712() { for (uint256 i = 0; i < _owners.length; i++) { /* solium-disable-next-line error-reason */ require(!isOwner[_owners[i]] && _owners[i] != ADDRESS_ZERO); isOwner[_owners[i]] = true; } owners = _owners; required = _required; } // ============ Wallet-Only Functions ============ /** * Allows to add a new owner. Transaction has to be sent by wallet. * * @param owner Address of new owner. */ function addOwner( address owner ) public onlyWallet ownerDoesNotExist(owner) notNull(owner) validRequirement(owners.length + 1, required) { isOwner[owner] = true; owners.push(owner); emit OwnerAddition(owner); } /** * Allows to remove an owner. Transaction has to be sent by wallet. * * @param owner Address of owner. */ function removeOwner( address owner ) public onlyWallet ownerExists(owner) { isOwner[owner] = false; for (uint256 i = 0; i < owners.length - 1; i++) { if (owners[i] == owner) { owners[i] = owners[owners.length - 1]; break; } } delete owners[owners.length - 1]; if (required > owners.length) { changeRequirement(owners.length); } emit OwnerRemoval(owner); } /** * Allows to replace an owner with a new owner. Transaction has to be sent by wallet. * * @param owner Address of owner to be replaced. * @param newOwner Address of new owner. */ function replaceOwner( address owner, address newOwner ) public onlyWallet ownerExists(owner) ownerDoesNotExist(newOwner) notNull(newOwner) { for (uint256 i = 0; i < owners.length; i++) { if (owners[i] == owner) { owners[i] = newOwner; break; } } isOwner[owner] = false; isOwner[newOwner] = true; emit OwnerRemoval(owner); emit OwnerAddition(newOwner); } /** * Allows to change the number of required confirmations. Transaction has to be sent by wallet. * * @param _required Number of required confirmations. */ function changeRequirement( uint256 _required ) public onlyWallet validRequirement(owners.length, _required) { required = _required; emit RequirementChange(_required); } // ============ Owner Functions ============ /** * Allows an owner to submit and confirm a transaction. * * @param destination Transaction target address. * @param value Transaction ether value. * @param data Transaction data payload. * @return Transaction ID. */ function submitTransaction( address destination, uint256 value, bytes memory data ) public returns (uint256) { uint256 transactionId = addTransaction(destination, value, data); confirmTransaction(transactionId); return transactionId; } /** * Allows an owner to submit and confirm a transaction via meta transaction. * * @param signer Signer of the meta transaction. * @param transactionId Transaction ID of this transaction. * @param destination Transaction target address. * @param value Transaction ether value. * @param data Transaction data payload. * @param sig Signature. * @return Transaction ID. */ function submitTransaction( address signer, uint256 transactionId, address destination, uint256 value, bytes memory data, bytes memory sig ) public ownerExists(signer) returns (uint256) { // SUBMIT_TRANSACTION_TYPE_HASH = keccak256("submitTransaction(uint256 transactionId,address destination,uint256 value,bytes data)"); bytes32 EIP712SignDigest = keccak256( abi.encodePacked( bytes1(0x19), bytes1(0x01), EIP712_DOMAIN_SEPARATOR, keccak256( abi.encode( SUBMIT_TRANSACTION_TYPE_HASH, transactionId, destination, value, data ) ) ) ); validateSignature(signer, EIP712SignDigest, sig); uint256 _transactionId = addTransaction(destination, value, data); require(transactionId == _transactionId); confirmTransactionBySigner(signer, transactionId); return transactionId; } // confirm transaction on behalf of signer, not msg.sender function confirmTransactionBySigner( address signer, uint256 transactionId ) internal transactionExists(transactionId) notConfirmed(transactionId, signer) { // Confirm confirmations[transactionId][signer] = true; emit Confirmation(signer, transactionId); // Execute executeTransactionBySigner(signer, transactionId); } // execute transaction on behalf of signer, not msg.sender function executeTransactionBySigner( address signer, uint256 transactionId ) internal notExecuted(transactionId) { if (isConfirmed(transactionId)) { Transaction storage txn = transactions[transactionId]; txn.executed = true; if (externalCall( txn.destination, txn.value, txn.data.length, txn.data) ) { emit Execution(transactionId); } else { emit ExecutionFailure(transactionId); txn.executed = false; } } } /** * Allows an owner to confirm a transaction. * * @param transactionId Transaction ID. */ function confirmTransaction( uint256 transactionId ) public virtual ownerExists(msg.sender) transactionExists(transactionId) notConfirmed(transactionId, msg.sender) { confirmations[transactionId][msg.sender] = true; emit Confirmation(msg.sender, transactionId); executeTransaction(transactionId); } /** * Allows an owner to confirm a transaction via meta transaction. * * @param signer Signer of the meta transaction. * @param transactionId Transaction ID. * @param sig Signature. */ function confirmTransaction( address signer, uint256 transactionId, bytes memory sig ) public virtual ownerExists(signer) transactionExists(transactionId) notConfirmed(transactionId, signer) { // CONFIRM_TRANSACTION_TYPE_HASH = keccak256("confirmTransaction(uint256 transactionId)"); bytes32 EIP712SignDigest = keccak256( abi.encodePacked( bytes1(0x19), bytes1(0x01), EIP712_DOMAIN_SEPARATOR, keccak256( abi.encode( CONFIRM_TRANSACTION_TYPE_HASH, transactionId ) ) ) ); validateSignature(signer, EIP712SignDigest, sig); confirmations[transactionId][signer] = true; emit Confirmation(signer, transactionId); executeTransactionBySigner(signer, transactionId); } /** * Allows an owner to revoke a confirmation for a transaction. * * @param transactionId Transaction ID. */ function revokeConfirmation( uint256 transactionId ) public ownerExists(msg.sender) confirmed(transactionId, msg.sender) notExecuted(transactionId) { confirmations[transactionId][msg.sender] = false; emit Revocation(msg.sender, transactionId); } /** * Allows an owner to execute a confirmed transaction. * * @param transactionId Transaction ID. */ function executeTransaction( uint256 transactionId ) public virtual ownerExists(msg.sender) confirmed(transactionId, msg.sender) notExecuted(transactionId) { if (isConfirmed(transactionId)) { Transaction storage txn = transactions[transactionId]; txn.executed = true; if (externalCall( txn.destination, txn.value, txn.data.length, txn.data) ) { emit Execution(transactionId); } else { emit ExecutionFailure(transactionId); txn.executed = false; } } } // ============ Getter Functions ============ /** * Returns the confirmation status of a transaction. * * @param transactionId Transaction ID. * @return Confirmation status. */ function isConfirmed( uint256 transactionId ) public view returns (bool) { uint256 count = 0; for (uint256 i = 0; i < owners.length; i++) { if (confirmations[transactionId][owners[i]]) { count += 1; } if (count == required) { return true; } } } /** * Returns number of confirmations of a transaction. * * @param transactionId Transaction ID. * @return Number of confirmations. */ function getConfirmationCount( uint256 transactionId ) public view returns (uint256) { uint256 count = 0; for (uint256 i = 0; i < owners.length; i++) { if (confirmations[transactionId][owners[i]]) { count += 1; } } return count; } /** * Returns total number of transactions after filers are applied. * * @param pending Include pending transactions. * @param executed Include executed transactions. * @return Total number of transactions after filters are applied. */ function getTransactionCount( bool pending, bool executed ) public view returns (uint256) { uint256 count = 0; for (uint256 i = 0; i < transactionCount; i++) { if ( pending && !transactions[i].executed || executed && transactions[i].executed ) { count += 1; } } return count; } /** * Returns array of owners. * * @return Array of owner addresses. */ function getOwners() public view returns (address[] memory) { return owners; } /** * Returns array with owner addresses, which confirmed transaction. * * @param transactionId Transaction ID. * @return Array of owner addresses. */ function getConfirmations( uint256 transactionId ) public view returns (address[] memory) { address[] memory confirmationsTemp = new address[](owners.length); uint256 count = 0; uint256 i; for (i = 0; i < owners.length; i++) { if (confirmations[transactionId][owners[i]]) { confirmationsTemp[count] = owners[i]; count += 1; } } address[] memory _confirmations = new address[](count); for (i = 0; i < count; i++) { _confirmations[i] = confirmationsTemp[i]; } return _confirmations; } /** * Returns list of transaction IDs in defined range. * * @param from Index start position of transaction array. * @param to Index end position of transaction array. * @param pending Include pending transactions. * @param executed Include executed transactions. * @return Array of transaction IDs. */ function getTransactionIds( uint256 from, uint256 to, bool pending, bool executed ) public view returns (uint256[] memory) { uint256[] memory transactionIdsTemp = new uint256[](transactionCount); uint256 count = 0; uint256 i; for (i = 0; i < transactionCount; i++) { if ( pending && !transactions[i].executed || executed && transactions[i].executed ) { transactionIdsTemp[count] = i; count += 1; } } uint256[] memory _transactionIds = new uint256[](to - from); for (i = from; i < to; i++) { _transactionIds[i - from] = transactionIdsTemp[i]; } return _transactionIds; } // ============ Helper Functions ============ function validateSignature( address signer, bytes32 digest, bytes memory sig ) internal { require(sig.length == 65); uint8 v = uint8(sig[64]); bytes32 r = sig.readBytes32(0); bytes32 s = sig.readBytes32(32); address recovered = ecrecover(digest, v, r, s); require(signer == recovered); } // call has been separated into its own function in order to take advantage // of the Solidity's code generator to produce a loop that copies tx.data into memory. function externalCall( address destination, uint256 value, uint256 dataLength, bytes memory data ) internal returns (bool) { bool result; /* solium-disable-next-line security/no-inline-assembly */ assembly { let x := mload(0x40) // "Allocate" memory for output (0x40 is where "free memory" pointer is stored by convention) let d := add(data, 32) // First 32 bytes are the padded length of data, so exclude that result := call( sub(gas(), 34710), // 34710 is the value that solidity is currently emitting // It includes callGas (700) + callVeryLow (3, to pay for SUB) + callValueTransferGas (9000) + // callNewAccountGas (25000, in case the destination address does not exist and needs creating) destination, value, d, dataLength, // Size of the input (in bytes) - this is what fixes the padding problem x, 0 // Output is ignored, therefore the output size is zero ) } return result; } /** * Adds a new transaction to the transaction mapping, if transaction does not exist yet. * * @param destination Transaction target address. * @param value Transaction ether value. * @param data Transaction data payload. * @return Transaction ID. */ function addTransaction( address destination, uint256 value, bytes memory data ) internal notNull(destination) returns (uint256) { uint256 transactionId = transactionCount; transactions[transactionId] = Transaction({ destination: destination, value: value, data: data, executed: false }); transactionCount += 1; emit Submission(transactionId); return transactionId; } } // File: contracts/external/multisig/DelayedMultiSig.sol /** * @title DelayedMultiSig * @author dYdX * * Multi-Signature Wallet with delay in execution. * Allows multiple parties to execute a transaction after a time lock has passed. * Adapted from Amir Bandeali's MultiSigWalletWithTimeLock contract. * Logic Changes: * - Only owners can execute transactions * - Require that each transaction succeeds * - Added function to execute multiple transactions within the same Ethereum transaction */ contract DelayedMultiSig is MultiSig { // ============ Events ============ event ConfirmationTimeSet(uint256 indexed transactionId, uint256 confirmationTime); event TimeLockChange(uint32 secondsTimeLocked); // ============ Storage ============ uint32 public secondsTimeLocked; mapping (uint256 => uint256) public confirmationTimes; // ============ Modifiers ============ modifier notFullyConfirmed( uint256 transactionId ) { require( !isConfirmed(transactionId), "TX_FULLY_CONFIRMED" ); _; } modifier fullyConfirmed( uint256 transactionId ) { require( isConfirmed(transactionId), "TX_NOT_FULLY_CONFIRMED" ); _; } modifier pastTimeLock( uint256 transactionId ) virtual { require( block.timestamp >= confirmationTimes[transactionId] + secondsTimeLocked, "TIME_LOCK_INCOMPLETE" ); _; } // ============ Constructor ============ /** * Contract constructor sets initial owners, required number of confirmations, and time lock. * * @param _owners List of initial owners. * @param _required Number of required confirmations. * @param _secondsTimeLocked Duration needed after a transaction is confirmed and before it * becomes executable, in seconds. */ constructor ( address[] memory _owners, uint256 _required, uint32 _secondsTimeLocked ) public MultiSig(_owners, _required) { secondsTimeLocked = _secondsTimeLocked; } // ============ Wallet-Only Functions ============ /** * Changes the duration of the time lock for transactions. * * @param _secondsTimeLocked Duration needed after a transaction is confirmed and before it * becomes executable, in seconds. */ function changeTimeLock( uint32 _secondsTimeLocked ) public onlyWallet { secondsTimeLocked = _secondsTimeLocked; emit TimeLockChange(_secondsTimeLocked); } // ============ Owner Functions ============ /** * Allows an owner to confirm a transaction. * Overrides the function in MultiSig. * * @param transactionId Transaction ID. */ function confirmTransaction( uint256 transactionId ) public override ownerExists(msg.sender) transactionExists(transactionId) notConfirmed(transactionId, msg.sender) notFullyConfirmed(transactionId) { confirmations[transactionId][msg.sender] = true; emit Confirmation(msg.sender, transactionId); if (isConfirmed(transactionId)) { setConfirmationTime(transactionId, block.timestamp); } } /** * Allows an owner to confirm a transaction via meta transaction. * Overrides the function in MultiSig. * * @param signer Signer of the meta transaction. * @param transactionId Transaction ID. * @param sig Signature. */ function confirmTransaction( address signer, uint256 transactionId, bytes memory sig ) public override ownerExists(signer) transactionExists(transactionId) notConfirmed(transactionId, signer) notFullyConfirmed(transactionId) { // CONFIRM_TRANSACTION_TYPE_HASH = keccak256("confirmTransaction(uint256 transactionId)"); bytes32 EIP712SignDigest = keccak256( abi.encodePacked( bytes1(0x19), bytes1(0x01), EIP712_DOMAIN_SEPARATOR, keccak256( abi.encode( CONFIRM_TRANSACTION_TYPE_HASH, transactionId ) ) ) ); validateSignature(signer, EIP712SignDigest, sig); confirmations[transactionId][signer] = true; emit Confirmation(signer, transactionId); if (isConfirmed(transactionId)) { setConfirmationTime(transactionId, block.timestamp); } } /** * Allows an owner to execute a confirmed transaction. * Overrides the function in MultiSig. * * @param transactionId Transaction ID. */ function executeTransaction( uint256 transactionId ) public override ownerExists(msg.sender) notExecuted(transactionId) fullyConfirmed(transactionId) pastTimeLock(transactionId) { Transaction storage txn = transactions[transactionId]; txn.executed = true; bool success = externalCall( txn.destination, txn.value, txn.data.length, txn.data ); require( success, "TX_REVERTED" ); emit Execution(transactionId); } /** * Allows an owner to execute multiple confirmed transactions. * * @param transactionIds List of transaction IDs. */ function executeMultipleTransactions( uint256[] memory transactionIds ) public ownerExists(msg.sender) { for (uint256 i = 0; i < transactionIds.length; i++) { executeTransaction(transactionIds[i]); } } // ============ Helper Functions ============ /** * Sets the time of when a submission first passed. */ function setConfirmationTime( uint256 transactionId, uint256 confirmationTime ) internal { confirmationTimes[transactionId] = confirmationTime; emit ConfirmationTimeSet(transactionId, confirmationTime); } } // File: contracts/external/multisig/PartiallyDelayedMultiSig.sol /** * @title PartiallyDelayedMultiSig * @author dYdX * * Multi-Signature Wallet with delay in execution except for some function selectors. */ contract PartiallyDelayedMultiSig is DelayedMultiSig { // ============ Events ============ event SelectorSet(address destination, bytes4 selector, bool approved); // ============ Constants ============ bytes4 constant internal BYTES_ZERO = bytes4(0x0); // ============ Storage ============ // destination => function selector => can bypass timelock mapping (address => mapping (bytes4 => bool)) public instantData; // ============ Modifiers ============ // Overrides old modifier that requires a timelock for every transaction modifier pastTimeLock( uint256 transactionId ) override { // if the function selector is not exempt from timelock, then require timelock require( block.timestamp >= confirmationTimes[transactionId] + secondsTimeLocked || txCanBeExecutedInstantly(transactionId), "TIME_LOCK_INCOMPLETE" ); _; } // ============ Constructor ============ /** * Contract constructor sets initial owners, required number of confirmations, and time lock. * * @param _owners List of initial owners. * @param _required Number of required confirmations. * @param _secondsTimeLocked Duration needed after a transaction is confirmed and before it * becomes executable, in seconds. * @param _noDelayDestinations List of destinations that correspond with the selectors. * Zero address allows the function selector to be used with any * address. * @param _noDelaySelectors All function selectors that do not require a delay to execute. * Fallback function is 0x00000000. */ constructor ( address[] memory _owners, uint256 _required, uint32 _secondsTimeLocked, address[] memory _noDelayDestinations, bytes4[] memory _noDelaySelectors ) public DelayedMultiSig(_owners, _required, _secondsTimeLocked) { require( _noDelayDestinations.length == _noDelaySelectors.length, "ADDRESS_AND_SELECTOR_MISMATCH" ); for (uint256 i = 0; i < _noDelaySelectors.length; i++) { address destination = _noDelayDestinations[i]; bytes4 selector = _noDelaySelectors[i]; instantData[destination][selector] = true; emit SelectorSet(destination, selector, true); } } // ============ Wallet-Only Functions ============ /** * Adds or removes functions that can be executed instantly. Transaction must be sent by wallet. * * @param destination Destination address of function. Zero address allows the function to be * sent to any address. * @param selector 4-byte selector of the function. Fallback function is 0x00000000. * @param approved True if adding approval, false if removing approval. */ function setSelector( address destination, bytes4 selector, bool approved ) public onlyWallet { instantData[destination][selector] = approved; emit SelectorSet(destination, selector, approved); } // ============ Helper Functions ============ /** * Returns true if transaction can be executed instantly (without timelock). */ function txCanBeExecutedInstantly( uint256 transactionId ) internal view returns (bool) { // get transaction from storage Transaction memory txn = transactions[transactionId]; address dest = txn.destination; bytes memory data = txn.data; // fallback function if (data.length == 0) { return selectorCanBeExecutedInstantly(dest, BYTES_ZERO); } // invalid function selector if (data.length < 4) { return false; } // check first four bytes (function selector) bytes32 rawData; /* solium-disable-next-line security/no-inline-assembly */ assembly { rawData := mload(add(data, 32)) } bytes4 selector = bytes4(rawData); return selectorCanBeExecutedInstantly(dest, selector); } /** * Function selector is in instantData for address dest (or for address zero). */ function selectorCanBeExecutedInstantly( address destination, bytes4 selector ) internal view returns (bool) { return instantData[destination][selector] || instantData[ADDRESS_ZERO][selector]; } }
pragma solidity 0.6.12; contract MultiSigLibEIP712 { /***********************************| | Constants | |__________________________________*/ // EIP712Domain string public constant EIP712_DOMAIN_NAME = "MultiSig"; string public constant EIP712_DOMAIN_VERSION = "v1"; // EIP712Domain Separator bytes32 public EIP712_DOMAIN_SEPARATOR; // SUBMIT_TRANSACTION_TYPE_HASH = keccak256("submitTransaction(uint256 transactionId,address destination,uint256 value,bytes data)"); bytes32 public constant SUBMIT_TRANSACTION_TYPE_HASH = 0x2c78e27c3bb2592e67e8d37ad1a95bfccd188e77557c22593b1af0b920a08295; // CONFIRM_TRANSACTION_TYPE_HASH = keccak256("confirmTransaction(uint256 transactionId)"); bytes32 public constant CONFIRM_TRANSACTION_TYPE_HASH = 0x3e96bdc38d4133bc81813a187b2d41bc74332643ce7dbe82c7d94ead8366a65f; constructor() public { EIP712_DOMAIN_SEPARATOR = keccak256( abi.encode( keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'), keccak256(bytes(EIP712_DOMAIN_NAME)), keccak256(bytes(EIP712_DOMAIN_VERSION)), getChainID(), address(this) ) ); } /** * @dev Return `chainId` */ function getChainID() internal pure returns (uint) { uint chainId; assembly { chainId := chainid() } return chainId; } }
{ "evmVersion": "istanbul", "libraries": {}, "metadata": { "bytecodeHash": "ipfs", "useLiteralContent": true }, "optimizer": { "enabled": true, "runs": 1000 }, "remappings": [], "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address[]","name":"_owners","type":"address[]"},{"internalType":"uint256","name":"_required","type":"uint256"},{"internalType":"uint32","name":"_secondsTimeLocked","type":"uint32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"transactionId","type":"uint256"}],"name":"Confirmation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"transactionId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"confirmationTime","type":"uint256"}],"name":"ConfirmationTimeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"depositer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"transactionId","type":"uint256"}],"name":"Execution","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"transactionId","type":"uint256"}],"name":"ExecutionFailure","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"OwnerAddition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"OwnerRemoval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"required","type":"uint256"}],"name":"RequirementChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"uint256","name":"transactionId","type":"uint256"}],"name":"Revocation","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"transactionId","type":"uint256"}],"name":"Submission","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint32","name":"secondsTimeLocked","type":"uint32"}],"name":"TimeLockChange","type":"event"},{"inputs":[],"name":"CONFIRM_TRANSACTION_TYPE_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EIP712_DOMAIN_NAME","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EIP712_DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EIP712_DOMAIN_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_OWNER_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SUBMIT_TRANSACTION_TYPE_HASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"addOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_required","type":"uint256"}],"name":"changeRequirement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_secondsTimeLocked","type":"uint32"}],"name":"changeTimeLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256","name":"transactionId","type":"uint256"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"confirmTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"transactionId","type":"uint256"}],"name":"confirmTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"confirmationTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"confirmations","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"transactionIds","type":"uint256[]"}],"name":"executeMultipleTransactions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"transactionId","type":"uint256"}],"name":"executeTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"transactionId","type":"uint256"}],"name":"getConfirmationCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"transactionId","type":"uint256"}],"name":"getConfirmations","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwners","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"pending","type":"bool"},{"internalType":"bool","name":"executed","type":"bool"}],"name":"getTransactionCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"from","type":"uint256"},{"internalType":"uint256","name":"to","type":"uint256"},{"internalType":"bool","name":"pending","type":"bool"},{"internalType":"bool","name":"executed","type":"bool"}],"name":"getTransactionIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"transactionId","type":"uint256"}],"name":"isConfirmed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"owners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"removeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"newOwner","type":"address"}],"name":"replaceOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"required","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"transactionId","type":"uint256"}],"name":"revokeConfirmation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"secondsTimeLocked","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"},{"internalType":"uint256","name":"transactionId","type":"uint256"},{"internalType":"address","name":"destination","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bytes","name":"sig","type":"bytes"}],"name":"submitTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"destination","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"submitTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"transactionCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"transactions","outputs":[{"internalType":"address","name":"destination","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"bool","name":"executed","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Deployed Bytecode
0x6080604052600436106101e75760003560e01c80639c25ddad11610102578063c642747411610095578063dc8452cd11610064578063dc8452cd146105d2578063e20056e6146105e7578063ee22610b14610607578063fd070296146106275761022f565b8063c642747414610568578063d38f2d8214610588578063d74f8edd146105a8578063dab400f3146105bd5761022f565b8063b5dc40c3116100d1578063b5dc40c3146104f3578063b77bf60014610513578063ba51a6df14610528578063c01a8c84146105485761022f565b80639c25ddad1461046f578063a029b36b14610484578063a0e67e2b146104a4578063a8abe69a146104c65761022f565b80637065cb481161017a578063936a951111610149578063936a9511146103ea57806398138b241461040a5780639996cde51461042a5780639ace38c21461043f5761022f565b80637065cb481461036a578063784547a71461038a57806380bc148f146103aa5780638b51d13f146103ca5761022f565b80633411c81c116101b65780633411c81c146102d957806337bd78a0146102f9578063547415251461031b5780635cc33321146103485761022f565b8063025e7c2714610234578063173825d91461026a57806320ea8d861461028c5780632f54bf6e146102ac5761022f565b3661022f57336001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c346040516102259190612240565b60405180910390a2005b600080fd5b34801561024057600080fd5b5061025461024f36600461202c565b61063c565b6040516102619190612161565b60405180910390f35b34801561027657600080fd5b5061028a610285366004611e1e565b610663565b005b34801561029857600080fd5b5061028a6102a736600461202c565b6107f3565b3480156102b857600080fd5b506102cc6102c7366004611e1e565b6108a9565b6040516102619190612235565b3480156102e557600080fd5b506102cc6102f4366004612044565b6108be565b34801561030557600080fd5b5061030e6108de565b6040516102619190612400565b34801561032757600080fd5b5061033b610336366004612001565b6108ea565b6040516102619190612240565b34801561035457600080fd5b5061035d61095a565b60405161026191906122b4565b34801561037657600080fd5b5061028a610385366004611e1e565b610993565b34801561039657600080fd5b506102cc6103a536600461202c565b610ab4565b3480156103b657600080fd5b5061028a6103c5366004611f6c565b610b3b565b3480156103d657600080fd5b5061033b6103e536600461202c565b610b8c565b3480156103f657600080fd5b5061028a610405366004611f0a565b610bfd565b34801561041657600080fd5b5061033b610425366004611e74565b610db1565b34801561043657600080fd5b5061033b610ea0565b34801561044b57600080fd5b5061045f61045a36600461202c565b610ec4565b6040516102619493929190612175565b34801561047b57600080fd5b5061033b610f80565b34801561049057600080fd5b5061028a61049f3660046120b0565b610fa4565b3480156104b057600080fd5b506104b9611000565b60405161026191906121b0565b3480156104d257600080fd5b506104e66104e1366004612067565b611062565b60405161026191906121fd565b3480156104ff57600080fd5b506104b961050e36600461202c565b6111c1565b34801561051f57600080fd5b5061033b61136b565b34801561053457600080fd5b5061028a61054336600461202c565b611371565b34801561055457600080fd5b5061028a61056336600461202c565b6113f3565b34801561057457600080fd5b5061033b610583366004611f0a565b6114ef565b34801561059457600080fd5b5061033b6105a336600461202c565b611510565b3480156105b457600080fd5b5061033b611522565b3480156105c957600080fd5b5061033b611527565b3480156105de57600080fd5b5061033b61152d565b3480156105f357600080fd5b5061028a610602366004611e40565b611533565b34801561061357600080fd5b5061028a61062236600461202c565b6116c5565b34801561063357600080fd5b5061035d611881565b6004818154811061064957fe5b6000918252602090912001546001600160a01b0316905081565b33301461066f57600080fd5b6001600160a01b038116600090815260036020526040902054819060ff1661069657600080fd5b6001600160a01b0382166000908152600360205260408120805460ff191690555b6004546000190181101561076a57826001600160a01b0316600482815481106106dc57fe5b6000918252602090912001546001600160a01b031614156107625760048054600019810190811061070957fe5b600091825260209091200154600480546001600160a01b03909216918390811061072f57fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555061076a565b6001016106b7565b5060048054600019810190811061077d57fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916905560045460055411156107bb576004546107bb90611371565b6040516001600160a01b038316907f8001553a916ef2f495d26a907cc54d96ed840d7bda71e73194bf5a9df7a76b9090600090a25050565b3360008181526003602052604090205460ff1661080f57600080fd5b60008281526002602090815260408083203380855292529091205483919060ff1661083957600080fd5b600084815260016020526040902060030154849060ff161561085a57600080fd5b6000858152600260209081526040808320338085529252808320805460ff191690555187927ff6a317157440607f36269043eb55f1287a5a19ba2216afeab88cd46cbcfb88e991a35050505050565b60036020526000908152604090205460ff1681565b600260209081526000928352604080842090915290825290205460ff1681565b60075463ffffffff1681565b600080805b60065481101561095057848015610918575060008181526001602052604090206003015460ff16155b8061093c575083801561093c575060008181526001602052604090206003015460ff165b15610948576001820191505b6001016108ef565b5090505b92915050565b6040518060400160405280600281526020017f763100000000000000000000000000000000000000000000000000000000000081525081565b33301461099f57600080fd5b6001600160a01b038116600090815260036020526040902054819060ff16156109c757600080fd5b816001600160a01b0381166109db57600080fd5b600480549050600101600554603282111580156109f85750818111155b8015610a0357508015155b8015610a0e57508115155b610a1757600080fd5b6001600160a01b038516600081815260036020526040808220805460ff1916600190811790915560048054918201815583527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01805473ffffffffffffffffffffffffffffffffffffffff191684179055517ff39e6e1eb0edcf53c221607b54b00cd28f3196fed0a24994dc308b8f611b682d9190a25050505050565b600080805b600454811015610b335760008481526002602052604081206004805491929184908110610ae257fe5b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff1615610b16576001820191505b600554821415610b2b57600192505050610b36565b600101610ab9565b50505b919050565b3360008181526003602052604090205460ff16610b5757600080fd5b60005b8251811015610b8757610b7f838281518110610b7257fe5b60200260200101516116c5565b600101610b5a565b505050565b600080805b600454811015610bf65760008481526002602052604081206004805491929184908110610bba57fe5b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff1615610bee576001820191505b600101610b91565b5092915050565b6001600160a01b038316600090815260036020526040902054839060ff16610c2457600080fd5b60008381526001602052604090205483906001600160a01b0316610c4757600080fd5b60008481526002602090815260408083206001600160a01b03891684529091529020548490869060ff1615610c7b57600080fd5b85610c8581610ab4565b15610cab5760405162461bcd60e51b8152600401610ca2906123c9565b60405180910390fd5b60008054604051601960f81b91600160f81b91610cee907f3e96bdc38d4133bc81813a187b2d41bc74332643ce7dbe82c7d94ead8366a65f908d90602001612249565b60405160208183030381529060405280519060200120604051602001610d17949392919061211f565b604051602081830303815290604052805190602001209050610d3a8982896118ba565b60008881526002602090815260408083206001600160a01b038d168085529252808320805460ff19166001179055518a927f4a504a94899432a9846e1aa406dceb1bcfd538bb839071d49d1e5e23f5be30ef91a3610d9788610ab4565b15610da657610da68842611978565b505050505050505050565b6001600160a01b038616600090815260036020526040812054879060ff16610dd857600080fd5b60008054604051601960f81b91600160f81b91610e21907f2c78e27c3bb2592e67e8d37ad1a95bfccd188e77557c22593b1af0b920a08295908d908d908d908d90602001612257565b60405160208183030381529060405280519060200120604051602001610e4a949392919061211f565b604051602081830303815290604052805190602001209050610e6d8982866118ba565b6000610e7a8888886119c7565b9050808914610e8857600080fd5b610e928a8a611ab6565b509698975050505050505050565b7f3e96bdc38d4133bc81813a187b2d41bc74332643ce7dbe82c7d94ead8366a65f81565b6001602081815260009283526040928390208054818401546002808401805488516101009882161598909802600019011691909104601f81018690048602870186019097528686526001600160a01b039092169590949293830182828015610f6d5780601f10610f4257610100808354040283529160200191610f6d565b820191906000526020600020905b815481529060010190602001808311610f5057829003601f168201915b5050506003909301549192505060ff1684565b7f2c78e27c3bb2592e67e8d37ad1a95bfccd188e77557c22593b1af0b920a0829581565b333014610fb057600080fd5b6007805463ffffffff191663ffffffff83161790556040517f8b01775fda0a3eb53a1e7b3a734cd346761d446aeb72745e17951c0f0ec2b16490610ff5908390612400565b60405180910390a150565b6060600480548060200260200160405190810160405280929190818152602001828054801561105857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161103a575b5050505050905090565b60608060065467ffffffffffffffff8111801561107e57600080fd5b506040519080825280602002602001820160405280156110a8578160200160208202803683370190505b5090506000805b600654811015611129578580156110d8575060008181526001602052604090206003015460ff16155b806110fc57508480156110fc575060008181526001602052604090206003015460ff165b15611121578083838151811061110e57fe5b6020026020010181815250506001820191505b6001016110af565b606088880367ffffffffffffffff8111801561114457600080fd5b5060405190808252806020026020018201604052801561116e578160200160208202803683370190505b5090508891505b878210156111b55783828151811061118957fe5b6020026020010151818a84038151811061119f57fe5b6020908102919091010152600190910190611175565b98975050505050505050565b600454606090819067ffffffffffffffff811180156111df57600080fd5b50604051908082528060200260200182016040528015611209578160200160208202803683370190505b5090506000805b6004548110156112cc576000858152600260205260408120600480549192918490811061123957fe5b60009182526020808320909101546001600160a01b0316835282019290925260400190205460ff16156112c4576004818154811061127357fe5b9060005260206000200160009054906101000a90046001600160a01b031683838151811061129d57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250506001820191505b600101611210565b60608267ffffffffffffffff811180156112e557600080fd5b5060405190808252806020026020018201604052801561130f578160200160208202803683370190505b509050600091505b828210156113625783828151811061132b57fe5b602002602001015181838151811061133f57fe5b6001600160a01b0390921660209283029190910190910152600190910190611317565b95945050505050565b60065481565b33301461137d57600080fd5b60045481603282118015906113925750818111155b801561139d57508015155b80156113a857508115155b6113b157600080fd5b60058390556040517fa3f1ee9126a074d9326c682f561767f710e927faa811f7a99829d49dc421797a906113e6908590612240565b60405180910390a1505050565b3360008181526003602052604090205460ff1661140f57600080fd5b60008281526001602052604090205482906001600160a01b031661143257600080fd5b60008381526002602090815260408083203380855292529091205484919060ff161561145d57600080fd5b8461146781610ab4565b156114845760405162461bcd60e51b8152600401610ca2906123c9565b6000868152600260209081526040808320338085529252808320805460ff191660011790555188927f4a504a94899432a9846e1aa406dceb1bcfd538bb839071d49d1e5e23f5be30ef91a36114d886610ab4565b156114e7576114e78642611978565b505050505050565b6000806114fd8585856119c7565b9050611508816113f3565b949350505050565b60086020526000908152604090205481565b603281565b60005481565b60055481565b33301461153f57600080fd5b6001600160a01b038216600090815260036020526040902054829060ff1661156657600080fd5b6001600160a01b038216600090815260036020526040902054829060ff161561158e57600080fd5b826001600160a01b0381166115a257600080fd5b60005b60045481101561162a57856001600160a01b0316600482815481106115c657fe5b6000918252602090912001546001600160a01b031614156116225784600482815481106115ef57fe5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555061162a565b6001016115a5565b506001600160a01b03808616600081815260036020526040808220805460ff1990811690915593881682528082208054909416600117909355915190917f8001553a916ef2f495d26a907cc54d96ed840d7bda71e73194bf5a9df7a76b9091a26040516001600160a01b038516907ff39e6e1eb0edcf53c221607b54b00cd28f3196fed0a24994dc308b8f611b682d90600090a25050505050565b3360008181526003602052604090205460ff166116e157600080fd5b600082815260016020526040902060030154829060ff161561170257600080fd5b8261170c81610ab4565b6117285760405162461bcd60e51b8152600401610ca2906122fe565b600754600085815260086020526040902054859163ffffffff16014210156117625760405162461bcd60e51b8152600401610ca290612392565b600085815260016020818152604080842060038101805460ff1916851790558054818501546002808401805486516101009982161599909902600019011691909104601f810187900487028801870190955284875292969561182e956001600160a01b03909316949193919290919083908301828280156118245780601f106117f957610100808354040283529160200191611824565b820191906000526020600020905b81548152906001019060200180831161180757829003601f168201915b5050505050611b72565b90508061184d5760405162461bcd60e51b8152600401610ca2906122c7565b60405187907f33e13ecb54c3076d8e8bb8c2881800a4d972b792045ffae98fdf46df365fed7590600090a250505050505050565b6040518060400160405280600881526020017f4d756c746953696700000000000000000000000000000000000000000000000081525081565b80516041146118c857600080fd5b6000816040815181106118d757fe5b016020015160f81c905060006118ed8382611b95565b905060006118fc846020611b95565b90506000600186858585604051600081526020016040526040516119239493929190612296565b6020604051602081039080840390855afa158015611945573d6000803e3d6000fd5b505050602060405103519050806001600160a01b0316876001600160a01b03161461196f57600080fd5b50505050505050565b600082815260086020526040908190208290555182907f0b237afe65f1514fd7ea3f923ea4fe792bdd07000a912b6cd1602a8e7f573c8d906119bb908490612240565b60405180910390a25050565b6000836001600160a01b0381166119dd57600080fd5b600654604080516080810182526001600160a01b038881168252602080830189815283850189815260006060860181905287815260018085529690208551815473ffffffffffffffffffffffffffffffffffffffff191695169490941784559051948301949094559251805192939192611a5d9260028501920190611cfb565b50606091909101516003909101805460ff191691151591909117905560068054600101905560405181907fc0ba8fe4b176c1714197d43b9cc6bcf797a4a7461c5fe8d0ef6e184ae7601e5190600090a295945050505050565b60008181526001602052604090205481906001600160a01b0316611ad957600080fd5b60008281526002602090815260408083206001600160a01b03871684529091529020548290849060ff1615611b0d57600080fd5b60008481526002602090815260408083206001600160a01b0389168085529252808320805460ff191660011790555186927f4a504a94899432a9846e1aa406dceb1bcfd538bb839071d49d1e5e23f5be30ef91a3611b6b8585611bc4565b5050505050565b6000806040516020840160008287838a8c6187965a03f198975050505050505050565b60008160200183511015611bbb5760405162461bcd60e51b8152600401610ca290612335565b50016020015190565b600081815260016020526040902060030154819060ff1615611be557600080fd5b611bee82610ab4565b15610b875760008281526001602081815260409283902060038101805460ff1916841790558054818401546002808401805488516101009882161598909802600019011691909104601f81018690048602870186019097528686529295611c88956001600160a01b0390931694919390929183908301828280156118245780601f106117f957610100808354040283529160200191611824565b15611cbd5760405183907f33e13ecb54c3076d8e8bb8c2881800a4d972b792045ffae98fdf46df365fed7590600090a2611cf5565b60405183907f526441bb6c1aba3c9a4a6ca1d6545da9c2333c8c48343ef398eb858d72b7923690600090a260038101805460ff191690555b50505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611d3c57805160ff1916838001178555611d69565b82800160010185558215611d69579182015b82811115611d69578251825591602001919060010190611d4e565b50611d75929150611d79565b5090565b5b80821115611d755760008155600101611d7a565b80356001600160a01b038116811461095457600080fd5b8035801515811461095457600080fd5b600082601f830112611dc5578081fd5b813567ffffffffffffffff811115611ddb578182fd5b611dee601f8201601f1916602001612411565b9150808252836020828501011115611e0557600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215611e2f578081fd5b611e398383611d8e565b9392505050565b60008060408385031215611e52578081fd5b611e5c8484611d8e565b9150611e6b8460208501611d8e565b90509250929050565b60008060008060008060c08789031215611e8c578182fd5b611e968888611d8e565b955060208701359450611eac8860408901611d8e565b935060608701359250608087013567ffffffffffffffff80821115611ecf578384fd5b611edb8a838b01611db5565b935060a0890135915080821115611ef0578283fd5b50611efd89828a01611db5565b9150509295509295509295565b600080600060608486031215611f1e578283fd5b83356001600160a01b0381168114611f34578384fd5b925060208401359150604084013567ffffffffffffffff811115611f56578182fd5b611f6286828701611db5565b9150509250925092565b60006020808385031215611f7e578182fd5b823567ffffffffffffffff811115611f94578283fd5b8301601f81018513611fa4578283fd5b8035611fb7611fb282612438565b612411565b8181528381019083850185840285018601891015611fd3578687fd5b8694505b83851015611ff5578035835260019490940193918501918501611fd7565b50979650505050505050565b60008060408385031215612013578182fd5b61201d8484611da5565b9150611e6b8460208501611da5565b60006020828403121561203d578081fd5b5035919050565b60008060408385031215612056578182fd5b82359150611e6b8460208501611d8e565b6000806000806080858703121561207c578384fd5b8435935060208501359250604085013561209581612458565b915060608501356120a581612458565b939692955090935050565b6000602082840312156120c1578081fd5b813563ffffffff81168114611e39578182fd5b60008151808452815b818110156120f9576020818501810151868301820152016120dd565b8181111561210a5782602083870101525b50601f01601f19169290920160200192915050565b7fff0000000000000000000000000000000000000000000000000000000000000094851681529290931660018301526002820152602281019190915260420190565b6001600160a01b0391909116815260200190565b60006001600160a01b03861682528460208301526080604083015261219d60808301856120d4565b9050821515606083015295945050505050565b6020808252825182820181905260009190848201906040850190845b818110156121f15783516001600160a01b0316835292840192918401916001016121cc565b50909695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156121f157835183529284019291840191600101612219565b901515815260200190565b90815260200190565b918252602082015260400190565b60008682528560208301526001600160a01b038516604083015283606083015260a0608083015261228b60a08301846120d4565b979650505050505050565b93845260ff9290921660208401526040830152606082015260800190565b600060208252611e3960208301846120d4565b6020808252600b908201527f54585f5245564552544544000000000000000000000000000000000000000000604082015260600190565b60208082526016908201527f54585f4e4f545f46554c4c595f434f4e4649524d454400000000000000000000604082015260600190565b6020808252603b908201527f4c696242797465732372656164427974657333322067726561746572206f722060408201527f657175616c20746f203332206c656e6774682072657175697265640000000000606082015260800190565b60208082526014908201527f54494d455f4c4f434b5f494e434f4d504c455445000000000000000000000000604082015260600190565b60208082526012908201527f54585f46554c4c595f434f4e4649524d45440000000000000000000000000000604082015260600190565b63ffffffff91909116815260200190565b60405181810167ffffffffffffffff8111828210171561243057600080fd5b604052919050565b600067ffffffffffffffff82111561244e578081fd5b5060209081020190565b801515811461246657600080fd5b5056fea264697066735822122044ef55bed66bafe6136cd6a6d0062d9076c08a088e6bdb3f9c19a8dc9b2f5cf164736f6c634300060c0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 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.