ETH Price: $3,243.43 (+2.16%)
Gas: 2 Gwei

Contract

0x3a42DDc676F6854730151750f3dBD0ebFE3c6CD3
 

Overview

ETH Balance

0.0001 ETH

Eth Value

$0.32 (@ $3,243.43/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Donate182049502023-09-24 10:05:59306 days ago1695549959IN
0x3a42DDc6...bFE3c6CD3
0.0001 ETH0.000177737.77726388
Donate Token181976242023-09-23 9:27:35307 days ago1695461255IN
0x3a42DDc6...bFE3c6CD3
0.01234 ETH0.00039297.87046359
Donate Token181694312023-09-19 10:41:59311 days ago1695120119IN
0x3a42DDc6...bFE3c6CD3
0.005 ETH0.000427928.60302249
Donate Token181038222023-09-10 5:14:47320 days ago1694322887IN
0x3a42DDc6...bFE3c6CD3
0.001 ETH0.000415549.52480221
Donate Token180837172023-09-07 9:40:35323 days ago1694079635IN
0x3a42DDc6...bFE3c6CD3
0.01 ETH0.0006732115.46920389
Donate Token180697932023-09-05 10:50:47325 days ago1693911047IN
0x3a42DDc6...bFE3c6CD3
0.001 ETH0.000490429.82876136
Donate Token179973542023-08-26 7:28:23335 days ago1693034903IN
0x3a42DDc6...bFE3c6CD3
0.01 ETH0.0005345812.25667101
Donate Token179775752023-08-23 13:01:59337 days ago1692795719IN
0x3a42DDc6...bFE3c6CD3
0.01 ETH0.0013313430
Donate Token178678112023-08-08 4:26:23353 days ago1691468783IN
0x3a42DDc6...bFE3c6CD3
0.001 ETH0.0008001818.43735586
Set Handle Fee178546332023-08-06 8:09:23355 days ago1691309363IN
0x3a42DDc6...bFE3c6CD3
0 ETH0.0003503113.59123949
0x60806040178546132023-08-06 8:05:23355 days ago1691309123IN
 Create: Donate3
0 ETH0.0250588413.11906455

Latest 8 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
181976242023-09-23 9:27:35307 days ago1695461255
0x3a42DDc6...bFE3c6CD3
0.01234 ETH
181694312023-09-19 10:41:59311 days ago1695120119
0x3a42DDc6...bFE3c6CD3
0.005 ETH
181038222023-09-10 5:14:47320 days ago1694322887
0x3a42DDc6...bFE3c6CD3
0.001 ETH
180837172023-09-07 9:40:35323 days ago1694079635
0x3a42DDc6...bFE3c6CD3
0.01 ETH
180697932023-09-05 10:50:47325 days ago1693911047
0x3a42DDc6...bFE3c6CD3
0.001 ETH
179973542023-08-26 7:28:23335 days ago1693034903
0x3a42DDc6...bFE3c6CD3
0.01 ETH
179775752023-08-23 13:01:59337 days ago1692795719
0x3a42DDc6...bFE3c6CD3
0.01 ETH
178678112023-08-08 4:26:23353 days ago1691468783
0x3a42DDc6...bFE3c6CD3
0.001 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Donate3

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 11 : Donate3.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@uniswap/lib/contracts/libraries/TransferHelper.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./IDonate3.sol";


contract Donate3 is Ownable, IDonate3, ReentrancyGuard {
    using ECDSA for bytes32;
    using SafeMath for uint256;

    string public tokenSymbol;

    uint32 handlingFee = 5;

    bytes32 private freeMerkleRoot;

    event HandleFeeChanged(address from, uint32 feeBefore, uint32 feeAfter);
    event FreeMerkleRootChanged(
        address from,
        bytes32 freeMerkleRootBefore,
        bytes32 freeMerkleRootAfter
    );
    event donateRecord(
        address from,
        address to,
        bytes32 symbol,
        uint256 amount,
        bytes msg
    );
    event withDraw(string symbol, address from, address to, uint256 amount);

    error CallFailed();

    modifier projectOwnerOrowner(address pOwner) {
        require(msg.sender == pOwner || msg.sender == owner(),
            "caller not contract owner or project owner!");
        _;
    }

    constructor(string memory _tokenSymbol) {
        tokenSymbol = _tokenSymbol;
    }

    receive() external payable {
        //        assert(msg.sender == WETH); // only accept ETH via fallback from the WETH contract
    }

    fallback() external payable {
        //        emit fallbackCalled(msg.sender, msg.value, msg.data);
    }

    function setHandleFee(uint32 _fee) external onlyOwner {
        require(_fee <= 200, "Fee out of range.");
        require(_fee != handlingFee, "Fee is equal.");

        emit HandleFeeChanged(_msgSender(), handlingFee, _fee);

        handlingFee = _fee;
    }

    function setFreeMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        emit FreeMerkleRootChanged(_msgSender(), freeMerkleRoot, _merkleRoot);

        freeMerkleRoot = _merkleRoot;
    }

    function _verifyFreeAllowList(
        address pOwner,
        bytes32[] calldata _merkleProof
    ) internal view returns (bool) {
        require(pOwner != address(0), "Owner is the zero address.");

        bytes32 leaf = keccak256(abi.encodePacked(pOwner));
        return MerkleProof.verify(_merkleProof, freeMerkleRoot, leaf);
    }

    function donateToken(
        uint256 amountIn,
        address to,
        bytes calldata message,
        bytes32[] calldata _merkleProof
    ) external payable nonReentrant {
        address from = _msgSender();
        require(from != to, "The donor address is equal to receive");

        require(amountIn > 0, "Invalid input amount.");

        require(msg.value == amountIn,"msg value error.");
        
       // Project memory p = _findProject(to, pid);
        require(address(to) != address(0), "The project is not exist");

       // require(p.status == ProjectStatus.resume, "The project is deleted");

        uint32 fee = _merkleProof.length > 0 &&
            _verifyFreeAllowList(from, _merkleProof)
            ? 0
            : handlingFee;

        uint256 amountOut = amountIn.mul(uint256(1000).sub(fee)).div(1000);
        require(amountOut <= amountIn, "Invalid output amount");

        // transfer
        (bool success, ) = to.call{value: amountOut}("");
        if (!success) {
            revert CallFailed();
        }

        // refund dust eth, if any
        if (msg.value > amountIn) {
            TransferHelper.safeTransferETH(from, msg.value - amountIn);
        }

        _record(from, to, tokenSymbol, amountOut, message);
    }

    function donateERC20(
        address _token,
        string calldata _tokenSymbol,
        uint256 _amountInDesired,
        address _to,
        bytes calldata _message,
        bytes32[] calldata _merkleProof
    ) external nonReentrant {
        address from = _msgSender();
        string calldata symbol = _tokenSymbol;
        bytes calldata message = _message;
        address token = _token;
        bytes32[] calldata merkleProof = _merkleProof;
        uint256 amountInDesired = _amountInDesired;

        address to = _to;
        require(from != to, "The donor address is equal to receive");

        uint256 amountOut = _transferToken(
            token,
            from,
            amountInDesired,
            to,
            merkleProof
        );

        // record
        _record(from, to, symbol, amountOut, message);
    }

    function _transferToken(
        address token,
        address from,
        uint256 amountInDesired,
        address rAddress,
        bytes32[] calldata merkleProof
    ) internal returns (uint256 amountOut) {
        uint256 balanceBefore = IERC20(token).balanceOf(address(this));

        // transfer to contract
        TransferHelper.safeTransferFrom(
            token,
            from,
            address(this),
            amountInDesired
        );

        uint256 balanceAfter = IERC20(token).balanceOf(address(this));
        uint256 amountIn = balanceAfter - balanceBefore;
        amountOut = _getAmount(from, amountIn, merkleProof);
        require(amountOut <= amountIn, "Invalid output amount");

        // transfer to user
        TransferHelper.safeApprove(token, rAddress, amountOut);
        TransferHelper.safeTransfer(token, rAddress, amountOut);
    }

    function _getAmount(
        address from,
        uint256 amountIn,
        bytes32[] calldata _merkleProof
    ) internal view returns (uint256) {
        uint32 fee = _merkleProof.length > 0 &&
            _verifyFreeAllowList(from, _merkleProof)
            ? 0
            : handlingFee;
        uint256 amountOut = amountIn.mul(uint256(1000).sub(fee)).div(1000);
        return amountOut;
    }

    function _record(
        address from,
        address to,
        string memory symbol,
        uint256 amountOut,
        bytes calldata message
    ) internal {
        bytes32 symbolBytes = stringToBytes32(symbol);
        emit donateRecord(from, to, symbolBytes, amountOut, message);
    }

    function stringToBytes32(string memory source)
        private
        pure
        returns (bytes32 result)
    {
        assembly {
            result := mload(add(source, 32))
        }
    }

    function withDrawToken(address to, uint256 amount) external onlyOwner {
        require(to != address(0), "ZERO_ADDRESS");
        require(amount > 0 && amount <= to.balance, "Invalid input amount.");

        // transfer
        (bool success, ) = to.call{value: amount}("");
        if (!success) {
            revert CallFailed();
        }
        emit withDraw(tokenSymbol, _msgSender(), to, amount);
    }

    function withDrawERC20List(
        address[] calldata tokens,
        string[] calldata symbols,
        address to,
        uint256[] calldata amounts
    ) external onlyOwner {
        require(to != address(0), "ZERO_ADDRESS");
        require(
            tokens.length == symbols.length && symbols.length == amounts.length,
            "Invalid input length"
        );

        for (uint256 i = 0; i < tokens.length; i++) {
            address token = tokens[i];
            string memory symbol = symbols[i];
            uint256 amount = amounts[i];

            uint256 balance = IERC20(token).balanceOf(address(this));
            require(amount > 0 && amount <= balance, "Invalid input amount.");

            // transfer to user
            TransferHelper.safeApprove(token, to, amount);
            TransferHelper.safeTransfer(token, to, amount);

            emit withDraw(symbol, _msgSender(), to, amount);
        }
    }

    function withDrawERC20(
        address token,
        string calldata symbol,
        address to,
        uint256 amount
    ) external onlyOwner {
        require(to != address(0), "ZERO_ADDRESS");

        uint256 balance = IERC20(token).balanceOf(address(this));
        require(amount > 0 && amount <= balance, "Invalid input amount.");

        // transfer to user
        TransferHelper.safeApprove(token, to, amount);
        TransferHelper.safeTransfer(token, to, amount);

        emit withDraw(symbol, _msgSender(), to, amount);
    }
}

