Contract 0xB840b82503DD7AC2fD14336D8BAe15B4A14A1aF1 7

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x82273371e5fc4f26fadc9aac57bea4b4feff8b348db4269dff2e73882e46c074Withdraw All1762284722024-02-01 1:09:01110 days 19 hrs ago0x49a34a558158707973b4a576da69305a97e08a74 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00003992 0.1
0x83febd651954aa0eee17a3c207184ed020d6a816085248d6dc219f67032bc615Withdraw All1334901382023-09-22 10:23:54242 days 10 hrs ago0x3b2ca6cf3f2ea187a8a8c22db74cb7982bef03b8 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.0000373 0.1
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0Deposit All663314762023-03-03 9:23:42445 days 11 hrs ago0x179e84c9d0d61643e9020e33efc2260a7bd9b183 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00004813 0.1
0xe8b84aa36f2fa64553e72d510a776117fb7d1c77a2988d8ddf1eef0cbd010d84Withdraw636598882023-02-23 4:30:32453 days 16 hrs ago0x009d1f1f33eb62ec0b48517903cee1a5e4b78303 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00006549 0.1
0xe1b7ea6a3aeeb2ca97b31569eb370a5aa3e908d80f239bcfe79ce4f865750b1eDeposit All615596342023-02-16 20:06:03460 days 47 mins ago0x009d1f1f33eb62ec0b48517903cee1a5e4b78303 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00007022 0.1
0xfac02a7908fb0b13e5e3a69f217f6ab159c3598ba65ea5d63059b58bc100d543Deposit All573444042023-02-02 5:45:39474 days 15 hrs ago0x3b2ca6cf3f2ea187a8a8c22db74cb7982bef03b8 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00004339 0.1
0xe311130c4926ef3998f063a9945c1e2361763f10ba8db7462e5f582b25047599Withdraw All573430932023-02-02 5:38:54474 days 15 hrs ago0x3b2ca6cf3f2ea187a8a8c22db74cb7982bef03b8 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00003734 0.1
0x162c14ce28296273b373b6209fceec6b95500d8fc9b43a2da32799a34e889b2cWithdraw All573187602023-02-02 3:19:57474 days 17 hrs ago0x96f71f5ef424d560c9df490b453802c24d2cd705 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00003141 0.1
0xb009735ac0d9bad31b318adbbc797b71f0008a4b15b58ac3f93255bab6821adaWithdraw All573187212023-02-02 3:19:43474 days 17 hrs ago0x96f71f5ef424d560c9df490b453802c24d2cd705 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.0000485 0.1
0x15f1cb46957593100affa7dd91712b46d8677aac9d284a6c73e56f0721885f13Deposit All564383852023-01-29 19:20:08478 days 1 hr ago0x179e84c9d0d61643e9020e33efc2260a7bd9b183 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00005091 0.1
0x35f3f30f937aaa005a09989274bf3382a977ff9654853d7e0271e55c21c82d9aWithdraw All563285312023-01-29 9:59:07478 days 10 hrs ago0xb567a8199a09a22a07047bd82fa0b254fb3f8df7 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00002422 0.1
0x28da4c2997ebab8e1ffd416d337d41d53ba362d052e735acc9db59122b8e338fDeposit All558088742023-01-27 8:18:06480 days 12 hrs ago0x179e84c9d0d61643e9020e33efc2260a7bd9b183 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00004015 0.1
0x01c89d507d337b17c03d2b5d657795d4bfe06d36a07ae9a30b7fbb593df130c4Withdraw All557535292023-01-27 2:56:37480 days 17 hrs ago0x40ee2afbfbc4286b25e2a194920c7d9591eef9dc IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00004669 0.1
0x0ea1273b4a699e36ed508fc1e2cb52f70a82c2f6ed8bfc590eda72312930571bDeposit All553735332023-01-25 13:59:59482 days 6 hrs ago0x179e84c9d0d61643e9020e33efc2260a7bd9b183 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00004242 0.1
0x74380454d1123545228cc22decea83416ffdca1217c90bf323201f4def38ee60Deposit All553255612023-01-25 9:19:58482 days 11 hrs ago0x179e84c9d0d61643e9020e33efc2260a7bd9b183 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00003955 0.1
0x120a70b7462c9105aa2c4322dd7f3d1e0a9d1d6cd7057519f058029f1e64c648Deposit All552872222023-01-25 4:42:21482 days 16 hrs ago0x40ee2afbfbc4286b25e2a194920c7d9591eef9dc IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00003871 0.1
0xf9dd239384746c72035db495f9d03ce7c497dbf77f47a189ee6668d7fc9f366eDeposit All552671032023-01-25 2:08:27482 days 18 hrs ago0x96f71f5ef424d560c9df490b453802c24d2cd705 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00004836 0.1
0x7eca21a64d2df8730ef93ae069929b17fb7f3f5cccd39e2bb5ca4985488fcd52Deposit All552666462023-01-25 2:05:18482 days 18 hrs ago0x3b2ca6cf3f2ea187a8a8c22db74cb7982bef03b8 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.00004958 0.1
0x7776ae05d6685fd56cf86ce5db08e385d6a754850efde002e650a06627f9a927Deposit All552525562023-01-25 0:25:41482 days 20 hrs ago0x179e84c9d0d61643e9020e33efc2260a7bd9b183 IN  0xb840b82503dd7ac2fd14336d8bae15b4a14a1af10 ETH0.0000602 0.1
0x69ec984879db4260b296b9fb21ee98156281c451c7f421d4737fd456e0298e520x60806040552523162023-01-25 0:23:58482 days 20 hrs ago0x179e84c9d0d61643e9020e33efc2260a7bd9b183 IN  Contract Creation0 ETH0.00126376 0.1
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0xfb1f65955e168e0ef500b170eed4a4efeb99ae320 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0xfb1f65955e168e0ef500b170eed4a4efeb99ae320 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0xfb1f65955e168e0ef500b170eed4a4efeb99ae320 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0xfb1f65955e168e0ef500b170eed4a4efeb99ae320 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0xfb1f65955e168e0ef500b170eed4a4efeb99ae320 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0xfb1f65955e168e0ef500b170eed4a4efeb99ae320 ETH
0xfc84955affed9d6343b6f169353c6a9530498c0c7e9713ed43d0e6840fc54fe0663314762023-03-03 9:23:42445 days 11 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xe8b84aa36f2fa64553e72d510a776117fb7d1c77a2988d8ddf1eef0cbd010d84636598882023-02-23 4:30:32453 days 16 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0xfb1f65955e168e0ef500b170eed4a4efeb99ae320 ETH
0xe8b84aa36f2fa64553e72d510a776117fb7d1c77a2988d8ddf1eef0cbd010d84636598882023-02-23 4:30:32453 days 16 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xe8b84aa36f2fa64553e72d510a776117fb7d1c77a2988d8ddf1eef0cbd010d84636598882023-02-23 4:30:32453 days 16 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0xfb1f65955e168e0ef500b170eed4a4efeb99ae320 ETH
0xe8b84aa36f2fa64553e72d510a776117fb7d1c77a2988d8ddf1eef0cbd010d84636598882023-02-23 4:30:32453 days 16 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xe8b84aa36f2fa64553e72d510a776117fb7d1c77a2988d8ddf1eef0cbd010d84636598882023-02-23 4:30:32453 days 16 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xe8b84aa36f2fa64553e72d510a776117fb7d1c77a2988d8ddf1eef0cbd010d84636598882023-02-23 4:30:32453 days 16 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0xfb1f65955e168e0ef500b170eed4a4efeb99ae320 ETH
0xe8b84aa36f2fa64553e72d510a776117fb7d1c77a2988d8ddf1eef0cbd010d84636598882023-02-23 4:30:32453 days 16 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
0xe8b84aa36f2fa64553e72d510a776117fb7d1c77a2988d8ddf1eef0cbd010d84636598882023-02-23 4:30:32453 days 16 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0xfb1f65955e168e0ef500b170eed4a4efeb99ae320 ETH
0xe8b84aa36f2fa64553e72d510a776117fb7d1c77a2988d8ddf1eef0cbd010d84636598882023-02-23 4:30:32453 days 16 hrs ago 0xb840b82503dd7ac2fd14336d8bae15b4a14a1af1 0x50a25b17b190f41266a00d5abe977299b4386d5b0 ETH
[ Download CSV Export 
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xe58907e40E27c4efBd715c5B73758533842fAf71
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
HornyVault

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

File 2 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 4 of 10 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-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 5 of 10 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

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

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

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

File 6 of 10 : 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 7 of 10 : 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/draft-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;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    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));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    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");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    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");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 8 of 10 : 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
     * ====
     *
     * [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://diligence.consensys.net/posts/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 9 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 10 of 10 : HornyVault.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.13;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface IStrategy { 
    function vault() external view returns (address);
    function want() external view returns (IERC20);
    function beforeDeposit() external;
    function deposit() external;
    function withdraw(uint256) external;
    function balanceOf() external view returns (uint256);
    function harvest() external;
    function retireStrat() external;
    function panic() external;
    function pause() external;
    function unpause() external;
    function paused() external view returns (bool);
}

