ETH Price: $3,425.14 (+3.41%)

Contract

0x9CEE688d9E256eCa78EE55879Fc960223baA1883
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim212355512024-11-21 10:36:592 days ago1732185419IN
0x9CEE688d...23baA1883
0 ETH0.0013262314.59194114
Claim212355462024-11-21 10:35:592 days ago1732185359IN
0x9CEE688d...23baA1883
0 ETH0.001239213.63440938
Claim212355432024-11-21 10:35:112 days ago1732185311IN
0x9CEE688d...23baA1883
0 ETH0.0015301714.17619627
Claim212319002024-11-20 22:21:592 days ago1732141319IN
0x9CEE688d...23baA1883
0 ETH0.0012227413.45867742
Claim212302532024-11-20 16:51:113 days ago1732121471IN
0x9CEE688d...23baA1883
0 ETH0.0028330626.24379228
Claim212283442024-11-20 10:26:233 days ago1732098383IN
0x9CEE688d...23baA1883
0 ETH0.0009189310.11596587
Claim212240132024-11-19 19:56:354 days ago1732046195IN
0x9CEE688d...23baA1883
0 ETH0.0022608820.94346413
Claim212194212024-11-19 4:35:114 days ago1731990911IN
0x9CEE688d...23baA1883
0 ETH0.0009393810.33835884
Claim212098142024-11-17 20:27:476 days ago1731875267IN
0x9CEE688d...23baA1883
0 ETH0.001033719.57564545
Claim212071362024-11-17 11:29:476 days ago1731842987IN
0x9CEE688d...23baA1883
0 ETH0.000887269.76218377
Claim212051092024-11-17 4:42:236 days ago1731818543IN
0x9CEE688d...23baA1883
0 ETH0.0009679310.65394618
Claim212040212024-11-17 1:03:596 days ago1731805439IN
0x9CEE688d...23baA1883
0 ETH0.0011519110.67065374
Claim211953922024-11-15 20:11:118 days ago1731701471IN
0x9CEE688d...23baA1883
0 ETH0.0024578427.05680637
Claim211951832024-11-15 19:28:478 days ago1731698927IN
0x9CEE688d...23baA1883
0 ETH0.0019680618.23496487
Claim211624522024-11-11 5:48:5912 days ago1731304139IN
0x9CEE688d...23baA1883
0 ETH0.0016557115.33752746
Claim211406052024-11-08 4:42:3515 days ago1731040955IN
0x9CEE688d...23baA1883
0 ETH0.000906198.39446068
Claim211375862024-11-07 18:33:3516 days ago1731004415IN
0x9CEE688d...23baA1883
0 ETH0.0026018424.10183178
Claim211337292024-11-07 5:36:5916 days ago1730957819IN
0x9CEE688d...23baA1883
0 ETH0.000942918.73551755
Claim211245712024-11-05 22:56:3517 days ago1730847395IN
0x9CEE688d...23baA1883
0 ETH0.000701836.50131599
Claim211101562024-11-03 22:39:1119 days ago1730673551IN
0x9CEE688d...23baA1883
0 ETH0.000430893.99069498
Claim210903292024-11-01 4:12:5922 days ago1730434379IN
0x9CEE688d...23baA1883
0 ETH0.000535345.89251299
Claim210828642024-10-31 3:14:3523 days ago1730344475IN
0x9CEE688d...23baA1883
0 ETH0.0008669.51007893
Claim210624192024-10-28 6:43:5926 days ago1730097839IN
0x9CEE688d...23baA1883
0 ETH0.000567526.24674974
Claim210505482024-10-26 14:59:4728 days ago1729954787IN
0x9CEE688d...23baA1883
0 ETH0.000747796.92710844
Claim210407402024-10-25 6:08:5929 days ago1729836539IN
0x9CEE688d...23baA1883
0 ETH0.000598275.54207528
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:
Hybridge

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 9 : Hybridge.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.24;

import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

interface TOPIA_Token {
	function balanceOf(address owner) external view returns(uint256);
	function transferFrom(address, address, uint256) external;
	function allowance(address owner, address spender) external view returns(uint256);
	function transfer(address recipient, uint256 amount) external returns(bool);
	function approve(address spender, uint256 amount) external returns(bool);
}