File 2 of 11 : IDonate3.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

interface IDonate3 {

    function donateToken(
        uint256 amountIn,
        address to,
        bytes calldata message,
        bytes32[] calldata _merkleProof
    ) external payable;

    function donateERC20(
        address _token,
        string calldata _tokenSymbol,
        uint256 _amountInDesired,
        address _to,
        bytes calldata _message,
        bytes32[] calldata _merkleProof
    ) external;

    function withDrawToken(address to, uint256 amount) external;

    function withDrawERC20(
        address token,
        string calldata symbol,
        address to,
        uint256 amount
    ) external;

    function withDrawERC20List(
        address[] calldata tokens,
        string[] calldata symbols,
        address to,
        uint256[] calldata amounts
    ) external;
}

File 3 of 11 : 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 4 of 11 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 11 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (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
    }

    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");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' 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 (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // 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 6 of 11 : TransferHelper.sol
// SPDX-License-Identifier: GPL-3.0-or-later

pragma solidity >=0.6.0;

// helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false
library TransferHelper {
    function safeApprove(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('approve(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeApprove: approve failed'
        );
    }

    function safeTransfer(
        address token,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transfer(address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::safeTransfer: transfer failed'
        );
    }

    function safeTransferFrom(
        address token,
        address from,
        address to,
        uint256 value
    ) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(
            success && (data.length == 0 || abi.decode(data, (bool))),
            'TransferHelper::transferFrom: transferFrom failed'
        );
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'TransferHelper::safeTransferETH: ETH transfer failed');
    }
}

