ETH Price: $3,297.81 (-0.34%)

Contract

0x32984C49522627B379748ce830b1C0401c03fEf6
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Merkle Claim195083822024-03-25 1:55:35273 days ago1711331735IN
0x32984C49...01c03fEf6
0 ETH0.0008060411.8214276
Merkle Claim195030662024-03-24 7:56:35274 days ago1711266995IN
0x32984C49...01c03fEf6
0 ETH0.0008581612.58579024
Merkle Claim195030662024-03-24 7:56:35274 days ago1711266995IN
0x32984C49...01c03fEf6
0 ETH0.0008504512.47275991
Merkle Claim178280622023-08-02 14:59:59509 days ago1690988399IN
0x32984C49...01c03fEf6
0 ETH0.0025507737.95620223
Merkle Claim178141322023-07-31 16:18:11511 days ago1690820291IN
0x32984C49...01c03fEf6
0 ETH0.0009105931.95084526
Merkle Claim178126922023-07-31 11:28:23511 days ago1690802903IN
0x32984C49...01c03fEf6
0 ETH0.0004492315.76248036
Merkle Claim178126782023-07-31 11:25:35511 days ago1690802735IN
0x32984C49...01c03fEf6
0 ETH0.0011174616.39153423
Merkle Claim178047852023-07-30 8:53:47512 days ago1690707227IN
0x32984C49...01c03fEf6
0 ETH0.0010648215.61900256
Merkle Claim178047662023-07-30 8:49:59512 days ago1690706999IN
0x32984C49...01c03fEf6
0 ETH0.000853617.78349483
Merkle Claim177688262023-07-25 8:08:47517 days ago1690272527IN
0x32984C49...01c03fEf6
0 ETH0.0020593730.20807724
Merkle Claim177631072023-07-24 12:57:59518 days ago1690203479IN
0x32984C49...01c03fEf6
0 ETH0.0009105931.95084526
Merkle Claim177624812023-07-24 10:51:23518 days ago1690195883IN
0x32984C49...01c03fEf6
0 ETH0.0015601322.88497666
Merkle Claim177624372023-07-24 10:42:35518 days ago1690195355IN
0x32984C49...01c03fEf6
0 ETH0.0007239725.40275874
Merkle Claim177624322023-07-24 10:41:35518 days ago1690195295IN
0x32984C49...01c03fEf6
0 ETH0.0007554625.18221171
Merkle Claim177518762023-07-22 23:14:47519 days ago1690067687IN
0x32984C49...01c03fEf6
0 ETH0.0005635513.74517471
Merkle Claim177518412023-07-22 23:07:35519 days ago1690067255IN
0x32984C49...01c03fEf6
0 ETH0.0008163815.69965102
Merkle Claim177518312023-07-22 23:05:35519 days ago1690067135IN
0x32984C49...01c03fEf6
0 ETH0.0006542815.57831228
Merkle Claim177518252023-07-22 23:04:11519 days ago1690067051IN
0x32984C49...01c03fEf6
0 ETH0.0006284915.71238105
Merkle Claim177518162023-07-22 23:02:23519 days ago1690066943IN
0x32984C49...01c03fEf6
0 ETH0.0004388314.62780608
Merkle Claim177518082023-07-22 23:00:47519 days ago1690066847IN
0x32984C49...01c03fEf6
0 ETH0.0004894716.31568113
Merkle Claim176771942023-07-12 11:30:35530 days ago1689161435IN
0x32984C49...01c03fEf6
0 ETH0.0008955828.40781838
Merkle Claim176521032023-07-08 22:47:23533 days ago1688856443IN
0x32984C49...01c03fEf6
0 ETH0.0010421215.50428983
Merkle Claim176519162023-07-08 22:09:23533 days ago1688854163IN
0x32984C49...01c03fEf6
0 ETH0.0013089219.47376291
Merkle Claim175876622023-06-29 21:34:11542 days ago1688074451IN
0x32984C49...01c03fEf6
0 ETH0.0025416481.9883954
Merkle Claim174707082023-06-13 11:14:35559 days ago1686654875IN
0x32984C49...01c03fEf6
0 ETH0.0009640214.34495431
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MerkleClaim

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : MerkleClaim.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

import {ECDSA} from "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Pausable} from "@openzeppelin/contracts/security/Pausable.sol";
import {MerkleHashValidator} from "./MerkleHashValidator.sol";

