Contract 0x21BdA83710B1FBa0CBbb2119B24dCbC21C4F834f 7

 
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0xd29291237eee6bcf21cb5f81492887a3c902f092b952932fe5116a28ad513356Claim Reuni430621862023-05-23 19:11:205 days 23 hrs ago0xa4a848d2fce8336e20137d174aace7c8e4498ec1 IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.013942019 150.5
0x49844e91689f774088769cba41a42b2ee9a17ba904aed6f981ebebe935001290Claim Reuni427356132023-05-15 13:08:5014 days 5 hrs ago0x584c1bc97cd87adba2d27fab4e85690bf577e6db IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.015970196852 172.393584196
0x461b1e1162a764a3de8367ce4131624a6e3fac22afb47c4f9b170bae12e6d74fClaim Reuni418318702023-04-22 16:29:0237 days 2 hrs ago0x8cd30c024264bc6ed00ed59d8af6e7a5ad3e8fb6 IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.02723415176 293.984668927
0x64d72eefca25047635006a4165f493eca5a94d6353cfc177490b113ea0466bd0Claim Reuni418170882023-04-22 7:25:3737 days 11 hrs ago 1bitresearch.wallet  IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.02602695153 280.953297035
0xfd6370d715e5e7b8b8d5575e658d3ce191fec822e43276f12e3a4e1cbb54b39dClaim Reuni413452692023-04-09 22:45:0249 days 20 hrs ago0x4465ad9b779829135ca85b2aa62be44041c7d4f3 IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.009888613973 106.744683318
0xc314a7d3894ff8deb6438cea3803724c4db443856ed4391c9860756cabe82171Claim Reuni412025072023-04-06 6:46:3053 days 12 hrs ago0x5f8fa70df586c67e51fae4a1a0cbabd7335f69b8 IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.010976690488 118.490149707
0x666b756ff2a0057a6dc3a90a26bda62c0ac651d8730aa37d8ea52f1b04fd2a5fClaim Reuni411817312023-04-05 18:13:5654 days 39 mins ago0xafcde02c4136c792ff12f23178a09537bcb2106c IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.009215718869 99.480978322
0x15af39235879d7c7a9a0f8cd788852d1f0d050aad152285d56a54c75717fc764Claim Reuni411723672023-04-05 12:35:3654 days 6 hrs ago0xe5a21c233a568591d00e46550d611c527409316c IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.026393350368 284.908464866
0x2e79781e6cb947d21a7ef6426f78c9e8a33d379b43db8faf7d4d6c0b3293f4b5Claim Reuni411472672023-04-04 21:04:2754 days 21 hrs ago0xb6d49678e09a5d9e436a36b8ef76e822bb2c44fd IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.00234552254970.423423693
0xdb986e85c2e19a909a55fc040a8a7214c4f1ab3aeff6647cca11fd39cd06c357Claim Reuni411472672023-04-04 21:04:2754 days 21 hrs ago0xb6d49678e09a5d9e436a36b8ef76e822bb2c44fd IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.00565180769261.009603967
0x3ddbcba3e625929456b8facaba1dfc27d92ab6c4e0f2297e63bfe374360ee388Claim Reuni411458052023-04-04 20:11:4854 days 22 hrs ago0x95ae8112a73666c3f5b8e0a3d29b40c7f4bfa963 IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.008538673467 92.172472073
0x48d840c9ece3e8090ab33063545dbccfe81e9c36400743a130fc22fcc81e387eClaim Reuni411447712023-04-04 19:34:0454 days 23 hrs ago0x1bc8822b33a51e27b8bf1d7b51653c1ebea84aa3 IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.007749156855 83.649872141
0x540c0cbd3e9d5df278ded658c372d89c2cd573d366ab89ecd57860be4cc5098aClaim Reuni411176062023-04-04 2:44:5755 days 16 hrs ago0x7a7c303bba0417aef71e4b5f589dece3bfc44b7d IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.007294066753 78.737308165
0xf923897d998e85c57089ef29a9dc17081776e36d55c8297d5bb42f3489613d0bClaim Reuni411056552023-04-03 19:04:2955 days 23 hrs ago0xecc25cea153e38052ce8485f05fd5362cdfe569b IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.007898956172 85.266911771
0x1805767ddcf4ffe2eb5279326c0038c04c1125ff5894f45f1ff4718c1db817cdClaim Reuni410984332023-04-03 14:33:2156 days 4 hrs ago0x13a3dc47800fe94befb51ee774413a46b887040a IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.010193131452 110.031860061
0x4502599395020cb5d77065978aa976fbb38ce6438af9c57bcafd7c53440cb407Claim Reuni410967452023-04-03 13:33:2856 days 5 hrs ago0x93703538dcdbebaa84ade5a36b173b92816e23bd IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.009634352 104
0x15c8ca08ea017d092bea9c70a23af178b6f06781a4ec317d65c0d7df0f8accbdClaim Reuni410954932023-04-03 12:49:0856 days 6 hrs ago0xcd266b9e1709343c6ae8614d1fc12f71565bf37d IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.015941520566172.084032112
0x6d4b1ddd47e9169ce426b54e9aa255595f1d0a93bc0e894878e6904e59650221Claim Reuni410936342023-04-03 11:38:5556 days 7 hrs ago0xbaf85149f59164355604424a0ca39e5689dfff4d IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.01072456217 115.768498571
0x254b20b7a58e69915fdd7209d2d16502cc603b9ed621951f3a92d56e1efebd65Claim Reuni410918492023-04-03 10:27:4256 days 8 hrs ago0x61156339df67fb127d67a8c0c0a73856a4b0bf84 IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.012792684616 138.093272912
0xb4d66c74aa8c8f60b93cc6ec151f5491ea3533fb0b232a5acb17a2649617070fClaim Reuni410895652023-04-03 9:02:3556 days 9 hrs ago0xc95bc19cc360a0ad6b908ba0212362d84ec80a5d IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.011023927797 119.000062585
0xc04e4d73059fec2d1b7864688138d4b681f261621213cd0b3e8a2aaa05fd6b19Claim Reuni410894322023-04-03 8:57:5356 days 9 hrs ago0x71b0d54cc9f46a3b94137e1789c78d13b956a4e5 IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.007383029372 79.697633506
0x8c702788744033bc30241e9e261647fb7c3a93ff1e53e4e114496042ae073289Claim Reuni410894322023-04-03 8:57:5356 days 9 hrs ago0x6fd76fb76cf6f3127387216dde8a49a0e579ebad IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.0075970405482.007821207
0x618fcd83667974cdee2e16d2d2d4c20f37565d617de888de555b2e5a4d3d3bbbClaim Reuni410850632023-04-03 6:15:2256 days 12 hrs ago0x51b2cc5f6048b595358cc73baf963e9fb3211de3 IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.00774618952383.617840667
0x6f42d3d204fed0d362331de391a8029ab1c32c417b2473dbc383226b0c94461aClaim Reuni410849552023-04-03 6:11:1656 days 12 hrs ago0x7265b12aa9ba275a7e5eec2bfc8994058666edcc IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.009686373463 104.561556416
0x3f18929caf736a20ea5662dfc800bbbc5fa895fd29bf43eff83d3b2bf2dc6bacClaim Reuni410841712023-04-03 5:40:0056 days 13 hrs ago0xea39d1f240604de7f4f320507270b36cdc546bcd IN  0x21bda83710b1fba0cbbb2119b24dcbc21c4f834f0 MATIC0.007863978956 84.889342992
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
reunitTokenSale

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : reunitTokenSale.sol
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.1/contracts/utils/cryptography/ECDSA.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/utils/SafeERC20.sol";