contract Hybridge is Ownable(msg.sender), ReentrancyGuard {

	address public feeWallet;
	uint256 public fee;
	bool public active = true; 
	TOPIA_Token public topia;

	mapping(bytes => bool) private claimSignatures;

	event Claimed(address indexed to, uint amount);

	constructor(address _feeWallet, address topiaAddress){
		topia = TOPIA_Token(topiaAddress);
		feeWallet = _feeWallet;
		fee = 25;
	}

	function claim(uint256 _amount, uint256 _discount, uint256 _nounce, bytes calldata _signature) external payable nonReentrant{
		require(active == true, "Claiming is paused");
		require(!claimSignatures[_signature], "Signature already used");
		bytes32 hash =  MessageHashUtils.toEthSignedMessageHash(keccak256(abi.encodePacked(_amount, _discount, msg.sender, _nounce)));
		address signer = ECDSA.recover(hash, _signature);
		require(signer == owner(), "Invalid signature");
		claimSignatures[_signature] = true;

		uint256 discountFee = calculateFee(_discount);
		uint256 platformFee = (_amount / 1000) * discountFee;
		uint256 payout =  _amount - platformFee;
		topia.transfer(feeWallet, platformFee);
		topia.transfer(msg.sender, payout);
		emit Claimed(msg.sender, payout);
	}

	function setFeePercent(uint256 _fee) external onlyOwner{
		fee = _fee;
	}

	function setActive(bool _active) external onlyOwner{
		active = _active;
	}

	function changeFeeWallet(address _feeWallet) external onlyOwner{
		feeWallet = _feeWallet;
	}

	function calculateFee(uint256 _discount) private returns(uint256){
		if(_discount > 0){
			return (fee - _discount);
		} else {
			return fee;
		}
	}

	function withdraw(address _wallet) external payable onlyOwner{
		topia.transfer(_wallet, topia.balanceOf(address(this)));
	}
}

File 2 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../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.
 *
 * The initial owner is set to the address provided by the deployer. 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;

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 4 of 9 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.20;

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

    /**
     * @dev The signature derives the `address(0)`.
     */
    error ECDSAInvalidSignature();

    /**
     * @dev The signature has an invalid length.
     */
    error ECDSAInvalidSignatureLength(uint256 length);

    /**
     * @dev The signature has an S value that is in the upper half order.
     */
    error ECDSAInvalidSignatureS(bytes32 s);

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
     * return address(0) without also returning an error description. Errors are documented using an enum (error type)
     * and a bytes32 providing additional information about the error.
     *
     * If no error is returned, then the address can be used for verification purposes.
     *
     * The `ecrecover` EVM precompile 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 {MessageHashUtils-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]
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {
        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, bytes32(signature.length));
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM precompile 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 {MessageHashUtils-toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
        _throwError(error, errorArg);
        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]
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
        unchecked {
            bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
            // We do not check for an overflow here since the shift operation results in 0 or 1.
            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.
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError, bytes32) {
        // 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, s);
        }

        // 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, bytes32(0));
        }

        return (signer, RecoverError.NoError, bytes32(0));
    }

    /**
     * @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, bytes32 errorArg) = tryRecover(hash, v, r, s);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
     */
    function _throwError(RecoverError error, bytes32 errorArg) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert ECDSAInvalidSignature();
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert ECDSAInvalidSignatureLength(uint256(errorArg));
        } else if (error == RecoverError.InvalidSignatureS) {
            revert ECDSAInvalidSignatureS(errorArg);
        }
    }
}

File 5 of 9 : MessageHashUtils.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)

pragma solidity ^0.8.20;

import {Strings} from "../Strings.sol";

/**
 * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
 *
 * The library provides methods for generating a hash of a message that conforms to the
 * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
 * specifications.
 */
