ETH Price: $2,364.31 (+1.56%)

Contract

0xd3B1b7bCff1191dc128F4863c23Be1d5B01ef482
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x60c06040149364322022-06-10 4:08:18826 days ago1654834098IN
 Create: MatrixVotingPower
0 ETH0.0307856440

Advanced mode:
Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MatrixVotingPower

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 6 : MatrixVotingPower.sol
//SPDX-License-Identifier: MIT
/**
███    ███  █████  ████████ ██████  ██ ██   ██     ██████   █████   ██████  
████  ████ ██   ██    ██    ██   ██ ██  ██ ██      ██   ██ ██   ██ ██    ██ 
██ ████ ██ ███████    ██    ██████  ██   ███       ██   ██ ███████ ██    ██ 
██  ██  ██ ██   ██    ██    ██   ██ ██  ██ ██      ██   ██ ██   ██ ██    ██ 
██      ██ ██   ██    ██    ██   ██ ██ ██   ██     ██████  ██   ██  ██████  

Website: https://matrixdaoresearch.xyz/
Twitter: https://twitter.com/MatrixDAO_
 */
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "./interfaces/INFTMatrixDao.sol";

contract MatrixVotingPower is IERC20, IERC20Metadata, Ownable {
    string constant NOT_IMPLEMENTED_MSG = "MatrixVotingPower: not implemented";
    uint256 constant ENDTOKEN_ID_LAST_TOKEN = 0;

    address public immutable nft;
    address public immutable mtx;

    mapping(uint256 => bool) public blackList;
    uint256 public numBlackList;

    constructor(address _nft, address _mtx){
        nft = _nft;
        mtx = _mtx;
    }

    function addToBlackList(uint256 tokenId) external onlyOwner {
        require(!blackList[tokenId], "MatrixVotingPower: already in the blacklist");
        blackList[tokenId] = true;
        numBlackList++;
    }

    function removeFromBlackList(uint256 tokenId) external onlyOwner {
        require(blackList[tokenId], "MatrixVotingPower: not in the blacklist");
        blackList[tokenId] = false;
        numBlackList--;
    }

    function name() external override pure returns (string memory) {
        return "Matrix DAO Voting Power";
    }

    function symbol() external override pure returns (string memory) {
        return "MTX";
    }

    function decimals() external override view returns (uint8) {
        return IERC20Metadata(mtx).decimals();
    }

    function totalSupply() external override view returns (uint256) {
        return INFTMatrixDao(nft).totalSupply();
    }

    function balanceOf(address account) external override view returns (uint256) {
        uint256 validNFT = 0;
        if(INFTMatrixDao(nft).balanceOf(account) != 0) {
            uint256[] memory tokenIds; 
            uint256 endTokenId;
            (tokenIds, endTokenId) = INFTMatrixDao(nft).ownedTokens(account, 1, ENDTOKEN_ID_LAST_TOKEN); 

            for(uint256 i=0;i<tokenIds.length;i++) {
                uint256 tokenId = tokenIds[i];
                if(!blackList[tokenId]){
                    validNFT++;
                }
            }

            if(validNFT > 0) {
                return IERC20(mtx).balanceOf(account);
            } else {
                return 0;
            }
        }
        return 0;
    }


    // Unused interfaces

    function transfer(address to, uint256 amount) external override returns (bool) {
        revert(NOT_IMPLEMENTED_MSG);
    }
    function allowance(address owner, address spender) external override view returns (uint256) {
        revert(NOT_IMPLEMENTED_MSG);
    }

    function approve(address spender, uint256 amount) external override returns (bool) {
        revert(NOT_IMPLEMENTED_MSG);
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external override returns (bool) {
        revert(NOT_IMPLEMENTED_MSG);
    }

}

File 2 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 4 of 6 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

File 5 of 6 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 6 of 6 : INFTMatrixDao.sol
//SPDX-License-Identifier: MIT
/**
███    ███  █████  ████████ ██████  ██ ██   ██     ██████   █████   ██████  
████  ████ ██   ██    ██    ██   ██ ██  ██ ██      ██   ██ ██   ██ ██    ██ 
██ ████ ██ ███████    ██    ██████  ██   ███       ██   ██ ███████ ██    ██ 
██  ██  ██ ██   ██    ██    ██   ██ ██  ██ ██      ██   ██ ██   ██ ██    ██ 
██      ██ ██   ██    ██    ██   ██ ██ ██   ██     ██████  ██   ██  ██████  

Website: https://matrixdaoresearch.xyz/
Twitter: https://twitter.com/MatrixDAO_
 */
pragma solidity ^0.8.0;

interface INFTMatrixDao {
  function allowReveal (  ) external view returns ( bool );
  function approve ( address to, uint256 tokenId ) external;
  function balanceOf ( address owner ) external view returns ( uint256 );
  function devMint ( uint256 _amount, address _to ) external;
  function getApproved ( uint256 tokenId ) external view returns ( address );
  function isApprovedForAll ( address owner, address operator ) external view returns ( bool );
  function maxCollection (  ) external view returns ( uint256 );
  function mint ( uint32 _amount, uint32 _allowAmount, uint64 _expireTime, bytes memory _signature ) external;
  function name (  ) external view returns ( string memory );
  function numberMinted ( address _minter ) external view returns ( uint256 minted );
  function ownedTokens ( address _addr, uint256 _startId, uint256 _endId ) external view returns ( uint256[] memory tokenIds, uint256 endTokenId );
  function owner (  ) external view returns ( address );
  function ownerOf ( uint256 tokenId ) external view returns ( address );
  function price (  ) external view returns ( uint256 );
  function renounceOwnership (  ) external;
  function reveal ( uint256 _tokenId, bytes32 _hash, bytes memory _signature ) external;
  function safeTransferFrom ( address from, address to, uint256 tokenId ) external;
  function safeTransferFrom ( address from, address to, uint256 tokenId, bytes memory _data ) external;
  function setAllowReveal ( bool _allowReveal ) external;
  function setApprovalForAll ( address operator, bool approved ) external;
  function setPrice ( uint256 _newPrice ) external;
  function setSigner ( address _newSigner ) external;
  function setUnrevealURI ( string memory _newURI ) external;
  function supportsInterface ( bytes4 interfaceId ) external view returns ( bool );
  function symbol (  ) external view returns ( string memory );
  function tokenReveal ( uint256 _tokenId ) external view returns ( bool isRevealed );
  function tokenURI ( uint256 _tokenId ) external view returns ( string memory uri );
  function totalMinted (  ) external view returns ( uint256 minted );
  function totalSupply (  ) external view returns ( uint256 );
  function transferFrom ( address from, address to, uint256 tokenId ) external;
  function transferOwnership ( address newOwner ) external;
  function unrevealURI (  ) external view returns ( string memory );
  function withdraw ( address _to ) external;
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_nft","type":"address"},{"internalType":"address","name":"_mtx","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"addToBlackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"blackList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mtx","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"nft","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numBlackList","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"removeFromBlackList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405234801561001057600080fd5b50604051610db1380380610db183398101604081905261002f916100bb565b6100383361004f565b6001600160a01b039182166080521660a0526100ee565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146100b657600080fd5b919050565b600080604083850312156100ce57600080fd5b6100d78361009f565b91506100e56020840161009f565b90509250929050565b60805160a051610c7b6101366000396000818161027b015281816103b701526106000152600081816101cc0152818161032e0152818161045b01526104ff0152610c7b6000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063ab78c60411610071578063ab78c6041461029d578063b39b975a146102a6578063d1d4ff5f146102b9578063dd62ed3e146102cc578063f2fde38b146102da57600080fd5b80638da5cb5b1461024657806395d89b4114610257578063a9059cbb14610166578063ab3146991461027657600080fd5b8063313ce567116100e9578063313ce567146101ad57806347ccca02146101c7578063709ec8b41461020657806370a0823114610229578063715018a61461023c57600080fd5b806306fdde031461011b578063095ea7b31461016657806318160ddd1461018957806323b872dd1461019f575b600080fd5b60408051808201909152601781527f4d61747269782044414f20566f74696e6720506f77657200000000000000000060208201525b60405161015d9190610933565b60405180910390f35b6101796101743660046109a4565b6102ed565b604051901515815260200161015d565b61019161032a565b60405190815260200161015d565b6101796101743660046109ce565b6101b56103b3565b60405160ff909116815260200161015d565b6101ee7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161015d565b610179610214366004610a0a565b60016020526000908152604090205460ff1681565b610191610237366004610a23565b610437565b610244610688565b005b6000546001600160a01b03166101ee565b60408051808201909152600381526209aa8b60eb1b6020820152610150565b6101ee7f000000000000000000000000000000000000000000000000000000000000000081565b61019160025481565b6102446102b4366004610a0a565b6106be565b6102446102c7366004610a0a565b610782565b610191610174366004610a45565b6102446102e8366004610a23565b610848565b6000604051806060016040528060228152602001610c246022913960405162461bcd60e51b81526004016103219190610933565b60405180910390fd5b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561038a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ae9190610a78565b905090565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610413573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ae9190610a91565b6040516370a0823160e01b81526001600160a01b03828116600483015260009182917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa1580156104a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c69190610a78565b1561067f576040516324d0528760e11b81526001600160a01b0384811660048301526001602483015260006044830181905260609290917f000000000000000000000000000000000000000000000000000000000000000016906349a0a50e90606401600060405180830381865afa158015610546573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261056e9190810190610aca565b909250905060005b82518110156105da57600083828151811061059357610593610b90565b6020908102919091018101516000818152600190925260409091205490915060ff166105c757846105c381610bbc565b9550505b50806105d281610bbc565b915050610576565b508215610674576040516370a0823160e01b81526001600160a01b0386811660048301527f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015610647573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066b9190610a78565b95945050505050565b506000949350505050565b50600092915050565b6000546001600160a01b031633146106b25760405162461bcd60e51b815260040161032190610bd7565b6106bc60006108e3565b565b6000546001600160a01b031633146106e85760405162461bcd60e51b815260040161032190610bd7565b60008181526001602052604090205460ff166107565760405162461bcd60e51b815260206004820152602760248201527f4d6174726978566f74696e67506f7765723a206e6f7420696e2074686520626c6044820152661858dadb1a5cdd60ca1b6064820152608401610321565b6000818152600160205260408120805460ff19169055600280549161077a83610c0c565b919050555050565b6000546001600160a01b031633146107ac5760405162461bcd60e51b815260040161032190610bd7565b60008181526001602052604090205460ff161561081f5760405162461bcd60e51b815260206004820152602b60248201527f4d6174726978566f74696e67506f7765723a20616c726561647920696e20746860448201526a1948189b1858dadb1a5cdd60aa1b6064820152608401610321565b60008181526001602081905260408220805460ff19169091179055600280549161077a83610bbc565b6000546001600160a01b031633146108725760405162461bcd60e51b815260040161032190610bd7565b6001600160a01b0381166108d75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610321565b6108e0816108e3565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208083528351808285015260005b8181101561096057858101830151858201604001528201610944565b81811115610972576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461099f57600080fd5b919050565b600080604083850312156109b757600080fd5b6109c083610988565b946020939093013593505050565b6000806000606084860312156109e357600080fd5b6109ec84610988565b92506109fa60208501610988565b9150604084013590509250925092565b600060208284031215610a1c57600080fd5b5035919050565b600060208284031215610a3557600080fd5b610a3e82610988565b9392505050565b60008060408385031215610a5857600080fd5b610a6183610988565b9150610a6f60208401610988565b90509250929050565b600060208284031215610a8a57600080fd5b5051919050565b600060208284031215610aa357600080fd5b815160ff81168114610a3e57600080fd5b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610add57600080fd5b825167ffffffffffffffff80821115610af557600080fd5b818501915085601f830112610b0957600080fd5b8151602082821115610b1d57610b1d610ab4565b8160051b604051601f19603f83011681018181108682111715610b4257610b42610ab4565b604052928352818301935084810182019289841115610b6057600080fd5b948201945b83861015610b7e57855185529482019493820193610b65565b97909101519698969750505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415610bd057610bd0610ba6565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600081610c1b57610c1b610ba6565b50600019019056fe4d6174726978566f74696e67506f7765723a206e6f7420696d706c656d656e746564a2646970667358221220c683c0e31e187b52243cca674b8b4d323a48ca51bf3322e8113390408dfd0f9864736f6c634300080b0033000000000000000000000000ea0d98337bdf31cf1f98bb4aab8caa10c77457460000000000000000000000003c5f53093d68a80867847bed262195314ed9b880

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063ab78c60411610071578063ab78c6041461029d578063b39b975a146102a6578063d1d4ff5f146102b9578063dd62ed3e146102cc578063f2fde38b146102da57600080fd5b80638da5cb5b1461024657806395d89b4114610257578063a9059cbb14610166578063ab3146991461027657600080fd5b8063313ce567116100e9578063313ce567146101ad57806347ccca02146101c7578063709ec8b41461020657806370a0823114610229578063715018a61461023c57600080fd5b806306fdde031461011b578063095ea7b31461016657806318160ddd1461018957806323b872dd1461019f575b600080fd5b60408051808201909152601781527f4d61747269782044414f20566f74696e6720506f77657200000000000000000060208201525b60405161015d9190610933565b60405180910390f35b6101796101743660046109a4565b6102ed565b604051901515815260200161015d565b61019161032a565b60405190815260200161015d565b6101796101743660046109ce565b6101b56103b3565b60405160ff909116815260200161015d565b6101ee7f000000000000000000000000ea0d98337bdf31cf1f98bb4aab8caa10c774574681565b6040516001600160a01b03909116815260200161015d565b610179610214366004610a0a565b60016020526000908152604090205460ff1681565b610191610237366004610a23565b610437565b610244610688565b005b6000546001600160a01b03166101ee565b60408051808201909152600381526209aa8b60eb1b6020820152610150565b6101ee7f0000000000000000000000003c5f53093d68a80867847bed262195314ed9b88081565b61019160025481565b6102446102b4366004610a0a565b6106be565b6102446102c7366004610a0a565b610782565b610191610174366004610a45565b6102446102e8366004610a23565b610848565b6000604051806060016040528060228152602001610c246022913960405162461bcd60e51b81526004016103219190610933565b60405180910390fd5b60007f000000000000000000000000ea0d98337bdf31cf1f98bb4aab8caa10c77457466001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561038a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ae9190610a78565b905090565b60007f0000000000000000000000003c5f53093d68a80867847bed262195314ed9b8806001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610413573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103ae9190610a91565b6040516370a0823160e01b81526001600160a01b03828116600483015260009182917f000000000000000000000000ea0d98337bdf31cf1f98bb4aab8caa10c774574616906370a0823190602401602060405180830381865afa1580156104a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104c69190610a78565b1561067f576040516324d0528760e11b81526001600160a01b0384811660048301526001602483015260006044830181905260609290917f000000000000000000000000ea0d98337bdf31cf1f98bb4aab8caa10c774574616906349a0a50e90606401600060405180830381865afa158015610546573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261056e9190810190610aca565b909250905060005b82518110156105da57600083828151811061059357610593610b90565b6020908102919091018101516000818152600190925260409091205490915060ff166105c757846105c381610bbc565b9550505b50806105d281610bbc565b915050610576565b508215610674576040516370a0823160e01b81526001600160a01b0386811660048301527f0000000000000000000000003c5f53093d68a80867847bed262195314ed9b88016906370a0823190602401602060405180830381865afa158015610647573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066b9190610a78565b95945050505050565b506000949350505050565b50600092915050565b6000546001600160a01b031633146106b25760405162461bcd60e51b815260040161032190610bd7565b6106bc60006108e3565b565b6000546001600160a01b031633146106e85760405162461bcd60e51b815260040161032190610bd7565b60008181526001602052604090205460ff166107565760405162461bcd60e51b815260206004820152602760248201527f4d6174726978566f74696e67506f7765723a206e6f7420696e2074686520626c6044820152661858dadb1a5cdd60ca1b6064820152608401610321565b6000818152600160205260408120805460ff19169055600280549161077a83610c0c565b919050555050565b6000546001600160a01b031633146107ac5760405162461bcd60e51b815260040161032190610bd7565b60008181526001602052604090205460ff161561081f5760405162461bcd60e51b815260206004820152602b60248201527f4d6174726978566f74696e67506f7765723a20616c726561647920696e20746860448201526a1948189b1858dadb1a5cdd60aa1b6064820152608401610321565b60008181526001602081905260408220805460ff19169091179055600280549161077a83610bbc565b6000546001600160a01b031633146108725760405162461bcd60e51b815260040161032190610bd7565b6001600160a01b0381166108d75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610321565b6108e0816108e3565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208083528351808285015260005b8181101561096057858101830151858201604001528201610944565b81811115610972576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461099f57600080fd5b919050565b600080604083850312156109b757600080fd5b6109c083610988565b946020939093013593505050565b6000806000606084860312156109e357600080fd5b6109ec84610988565b92506109fa60208501610988565b9150604084013590509250925092565b600060208284031215610a1c57600080fd5b5035919050565b600060208284031215610a3557600080fd5b610a3e82610988565b9392505050565b60008060408385031215610a5857600080fd5b610a6183610988565b9150610a6f60208401610988565b90509250929050565b600060208284031215610a8a57600080fd5b5051919050565b600060208284031215610aa357600080fd5b815160ff81168114610a3e57600080fd5b634e487b7160e01b600052604160045260246000fd5b60008060408385031215610add57600080fd5b825167ffffffffffffffff80821115610af557600080fd5b818501915085601f830112610b0957600080fd5b8151602082821115610b1d57610b1d610ab4565b8160051b604051601f19603f83011681018181108682111715610b4257610b42610ab4565b604052928352818301935084810182019289841115610b6057600080fd5b948201945b83861015610b7e57855185529482019493820193610b65565b97909101519698969750505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415610bd057610bd0610ba6565b5060010190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600081610c1b57610c1b610ba6565b50600019019056fe4d6174726978566f74696e67506f7765723a206e6f7420696d706c656d656e746564a2646970667358221220c683c0e31e187b52243cca674b8b4d323a48ca51bf3322e8113390408dfd0f9864736f6c634300080b0033

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

000000000000000000000000ea0d98337bdf31cf1f98bb4aab8caa10c77457460000000000000000000000003c5f53093d68a80867847bed262195314ed9b880

-----Decoded View---------------
Arg [0] : _nft (address): 0xEa0D98337bdF31cf1f98Bb4Aab8Caa10c7745746
Arg [1] : _mtx (address): 0x3C5f53093D68A80867847BED262195314Ed9B880

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000ea0d98337bdf31cf1f98bb4aab8caa10c7745746
Arg [1] : 0000000000000000000000003c5f53093d68a80867847bed262195314ed9b880


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.