contract MerkleClaim is Ownable, Pausable {

    IERC20 public immutable wMinimaToken;
    bytes32 public merkleRoot;
    
    mapping(address => bool) public alreadyClaimed;

    constructor(bytes32 _root, IERC20 _wMinimaToken) {
        merkleRoot = _root;
        wMinimaToken = _wMinimaToken;
    }

    /// @notice Allows a msg.sender to claim their wMINIMA token by providing a
    /// merkle proof proving their address is indeed committed to by the Merkle root
    /// stored in `Airdrop.merkleRoot`
   
    function merkleClaim(bytes32[] calldata _proof, address _to, uint256 _amount) external {
        require(!alreadyClaimed[_to], "merkleClaim: User has already claimed wMinima");
        //generate node from address and amount
        bytes32 _node = keccak256(abi.encodePacked(_to, _amount));
        //check if node is valid
        bool isValidProof = MerkleHashValidator.validateEntry(merkleRoot, _proof, _node);
        require(isValidProof, 'merkleClaim: Incorrect proof');
        //add user to mapping of already claimed users
        alreadyClaimed[_to] = true;
        //send airdrop tokens to user
        wMinimaToken.transfer(_to, _amount);
        //emit Redeemed event
        emit Redeemed(_to, _amount);
    }

    function toLeafFormat(address _claimer, uint256 _amount) internal pure returns (bytes32) {
        return keccak256(bytes(abi.encode(_claimer, _amount)));
    }

    function withdrawWMinima() external onlyOwner {
        wMinimaToken.transfer(msg.sender, wMinimaToken.balanceOf(address(this)));
    }

    function updateMerkleRoot(bytes32 _newRoot) external onlyOwner {
        merkleRoot = _newRoot;
    }

    event Redeemed(address addr, uint256 amount);
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 4 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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);
}

File 5 of 9 : 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 9 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV // Deprecated in v4.8
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 7 of 9 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

File 8 of 9 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 9 of 9 : MerkleHashValidator.sol
pragma solidity ^0.8.9;