pragma solidity 0.8.13;

contract HornyVault is ERC20, Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    struct StratCandidate {
        address implementation;
        uint proposedTime;
    }

    IStrategy public strategy;
    StratCandidate public stratCandidate;
    uint256 constant approvalDelay = 86400;
    uint256 deploymentTime;

    address public strategist;
    bool migrated = false;

    event NewStratCandidate(address implementation);
    event UpgradeStrat(address implementation);
    event StrategistMigration(bool boolean, address newStrategist);
    event IncaseTokensGetStuck(address caller, uint256 amount, address token);

    constructor (
        IStrategy _strategy,
        string memory _name,
        string memory _symbol
    ) ERC20(
        _name,
        _symbol
    ) {
        strategy = _strategy;
        strategist = msg.sender;
        deploymentTime = block.timestamp;
    }

    function want() public view returns (IERC20) {
        return IERC20(IStrategy(strategy).want());
    }

    function balance() public view returns (uint) {
        return want().balanceOf(address(this)) + IStrategy(strategy).balanceOf();
    }

    function available() public view returns (uint256) {
        return want().balanceOf(address(this));
    }

    function getPricePerFullShare() public view returns (uint256) {
        return totalSupply() == 0 ? 1e18 : balance() * 1e18 / totalSupply();
    }

    function depositAll() external {
        deposit(want().balanceOf(msg.sender));
    }

    function deposit(uint _amount) public nonReentrant {
        require(_amount > 0, "Invalid amount");
        IStrategy(strategy).beforeDeposit();

        uint256 _pool = balance();
        want().safeTransferFrom(msg.sender, address(this), _amount);
        earn();
        uint256 _after = balance();
        _amount = _after - _pool; // Additional check for deflationary tokens
        uint256 shares = 0;
        if (totalSupply() == 0) {
            shares = _amount;
        } else {
            shares = (_amount * totalSupply()) / _pool;
        }
        _mint(msg.sender, shares);
    }

    function earn() internal {
        uint _bal = available();
        want().safeTransfer(address(strategy), _bal);
        IStrategy(strategy).deposit();
    }

    /**
     * @dev A helper function to call withdraw() with all the sender's funds.
     */
    function withdrawAll() external {
        withdraw(balanceOf(msg.sender));
    }

    /**
     * @dev Function to exit the system. The vault will withdraw the required tokens
     * from the strategy and pay up the token holder. A proportional number of IOU
     * tokens are burned in the process.
     */
    function withdraw(uint256 _shares) public {
        uint256 r = (balance() * _shares) / totalSupply();
        _burn(msg.sender, _shares);

        uint b = want().balanceOf(address(this));
        if (b < r) {
            uint _withdraw = r - b;
            IStrategy(strategy).withdraw(_withdraw);
            uint _after = want().balanceOf(address(this));
            uint _diff = _after - b;
            if (_diff < _withdraw) {
                r = b + _diff;
            }
        }

        want().safeTransfer(msg.sender, r);
    }

    /** 
     * @dev Sets the candidate for the new strat to use with this vault.
     * @param _implementation The address of the candidate strategy.  
     */
    function proposeStrat(address _implementation) public onlyOwner {
        require(address(this) == IStrategy(_implementation).vault(), "Proposal not valid for this Vault");
        stratCandidate = StratCandidate({
            implementation: _implementation,
            proposedTime: block.timestamp
         });

        emit NewStratCandidate(_implementation);
    }

    /** 
     * @dev It switches the active strat for the strat candidate. After upgrading, the 
     * candidate implementation is set to the 0x00 address, and proposedTime to a time 
     * happening in +100 years for safety. 
     */

    function upgradeStrat() public onlyOwner {
        require(stratCandidate.implementation != address(0), "There is no candidate");
        require(stratCandidate.proposedTime + approvalDelay < block.timestamp, "Delay has not passed");

        emit UpgradeStrat(stratCandidate.implementation);

        IStrategy(strategy).retireStrat();
        strategy = IStrategy(stratCandidate.implementation);
        stratCandidate.implementation = address(0);
        stratCandidate.proposedTime = 5000000000;

        earn();
    }

    /**
     * @dev Rescues random funds stuck that the strat can't handle.
     * @param _token address of the token to rescue.
     */
    function inCaseTokensGetStuck(address _token) external onlyOwner {
        require(_token != address(want()), "!token");

        uint256 amount = IERC20(_token).balanceOf(address(this));
        IERC20(_token).safeTransfer(msg.sender, amount);

        emit IncaseTokensGetStuck(msg.sender, amount, _token);
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"contract IStrategy","name":"_strategy","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"IncaseTokensGetStuck","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"implementation","type":"address"}],"name":"NewStratCandidate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"boolean","type":"bool"},{"indexed":false,"internalType":"address","name":"newStrategist","type":"address"}],"name":"StrategistMigration","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"implementation","type":"address"}],"name":"UpgradeStrat","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"inCaseTokensGetStuck","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_implementation","type":"address"}],"name":"proposeStrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stratCandidate","outputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"uint256","name":"proposedTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategist","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"contract IStrategy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upgradeStrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101c45760003560e01c806377c7b8fc116100f9578063b69ef8a811610097578063de5f626811610071578063de5f6268146103ab578063def68a9c146103b3578063e6685244146103c6578063f2fde38b146103ce57600080fd5b8063b69ef8a81461037d578063b6b55f2514610385578063dd62ed3e1461039857600080fd5b806395d89b41116100d357806395d89b411461033c578063a457c2d714610344578063a8c62e7614610357578063a9059cbb1461036a57600080fd5b806377c7b8fc1461031b578063853828b6146103235780638da5cb5b1461032b57600080fd5b8063313ce567116101665780635b12ff9b116101405780635b12ff9b146102a157806370a08231146102b4578063715018a6146102dd57806376dfabb8146102e557600080fd5b8063313ce56714610277578063395093511461028657806348a0d7541461029957600080fd5b80631f1fcd51116101a25780631f1fcd511461021c5780631fe4a6861461023c57806323b872dd1461024f5780632e1a7d4d1461026257600080fd5b806306fdde03146101c9578063095ea7b3146101e757806318160ddd1461020a575b600080fd5b6101d16103e1565b6040516101de91906119d2565b60405180910390f35b6101fa6101f5366004611a1a565b610473565b60405190151581526020016101de565b6002545b6040519081526020016101de565b61022461048b565b6040516001600160a01b0390911681526020016101de565b600b54610224906001600160a01b031681565b6101fa61025d366004611a46565b6104fe565b610275610270366004611a87565b610522565b005b604051601281526020016101de565b6101fa610294366004611a1a565b6106fe565b61020e610720565b6102756102af366004611aa0565b610794565b61020e6102c2366004611aa0565b6001600160a01b031660009081526020819052604090205490565b6102756108d4565b6008546009546102fc916001600160a01b03169082565b604080516001600160a01b0390931683526020830191909152016101de565b61020e6108e8565b61027561092c565b6005546001600160a01b0316610224565b6101d1610945565b6101fa610352366004611a1a565b610954565b600754610224906001600160a01b031681565b6101fa610378366004611a1a565b6109cf565b61020e6109dd565b610275610393366004611a87565b610ac7565b61020e6103a6366004611ac4565b610c17565b610275610c42565b6102756103c1366004611aa0565b610cb7565b610275610ddd565b6102756103dc366004611aa0565b610f6a565b6060600380546103f090611afd565b80601f016020809104026020016040519081016040528092919081815260200182805461041c90611afd565b80156104695780601f1061043e57610100808354040283529160200191610469565b820191906000526020600020905b81548152906001019060200180831161044c57829003601f168201915b5050505050905090565b600033610481818585610fe0565b5060019392505050565b60075460408051631f1fcd5160e01b815290516000926001600160a01b031691631f1fcd519160048083019260209291908290030181865afa1580156104d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f99190611b37565b905090565b60003361050c858285611104565b61051785858561117e565b506001949350505050565b600061052d60025490565b826105366109dd565b6105409190611b6a565b61054a9190611b89565b90506105563383611322565b600061056061048b565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa1580156105a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ca9190611bab565b9050818110156106dc5760006105e08284611bc4565b600754604051632e1a7d4d60e01b8152600481018390529192506001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561062757600080fd5b505af115801561063b573d6000803e3d6000fd5b50505050600061064961048b565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa15801561068f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106b39190611bab565b905060006106c18483611bc4565b9050828110156106d8576106d58185611bdb565b94505b5050505b6106f933836106e961048b565b6001600160a01b03169190611454565b505050565b6000336104818185856107118383610c17565b61071b9190611bdb565b610fe0565b600061072a61048b565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015610770573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f99190611bab565b61079c6114b7565b806001600160a01b031663fbfa77cf6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fe9190611b37565b6001600160a01b0316306001600160a01b03161461086d5760405162461bcd60e51b815260206004820152602160248201527f50726f706f73616c206e6f742076616c696420666f722074686973205661756c6044820152601d60fa1b60648201526084015b60405180910390fd5b6040805180820182526001600160a01b038316808252426020928301819052600880546001600160a01b0319168317905560095591519182527f1aae2ec5647db56da2d513de40528ba3565c6057525637050660c4323bbac7df910160405180910390a150565b6108dc6114b7565b6108e66000611511565b565b60006108f360025490565b1561091f576002546109036109dd565b61091590670de0b6b3a7640000611b6a565b6104f99190611b89565b50670de0b6b3a764000090565b336000908152602081905260409020546108e690610522565b6060600480546103f090611afd565b600033816109628286610c17565b9050838110156109c25760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610864565b6105178286868403610fe0565b60003361048181858561117e565b6007546040805163722713f760e01b815290516000926001600160a01b03169163722713f79160048083019260209291908290030181865afa158015610a27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4b9190611bab565b610a5361048b565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015610a99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abd9190611bab565b6104f99190611bdb565b610acf611563565b60008111610b105760405162461bcd60e51b815260206004820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606401610864565b600760009054906101000a90046001600160a01b03166001600160a01b031663573fef0a6040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610b6057600080fd5b505af1158015610b74573d6000803e3d6000fd5b505050506000610b826109dd565b9050610ba3333084610b9261048b565b6001600160a01b03169291906115bc565b610bab6115f4565b6000610bb56109dd565b9050610bc18282611bc4565b92506000610bce60025490565b600003610bdc575082610bfd565b82610be660025490565b610bf09086611b6a565b610bfa9190611b89565b90505b610c073382611685565b505050610c146001600655565b50565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6108e6610c4d61048b565b6040516370a0823160e01b81523360048201526001600160a01b0391909116906370a0823190602401602060405180830381865afa158015610c93573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103939190611bab565b610cbf6114b7565b610cc761048b565b6001600160a01b0316816001600160a01b031603610d105760405162461bcd60e51b815260206004820152600660248201526510ba37b5b2b760d11b6044820152606401610864565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610d57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7b9190611bab565b9050610d916001600160a01b0383163383611454565b60408051338152602081018390526001600160a01b0384168183015290517feff27cfd2d7a41dea0adca3a2b0d1932753c33d6c3f510acf8ed771ff39119829181900360600190a15050565b610de56114b7565b6008546001600160a01b0316610e355760405162461bcd60e51b81526020600482015260156024820152745468657265206973206e6f2063616e64696461746560581b6044820152606401610864565b6009544290610e48906201518090611bdb565b10610e8c5760405162461bcd60e51b815260206004820152601460248201527311195b185e481a185cc81b9bdd081c185cdcd95960621b6044820152606401610864565b6008546040516001600160a01b0390911681527f7f37d440e85aba7fbf641c4bda5ca4ef669a80bffaacde2aa8d9feb1b048c82c9060200160405180910390a1600760009054906101000a90046001600160a01b03166001600160a01b031663fb6177876040518163ffffffff1660e01b8152600401600060405180830381600087803b158015610f1c57600080fd5b505af1158015610f30573d6000803e3d6000fd5b505060088054600780546001600160a01b03199081166001600160a01b03841617909155169055505064012a05f2006009556108e66115f4565b610f726114b7565b6001600160a01b038116610fd75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610864565b610c1481611511565b6001600160a01b0383166110425760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610864565b6001600160a01b0382166110a35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610864565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006111108484610c17565b90506000198114611178578181101561116b5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610864565b6111788484848403610fe0565b50505050565b6001600160a01b0383166111e25760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610864565b6001600160a01b0382166112445760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610864565b6001600160a01b038316600090815260208190526040902054818110156112bc5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610864565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611178565b6001600160a01b0382166113825760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610864565b6001600160a01b038216600090815260208190526040902054818110156113f65760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610864565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6040516001600160a01b0383166024820152604481018290526106f990849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611744565b6005546001600160a01b031633146108e65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610864565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600654036115b55760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610864565b6002600655565b6040516001600160a01b03808516602483015283166044820152606481018290526111789085906323b872dd60e01b90608401611480565b60006115fe610720565b60075490915061161a906001600160a01b0316826106e961048b565b600760009054906101000a90046001600160a01b03166001600160a01b031663d0e30db06040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561166a57600080fd5b505af115801561167e573d6000803e3d6000fd5b5050505050565b6001600160a01b0382166116db5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610864565b80600260008282546116ed9190611bdb565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000611799826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118169092919063ffffffff16565b8051909150156106f957808060200190518101906117b79190611bf3565b6106f95760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610864565b6060611825848460008561182d565b949350505050565b60608247101561188e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610864565b600080866001600160a01b031685876040516118aa9190611c15565b60006040518083038185875af1925050503d80600081146118e7576040519150601f19603f3d011682016040523d82523d6000602084013e6118ec565b606091505b50915091506118fd87838387611908565b979650505050505050565b60608315611977578251600003611970576001600160a01b0385163b6119705760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610864565b5081611825565b611825838381511561198c5781518083602001fd5b8060405162461bcd60e51b815260040161086491906119d2565b60005b838110156119c15781810151838201526020016119a9565b838111156111785750506000910152565b60208152600082518060208401526119f18160408501602087016119a6565b601f01601f19169190910160400192915050565b6001600160a01b0381168114610c1457600080fd5b60008060408385031215611a2d57600080fd5b8235611a3881611a05565b946020939093013593505050565b600080600060608486031215611a5b57600080fd5b8335611a6681611a05565b92506020840135611a7681611a05565b929592945050506040919091013590565b600060208284031215611a9957600080fd5b5035919050565b600060208284031215611ab257600080fd5b8135611abd81611a05565b9392505050565b60008060408385031215611ad757600080fd5b8235611ae281611a05565b91506020830135611af281611a05565b809150509250929050565b600181811c90821680611b1157607f821691505b602082108103611b3157634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611b4957600080fd5b8151611abd81611a05565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615611b8457611b84611b54565b500290565b600082611ba657634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611bbd57600080fd5b5051919050565b600082821015611bd657611bd6611b54565b500390565b60008219821115611bee57611bee611b54565b500190565b600060208284031215611c0557600080fd5b81518015158114611abd57600080fd5b60008251611c278184602087016119a6565b919091019291505056fea26469706673582212204acca3c5245ab1b4e956957c9e39d1f7bebc86c1ea34e9a9a323ce80741ebb8b64736f6c634300080d0033

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