library MessageHashUtils {
    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing a bytes32 `messageHash` with
     * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
     * keccak256, although any bytes32 value can be safely used because the final digest will
     * be re-hashed.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
            mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
            digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
        }
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing an arbitrary `message` with
     * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
        return
            keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x00` (data with intended validator).
     *
     * The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
     * `validator` address. Then hashing the result.
     *
     * See {ECDSA-recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(hex"19_00", validator, data));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
     *
     * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
     * `\x19\x01` and hashing the result. It corresponds to the hash signed by the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
     *
     * See {ECDSA-recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, hex"19_01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            digest := keccak256(ptr, 0x42)
        }
    }
}

File 6 of 9 : Math.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    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.
     */
    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.
     */
    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.
     */
    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.
     */
    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 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 towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (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 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 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.

            uint256 twos = denominator & (0 - denominator);
            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 (unsignedRoundsUp(rounding) && 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
     * towards zero.
     *
     * 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 + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * 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 + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * 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 256, 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 + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

File 7 of 9 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 8 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

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

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

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

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @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), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @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) {
        uint256 localValue = value;
        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_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        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);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_feeWallet","type":"address"},{"internalType":"address","name":"topiaAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ECDSAInvalidSignature","type":"error"},{"inputs":[{"internalType":"uint256","name":"length","type":"uint256"}],"name":"ECDSAInvalidSignatureLength","type":"error"},{"inputs":[{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"ECDSAInvalidSignatureS","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","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"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_feeWallet","type":"address"}],"name":"changeFeeWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_discount","type":"uint256"},{"internalType":"uint256","name":"_nounce","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":"bool","name":"_active","type":"bool"}],"name":"setActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setFeePercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"topia","outputs":[{"internalType":"contract TOPIA_Token","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60806040526001600460006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b50604051620019c7380380620019c78339818101604052810190620000529190620002a1565b33600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603620000c85760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401620000bf9190620002f9565b60405180910390fd5b620000d9816200017360201b60201c565b506001808190555080600460016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506019600381905550505062000316565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600062000269826200023c565b9050919050565b6200027b816200025c565b81146200028757600080fd5b50565b6000815190506200029b8162000270565b92915050565b60008060408385031215620002bb57620002ba62000237565b5b6000620002cb858286016200028a565b9250506020620002de858286016200028a565b9150509250929050565b620002f3816200025c565b82525050565b6000602082019050620003106000830184620002e8565b92915050565b6116a180620003266000396000f3fe6080604052600436106100a75760003560e01c80638da5cb5b116100645780638da5cb5b14610178578063acec338a146101a3578063b054e57a146101cc578063ddca3f43146101f7578063f25f4b5614610222578063f2fde38b1461024d576100a7565b806302fb0c5e146100ac5780633e4d0310146100d757806351cff8d9146101005780636548b7ae1461011c578063715018a6146101385780637ce3489b1461014f575b600080fd5b3480156100b857600080fd5b506100c1610276565b6040516100ce9190610e6a565b60405180910390f35b3480156100e357600080fd5b506100fe60048036038101906100f99190610eed565b610289565b005b61011a60048036038101906101159190610eed565b6102d5565b005b61013660048036038101906101319190610fb5565b61041c565b005b34801561014457600080fd5b5061014d610821565b005b34801561015b57600080fd5b506101766004803603810190610171919061103d565b610835565b005b34801561018457600080fd5b5061018d610847565b60405161019a9190611079565b60405180910390f35b3480156101af57600080fd5b506101ca60048036038101906101c591906110c0565b610870565b005b3480156101d857600080fd5b506101e1610895565b6040516101ee919061114c565b60405180910390f35b34801561020357600080fd5b5061020c6108bb565b6040516102199190611176565b60405180910390f35b34801561022e57600080fd5b506102376108c1565b6040516102449190611079565b60405180910390f35b34801561025957600080fd5b50610274600480360381019061026f9190610eed565b6108e7565b005b600460009054906101000a900460ff1681565b61029161096d565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6102dd61096d565b600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016103779190611079565b602060405180830381865afa158015610394573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b891906111a6565b6040518363ffffffff1660e01b81526004016103d59291906111d3565b6020604051808303816000875af11580156103f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104189190611211565b5050565b6104246109f4565b60011515600460009054906101000a900460ff1615151461047a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104719061129b565b60405180910390fd5b6005828260405161048c9291906112fa565b908152602001604051809103902060009054906101000a900460ff16156104e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104df9061135f565b60405180910390fd5b600061051f8686338760405160200161050494939291906113e8565b60405160208183030381529060405280519060200120610a3a565b905060006105718285858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610a70565b905061057b610847565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146105e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105df90611482565b60405180910390fd5b6001600585856040516105fc9291906112fa565b908152602001604051809103902060006101000a81548160ff021916908315150217905550600061062c87610a9c565b90506000816103e88a61063f9190611500565b6106499190611531565b90506000818a6106599190611573565b9050600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b81526004016106da9291906111d3565b6020604051808303816000875af11580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071d9190611211565b50600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161077b9291906111d3565b6020604051808303816000875af115801561079a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107be9190611211565b503373ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a826040516108059190611176565b60405180910390a2505050505061081a610ac6565b5050505050565b61082961096d565b6108336000610acf565b565b61083d61096d565b8060038190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61087861096d565b80600460006101000a81548160ff02191690831515021790555050565b600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6108ef61096d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109615760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016109589190611079565b60405180910390fd5b61096a81610acf565b50565b610975610b93565b73ffffffffffffffffffffffffffffffffffffffff16610993610847565b73ffffffffffffffffffffffffffffffffffffffff16146109f2576109b6610b93565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016109e99190611079565b60405180910390fd5b565b600260015403610a30576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b600080600080610a808686610b9b565b925092509250610a908282610bf7565b82935050505092915050565b600080821115610abb5781600354610ab49190611573565b9050610ac1565b60035490505b919050565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b60008060006041845103610be05760008060006020870151925060408701519150606087015160001a9050610bd288828585610d5b565b955095509550505050610bf0565b60006002855160001b9250925092505b9250925092565b60006003811115610c0b57610c0a6115a7565b5b826003811115610c1e57610c1d6115a7565b5b0315610d575760016003811115610c3857610c376115a7565b5b826003811115610c4b57610c4a6115a7565b5b03610c82576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60026003811115610c9657610c956115a7565b5b826003811115610ca957610ca86115a7565b5b03610cee578060001c6040517ffce698f7000000000000000000000000000000000000000000000000000000008152600401610ce59190611176565b60405180910390fd5b600380811115610d0157610d006115a7565b5b826003811115610d1457610d136115a7565b5b03610d5657806040517fd78bce0c000000000000000000000000000000000000000000000000000000008152600401610d4d91906115ef565b60405180910390fd5b5b5050565b60008060007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08460001c1115610d9b576000600385925092509250610e45565b600060018888888860405160008152602001604052604051610dc09493929190611626565b6020604051602081039080840390855afa158015610de2573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e3657600060016000801b93509350935050610e45565b8060008060001b935093509350505b9450945094915050565b60008115159050919050565b610e6481610e4f565b82525050565b6000602082019050610e7f6000830184610e5b565b92915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610eba82610e8f565b9050919050565b610eca81610eaf565b8114610ed557600080fd5b50565b600081359050610ee781610ec1565b92915050565b600060208284031215610f0357610f02610e85565b5b6000610f1184828501610ed8565b91505092915050565b6000819050919050565b610f2d81610f1a565b8114610f3857600080fd5b50565b600081359050610f4a81610f24565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610f7557610f74610f50565b5b8235905067ffffffffffffffff811115610f9257610f91610f55565b5b602083019150836001820283011115610fae57610fad610f5a565b5b9250929050565b600080600080600060808688031215610fd157610fd0610e85565b5b6000610fdf88828901610f3b565b9550506020610ff088828901610f3b565b945050604061100188828901610f3b565b935050606086013567ffffffffffffffff81111561102257611021610e8a565b5b61102e88828901610f5f565b92509250509295509295909350565b60006020828403121561105357611052610e85565b5b600061106184828501610f3b565b91505092915050565b61107381610eaf565b82525050565b600060208201905061108e600083018461106a565b92915050565b61109d81610e4f565b81146110a857600080fd5b50565b6000813590506110ba81611094565b92915050565b6000602082840312156110d6576110d5610e85565b5b60006110e4848285016110ab565b91505092915050565b6000819050919050565b600061111261110d61110884610e8f565b6110ed565b610e8f565b9050919050565b6000611124826110f7565b9050919050565b600061113682611119565b9050919050565b6111468161112b565b82525050565b6000602082019050611161600083018461113d565b92915050565b61117081610f1a565b82525050565b600060208201905061118b6000830184611167565b92915050565b6000815190506111a081610f24565b92915050565b6000602082840312156111bc576111bb610e85565b5b60006111ca84828501611191565b91505092915050565b60006040820190506111e8600083018561106a565b6111f56020830184611167565b9392505050565b60008151905061120b81611094565b92915050565b60006020828403121561122757611226610e85565b5b6000611235848285016111fc565b91505092915050565b600082825260208201905092915050565b7f436c61696d696e67206973207061757365640000000000000000000000000000600082015250565b600061128560128361123e565b91506112908261124f565b602082019050919050565b600060208201905081810360008301526112b481611278565b9050919050565b600081905092915050565b82818337600083830152505050565b60006112e183856112bb565b93506112ee8385846112c6565b82840190509392505050565b60006113078284866112d5565b91508190509392505050565b7f5369676e617475726520616c7265616479207573656400000000000000000000600082015250565b600061134960168361123e565b915061135482611313565b602082019050919050565b600060208201905081810360008301526113788161133c565b9050919050565b6000819050919050565b61139a61139582610f1a565b61137f565b82525050565b60008160601b9050919050565b60006113b8826113a0565b9050919050565b60006113ca826113ad565b9050919050565b6113e26113dd82610eaf565b6113bf565b82525050565b60006113f48287611389565b6020820191506114048286611389565b60208201915061141482856113d1565b6014820191506114248284611389565b60208201915081905095945050505050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b600061146c60118361123e565b915061147782611436565b602082019050919050565b6000602082019050818103600083015261149b8161145f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061150b82610f1a565b915061151683610f1a565b925082611526576115256114a2565b5b828204905092915050565b600061153c82610f1a565b915061154783610f1a565b925082820261155581610f1a565b9150828204841483151761156c5761156b6114d1565b5b5092915050565b600061157e82610f1a565b915061158983610f1a565b92508282039050818111156115a1576115a06114d1565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000819050919050565b6115e9816115d6565b82525050565b600060208201905061160460008301846115e0565b92915050565b600060ff82169050919050565b6116208161160a565b82525050565b600060808201905061163b60008301876115e0565b6116486020830186611617565b61165560408301856115e0565b61166260608301846115e0565b9594505050505056fea2646970667358221220238681e5aef72f1e1eff2716a02506718ba4380c4dc5a7df570d2cb9c149ed0464736f6c6343000818003300000000000000000000000084b0d6ace46cae71b1edeadd120ac512efe685d0000000000000000000000000ccccb68e1a848cbdb5b60a974e07aae143ed40c3

Deployed Bytecode

0x6080604052600436106100a75760003560e01c80638da5cb5b116100645780638da5cb5b14610178578063acec338a146101a3578063b054e57a146101cc578063ddca3f43146101f7578063f25f4b5614610222578063f2fde38b1461024d576100a7565b806302fb0c5e146100ac5780633e4d0310146100d757806351cff8d9146101005780636548b7ae1461011c578063715018a6146101385780637ce3489b1461014f575b600080fd5b3480156100b857600080fd5b506100c1610276565b6040516100ce9190610e6a565b60405180910390f35b3480156100e357600080fd5b506100fe60048036038101906100f99190610eed565b610289565b005b61011a60048036038101906101159190610eed565b6102d5565b005b61013660048036038101906101319190610fb5565b61041c565b005b34801561014457600080fd5b5061014d610821565b005b34801561015b57600080fd5b506101766004803603810190610171919061103d565b610835565b005b34801561018457600080fd5b5061018d610847565b60405161019a9190611079565b60405180910390f35b3480156101af57600080fd5b506101ca60048036038101906101c591906110c0565b610870565b005b3480156101d857600080fd5b506101e1610895565b6040516101ee919061114c565b60405180910390f35b34801561020357600080fd5b5061020c6108bb565b6040516102199190611176565b60405180910390f35b34801561022e57600080fd5b506102376108c1565b6040516102449190611079565b60405180910390f35b34801561025957600080fd5b50610274600480360381019061026f9190610eed565b6108e7565b005b600460009054906101000a900460ff1681565b61029161096d565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6102dd61096d565b600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb82600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016103779190611079565b602060405180830381865afa158015610394573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103b891906111a6565b6040518363ffffffff1660e01b81526004016103d59291906111d3565b6020604051808303816000875af11580156103f4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104189190611211565b5050565b6104246109f4565b60011515600460009054906101000a900460ff1615151461047a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104719061129b565b60405180910390fd5b6005828260405161048c9291906112fa565b908152602001604051809103902060009054906101000a900460ff16156104e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104df9061135f565b60405180910390fd5b600061051f8686338760405160200161050494939291906113e8565b60405160208183030381529060405280519060200120610a3a565b905060006105718285858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050610a70565b905061057b610847565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146105e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105df90611482565b60405180910390fd5b6001600585856040516105fc9291906112fa565b908152602001604051809103902060006101000a81548160ff021916908315150217905550600061062c87610a9c565b90506000816103e88a61063f9190611500565b6106499190611531565b90506000818a6106599190611573565b9050600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518363ffffffff1660e01b81526004016106da9291906111d3565b6020604051808303816000875af11580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071d9190611211565b50600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161077b9291906111d3565b6020604051808303816000875af115801561079a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107be9190611211565b503373ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a826040516108059190611176565b60405180910390a2505050505061081a610ac6565b5050505050565b61082961096d565b6108336000610acf565b565b61083d61096d565b8060038190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61087861096d565b80600460006101000a81548160ff02191690831515021790555050565b600460019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6108ef61096d565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109615760006040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016109589190611079565b60405180910390fd5b61096a81610acf565b50565b610975610b93565b73ffffffffffffffffffffffffffffffffffffffff16610993610847565b73ffffffffffffffffffffffffffffffffffffffff16146109f2576109b6610b93565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016109e99190611079565b60405180910390fd5b565b600260015403610a30576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60007f19457468657265756d205369676e6564204d6573736167653a0a33320000000060005281601c52603c6000209050919050565b600080600080610a808686610b9b565b925092509250610a908282610bf7565b82935050505092915050565b600080821115610abb5781600354610ab49190611573565b9050610ac1565b60035490505b919050565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b60008060006041845103610be05760008060006020870151925060408701519150606087015160001a9050610bd288828585610d5b565b955095509550505050610bf0565b60006002855160001b9250925092505b9250925092565b60006003811115610c0b57610c0a6115a7565b5b826003811115610c1e57610c1d6115a7565b5b0315610d575760016003811115610c3857610c376115a7565b5b826003811115610c4b57610c4a6115a7565b5b03610c82576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60026003811115610c9657610c956115a7565b5b826003811115610ca957610ca86115a7565b5b03610cee578060001c6040517ffce698f7000000000000000000000000000000000000000000000000000000008152600401610ce59190611176565b60405180910390fd5b600380811115610d0157610d006115a7565b5b826003811115610d1457610d136115a7565b5b03610d5657806040517fd78bce0c000000000000000000000000000000000000000000000000000000008152600401610d4d91906115ef565b60405180910390fd5b5b5050565b60008060007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08460001c1115610d9b576000600385925092509250610e45565b600060018888888860405160008152602001604052604051610dc09493929190611626565b6020604051602081039080840390855afa158015610de2573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e3657600060016000801b93509350935050610e45565b8060008060001b935093509350505b9450945094915050565b60008115159050919050565b610e6481610e4f565b82525050565b6000602082019050610e7f6000830184610e5b565b92915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610eba82610e8f565b9050919050565b610eca81610eaf565b8114610ed557600080fd5b50565b600081359050610ee781610ec1565b92915050565b600060208284031215610f0357610f02610e85565b5b6000610f1184828501610ed8565b91505092915050565b6000819050919050565b610f2d81610f1a565b8114610f3857600080fd5b50565b600081359050610f4a81610f24565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610f7557610f74610f50565b5b8235905067ffffffffffffffff811115610f9257610f91610f55565b5b602083019150836001820283011115610fae57610fad610f5a565b5b9250929050565b600080600080600060808688031215610fd157610fd0610e85565b5b6000610fdf88828901610f3b565b9550506020610ff088828901610f3b565b945050604061100188828901610f3b565b935050606086013567ffffffffffffffff81111561102257611021610e8a565b5b61102e88828901610f5f565b92509250509295509295909350565b60006020828403121561105357611052610e85565b5b600061106184828501610f3b565b91505092915050565b61107381610eaf565b82525050565b600060208201905061108e600083018461106a565b92915050565b61109d81610e4f565b81146110a857600080fd5b50565b6000813590506110ba81611094565b92915050565b6000602082840312156110d6576110d5610e85565b5b60006110e4848285016110ab565b91505092915050565b6000819050919050565b600061111261110d61110884610e8f565b6110ed565b610e8f565b9050919050565b6000611124826110f7565b9050919050565b600061113682611119565b9050919050565b6111468161112b565b82525050565b6000602082019050611161600083018461113d565b92915050565b61117081610f1a565b82525050565b600060208201905061118b6000830184611167565b92915050565b6000815190506111a081610f24565b92915050565b6000602082840312156111bc576111bb610e85565b5b60006111ca84828501611191565b91505092915050565b60006040820190506111e8600083018561106a565b6111f56020830184611167565b9392505050565b60008151905061120b81611094565b92915050565b60006020828403121561122757611226610e85565b5b6000611235848285016111fc565b91505092915050565b600082825260208201905092915050565b7f436c61696d696e67206973207061757365640000000000000000000000000000600082015250565b600061128560128361123e565b91506112908261124f565b602082019050919050565b600060208201905081810360008301526112b481611278565b9050919050565b600081905092915050565b82818337600083830152505050565b60006112e183856112bb565b93506112ee8385846112c6565b82840190509392505050565b60006113078284866112d5565b91508190509392505050565b7f5369676e617475726520616c7265616479207573656400000000000000000000600082015250565b600061134960168361123e565b915061135482611313565b602082019050919050565b600060208201905081810360008301526113788161133c565b9050919050565b6000819050919050565b61139a61139582610f1a565b61137f565b82525050565b60008160601b9050919050565b60006113b8826113a0565b9050919050565b60006113ca826113ad565b9050919050565b6113e26113dd82610eaf565b6113bf565b82525050565b60006113f48287611389565b6020820191506114048286611389565b60208201915061141482856113d1565b6014820191506114248284611389565b60208201915081905095945050505050565b7f496e76616c6964207369676e6174757265000000000000000000000000000000600082015250565b600061146c60118361123e565b915061147782611436565b602082019050919050565b6000602082019050818103600083015261149b8161145f565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061150b82610f1a565b915061151683610f1a565b925082611526576115256114a2565b5b828204905092915050565b600061153c82610f1a565b915061154783610f1a565b925082820261155581610f1a565b9150828204841483151761156c5761156b6114d1565b5b5092915050565b600061157e82610f1a565b915061158983610f1a565b92508282039050818111156115a1576115a06114d1565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000819050919050565b6115e9816115d6565b82525050565b600060208201905061160460008301846115e0565b92915050565b600060ff82169050919050565b6116208161160a565b82525050565b600060808201905061163b60008301876115e0565b6116486020830186611617565b61165560408301856115e0565b61166260608301846115e0565b9594505050505056fea2646970667358221220238681e5aef72f1e1eff2716a02506718ba4380c4dc5a7df570d2cb9c149ed0464736f6c63430008180033

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

00000000000000000000000084b0d6ace46cae71b1edeadd120ac512efe685d0000000000000000000000000ccccb68e1a848cbdb5b60a974e07aae143ed40c3

-----Decoded View---------------
Arg [0] : _feeWallet (address): 0x84B0d6acE46cae71B1eDeadD120Ac512eFe685d0
Arg [1] : topiaAddress (address): 0xcccCb68e1A848CBDB5b60a974E07aAE143ed40C3

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000084b0d6ace46cae71b1edeadd120ac512efe685d0
Arg [1] : 000000000000000000000000ccccb68e1a848cbdb5b60a974e07aae143ed40c3


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.