library MerkleHashValidator {

    function validateEntry(bytes32 merkleRoot, bytes32[] calldata proof, bytes32 leaf) internal pure returns (bool) {
        
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            if(computedHash < proof[i]){
                computedHash = _computeHash(computedHash, proof[i]);
            }
            else {
                computedHash = _computeHash(proof[i], computedHash);
            }
        }
        return computedHash == merkleRoot;
    }

    function _computeHash(bytes32 left, bytes32 right) private pure returns (bytes32 value){
        assembly {
            mstore(0x00, left)
            mstore(0x20, right)
            value := keccak256(0x00, 0x40)
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"},{"internalType":"contract IERC20","name":"_wMinimaToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"addr","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"alreadyClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"merkleClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newRoot","type":"bytes32"}],"name":"updateMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wMinimaToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawWMinima","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b506040516200128038038062001280833981810160405281019062000037919062000239565b620000576200004b620000b460201b60201c565b620000bc60201b60201c565b60008060146101000a81548160ff021916908315150217905550816001819055508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050505062000280565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b6000819050919050565b6200019a8162000185565b8114620001a657600080fd5b50565b600081519050620001ba816200018f565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001ed82620001c0565b9050919050565b60006200020182620001e0565b9050919050565b6200021381620001f4565b81146200021f57600080fd5b50565b600081519050620002338162000208565b92915050565b6000806040838503121562000253576200025262000180565b5b60006200026385828601620001a9565b9250506020620002768582860162000222565b9150509250929050565b608051610fcf620002b1600039600081816101f70152818161024c0152818161028901526104ea0152610fcf6000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80638da5cb5b116100665780638da5cb5b14610123578063a5438c5314610141578063bbfb1a0b1461014b578063f2fde38b14610167578063f54b893b146101835761009e565b80632eb4a7ab146100a35780634783f0ef146100c15780635c975abb146100dd578063715018a6146100fb578063828c931e14610105575b600080fd5b6100ab6101b3565b6040516100b8919061088c565b60405180910390f35b6100db60048036038101906100d691906108dd565b6101b9565b005b6100e56101cb565b6040516100f29190610925565b60405180910390f35b6101036101e1565b005b61010d6101f5565b60405161011a91906109bf565b60405180910390f35b61012b610219565b60405161013891906109fb565b60405180910390f35b610149610242565b005b61016560048036038101906101609190610add565b610384565b005b610181600480360381019061017c9190610b51565b6105c8565b005b61019d60048036038101906101989190610b51565b61064b565b6040516101aa9190610925565b60405180910390f35b60015481565b6101c161066b565b8060018190555050565b60008060149054906101000a900460ff16905090565b6101e961066b565b6101f360006106e9565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61024a61066b565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb337f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016102e091906109fb565b602060405180830381865afa1580156102fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103219190610b93565b6040518363ffffffff1660e01b815260040161033e929190610bcf565b6020604051808303816000875af115801561035d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103819190610c24565b50565b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610411576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040890610cd4565b60405180910390fd5b60008282604051602001610426929190610d5d565b604051602081830303815290604052805190602001209050600061044e6001548787856107ad565b905080610490576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161048790610dd5565b60405180910390fd5b6001600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b8152600401610543929190610bcf565b6020604051808303816000875af1158015610562573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105869190610c24565b507f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b936984846040516105b8929190610bcf565b60405180910390a1505050505050565b6105d061066b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361063f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063690610e67565b60405180910390fd5b610648816106e9565b50565b60026020528060005260406000206000915054906101000a900460ff1681565b610673610854565b73ffffffffffffffffffffffffffffffffffffffff16610691610219565b73ffffffffffffffffffffffffffffffffffffffff16146106e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106de90610ed3565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008082905060005b85859050811015610845578585828181106107d4576107d3610ef3565b5b9050602002013582101561080c57610805828787848181106107f9576107f8610ef3565b5b9050602002013561085c565b9150610832565b61082f86868381811061082257610821610ef3565b5b905060200201358361085c565b91505b808061083d90610f51565b9150506107b6565b50858114915050949350505050565b600033905090565b600082600052816020526040600020905092915050565b6000819050919050565b61088681610873565b82525050565b60006020820190506108a1600083018461087d565b92915050565b600080fd5b600080fd5b6108ba81610873565b81146108c557600080fd5b50565b6000813590506108d7816108b1565b92915050565b6000602082840312156108f3576108f26108a7565b5b6000610901848285016108c8565b91505092915050565b60008115159050919050565b61091f8161090a565b82525050565b600060208201905061093a6000830184610916565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061098561098061097b84610940565b610960565b610940565b9050919050565b60006109978261096a565b9050919050565b60006109a98261098c565b9050919050565b6109b98161099e565b82525050565b60006020820190506109d460008301846109b0565b92915050565b60006109e582610940565b9050919050565b6109f5816109da565b82525050565b6000602082019050610a1060008301846109ec565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610a3b57610a3a610a16565b5b8235905067ffffffffffffffff811115610a5857610a57610a1b565b5b602083019150836020820283011115610a7457610a73610a20565b5b9250929050565b610a84816109da565b8114610a8f57600080fd5b50565b600081359050610aa181610a7b565b92915050565b6000819050919050565b610aba81610aa7565b8114610ac557600080fd5b50565b600081359050610ad781610ab1565b92915050565b60008060008060608587031215610af757610af66108a7565b5b600085013567ffffffffffffffff811115610b1557610b146108ac565b5b610b2187828801610a25565b94509450506020610b3487828801610a92565b9250506040610b4587828801610ac8565b91505092959194509250565b600060208284031215610b6757610b666108a7565b5b6000610b7584828501610a92565b91505092915050565b600081519050610b8d81610ab1565b92915050565b600060208284031215610ba957610ba86108a7565b5b6000610bb784828501610b7e565b91505092915050565b610bc981610aa7565b82525050565b6000604082019050610be460008301856109ec565b610bf16020830184610bc0565b9392505050565b610c018161090a565b8114610c0c57600080fd5b50565b600081519050610c1e81610bf8565b92915050565b600060208284031215610c3a57610c396108a7565b5b6000610c4884828501610c0f565b91505092915050565b600082825260208201905092915050565b7f6d65726b6c65436c61696d3a20557365722068617320616c726561647920636c60008201527f61696d656420774d696e696d6100000000000000000000000000000000000000602082015250565b6000610cbe602d83610c51565b9150610cc982610c62565b604082019050919050565b60006020820190508181036000830152610ced81610cb1565b9050919050565b60008160601b9050919050565b6000610d0c82610cf4565b9050919050565b6000610d1e82610d01565b9050919050565b610d36610d31826109da565b610d13565b82525050565b6000819050919050565b610d57610d5282610aa7565b610d3c565b82525050565b6000610d698285610d25565b601482019150610d798284610d46565b6020820191508190509392505050565b7f6d65726b6c65436c61696d3a20496e636f72726563742070726f6f6600000000600082015250565b6000610dbf601c83610c51565b9150610dca82610d89565b602082019050919050565b60006020820190508181036000830152610dee81610db2565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610e51602683610c51565b9150610e5c82610df5565b604082019050919050565b60006020820190508181036000830152610e8081610e44565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610ebd602083610c51565b9150610ec882610e87565b602082019050919050565b60006020820190508181036000830152610eec81610eb0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610f5c82610aa7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610f8e57610f8d610f22565b5b60018201905091905056fea2646970667358221220354f9ba8b2a2562163a4504a0a9470fcafd546faf9c38bd2f8eb07c21233ecfe64736f6c634300081100332d0ae2e6c90f874a62bdd98f3f2bdb68b41d7d3e6353e2bb9cb2688c532a443e000000000000000000000000669c01caf0edcad7c2b8dc771474ad937a7ca4af

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c80638da5cb5b116100665780638da5cb5b14610123578063a5438c5314610141578063bbfb1a0b1461014b578063f2fde38b14610167578063f54b893b146101835761009e565b80632eb4a7ab146100a35780634783f0ef146100c15780635c975abb146100dd578063715018a6146100fb578063828c931e14610105575b600080fd5b6100ab6101b3565b6040516100b8919061088c565b60405180910390f35b6100db60048036038101906100d691906108dd565b6101b9565b005b6100e56101cb565b6040516100f29190610925565b60405180910390f35b6101036101e1565b005b61010d6101f5565b60405161011a91906109bf565b60405180910390f35b61012b610219565b60405161013891906109fb565b60405180910390f35b610149610242565b005b61016560048036038101906101609190610add565b610384565b005b610181600480360381019061017c9190610b51565b6105c8565b005b61019d60048036038101906101989190610b51565b61064b565b6040516101aa9190610925565b60405180910390f35b60015481565b6101c161066b565b8060018190555050565b60008060149054906101000a900460ff16905090565b6101e961066b565b6101f360006106e9565b565b7f000000000000000000000000669c01caf0edcad7c2b8dc771474ad937a7ca4af81565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61024a61066b565b7f000000000000000000000000669c01caf0edcad7c2b8dc771474ad937a7ca4af73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb337f000000000000000000000000669c01caf0edcad7c2b8dc771474ad937a7ca4af73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016102e091906109fb565b602060405180830381865afa1580156102fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103219190610b93565b6040518363ffffffff1660e01b815260040161033e929190610bcf565b6020604051808303816000875af115801561035d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103819190610c24565b50565b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610411576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161040890610cd4565b60405180910390fd5b60008282604051602001610426929190610d5d565b604051602081830303815290604052805190602001209050600061044e6001548787856107ad565b905080610490576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161048790610dd5565b60405180910390fd5b6001600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055507f000000000000000000000000669c01caf0edcad7c2b8dc771474ad937a7ca4af73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b8152600401610543929190610bcf565b6020604051808303816000875af1158015610562573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105869190610c24565b507f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b936984846040516105b8929190610bcf565b60405180910390a1505050505050565b6105d061066b565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361063f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161063690610e67565b60405180910390fd5b610648816106e9565b50565b60026020528060005260406000206000915054906101000a900460ff1681565b610673610854565b73ffffffffffffffffffffffffffffffffffffffff16610691610219565b73ffffffffffffffffffffffffffffffffffffffff16146106e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106de90610ed3565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008082905060005b85859050811015610845578585828181106107d4576107d3610ef3565b5b9050602002013582101561080c57610805828787848181106107f9576107f8610ef3565b5b9050602002013561085c565b9150610832565b61082f86868381811061082257610821610ef3565b5b905060200201358361085c565b91505b808061083d90610f51565b9150506107b6565b50858114915050949350505050565b600033905090565b600082600052816020526040600020905092915050565b6000819050919050565b61088681610873565b82525050565b60006020820190506108a1600083018461087d565b92915050565b600080fd5b600080fd5b6108ba81610873565b81146108c557600080fd5b50565b6000813590506108d7816108b1565b92915050565b6000602082840312156108f3576108f26108a7565b5b6000610901848285016108c8565b91505092915050565b60008115159050919050565b61091f8161090a565b82525050565b600060208201905061093a6000830184610916565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061098561098061097b84610940565b610960565b610940565b9050919050565b60006109978261096a565b9050919050565b60006109a98261098c565b9050919050565b6109b98161099e565b82525050565b60006020820190506109d460008301846109b0565b92915050565b60006109e582610940565b9050919050565b6109f5816109da565b82525050565b6000602082019050610a1060008301846109ec565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610a3b57610a3a610a16565b5b8235905067ffffffffffffffff811115610a5857610a57610a1b565b5b602083019150836020820283011115610a7457610a73610a20565b5b9250929050565b610a84816109da565b8114610a8f57600080fd5b50565b600081359050610aa181610a7b565b92915050565b6000819050919050565b610aba81610aa7565b8114610ac557600080fd5b50565b600081359050610ad781610ab1565b92915050565b60008060008060608587031215610af757610af66108a7565b5b600085013567ffffffffffffffff811115610b1557610b146108ac565b5b610b2187828801610a25565b94509450506020610b3487828801610a92565b9250506040610b4587828801610ac8565b91505092959194509250565b600060208284031215610b6757610b666108a7565b5b6000610b7584828501610a92565b91505092915050565b600081519050610b8d81610ab1565b92915050565b600060208284031215610ba957610ba86108a7565b5b6000610bb784828501610b7e565b91505092915050565b610bc981610aa7565b82525050565b6000604082019050610be460008301856109ec565b610bf16020830184610bc0565b9392505050565b610c018161090a565b8114610c0c57600080fd5b50565b600081519050610c1e81610bf8565b92915050565b600060208284031215610c3a57610c396108a7565b5b6000610c4884828501610c0f565b91505092915050565b600082825260208201905092915050565b7f6d65726b6c65436c61696d3a20557365722068617320616c726561647920636c60008201527f61696d656420774d696e696d6100000000000000000000000000000000000000602082015250565b6000610cbe602d83610c51565b9150610cc982610c62565b604082019050919050565b60006020820190508181036000830152610ced81610cb1565b9050919050565b60008160601b9050919050565b6000610d0c82610cf4565b9050919050565b6000610d1e82610d01565b9050919050565b610d36610d31826109da565b610d13565b82525050565b6000819050919050565b610d57610d5282610aa7565b610d3c565b82525050565b6000610d698285610d25565b601482019150610d798284610d46565b6020820191508190509392505050565b7f6d65726b6c65436c61696d3a20496e636f72726563742070726f6f6600000000600082015250565b6000610dbf601c83610c51565b9150610dca82610d89565b602082019050919050565b60006020820190508181036000830152610dee81610db2565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000610e51602683610c51565b9150610e5c82610df5565b604082019050919050565b60006020820190508181036000830152610e8081610e44565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000610ebd602083610c51565b9150610ec882610e87565b602082019050919050565b60006020820190508181036000830152610eec81610eb0565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610f5c82610aa7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203610f8e57610f8d610f22565b5b60018201905091905056fea2646970667358221220354f9ba8b2a2562163a4504a0a9470fcafd546faf9c38bd2f8eb07c21233ecfe64736f6c63430008110033

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

2d0ae2e6c90f874a62bdd98f3f2bdb68b41d7d3e6353e2bb9cb2688c532a443e000000000000000000000000669c01caf0edcad7c2b8dc771474ad937a7ca4af

-----Decoded View---------------
Arg [0] : _root (bytes32): 0x2d0ae2e6c90f874a62bdd98f3f2bdb68b41d7d3e6353e2bb9cb2688c532a443e
Arg [1] : _wMinimaToken (address): 0x669c01CAF0eDcaD7c2b8Dc771474aD937A7CA4AF

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 2d0ae2e6c90f874a62bdd98f3f2bdb68b41d7d3e6353e2bb9cb2688c532a443e
Arg [1] : 000000000000000000000000669c01caf0edcad7c2b8dc771474ad937a7ca4af


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.