contract reunitTokenSale {

    using SafeERC20 for IERC20;
    using ECDSA for bytes32;

    address                         public      OWNER;
    address                         public      REUNI_TOKEN;
    address                         public      REUNIT_TREASURY;   
    mapping(address => uint256)     public      ALLOWED_TOKENS; 
    mapping(address => uint256)     public      PARTICIPANT_LIST;
    mapping(address => bool)        public      BLACKLISTED;
    mapping(address => uint256)     public      AMOUNT_WITHDRAWN;
    uint256                         public      MAXIMUM             =   1000000;
    uint256                         public      DEPOSITS            =   0;
    uint256                         public      SALE_OPEN           =   0;
    uint256                         public      CLAIM_OPEN          =   0;
    uint256                         public      REUNI_DECIMALS      =   1e18;
    uint256                         public      CLAIM_MULTIPLIER    =   0;
    
    event Deposit(address indexed user, uint256 amount);
    event Claim(address indexed user, uint256 amount);
    event WithdrawToTreasury(address indexed token, uint256 amount);
    event UpdateLock(uint256 conf, uint256 value);

    constructor() {
        OWNER       =   msg.sender;
        ALLOWED_TOKENS[0xc2132D05D31c914a87C6611C10748AEb04B58e8F]      =   1e6;      // USDT
        ALLOWED_TOKENS[0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174]      =   1e6;      // USDC
        ALLOWED_TOKENS[0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063]      =   1e18;     // DAI
    }

    function transferOwner(address new_owner) public {
        require(msg.sender == OWNER, "You are not the owner");
        OWNER   =   new_owner;
    }

    function updateTreasury(address reunitTreasury) public {
        require(msg.sender == OWNER, "You are not the owner");
        REUNIT_TREASURY =   reunitTreasury;   
    }

    function addToBlacklist(address user, bool value) public {
        require(msg.sender == OWNER, "You are not the owner");
        BLACKLISTED[user]   =   value;
    }

    function buySale(uint256 amount, address token) public {
        require(!BLACKLISTED[msg.sender], "You are blacklisted");
        require(SALE_OPEN == 1, "The presale is closed");
        require(amount > 0, "The amount must be higher than zero");
        require((amount+DEPOSITS) <= MAXIMUM, "The amount exceed the maximum authorized");
        require((ALLOWED_TOKENS[token] == 1e6 || ALLOWED_TOKENS[token] == 1e18), "The token is not allowed");

        PARTICIPANT_LIST[msg.sender] += amount;
        DEPOSITS += amount;
        // Price set at $2 = amount*2
        IERC20(token).safeTransferFrom(msg.sender,address(this),amount*2*ALLOWED_TOKENS[token]);
        emit Deposit(msg.sender, amount);
    }

    function withdrawToTreasury(uint256 amount, address token) public {
        require(msg.sender == OWNER, "You are not the owner");
        IERC20(token).safeTransfer(REUNIT_TREASURY,amount);
        emit WithdrawToTreasury(token, amount);
    }

    function setLock(uint256 conf, uint256 lock_option) public {
        require(msg.sender == OWNER, "You are not the owner");
        if(conf == 1)       {   if(lock_option == 1)  {   SALE_OPEN     =   1;  } else {    SALE_OPEN   =   0; }    }
        else if(conf == 2)  {   if(lock_option == 1)  {   CLAIM_OPEN    =   1;  } else {    CLAIM_OPEN  =   0; }    }
        else { CLAIM_MULTIPLIER = lock_option; }
        emit UpdateLock(conf, lock_option);
    }

    function claimReuni() public {
        address user    =   msg.sender;
        require(CLAIM_OPEN  == 1, "The claim period is not open");
        require(PARTICIPANT_LIST[user] > 0, "You have nothing to claim");
        uint256 AUTHORIZED_AMOUNT;
        
        if(CLAIM_MULTIPLIER == 100) {
            AUTHORIZED_AMOUNT   =   PARTICIPANT_LIST[user]*REUNI_DECIMALS;
        } else {
            AUTHORIZED_AMOUNT   =   PARTICIPANT_LIST[user]*REUNI_DECIMALS/100*CLAIM_MULTIPLIER;
        }

        require(AMOUNT_WITHDRAWN[user] < AUTHORIZED_AMOUNT, "You have reached the maximum claimable amount");
        uint256 AMOUNT_TO_WITHDRAW  =   AUTHORIZED_AMOUNT-AMOUNT_WITHDRAWN[user];
        
        AMOUNT_WITHDRAWN[user]  +=   AMOUNT_TO_WITHDRAW;
        IERC20(REUNI_TOKEN).safeTransfer(user,AMOUNT_TO_WITHDRAW);
        
        emit Claim(user,AMOUNT_TO_WITHDRAW);
    }

    function setReuniToken(address token, uint256 decimals) public {
        require(msg.sender == OWNER, "You are not the owner");
        REUNI_TOKEN     =   token;
        REUNI_DECIMALS  =   decimals;
    }
}