File 7 of 11 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 8 of 11 : 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 9 of 11 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 10 of 11 : 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 11 of 11 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_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) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_tokenSymbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CallFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"bytes32","name":"freeMerkleRootBefore","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"freeMerkleRootAfter","type":"bytes32"}],"name":"FreeMerkleRootChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint32","name":"feeBefore","type":"uint32"},{"indexed":false,"internalType":"uint32","name":"feeAfter","type":"uint32"}],"name":"HandleFeeChanged","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":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"bytes32","name":"symbol","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"msg","type":"bytes"}],"name":"donateRecord","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"symbol","type":"string"},{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withDraw","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"uint256","name":"_amountInDesired","type":"uint256"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"bytes","name":"_message","type":"bytes"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"donateERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"message","type":"bytes"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"donateToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setFreeMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_fee","type":"uint32"}],"name":"setHandleFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenSymbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withDrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"string[]","name":"symbols","type":"string[]"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"withDrawERC20List","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withDrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526003805463ffffffff191660051790553480156200002157600080fd5b50604051620022d8380380620022d88339810160408190526200004491620000cf565b6200004f3362000069565b60018055600262000061828262000233565b5050620002ff565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b634e487b7160e01b600052604160045260246000fd5b60006020808385031215620000e357600080fd5b82516001600160401b0380821115620000fb57600080fd5b818501915085601f8301126200011057600080fd5b815181811115620001255762000125620000b9565b604051601f8201601f19908116603f01168101908382118183101715620001505762000150620000b9565b8160405282815288868487010111156200016957600080fd5b600093505b828410156200018d57848401860151818501870152928501926200016e565b600086848301015280965050505050505092915050565b600181811c90821680620001b957607f821691505b602082108103620001da57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200022e57600081815260208120601f850160051c81016020861015620002095750805b601f850160051c820191505b818110156200022a5782815560010162000215565b5050505b505050565b81516001600160401b038111156200024f576200024f620000b9565b6200026781620002608454620001a4565b84620001e0565b602080601f8311600181146200029f5760008415620002865750858301515b600019600386901b1c1916600185901b1785556200022a565b600085815260208120601f198616915b82811015620002d057888601518255948401946001909101908401620002af565b5085821015620002ef5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611fc9806200030f6000396000f3fe6080604052600436106100b45760003560e01c80637b61c3201161006e578063a650274b1161004b578063a650274b146101c5578063b99c914d146101d8578063f2fde38b146101f857005b80637b61c3201461015257806385bc70711461017d5780638da5cb5b1461019d57005b8063649d70381161009c578063649d7038146100fd57806367308f3d1461011d578063715018a61461013d57005b80631bfe31f3146100bd578063638df30b146100dd57005b366100bb57005b005b3480156100c957600080fd5b506100bb6100d8366004611865565b610218565b3480156100e957600080fd5b506100bb6100f8366004611892565b61033c565b34801561010957600080fd5b506100bb610118366004611955565b61038c565b34801561012957600080fd5b506100bb610138366004611a1f565b6104c5565b34801561014957600080fd5b506100bb610755565b34801561015e57600080fd5b50610167610769565b6040516101749190611b1d565b60405180910390f35b34801561018957600080fd5b506100bb610198366004611b30565b6107f7565b3480156101a957600080fd5b506000546040516001600160a01b039091168152602001610174565b6100bb6101d3366004611b5a565b610959565b3480156101e457600080fd5b506100bb6101f3366004611be4565b610ce6565b34801561020457600080fd5b506100bb610213366004611c51565b610e51565b610220610ee1565b60c88163ffffffff16111561027c5760405162461bcd60e51b815260206004820152601160248201527f466565206f7574206f662072616e67652e00000000000000000000000000000060448201526064015b60405180910390fd5b60035463ffffffff908116908216036102d75760405162461bcd60e51b815260206004820152600d60248201527f46656520697320657175616c2e000000000000000000000000000000000000006044820152606401610273565b6003546040805133815263ffffffff928316602082015291831682820152517f8d8f0fddf46edeff07028e92197ddc36b1c9e9e32e19a54a8e45a1eff8b4221a9181900360600190a16003805463ffffffff191663ffffffff92909216919091179055565b610344610ee1565b600454604080513381526020810192909252818101839052517f6361bef1fd02b39d8e76c4f5424fb8bb915bdeb59cd5f7cdf7b8396acffcaefc9181900360600190a1600455565b6002600154036103de5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610273565b600260015533888886868d87878d8d6001600160a01b0381168a036104535760405162461bcd60e51b815260206004820152602560248201527f54686520646f6e6f72206164647265737320697320657175616c20746f207265604482015264636569766560d81b6064820152608401610273565b6000610463868c85858989610f3b565b90506104ab8b838c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508792508e91508d90506110b2565b505060018055505050505050505050505050505050505050565b6104cd610ee1565b6001600160a01b0383166105125760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610273565b858414801561052057508381145b61056c5760405162461bcd60e51b815260206004820152601460248201527f496e76616c696420696e707574206c656e6774680000000000000000000000006044820152606401610273565b60005b8681101561074b57600088888381811061058b5761058b611c6c565b90506020020160208101906105a09190611c51565b905060008787848181106105b6576105b6611c6c565b90506020028101906105c89190611c82565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093945088925087915086905081811061061357610613611c6c565b6040516370a0823160e01b81523060048201526020909102929092013592506000916001600160a01b03861691506370a0823190602401602060405180830381865afa158015610667573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068b9190611cc9565b905060008211801561069d5750808211155b6106e15760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21034b7383aba1030b6b7bab73a1760591b6044820152606401610273565b6106ec84898461110b565b6106f7848984611265565b7f9da8a3f5ab99c1eab30d699761e881da24188b1425b3fc16d3f42dcd8e31fc5d83338a8560405161072c9493929190611ce2565b60405180910390a150505050808061074390611d2e565b91505061056f565b5050505050505050565b61075d610ee1565b61076760006113b8565b565b6002805461077690611d47565b80601f01602080910402602001604051908101604052809291908181526020018280546107a290611d47565b80156107ef5780601f106107c4576101008083540402835291602001916107ef565b820191906000526020600020905b8154815290600101906020018083116107d257829003601f168201915b505050505081565b6107ff610ee1565b6001600160a01b0382166108445760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610273565b60008111801561085e5750816001600160a01b0316318111155b6108a25760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21034b7383aba1030b6b7bab73a1760591b6044820152606401610273565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146108ef576040519150601f19603f3d011682016040523d82523d6000602084013e6108f4565b606091505b505090508061091657604051633204506f60e01b815260040160405180910390fd5b7f9da8a3f5ab99c1eab30d699761e881da24188b1425b3fc16d3f42dcd8e31fc5d600233858560405161094c9493929190611d81565b60405180910390a1505050565b6002600154036109ab5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610273565b6002600155336001600160a01b0386168103610a175760405162461bcd60e51b815260206004820152602560248201527f54686520646f6e6f72206164647265737320697320657175616c20746f207265604482015264636569766560d81b6064820152608401610273565b60008711610a5f5760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21034b7383aba1030b6b7bab73a1760591b6044820152606401610273565b863414610aae5760405162461bcd60e51b815260206004820152601060248201527f6d73672076616c7565206572726f722e000000000000000000000000000000006044820152606401610273565b6001600160a01b038616610b045760405162461bcd60e51b815260206004820152601860248201527f5468652070726f6a656374206973206e6f7420657869737400000000000000006044820152606401610273565b60008215801590610b1b5750610b1b828585611420565b610b2d5760035463ffffffff16610b30565b60005b90506000610b5d6103e8610b57610b508263ffffffff808816906114fc16565b8c90611511565b9061151d565b905088811115610baf5760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964206f757470757420616d6f756e7400000000000000000000006044820152606401610273565b6000886001600160a01b03168260405160006040518083038185875af1925050503d8060008114610bfc576040519150601f19603f3d011682016040523d82523d6000602084013e610c01565b606091505b5050905080610c2357604051633204506f60e01b815260040160405180910390fd5b89341115610c3e57610c3e84610c398c34611e63565b611529565b610cd6848a60028054610c5090611d47565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7c90611d47565b8015610cc95780601f10610c9e57610100808354040283529160200191610cc9565b820191906000526020600020905b815481529060010190602001808311610cac57829003601f168201915b5050505050858c8c6110b2565b5050600180555050505050505050565b610cee610ee1565b6001600160a01b038216610d335760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610273565b6040516370a0823160e01b81523060048201526000906001600160a01b038716906370a0823190602401602060405180830381865afa158015610d7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9e9190611cc9565b9050600082118015610db05750808211155b610df45760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21034b7383aba1030b6b7bab73a1760591b6044820152606401610273565b610dff86848461110b565b610e0a868484611265565b7f9da8a3f5ab99c1eab30d699761e881da24188b1425b3fc16d3f42dcd8e31fc5d8585338686604051610e41959493929190611e9f565b60405180910390a1505050505050565b610e59610ee1565b6001600160a01b038116610ed55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610273565b610ede816113b8565b50565b6000546001600160a01b031633146107675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610273565b6040516370a0823160e01b815230600482015260009081906001600160a01b038916906370a0823190602401602060405180830381865afa158015610f84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa89190611cc9565b9050610fb688883089611611565b6040516370a0823160e01b81523060048201526000906001600160a01b038a16906370a0823190602401602060405180830381865afa158015610ffd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110219190611cc9565b9050600061102f8383611e63565b905061103d89828888611774565b93508084111561108f5760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964206f757470757420616d6f756e7400000000000000000000006044820152606401610273565b61109a8a888661110b565b6110a58a8886611265565b5050509695505050505050565b60006110bf856020015190565b90507facbdf459e289929421a5a3d3c4253ee242a3ffae1cd75f2b79fe4dacd8582ce98787838787876040516110fa96959493929190611ed7565b60405180910390a150505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b03167f095ea7b30000000000000000000000000000000000000000000000000000000017905291516000928392908716916111809190611f1c565b6000604051808303816000865af19150503d80600081146111bd576040519150601f19603f3d011682016040523d82523d6000602084013e6111c2565b606091505b50915091508180156111ec5750805115806111ec5750808060200190518101906111ec9190611f38565b61125e5760405162461bcd60e51b815260206004820152602b60248201527f5472616e7366657248656c7065723a3a73616665417070726f76653a2061707060448201527f726f7665206661696c65640000000000000000000000000000000000000000006064820152608401610273565b5050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b03167fa9059cbb0000000000000000000000000000000000000000000000000000000017905291516000928392908716916112da9190611f1c565b6000604051808303816000865af19150503d8060008114611317576040519150601f19603f3d011682016040523d82523d6000602084013e61131c565b606091505b50915091508180156113465750805115806113465750808060200190518101906113469190611f38565b61125e5760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c6564000000000000000000000000000000000000006064820152608401610273565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384166114785760405162461bcd60e51b815260206004820152601a60248201527f4f776e657220697320746865207a65726f20616464726573732e0000000000006044820152606401610273565b6040516bffffffffffffffffffffffff19606086901b1660208201526000906034016040516020818303038152906040528051906020012090506114f38484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060045491508490506117d3565b95945050505050565b60006115088284611e63565b90505b92915050565b60006115088284611f5a565b60006115088284611f71565b604080516000808252602082019092526001600160a01b0384169083906040516115539190611f1c565b60006040518083038185875af1925050503d8060008114611590576040519150601f19603f3d011682016040523d82523d6000602084013e611595565b606091505b505090508061160c5760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c65640000000000000000000000006064820152608401610273565b505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03167f23b872dd00000000000000000000000000000000000000000000000000000000179052915160009283929088169161168e9190611f1c565b6000604051808303816000865af19150503d80600081146116cb576040519150601f19603f3d011682016040523d82523d6000602084013e6116d0565b606091505b50915091508180156116fa5750805115806116fa5750808060200190518101906116fa9190611f38565b61176c5760405162461bcd60e51b815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a20747260448201527f616e7366657246726f6d206661696c65640000000000000000000000000000006064820152608401610273565b505050505050565b600080821580159061178c575061178c868585611420565b61179e5760035463ffffffff166117a1565b60005b905060006117c86103e8610b576117c18263ffffffff808816906114fc16565b8990611511565b979650505050505050565b6000826117e085846117e9565b14949350505050565b600081815b845181101561182e5761181a8286838151811061180d5761180d611c6c565b6020026020010151611836565b91508061182681611d2e565b9150506117ee565b509392505050565b6000818310611852576000828152602084905260409020611508565b6000838152602083905260409020611508565b60006020828403121561187757600080fd5b813563ffffffff8116811461188b57600080fd5b9392505050565b6000602082840312156118a457600080fd5b5035919050565b80356001600160a01b03811681146118c257600080fd5b919050565b60008083601f8401126118d957600080fd5b50813567ffffffffffffffff8111156118f157600080fd5b60208301915083602082850101111561190957600080fd5b9250929050565b60008083601f84011261192257600080fd5b50813567ffffffffffffffff81111561193a57600080fd5b6020830191508360208260051b850101111561190957600080fd5b600080600080600080600080600060c08a8c03121561197357600080fd5b61197c8a6118ab565b985060208a013567ffffffffffffffff8082111561199957600080fd5b6119a58d838e016118c7565b909a50985060408c013597508891506119c060608d016118ab565b965060808c01359150808211156119d657600080fd5b6119e28d838e016118c7565b909650945060a08c01359150808211156119fb57600080fd5b50611a088c828d01611910565b915080935050809150509295985092959850929598565b60008060008060008060006080888a031215611a3a57600080fd5b873567ffffffffffffffff80821115611a5257600080fd5b611a5e8b838c01611910565b909950975060208a0135915080821115611a7757600080fd5b611a838b838c01611910565b9097509550859150611a9760408b016118ab565b945060608a0135915080821115611aad57600080fd5b50611aba8a828b01611910565b989b979a50959850939692959293505050565b60005b83811015611ae8578181015183820152602001611ad0565b50506000910152565b60008151808452611b09816020860160208601611acd565b601f01601f19169290920160200192915050565b6020815260006115086020830184611af1565b60008060408385031215611b4357600080fd5b611b4c836118ab565b946020939093013593505050565b60008060008060008060808789031215611b7357600080fd5b86359550611b83602088016118ab565b9450604087013567ffffffffffffffff80821115611ba057600080fd5b611bac8a838b016118c7565b90965094506060890135915080821115611bc557600080fd5b50611bd289828a01611910565b979a9699509497509295939492505050565b600080600080600060808688031215611bfc57600080fd5b611c05866118ab565b9450602086013567ffffffffffffffff811115611c2157600080fd5b611c2d888289016118c7565b9095509350611c409050604087016118ab565b949793965091946060013592915050565b600060208284031215611c6357600080fd5b611508826118ab565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112611c9957600080fd5b83018035915067ffffffffffffffff821115611cb457600080fd5b60200191503681900382131561190957600080fd5b600060208284031215611cdb57600080fd5b5051919050565b608081526000611cf56080830187611af1565b6001600160a01b0395861660208401529390941660408201526060015292915050565b634e487b7160e01b600052601160045260246000fd5b600060018201611d4057611d40611d18565b5060010190565b600181811c90821680611d5b57607f821691505b602082108103611d7b57634e487b7160e01b600052602260045260246000fd5b50919050565b60808152600080865481600182811c915080831680611da157607f831692505b60208084108203611dc057634e487b7160e01b86526022600452602486fd5b6080880184905260a08801828015611ddf5760018114611df557611e20565b60ff198716825285151560051b82019750611e20565b60008e81526020902060005b87811015611e1a57815484820152908601908401611e01565b83019850505b5050859650611e398189018c6001600160a01b03169052565b505050505050611e5460408301856001600160a01b03169052565b82606083015295945050505050565b8181038181111561150b5761150b611d18565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b608081526000611eb3608083018789611e76565b6001600160a01b039586166020840152939094166040820152606001529392505050565b60006001600160a01b03808916835280881660208401525085604083015284606083015260a06080830152611f1060a083018486611e76565b98975050505050505050565b60008251611f2e818460208701611acd565b9190910192915050565b600060208284031215611f4a57600080fd5b8151801515811461188b57600080fd5b808202811582820484141761150b5761150b611d18565b600082611f8e57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220c57bb07242a51bd2fd820814e0c7d41c0505013cb4e8bcb0624899f6526db22764736f6c63430008110033000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000054c494e4541000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106100b45760003560e01c80637b61c3201161006e578063a650274b1161004b578063a650274b146101c5578063b99c914d146101d8578063f2fde38b146101f857005b80637b61c3201461015257806385bc70711461017d5780638da5cb5b1461019d57005b8063649d70381161009c578063649d7038146100fd57806367308f3d1461011d578063715018a61461013d57005b80631bfe31f3146100bd578063638df30b146100dd57005b366100bb57005b005b3480156100c957600080fd5b506100bb6100d8366004611865565b610218565b3480156100e957600080fd5b506100bb6100f8366004611892565b61033c565b34801561010957600080fd5b506100bb610118366004611955565b61038c565b34801561012957600080fd5b506100bb610138366004611a1f565b6104c5565b34801561014957600080fd5b506100bb610755565b34801561015e57600080fd5b50610167610769565b6040516101749190611b1d565b60405180910390f35b34801561018957600080fd5b506100bb610198366004611b30565b6107f7565b3480156101a957600080fd5b506000546040516001600160a01b039091168152602001610174565b6100bb6101d3366004611b5a565b610959565b3480156101e457600080fd5b506100bb6101f3366004611be4565b610ce6565b34801561020457600080fd5b506100bb610213366004611c51565b610e51565b610220610ee1565b60c88163ffffffff16111561027c5760405162461bcd60e51b815260206004820152601160248201527f466565206f7574206f662072616e67652e00000000000000000000000000000060448201526064015b60405180910390fd5b60035463ffffffff908116908216036102d75760405162461bcd60e51b815260206004820152600d60248201527f46656520697320657175616c2e000000000000000000000000000000000000006044820152606401610273565b6003546040805133815263ffffffff928316602082015291831682820152517f8d8f0fddf46edeff07028e92197ddc36b1c9e9e32e19a54a8e45a1eff8b4221a9181900360600190a16003805463ffffffff191663ffffffff92909216919091179055565b610344610ee1565b600454604080513381526020810192909252818101839052517f6361bef1fd02b39d8e76c4f5424fb8bb915bdeb59cd5f7cdf7b8396acffcaefc9181900360600190a1600455565b6002600154036103de5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610273565b600260015533888886868d87878d8d6001600160a01b0381168a036104535760405162461bcd60e51b815260206004820152602560248201527f54686520646f6e6f72206164647265737320697320657175616c20746f207265604482015264636569766560d81b6064820152608401610273565b6000610463868c85858989610f3b565b90506104ab8b838c8c8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152508792508e91508d90506110b2565b505060018055505050505050505050505050505050505050565b6104cd610ee1565b6001600160a01b0383166105125760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610273565b858414801561052057508381145b61056c5760405162461bcd60e51b815260206004820152601460248201527f496e76616c696420696e707574206c656e6774680000000000000000000000006044820152606401610273565b60005b8681101561074b57600088888381811061058b5761058b611c6c565b90506020020160208101906105a09190611c51565b905060008787848181106105b6576105b6611c6c565b90506020028101906105c89190611c82565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525093945088925087915086905081811061061357610613611c6c565b6040516370a0823160e01b81523060048201526020909102929092013592506000916001600160a01b03861691506370a0823190602401602060405180830381865afa158015610667573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068b9190611cc9565b905060008211801561069d5750808211155b6106e15760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21034b7383aba1030b6b7bab73a1760591b6044820152606401610273565b6106ec84898461110b565b6106f7848984611265565b7f9da8a3f5ab99c1eab30d699761e881da24188b1425b3fc16d3f42dcd8e31fc5d83338a8560405161072c9493929190611ce2565b60405180910390a150505050808061074390611d2e565b91505061056f565b5050505050505050565b61075d610ee1565b61076760006113b8565b565b6002805461077690611d47565b80601f01602080910402602001604051908101604052809291908181526020018280546107a290611d47565b80156107ef5780601f106107c4576101008083540402835291602001916107ef565b820191906000526020600020905b8154815290600101906020018083116107d257829003601f168201915b505050505081565b6107ff610ee1565b6001600160a01b0382166108445760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610273565b60008111801561085e5750816001600160a01b0316318111155b6108a25760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21034b7383aba1030b6b7bab73a1760591b6044820152606401610273565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146108ef576040519150601f19603f3d011682016040523d82523d6000602084013e6108f4565b606091505b505090508061091657604051633204506f60e01b815260040160405180910390fd5b7f9da8a3f5ab99c1eab30d699761e881da24188b1425b3fc16d3f42dcd8e31fc5d600233858560405161094c9493929190611d81565b60405180910390a1505050565b6002600154036109ab5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610273565b6002600155336001600160a01b0386168103610a175760405162461bcd60e51b815260206004820152602560248201527f54686520646f6e6f72206164647265737320697320657175616c20746f207265604482015264636569766560d81b6064820152608401610273565b60008711610a5f5760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21034b7383aba1030b6b7bab73a1760591b6044820152606401610273565b863414610aae5760405162461bcd60e51b815260206004820152601060248201527f6d73672076616c7565206572726f722e000000000000000000000000000000006044820152606401610273565b6001600160a01b038616610b045760405162461bcd60e51b815260206004820152601860248201527f5468652070726f6a656374206973206e6f7420657869737400000000000000006044820152606401610273565b60008215801590610b1b5750610b1b828585611420565b610b2d5760035463ffffffff16610b30565b60005b90506000610b5d6103e8610b57610b508263ffffffff808816906114fc16565b8c90611511565b9061151d565b905088811115610baf5760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964206f757470757420616d6f756e7400000000000000000000006044820152606401610273565b6000886001600160a01b03168260405160006040518083038185875af1925050503d8060008114610bfc576040519150601f19603f3d011682016040523d82523d6000602084013e610c01565b606091505b5050905080610c2357604051633204506f60e01b815260040160405180910390fd5b89341115610c3e57610c3e84610c398c34611e63565b611529565b610cd6848a60028054610c5090611d47565b80601f0160208091040260200160405190810160405280929190818152602001828054610c7c90611d47565b8015610cc95780601f10610c9e57610100808354040283529160200191610cc9565b820191906000526020600020905b815481529060010190602001808311610cac57829003601f168201915b5050505050858c8c6110b2565b5050600180555050505050505050565b610cee610ee1565b6001600160a01b038216610d335760405162461bcd60e51b815260206004820152600c60248201526b5a45524f5f4144445245535360a01b6044820152606401610273565b6040516370a0823160e01b81523060048201526000906001600160a01b038716906370a0823190602401602060405180830381865afa158015610d7a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d9e9190611cc9565b9050600082118015610db05750808211155b610df45760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21034b7383aba1030b6b7bab73a1760591b6044820152606401610273565b610dff86848461110b565b610e0a868484611265565b7f9da8a3f5ab99c1eab30d699761e881da24188b1425b3fc16d3f42dcd8e31fc5d8585338686604051610e41959493929190611e9f565b60405180910390a1505050505050565b610e59610ee1565b6001600160a01b038116610ed55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610273565b610ede816113b8565b50565b6000546001600160a01b031633146107675760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610273565b6040516370a0823160e01b815230600482015260009081906001600160a01b038916906370a0823190602401602060405180830381865afa158015610f84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa89190611cc9565b9050610fb688883089611611565b6040516370a0823160e01b81523060048201526000906001600160a01b038a16906370a0823190602401602060405180830381865afa158015610ffd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110219190611cc9565b9050600061102f8383611e63565b905061103d89828888611774565b93508084111561108f5760405162461bcd60e51b815260206004820152601560248201527f496e76616c6964206f757470757420616d6f756e7400000000000000000000006044820152606401610273565b61109a8a888661110b565b6110a58a8886611265565b5050509695505050505050565b60006110bf856020015190565b90507facbdf459e289929421a5a3d3c4253ee242a3ffae1cd75f2b79fe4dacd8582ce98787838787876040516110fa96959493929190611ed7565b60405180910390a150505050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b03167f095ea7b30000000000000000000000000000000000000000000000000000000017905291516000928392908716916111809190611f1c565b6000604051808303816000865af19150503d80600081146111bd576040519150601f19603f3d011682016040523d82523d6000602084013e6111c2565b606091505b50915091508180156111ec5750805115806111ec5750808060200190518101906111ec9190611f38565b61125e5760405162461bcd60e51b815260206004820152602b60248201527f5472616e7366657248656c7065723a3a73616665417070726f76653a2061707060448201527f726f7665206661696c65640000000000000000000000000000000000000000006064820152608401610273565b5050505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b03167fa9059cbb0000000000000000000000000000000000000000000000000000000017905291516000928392908716916112da9190611f1c565b6000604051808303816000865af19150503d8060008114611317576040519150601f19603f3d011682016040523d82523d6000602084013e61131c565b606091505b50915091508180156113465750805115806113465750808060200190518101906113469190611f38565b61125e5760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201527f616e73666572206661696c6564000000000000000000000000000000000000006064820152608401610273565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384166114785760405162461bcd60e51b815260206004820152601a60248201527f4f776e657220697320746865207a65726f20616464726573732e0000000000006044820152606401610273565b6040516bffffffffffffffffffffffff19606086901b1660208201526000906034016040516020818303038152906040528051906020012090506114f38484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060045491508490506117d3565b95945050505050565b60006115088284611e63565b90505b92915050565b60006115088284611f5a565b60006115088284611f71565b604080516000808252602082019092526001600160a01b0384169083906040516115539190611f1c565b60006040518083038185875af1925050503d8060008114611590576040519150601f19603f3d011682016040523d82523d6000602084013e611595565b606091505b505090508061160c5760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527f20455448207472616e73666572206661696c65640000000000000000000000006064820152608401610273565b505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03167f23b872dd00000000000000000000000000000000000000000000000000000000179052915160009283929088169161168e9190611f1c565b6000604051808303816000865af19150503d80600081146116cb576040519150601f19603f3d011682016040523d82523d6000602084013e6116d0565b606091505b50915091508180156116fa5750805115806116fa5750808060200190518101906116fa9190611f38565b61176c5760405162461bcd60e51b815260206004820152603160248201527f5472616e7366657248656c7065723a3a7472616e7366657246726f6d3a20747260448201527f616e7366657246726f6d206661696c65640000000000000000000000000000006064820152608401610273565b505050505050565b600080821580159061178c575061178c868585611420565b61179e5760035463ffffffff166117a1565b60005b905060006117c86103e8610b576117c18263ffffffff808816906114fc16565b8990611511565b979650505050505050565b6000826117e085846117e9565b14949350505050565b600081815b845181101561182e5761181a8286838151811061180d5761180d611c6c565b6020026020010151611836565b91508061182681611d2e565b9150506117ee565b509392505050565b6000818310611852576000828152602084905260409020611508565b6000838152602083905260409020611508565b60006020828403121561187757600080fd5b813563ffffffff8116811461188b57600080fd5b9392505050565b6000602082840312156118a457600080fd5b5035919050565b80356001600160a01b03811681146118c257600080fd5b919050565b60008083601f8401126118d957600080fd5b50813567ffffffffffffffff8111156118f157600080fd5b60208301915083602082850101111561190957600080fd5b9250929050565b60008083601f84011261192257600080fd5b50813567ffffffffffffffff81111561193a57600080fd5b6020830191508360208260051b850101111561190957600080fd5b600080600080600080600080600060c08a8c03121561197357600080fd5b61197c8a6118ab565b985060208a013567ffffffffffffffff8082111561199957600080fd5b6119a58d838e016118c7565b909a50985060408c013597508891506119c060608d016118ab565b965060808c01359150808211156119d657600080fd5b6119e28d838e016118c7565b909650945060a08c01359150808211156119fb57600080fd5b50611a088c828d01611910565b915080935050809150509295985092959850929598565b60008060008060008060006080888a031215611a3a57600080fd5b873567ffffffffffffffff80821115611a5257600080fd5b611a5e8b838c01611910565b909950975060208a0135915080821115611a7757600080fd5b611a838b838c01611910565b9097509550859150611a9760408b016118ab565b945060608a0135915080821115611aad57600080fd5b50611aba8a828b01611910565b989b979a50959850939692959293505050565b60005b83811015611ae8578181015183820152602001611ad0565b50506000910152565b60008151808452611b09816020860160208601611acd565b601f01601f19169290920160200192915050565b6020815260006115086020830184611af1565b60008060408385031215611b4357600080fd5b611b4c836118ab565b946020939093013593505050565b60008060008060008060808789031215611b7357600080fd5b86359550611b83602088016118ab565b9450604087013567ffffffffffffffff80821115611ba057600080fd5b611bac8a838b016118c7565b90965094506060890135915080821115611bc557600080fd5b50611bd289828a01611910565b979a9699509497509295939492505050565b600080600080600060808688031215611bfc57600080fd5b611c05866118ab565b9450602086013567ffffffffffffffff811115611c2157600080fd5b611c2d888289016118c7565b9095509350611c409050604087016118ab565b949793965091946060013592915050565b600060208284031215611c6357600080fd5b611508826118ab565b634e487b7160e01b600052603260045260246000fd5b6000808335601e19843603018112611c9957600080fd5b83018035915067ffffffffffffffff821115611cb457600080fd5b60200191503681900382131561190957600080fd5b600060208284031215611cdb57600080fd5b5051919050565b608081526000611cf56080830187611af1565b6001600160a01b0395861660208401529390941660408201526060015292915050565b634e487b7160e01b600052601160045260246000fd5b600060018201611d4057611d40611d18565b5060010190565b600181811c90821680611d5b57607f821691505b602082108103611d7b57634e487b7160e01b600052602260045260246000fd5b50919050565b60808152600080865481600182811c915080831680611da157607f831692505b60208084108203611dc057634e487b7160e01b86526022600452602486fd5b6080880184905260a08801828015611ddf5760018114611df557611e20565b60ff198716825285151560051b82019750611e20565b60008e81526020902060005b87811015611e1a57815484820152908601908401611e01565b83019850505b5050859650611e398189018c6001600160a01b03169052565b505050505050611e5460408301856001600160a01b03169052565b82606083015295945050505050565b8181038181111561150b5761150b611d18565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b608081526000611eb3608083018789611e76565b6001600160a01b039586166020840152939094166040820152606001529392505050565b60006001600160a01b03808916835280881660208401525085604083015284606083015260a06080830152611f1060a083018486611e76565b98975050505050505050565b60008251611f2e818460208701611acd565b9190910192915050565b600060208284031215611f4a57600080fd5b8151801515811461188b57600080fd5b808202811582820484141761150b5761150b611d18565b600082611f8e57634e487b7160e01b600052601260045260246000fd5b50049056fea2646970667358221220c57bb07242a51bd2fd820814e0c7d41c0505013cb4e8bcb0624899f6526db22764736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000054c494e4541000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenSymbol (string): LINEA

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000005
Arg [2] : 4c494e4541000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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