File 2 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
     * 0 before setting it to a non-zero value.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

import "./math/Math.sol";

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

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

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

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

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

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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"conf","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"UpdateLock","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawToTreasury","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"ALLOWED_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"AMOUNT_WITHDRAWN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"BLACKLISTED","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CLAIM_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CLAIM_OPEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPOSITS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OWNER","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"PARTICIPANT_LIST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REUNIT_TREASURY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REUNI_DECIMALS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REUNI_TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SALE_OPEN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bool","name":"value","type":"bool"}],"name":"addToBlacklist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"token","type":"address"}],"name":"buySale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimReuni","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"conf","type":"uint256"},{"internalType":"uint256","name":"lock_option","type":"uint256"}],"name":"setLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"decimals","type":"uint256"}],"name":"setReuniToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"new_owner","type":"address"}],"name":"transferOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"reunitTreasury","type":"address"}],"name":"updateTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"token","type":"address"}],"name":"withdrawToTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052620f4240600755600060085560006009556000600a55670de0b6b3a7640000600b556000600c5534801561003757600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620f42406003600073c2132d05d31c914a87c6611c10748aeb04b58e8f73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550620f424060036000732791bca1f2de4661ed88a30c99a7a9449aa8417473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550670de0b6b3a764000060036000738f3cf7ad23cd3cadbd9735aff958023239c6a06373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506120a48061019d6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063844b4a55116100b8578063b61d115f1161007c578063b61d115f1461032a578063be0ebe6614610334578063c9cfa07314610352578063cd9085c114610370578063d4f359c61461038c578063f298f42c146103bc57610137565b8063844b4a55146102845780638e26d2aa146102a0578063973c4597146102be57806398a5697d146102dc5780639c4cdf83146102fa57610137565b806361113676116100ff57806361113676146101e25780636af3bf4c1461021257806371c53bf6146102305780637f51bb1f1461024c5780638245c6c61461026857610137565b806304b932dc1461013c578063117803e31461016c578063305be60b1461018a5780634fb2e45d146101a85780635fd50de1146101c4575b600080fd5b61015660048036038101906101519190611573565b6103d8565b60405161016391906115b9565b60405180910390f35b6101746103f0565b60405161018191906115e3565b60405180910390f35b610192610414565b60405161019f91906115b9565b60405180910390f35b6101c260048036038101906101bd9190611573565b61041a565b005b6101cc6104eb565b6040516101d991906115b9565b60405180910390f35b6101fc60048036038101906101f79190611573565b6104f1565b60405161020991906115b9565b60405180910390f35b61021a610509565b60405161022791906115b9565b60405180910390f35b61024a6004803603810190610245919061162a565b61050f565b005b61026660048036038101906102619190611573565b61088f565b005b610282600480360381019061027d919061166a565b610961565b005b61029e600480360381019061029991906116aa565b610a8b565b005b6102a8610b65565b6040516102b591906115b9565b60405180910390f35b6102c6610b6b565b6040516102d391906115e3565b60405180910390f35b6102e4610b91565b6040516102f191906115b9565b60405180910390f35b610314600480360381019061030f9190611573565b610b97565b6040516103219190611705565b60405180910390f35b610332610bb7565b005b61033c610f12565b60405161034991906115b9565b60405180910390f35b61035a610f18565b60405161036791906115e3565b60405180910390f35b61038a6004803603810190610385919061162a565b610f3e565b005b6103a660048036038101906103a19190611573565b61106b565b6040516103b391906115b9565b60405180910390f35b6103d660048036038101906103d1919061174c565b611083565b005b60036020528060005260406000206000915090505481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600b5481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161049f906117e9565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60075481565b60046020528060005260406000206000915090505481565b60085481565b600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561059c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059390611855565b60405180910390fd5b6001600954146105e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105d8906118c1565b60405180910390fd5b60008211610624576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061b90611953565b60405180910390fd5b6007546008548361063591906119a2565b1115610676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161066d90611a48565b60405180910390fd5b620f4240600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054148061070c5750670de0b6b3a7640000600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054145b61074b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161074290611ab4565b60405180910390fd5b81600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461079a91906119a2565b9250508190555081600860008282546107b391906119a2565b9250508190555061083d3330600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460028661080c9190611ad4565b6108169190611ad4565b8473ffffffffffffffffffffffffffffffffffffffff1661116c909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c8360405161088391906115b9565b60405180910390a25050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461091d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610914906117e9565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146109ef576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109e6906117e9565b60405180910390fd5b60018203610a1a5760018103610a0c576001600981905550610a15565b60006009819055505b610a4e565b60028203610a455760018103610a37576001600a81905550610a40565b6000600a819055505b610a4d565b80600c819055505b5b7fbe07a521507cca2c645d787c29c03388f777175b455c57cedf0f9779a95d07518282604051610a7f929190611b16565b60405180910390a15050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610b19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b10906117e9565b60405180910390fd5b81600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600b819055505050565b60095481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a5481565b60056020528060005260406000206000915054906101000a900460ff1681565b60003390506001600a5414610c01576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf890611b8b565b60405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205411610c83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7a90611bf7565b60405180910390fd5b60006064600c5403610ce357600b54600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610cdc9190611ad4565b9050610d4c565b600c546064600b54600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610d359190611ad4565b610d3f9190611c46565b610d499190611ad4565b90505b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410610dcd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc490611ce9565b60405180910390fd5b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482610e1a9190611d09565b905080600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610e6b91906119a2565b92505081905550610ebf8382600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166111f59092919063ffffffff16565b8273ffffffffffffffffffffffffffffffffffffffff167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d482604051610f0591906115b9565b60405180910390a2505050565b600c5481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610fcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc3906117e9565b60405180910390fd5b611019600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838373ffffffffffffffffffffffffffffffffffffffff166111f59092919063ffffffff16565b8073ffffffffffffffffffffffffffffffffffffffff167ffd24705116b645d5ca183020b3f2c7ba573729cdf5e6761d5d75ae11ebb90eea8360405161105f91906115b9565b60405180910390a25050565b60066020528060005260406000206000915090505481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611111576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611108906117e9565b60405180910390fd5b80600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6111ef846323b872dd60e01b85858560405160240161118d93929190611d3d565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061127b565b50505050565b6112768363a9059cbb60e01b8484604051602401611214929190611d74565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061127b565b505050565b60006112dd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166113439092919063ffffffff16565b90506000815114806112ff5750808060200190518101906112fe9190611db2565b5b61133e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133590611e51565b60405180910390fd5b505050565b6060611352848460008561135b565b90509392505050565b6060824710156113a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139790611ee3565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516113c99190611f74565b60006040518083038185875af1925050503d8060008114611406576040519150601f19603f3d011682016040523d82523d6000602084013e61140b565b606091505b509150915061141c87838387611428565b92505050949350505050565b6060831561148a576000835103611482576114428561149d565b611481576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161147890611fd7565b60405180910390fd5b5b829050611495565b61149483836114c0565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156114d35781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611507919061204c565b60405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061154082611515565b9050919050565b61155081611535565b811461155b57600080fd5b50565b60008135905061156d81611547565b92915050565b60006020828403121561158957611588611510565b5b60006115978482850161155e565b91505092915050565b6000819050919050565b6115b3816115a0565b82525050565b60006020820190506115ce60008301846115aa565b92915050565b6115dd81611535565b82525050565b60006020820190506115f860008301846115d4565b92915050565b611607816115a0565b811461161257600080fd5b50565b600081359050611624816115fe565b92915050565b6000806040838503121561164157611640611510565b5b600061164f85828601611615565b92505060206116608582860161155e565b9150509250929050565b6000806040838503121561168157611680611510565b5b600061168f85828601611615565b92505060206116a085828601611615565b9150509250929050565b600080604083850312156116c1576116c0611510565b5b60006116cf8582860161155e565b92505060206116e085828601611615565b9150509250929050565b60008115159050919050565b6116ff816116ea565b82525050565b600060208201905061171a60008301846116f6565b92915050565b611729816116ea565b811461173457600080fd5b50565b60008135905061174681611720565b92915050565b6000806040838503121561176357611762611510565b5b60006117718582860161155e565b925050602061178285828601611737565b9150509250929050565b600082825260208201905092915050565b7f596f7520617265206e6f7420746865206f776e65720000000000000000000000600082015250565b60006117d360158361178c565b91506117de8261179d565b602082019050919050565b60006020820190508181036000830152611802816117c6565b9050919050565b7f596f752061726520626c61636b6c697374656400000000000000000000000000600082015250565b600061183f60138361178c565b915061184a82611809565b602082019050919050565b6000602082019050818103600083015261186e81611832565b9050919050565b7f5468652070726573616c6520697320636c6f7365640000000000000000000000600082015250565b60006118ab60158361178c565b91506118b682611875565b602082019050919050565b600060208201905081810360008301526118da8161189e565b9050919050565b7f54686520616d6f756e74206d75737420626520686967686572207468616e207a60008201527f65726f0000000000000000000000000000000000000000000000000000000000602082015250565b600061193d60238361178c565b9150611948826118e1565b604082019050919050565b6000602082019050818103600083015261196c81611930565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006119ad826115a0565b91506119b8836115a0565b92508282019050808211156119d0576119cf611973565b5b92915050565b7f54686520616d6f756e742065786365656420746865206d6178696d756d20617560008201527f74686f72697a6564000000000000000000000000000000000000000000000000602082015250565b6000611a3260288361178c565b9150611a3d826119d6565b604082019050919050565b60006020820190508181036000830152611a6181611a25565b9050919050565b7f54686520746f6b656e206973206e6f7420616c6c6f7765640000000000000000600082015250565b6000611a9e60188361178c565b9150611aa982611a68565b602082019050919050565b60006020820190508181036000830152611acd81611a91565b9050919050565b6000611adf826115a0565b9150611aea836115a0565b9250828202611af8816115a0565b91508282048414831517611b0f57611b0e611973565b5b5092915050565b6000604082019050611b2b60008301856115aa565b611b3860208301846115aa565b9392505050565b7f54686520636c61696d20706572696f64206973206e6f74206f70656e00000000600082015250565b6000611b75601c8361178c565b9150611b8082611b3f565b602082019050919050565b60006020820190508181036000830152611ba481611b68565b9050919050565b7f596f752068617665206e6f7468696e6720746f20636c61696d00000000000000600082015250565b6000611be160198361178c565b9150611bec82611bab565b602082019050919050565b60006020820190508181036000830152611c1081611bd4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611c51826115a0565b9150611c5c836115a0565b925082611c6c57611c6b611c17565b5b828204905092915050565b7f596f752068617665207265616368656420746865206d6178696d756d20636c6160008201527f696d61626c6520616d6f756e7400000000000000000000000000000000000000602082015250565b6000611cd3602d8361178c565b9150611cde82611c77565b604082019050919050565b60006020820190508181036000830152611d0281611cc6565b9050919050565b6000611d14826115a0565b9150611d1f836115a0565b9250828203905081811115611d3757611d36611973565b5b92915050565b6000606082019050611d5260008301866115d4565b611d5f60208301856115d4565b611d6c60408301846115aa565b949350505050565b6000604082019050611d8960008301856115d4565b611d9660208301846115aa565b9392505050565b600081519050611dac81611720565b92915050565b600060208284031215611dc857611dc7611510565b5b6000611dd684828501611d9d565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611e3b602a8361178c565b9150611e4682611ddf565b604082019050919050565b60006020820190508181036000830152611e6a81611e2e565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000611ecd60268361178c565b9150611ed882611e71565b604082019050919050565b60006020820190508181036000830152611efc81611ec0565b9050919050565b600081519050919050565b600081905092915050565b60005b83811015611f37578082015181840152602081019050611f1c565b60008484015250505050565b6000611f4e82611f03565b611f588185611f0e565b9350611f68818560208601611f19565b80840191505092915050565b6000611f808284611f43565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000611fc1601d8361178c565b9150611fcc82611f8b565b602082019050919050565b60006020820190508181036000830152611ff081611fb4565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b600061201e82611ff7565b612028818561178c565b9350612038818560208601611f19565b61204181612002565b840191505092915050565b600060208201905081810360008301526120668184612013565b90509291505056fea264697066735822122069e7024dbee6215122b5ce4870d3f86f68478137d94b3b199c8022a97167aaec64736f6c63430008130033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.