ETH Price: $2,739.17 (+13.08%)
 

Overview

Max Total Supply

249,183,055.105659416028572311 wLOOKS

Holders

115 ( 0.870%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
1.075932871153038693 wLOOKS

Value
$0.00
0xd550581e0d759f8161024256890632a09915160a
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

We are an NFT marketplace.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
WrappedLooksRareToken

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 888888 runs

Other Settings:
london EvmVersion
File 1 of 14 : WrappedLooksRareToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import {LowLevelERC20Transfer} from "@looksrare/contracts-libs/contracts/lowLevelCallers/LowLevelERC20Transfer.sol";
import {ITransferManager} from "@looksrare/contracts-transfer-manager/contracts/interfaces/ITransferManager.sol";
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import {IERC4626} from "@openzeppelin/contracts/interfaces/IERC4626.sol";

import {IStakingRewards} from "./interfaces/IStakingRewards.sol";

/**
 * @title WrappedLooksRareToken
 * @notice WrappedLooksRareToken is a LOOKS wrapper that is used for staking and auto-compounding.
 * @author LooksRare protocol team (👀,💎)
 */
contract WrappedLooksRareToken is ERC20, LowLevelERC20Transfer {
    /**
     * @notice The cooldown period for unwrap requests.
     */
    uint256 public constant UNWRAP_REQUEST_COOLDOWN = 1 weeks;

    /**
     * @notice The amount after fee for instant unwrap in basis points.
     */
    uint256 public constant INSTANT_UNWRAP_AMOUNT_AFTER_FEE_IN_BASIS_POINTS = 9_500;

    /**
     * @notice The LOOKS token address.
     */
    address public immutable LOOKS;

    /**
     * @notice The transfer manager to handle LOOKS approvals and transfers.
     */
    ITransferManager public immutable TRANSFER_MANAGER;

    /**
     * @dev The deployer of the contract. Only used for initialization.
     */
    address private immutable DEPLOYER;

    /**
     * @notice A unwrap request.
     * @param amount The amount of LOOKS to unwrap.
     * @param timestamp The timestamp of the unwrap request.
     */
    struct UnwrapRequest {
        uint216 amount;
        uint40 timestamp;
    }

    mapping(address requester => UnwrapRequest) public unwrapRequests;

    /**
     * @notice The staking rewards contract.
     */
    IStakingRewards public stakingRewards;

    /**
     * @notice The auto-compounder contract.
     */
    IERC4626 public autoCompounder;

    /**
     * @notice Whether the contract has been initialized. Initialize cannot be called twice.
     */
    bool private initialized;

    event Wrapped(address indexed wrapper, uint256 amount);
    event Initialized(address _stakingRewards, address _autoCompounder);
    event Staked(address indexed staker, uint256 amount);
    event AutoCompounded(address indexed staker, uint256 amount);
    event UnwrapRequestSubmitted(address indexed requester, uint256 amount);
    event UnwrapRequestCancelled(address indexed requester, uint256 amount);
    event UnwrapRequestCompleted(address indexed requester, uint256 amount);
    event InstantUnwrap(address indexed requester, uint256 amount);

    error WrappedLooksRareToken__AlreadyInitialized();
    error WrappedLooksRareToken__InsufficientBalance();
    error WrappedLooksRareToken__InvalidAddress();
    error WrappedLooksRareToken__NoUnwrapRequest();
    error WrappedLooksRareToken__OngoingUnwrapRequest();
    error WrappedLooksRareToken__TooEarlyToCompleteUnwrapRequest();
    error WrappedLooksRareToken__Unauthorized();

    /**
     * @param looks LooksRare token
     * @param transferManager Transfer manager
     */
    constructor(address looks, address transferManager) ERC20("Wrapped LooksRare Token", "wLOOKS") {
        LOOKS = looks;
        TRANSFER_MANAGER = ITransferManager(transferManager);
        DEPLOYER = msg.sender;
    }

    /**
     * @notice Set staking rewards and auto-compounder. Can only be called once.
     * @param _stakingRewards Staking rewards
     * @param _autoCompounder Auto-compounder
     */
    function initialize(address _stakingRewards, address _autoCompounder) external {
        if (msg.sender != DEPLOYER) {
            revert WrappedLooksRareToken__Unauthorized();
        }

        if (initialized) {
            revert WrappedLooksRareToken__AlreadyInitialized();
        }

        initialized = true;

        stakingRewards = IStakingRewards(_stakingRewards);
        autoCompounder = IERC4626(_autoCompounder);

        emit Initialized(_stakingRewards, _autoCompounder);
    }

    /**
     * @notice Wrap LOOKS to receive wLOOKS
     * @param amount Wrap amount
     */
    function wrap(uint256 amount) external {
        TRANSFER_MANAGER.transferERC20(LOOKS, msg.sender, address(this), amount);
        _mint(msg.sender, amount);

        emit Wrapped(msg.sender, amount);
    }

    /**
     * @notice Wrap LOOKS and deposit wLOOKS straight into StakingRewards
     * @param amount Wrap amount
     */
    function wrapAndStake(uint256 amount) external {
        TRANSFER_MANAGER.transferERC20(LOOKS, msg.sender, address(this), amount);
        _mint(address(this), amount);
        _approve(address(this), address(stakingRewards), amount);
        stakingRewards.stakeOnBehalf(amount, msg.sender);

        emit Staked(msg.sender, amount);
    }

    /**
     * @notice Wrap LOOKS and deposit wLOOKS straight into AutoCompounder
     * @param amount Wrap amount
     */
    function wrapAndAutoCompound(uint256 amount) external {
        TRANSFER_MANAGER.transferERC20(LOOKS, msg.sender, address(this), amount);
        _mint(address(this), amount);
        _approve(address(this), address(autoCompounder), amount);
        autoCompounder.deposit(amount, msg.sender);

        emit AutoCompounded(msg.sender, amount);
    }

    /**
     * @notice Submit unwrap request
     * @param amount Unwrap amount
     */
    function submitUnwrapRequest(uint216 amount) external {
        if (balanceOf(msg.sender) < amount) {
            revert WrappedLooksRareToken__InsufficientBalance();
        }

        if (unwrapRequests[msg.sender].timestamp != 0) {
            revert WrappedLooksRareToken__OngoingUnwrapRequest();
        }

        _burn(msg.sender, amount);

        unwrapRequests[msg.sender] = UnwrapRequest({amount: amount, timestamp: uint40(block.timestamp)});

        emit UnwrapRequestSubmitted(msg.sender, amount);
    }

    /**
     * @notice Complete unwrap request to receive LOOKS
     */
    function completeUnwrapRequest() external {
        uint256 requestedAt = unwrapRequests[msg.sender].timestamp;
        if (requestedAt == 0) {
            revert WrappedLooksRareToken__NoUnwrapRequest();
        }

        unchecked {
            if (requestedAt + UNWRAP_REQUEST_COOLDOWN > block.timestamp) {
                revert WrappedLooksRareToken__TooEarlyToCompleteUnwrapRequest();
            }
        }

        uint256 amount = unwrapRequests[msg.sender].amount;

        unwrapRequests[msg.sender].amount = 0;
        unwrapRequests[msg.sender].timestamp = 0;

        _executeERC20DirectTransfer(LOOKS, msg.sender, amount);

        emit UnwrapRequestCompleted(msg.sender, amount);
    }

    /**
     * @notice Cancel unwrap request and get back wLOOKS
     */
    function cancelUnwrapRequest() external {
        uint256 requestedAt = unwrapRequests[msg.sender].timestamp;
        if (requestedAt == 0) {
            revert WrappedLooksRareToken__NoUnwrapRequest();
        }

        uint256 amount = unwrapRequests[msg.sender].amount;

        unwrapRequests[msg.sender].amount = 0;
        unwrapRequests[msg.sender].timestamp = 0;

        _mint(msg.sender, amount);

        emit UnwrapRequestCancelled(msg.sender, amount);
    }

    /**
     * @notice Unwrap LOOKS instantly. 5% of the unwrap amount is burned.
     * @param amount Unwrap amount
     */
    function instantUnwrap(uint256 amount) external {
        if (balanceOf(msg.sender) < amount) {
            revert WrappedLooksRareToken__InsufficientBalance();
        }

        _burn(msg.sender, amount);

        uint256 transferAmount = (amount * INSTANT_UNWRAP_AMOUNT_AFTER_FEE_IN_BASIS_POINTS) / 10_000;
        _executeERC20DirectTransfer(LOOKS, msg.sender, transferAmount);
        unchecked {
            _executeERC20DirectTransfer(LOOKS, 0x000000000000000000000000000000000000dEaD, amount - transferAmount);
        }

        emit InstantUnwrap(msg.sender, amount);
    }

    function transfer(address to, uint256 value) public override returns (bool) {
        if (to == address(this)) {
            revert WrappedLooksRareToken__InvalidAddress();
        }
        return super.transfer(to, value);
    }

    function transferFrom(address from, address to, uint256 value) public override returns (bool) {
        if (to == address(this)) {
            revert WrappedLooksRareToken__InvalidAddress();
        }
        return super.transferFrom(from, to, value);
    }
}

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

// Interfaces
import {IERC20} from "../interfaces/generic/IERC20.sol";

// Errors
import {ERC20TransferFail, ERC20TransferFromFail} from "../errors/LowLevelErrors.sol";
import {NotAContract} from "../errors/GenericErrors.sol";

/**
 * @title LowLevelERC20Transfer
 * @notice This contract contains low-level calls to transfer ERC20 tokens.
 * @author LooksRare protocol team (👀,💎)
 */
contract LowLevelERC20Transfer {
    /**
     * @notice Execute ERC20 transferFrom
     * @param currency Currency address
     * @param from Sender address
     * @param to Recipient address
     * @param amount Amount to transfer
     */
    function _executeERC20TransferFrom(address currency, address from, address to, uint256 amount) internal {
        if (currency.code.length == 0) {
            revert NotAContract();
        }

        (bool status, bytes memory data) = currency.call(abi.encodeCall(IERC20.transferFrom, (from, to, amount)));

        if (!status) {
            revert ERC20TransferFromFail();
        }

        if (data.length > 0) {
            if (!abi.decode(data, (bool))) {
                revert ERC20TransferFromFail();
            }
        }
    }

    /**
     * @notice Execute ERC20 (direct) transfer
     * @param currency Currency address
     * @param to Recipient address
     * @param amount Amount to transfer
     */
    function _executeERC20DirectTransfer(address currency, address to, uint256 amount) internal {
        if (currency.code.length == 0) {
            revert NotAContract();
        }

        (bool status, bytes memory data) = currency.call(abi.encodeCall(IERC20.transfer, (to, amount)));

        if (!status) {
            revert ERC20TransferFail();
        }

        if (data.length > 0) {
            if (!abi.decode(data, (bool))) {
                revert ERC20TransferFail();
            }
        }
    }
}

File 3 of 14 : ITransferManager.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

// Enums
import {TokenType} from "../enums/TokenType.sol";

/**
 * @title ITransferManager
 * @author LooksRare protocol team (👀,💎)
 */
interface ITransferManager {
    /**
     * @notice This struct is only used for transferBatchItemsAcrossCollections.
     * @param tokenAddress Token address
     * @param tokenType 0 for ERC721, 1 for ERC1155
     * @param itemIds Array of item ids to transfer
     * @param amounts Array of amounts to transfer
     */
    struct BatchTransferItem {
        address tokenAddress;
        TokenType tokenType;
        uint256[] itemIds;
        uint256[] amounts;
    }

    /**
     * @notice It is emitted if operators' approvals to transfer NFTs are granted by a user.
     * @param user Address of the user
     * @param operators Array of operator addresses
     */
    event ApprovalsGranted(address user, address[] operators);

    /**
     * @notice It is emitted if operators' approvals to transfer NFTs are revoked by a user.
     * @param user Address of the user
     * @param operators Array of operator addresses
     */
    event ApprovalsRemoved(address user, address[] operators);

    /**
     * @notice It is emitted if a new operator is added to the global allowlist.
     * @param operator Operator address
     */
    event OperatorAllowed(address operator);

    /**
     * @notice It is emitted if an operator is removed from the global allowlist.
     * @param operator Operator address
     */
    event OperatorRemoved(address operator);

    /**
     * @notice It is returned if the operator to approve has already been approved by the user.
     */
    error OperatorAlreadyApprovedByUser();

    /**
     * @notice It is returned if the operator to revoke has not been previously approved by the user.
     */
    error OperatorNotApprovedByUser();

    /**
     * @notice It is returned if the transfer caller is already allowed by the owner.
     * @dev This error can only be returned for owner operations.
     */
    error OperatorAlreadyAllowed();

    /**
     * @notice It is returned if the operator to approve is not in the global allowlist defined by the owner.
     * @dev This error can be returned if the user tries to grant approval to an operator address not in the
     *      allowlist or if the owner tries to remove the operator from the global allowlist.
     */
    error OperatorNotAllowed();

    /**
     * @notice It is returned if the transfer caller is invalid.
     *         For a transfer called to be valid, the operator must be in the global allowlist and
     *         approved by the 'from' user.
     */
    error TransferCallerInvalid();

    /**
     * @notice This function transfers ERC20 tokens.
     * @param tokenAddress Token address
     * @param from Sender address
     * @param to Recipient address
     * @param amount amount
     */
    function transferERC20(
        address tokenAddress,
        address from,
        address to,
        uint256 amount
    ) external;

    /**
     * @notice This function transfers a single item for a single ERC721 collection.
     * @param tokenAddress Token address
     * @param from Sender address
     * @param to Recipient address
     * @param itemId Item ID
     */
    function transferItemERC721(
        address tokenAddress,
        address from,
        address to,
        uint256 itemId
    ) external;

    /**
     * @notice This function transfers items for a single ERC721 collection.
     * @param tokenAddress Token address
     * @param from Sender address
     * @param to Recipient address
     * @param itemIds Array of itemIds
     * @param amounts Array of amounts
     */
    function transferItemsERC721(
        address tokenAddress,
        address from,
        address to,
        uint256[] calldata itemIds,
        uint256[] calldata amounts
    ) external;

    /**
     * @notice This function transfers a single item for a single ERC1155 collection.
     * @param tokenAddress Token address
     * @param from Sender address
     * @param to Recipient address
     * @param itemId Item ID
     * @param amount Amount
     */
    function transferItemERC1155(
        address tokenAddress,
        address from,
        address to,
        uint256 itemId,
        uint256 amount
    ) external;

    /**
     * @notice This function transfers items for a single ERC1155 collection.
     * @param tokenAddress Token address
     * @param from Sender address
     * @param to Recipient address
     * @param itemIds Array of itemIds
     * @param amounts Array of amounts
     * @dev It does not allow batch transferring if from = msg.sender since native function should be used.
     */
    function transferItemsERC1155(
        address tokenAddress,
        address from,
        address to,
        uint256[] calldata itemIds,
        uint256[] calldata amounts
    ) external;

    /**
     * @notice This function transfers items across an array of tokens that can be ERC20, ERC721 and ERC1155.
     * @param items Array of BatchTransferItem
     * @param from Sender address
     * @param to Recipient address
     */
    function transferBatchItemsAcrossCollections(
        BatchTransferItem[] calldata items,
        address from,
        address to
    ) external;

    /**
     * @notice This function allows a user to grant approvals for an array of operators.
     *         Users cannot grant approvals if the operator is not allowed by this contract's owner.
     * @param operators Array of operator addresses
     * @dev Each operator address must be globally allowed to be approved.
     */
    function grantApprovals(address[] calldata operators) external;

    /**
     * @notice This function allows a user to revoke existing approvals for an array of operators.
     * @param operators Array of operator addresses
     * @dev Each operator address must be approved at the user level to be revoked.
     */
    function revokeApprovals(address[] calldata operators) external;

    /**
     * @notice This function allows an operator to be added for the shared transfer system.
     *         Once the operator is allowed, users can grant NFT approvals to this operator.
     * @param operator Operator address to allow
     * @dev Only callable by owner.
     */
    function allowOperator(address operator) external;

    /**
     * @notice This function allows the user to remove an operator for the shared transfer system.
     * @param operator Operator address to remove
     * @dev Only callable by owner.
     */
    function removeOperator(address operator) external;

    /**
     * @notice This returns whether the user has approved the operator address.
     * The first address is the user and the second address is the operator.
     */
    function hasUserApprovedOperator(address user, address operator) external view returns (bool);
}

File 4 of 14 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.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}.
 *
 * 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].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * 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.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * 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 returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 default value returned by this function, unless
     * it's 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 returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual 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 `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

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

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` 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 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        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 `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` 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.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` 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.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

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

File 5 of 14 : IERC4626.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC4626.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";
import {IERC20Metadata} from "../token/ERC20/extensions/IERC20Metadata.sol";

/**
 * @dev Interface of the ERC4626 "Tokenized Vault Standard", as defined in
 * https://eips.ethereum.org/EIPS/eip-4626[ERC-4626].
 */
interface IERC4626 is IERC20, IERC20Metadata {
    event Deposit(address indexed sender, address indexed owner, uint256 assets, uint256 shares);

    event Withdraw(
        address indexed sender,
        address indexed receiver,
        address indexed owner,
        uint256 assets,
        uint256 shares
    );

    /**
     * @dev Returns the address of the underlying token used for the Vault for accounting, depositing, and withdrawing.
     *
     * - MUST be an ERC-20 token contract.
     * - MUST NOT revert.
     */
    function asset() external view returns (address assetTokenAddress);

    /**
     * @dev Returns the total amount of the underlying asset that is “managed” by Vault.
     *
     * - SHOULD include any compounding that occurs from yield.
     * - MUST be inclusive of any fees that are charged against assets in the Vault.
     * - MUST NOT revert.
     */
    function totalAssets() external view returns (uint256 totalManagedAssets);

    /**
     * @dev Returns the amount of shares that the Vault would exchange for the amount of assets provided, in an ideal
     * scenario where all the conditions are met.
     *
     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.
     * - MUST NOT show any variations depending on the caller.
     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
     * - MUST NOT revert.
     *
     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the
     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and
     * from.
     */
    function convertToShares(uint256 assets) external view returns (uint256 shares);

    /**
     * @dev Returns the amount of assets that the Vault would exchange for the amount of shares provided, in an ideal
     * scenario where all the conditions are met.
     *
     * - MUST NOT be inclusive of any fees that are charged against assets in the Vault.
     * - MUST NOT show any variations depending on the caller.
     * - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
     * - MUST NOT revert.
     *
     * NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the
     * “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and
     * from.
     */
    function convertToAssets(uint256 shares) external view returns (uint256 assets);

    /**
     * @dev Returns the maximum amount of the underlying asset that can be deposited into the Vault for the receiver,
     * through a deposit call.
     *
     * - MUST return a limited value if receiver is subject to some deposit limit.
     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of assets that may be deposited.
     * - MUST NOT revert.
     */
    function maxDeposit(address receiver) external view returns (uint256 maxAssets);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given
     * current on-chain conditions.
     *
     * - MUST return as close to and no more than the exact amount of Vault shares that would be minted in a deposit
     *   call in the same transaction. I.e. deposit should return the same or more shares as previewDeposit if called
     *   in the same transaction.
     * - MUST NOT account for deposit limits like those returned from maxDeposit and should always act as though the
     *   deposit would be accepted, regardless if the user has enough tokens approved, etc.
     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToShares and previewDeposit SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by depositing.
     */
    function previewDeposit(uint256 assets) external view returns (uint256 shares);

    /**
     * @dev Mints shares Vault shares to receiver by depositing exactly amount of underlying tokens.
     *
     * - MUST emit the Deposit event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
     *   deposit execution, and are accounted for during deposit.
     * - MUST revert if all of assets cannot be deposited (due to deposit limit being reached, slippage, the user not
     *   approving enough underlying tokens to the Vault contract, etc).
     *
     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
     */
    function deposit(uint256 assets, address receiver) external returns (uint256 shares);

    /**
     * @dev Returns the maximum amount of the Vault shares that can be minted for the receiver, through a mint call.
     * - MUST return a limited value if receiver is subject to some mint limit.
     * - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of shares that may be minted.
     * - MUST NOT revert.
     */
    function maxMint(address receiver) external view returns (uint256 maxShares);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given
     * current on-chain conditions.
     *
     * - MUST return as close to and no fewer than the exact amount of assets that would be deposited in a mint call
     *   in the same transaction. I.e. mint should return the same or fewer assets as previewMint if called in the
     *   same transaction.
     * - MUST NOT account for mint limits like those returned from maxMint and should always act as though the mint
     *   would be accepted, regardless if the user has enough tokens approved, etc.
     * - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToAssets and previewMint SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by minting.
     */
    function previewMint(uint256 shares) external view returns (uint256 assets);

    /**
     * @dev Mints exactly shares Vault shares to receiver by depositing amount of underlying tokens.
     *
     * - MUST emit the Deposit event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the mint
     *   execution, and are accounted for during mint.
     * - MUST revert if all of shares cannot be minted (due to deposit limit being reached, slippage, the user not
     *   approving enough underlying tokens to the Vault contract, etc).
     *
     * NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
     */
    function mint(uint256 shares, address receiver) external returns (uint256 assets);

    /**
     * @dev Returns the maximum amount of the underlying asset that can be withdrawn from the owner balance in the
     * Vault, through a withdraw call.
     *
     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.
     * - MUST NOT revert.
     */
    function maxWithdraw(address owner) external view returns (uint256 maxAssets);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block,
     * given current on-chain conditions.
     *
     * - MUST return as close to and no fewer than the exact amount of Vault shares that would be burned in a withdraw
     *   call in the same transaction. I.e. withdraw should return the same or fewer shares as previewWithdraw if
     *   called
     *   in the same transaction.
     * - MUST NOT account for withdrawal limits like those returned from maxWithdraw and should always act as though
     *   the withdrawal would be accepted, regardless if the user has enough shares, etc.
     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToShares and previewWithdraw SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by depositing.
     */
    function previewWithdraw(uint256 assets) external view returns (uint256 shares);

    /**
     * @dev Burns shares from owner and sends exactly assets of underlying tokens to receiver.
     *
     * - MUST emit the Withdraw event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
     *   withdraw execution, and are accounted for during withdraw.
     * - MUST revert if all of assets cannot be withdrawn (due to withdrawal limit being reached, slippage, the owner
     *   not having enough shares, etc).
     *
     * Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
     * Those methods should be performed separately.
     */
    function withdraw(uint256 assets, address receiver, address owner) external returns (uint256 shares);

    /**
     * @dev Returns the maximum amount of Vault shares that can be redeemed from the owner balance in the Vault,
     * through a redeem call.
     *
     * - MUST return a limited value if owner is subject to some withdrawal limit or timelock.
     * - MUST return balanceOf(owner) if owner is not subject to any withdrawal limit or timelock.
     * - MUST NOT revert.
     */
    function maxRedeem(address owner) external view returns (uint256 maxShares);

    /**
     * @dev Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block,
     * given current on-chain conditions.
     *
     * - MUST return as close to and no more than the exact amount of assets that would be withdrawn in a redeem call
     *   in the same transaction. I.e. redeem should return the same or more assets as previewRedeem if called in the
     *   same transaction.
     * - MUST NOT account for redemption limits like those returned from maxRedeem and should always act as though the
     *   redemption would be accepted, regardless if the user has enough shares, etc.
     * - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
     * - MUST NOT revert.
     *
     * NOTE: any unfavorable discrepancy between convertToAssets and previewRedeem SHOULD be considered slippage in
     * share price or some other type of condition, meaning the depositor will lose assets by redeeming.
     */
    function previewRedeem(uint256 shares) external view returns (uint256 assets);

    /**
     * @dev Burns exactly shares from owner and sends assets of underlying tokens to receiver.
     *
     * - MUST emit the Withdraw event.
     * - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
     *   redeem execution, and are accounted for during redeem.
     * - MUST revert if all of shares cannot be redeemed (due to withdrawal limit being reached, slippage, the owner
     *   not having enough shares, etc).
     *
     * NOTE: some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
     * Those methods should be performed separately.
     */
    function redeem(uint256 shares, address receiver, address owner) external returns (uint256 assets);
}

File 6 of 14 : IStakingRewards.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.7;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/// @title IStakingRewardsFunctions
/// @notice Interface for the staking rewards contract that interact with the `RewardsDistributor` contract
interface IStakingRewardsFunctions {
    function notifyRewardAmount(uint256 reward) external;

    function recoverERC20(address tokenAddress, address to, uint256 tokenAmount) external;

    function setNewRewardsDistribution(address newRewardsDistribution) external;
}

/// @title IStakingRewards
/// @notice Previous interface with additionnal getters for public variables
interface IStakingRewards is IStakingRewardsFunctions {
    function periodFinish() external view returns (uint256);

    function rewardToken() external view returns (IERC20);

    function getReward() external;

    function stake(uint256 amount) external;

    function withdraw(uint256 amount) external;

    function balanceOf(address account) external view returns (uint256);

    function earned(address account) external view returns (uint256);

    function stakeOnBehalf(uint256 amount, address staker) external;
}

File 7 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

interface IERC20 {
    event Transfer(address indexed from, address indexed to, uint256 value);

    event Approval(address indexed owner, address indexed spender, uint256 value);

    function totalSupply() external view returns (uint256);

    function balanceOf(address account) external view returns (uint256);

    function transfer(address to, uint256 amount) external returns (bool);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 amount) external returns (bool);

    function transferFrom(address from, address to, uint256 amount) external returns (bool);

    function decimals() external view returns (uint8);
}

File 8 of 14 : LowLevelErrors.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

/**
 * @notice It is emitted if the ETH transfer fails.
 */
error ETHTransferFail();

/**
 * @notice It is emitted if the ERC20 approval fails.
 */
error ERC20ApprovalFail();

/**
 * @notice It is emitted if the ERC20 transfer fails.
 */
error ERC20TransferFail();

/**
 * @notice It is emitted if the ERC20 transferFrom fails.
 */
error ERC20TransferFromFail();

/**
 * @notice It is emitted if the ERC721 transferFrom fails.
 */
error ERC721TransferFromFail();

/**
 * @notice It is emitted if the ERC1155 safeTransferFrom fails.
 */
error ERC1155SafeTransferFromFail();

/**
 * @notice It is emitted if the ERC1155 safeBatchTransferFrom fails.
 */
error ERC1155SafeBatchTransferFromFail();

File 9 of 14 : GenericErrors.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

/**
 * @notice It is emitted if the call recipient is not a contract.
 */
error NotAContract();

File 10 of 14 : TokenType.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

enum TokenType {
    ERC20,
    ERC721,
    ERC1155
}

File 11 of 14 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}

File 12 of 14 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
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 13 of 14 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

File 14 of 14 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

Settings
{
  "remappings": [
    "@ensdomains/=node_modules/@ensdomains/",
    "@looksrare/=node_modules/@looksrare/",
    "@openzeppelin/=node_modules/@openzeppelin/",
    "@uniswap/=node_modules/@uniswap/",
    "base64-sol/=node_modules/base64-sol/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "eth-gas-reporter/=node_modules/eth-gas-reporter/",
    "forge-std/=lib/forge-std/src/",
    "hardhat/=node_modules/hardhat/",
    "solmate/=node_modules/solmate/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 888888
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"looks","type":"address"},{"internalType":"address","name":"transferManager","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[],"name":"ERC20TransferFail","type":"error"},{"inputs":[],"name":"NotAContract","type":"error"},{"inputs":[],"name":"WrappedLooksRareToken__AlreadyInitialized","type":"error"},{"inputs":[],"name":"WrappedLooksRareToken__InsufficientBalance","type":"error"},{"inputs":[],"name":"WrappedLooksRareToken__InvalidAddress","type":"error"},{"inputs":[],"name":"WrappedLooksRareToken__NoUnwrapRequest","type":"error"},{"inputs":[],"name":"WrappedLooksRareToken__OngoingUnwrapRequest","type":"error"},{"inputs":[],"name":"WrappedLooksRareToken__TooEarlyToCompleteUnwrapRequest","type":"error"},{"inputs":[],"name":"WrappedLooksRareToken__Unauthorized","type":"error"},{"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":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AutoCompounded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_stakingRewards","type":"address"},{"indexed":false,"internalType":"address","name":"_autoCompounder","type":"address"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"requester","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"InstantUnwrap","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","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":true,"internalType":"address","name":"requester","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnwrapRequestCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"requester","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnwrapRequestCompleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"requester","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"UnwrapRequestSubmitted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wrapper","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Wrapped","type":"event"},{"inputs":[],"name":"INSTANT_UNWRAP_AMOUNT_AFTER_FEE_IN_BASIS_POINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LOOKS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TRANSFER_MANAGER","outputs":[{"internalType":"contract ITransferManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"UNWRAP_REQUEST_COOLDOWN","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"autoCompounder","outputs":[{"internalType":"contract IERC4626","name":"","type":"address"}],"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":"cancelUnwrapRequest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"completeUnwrapRequest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingRewards","type":"address"},{"internalType":"address","name":"_autoCompounder","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"instantUnwrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingRewards","outputs":[{"internalType":"contract IStakingRewards","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint216","name":"amount","type":"uint216"}],"name":"submitUnwrapRequest","outputs":[],"stateMutability":"nonpayable","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":"value","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":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"requester","type":"address"}],"name":"unwrapRequests","outputs":[{"internalType":"uint216","name":"amount","type":"uint216"},{"internalType":"uint40","name":"timestamp","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"wrap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"wrapAndAutoCompound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"wrapAndStake","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e034620003c257601f906001600160401b0390601f19620021c63881900385810183168401919085831185841017620002c6578085926040948552833981010312620003c2576200005182620003e7565b92620000616020809401620003e7565b946200006c620003c7565b601781527f57726170706564204c6f6f6b735261726520546f6b656e000000000000000000858201526200009f620003c7565b916006835265774c4f4f4b5360d01b86840152815192848411620002c65760039384546001948582811c92168015620003b7575b8a831014620003a15781858493116200034b575b508990858311600114620002e857600092620002dc575b505060001982871b1c191690841b1784555b8051948511620002c65760049687548481811c91168015620002bb575b82821014620002a6578381116200025b575b5080928611600114620001ef575084955090849291600095620001e3575b50501b92600019911b1c19161790555b6080526001600160a01b031660a0523360c052604051611dc99081620003fd823960805181818161024e0152818161034a0152818161045001528181610717015281816108690152611070015260a051818181610176015281816101eb01528181610806015261100d015260c05181610e990152f35b0151935038806200015d565b939295859081168860005285600020956000905b8983831062000240575050501062000225575b50505050811b0190556200016d565b01519060f884600019921b161c191690553880808062000216565b85870151895590970196948501948893509081019062000203565b88600052816000208480890160051c820192848a106200029c575b0160051c019085905b8281106200028f5750506200013f565b600081550185906200027f565b9250819262000276565b602289634e487b7160e01b6000525260246000fd5b90607f16906200012d565b634e487b7160e01b600052604160045260246000fd5b015190503880620000fe565b908987941691886000528b6000209260005b8d8282106200033457505084116200031b575b505050811b01845562000110565b015160001983891b60f8161c191690553880806200030d565b8385015186558a97909501949384019301620002fa565b90915086600052896000208580850160051c8201928c861062000397575b918891869594930160051c01915b82811062000387575050620000e7565b6000815585945088910162000377565b9250819262000369565b634e487b7160e01b600052602260045260246000fd5b91607f1691620000d3565b600080fd5b60408051919082016001600160401b03811183821017620002c657604052565b51906001600160a01b0382168203620003c25756fe608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde031461160157508163095ea7b3146115b95781630a2e4835146115665781631251abf71461152a57816313ca8de11461145957816318160ddd1461141c57816323b872dd14611264578163313ce5671461122a578163334943e8146111a357816346a1054614610fc0578163485cc95514610e3e57816364b87a7014610deb57816370a0823114610d8a5781639520223214610bef57816395d89b4114610a975781639d543f7414610a5c578163a9059cbb146109c3578163b91bd464146107b7578163d5121bf31461068f578163d8c655fe146103e5578163dd62ed3e1461036e578163e822574c146102ff578163ea598cb01461019e575063f01f7ce41461012d57600080fd5b3461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b5080fd5b919050346102f15760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102f1578282359273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016803b156102f15783517fda3e8ce400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001692810192835233602084015230604084015260608301869052918391839182908490829060800103925af180156102f5576102dd575b50506102b08233611b54565b519081527f4700c1726b4198077cd40320a32c45265a1910521eb0ef713dd1d8412413d7fc60203392a280f35b6102e6906117f3565b6102f15782386102a4565b8280fd5b83513d84823e3d90fd5b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b50503461019a57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020916103a96117ad565b826103b26117d0565b9273ffffffffffffffffffffffffffffffffffffffff809316815260018652209116600052825280600020549051908152f35b919050346102f157602090817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261068b57823592338552848352838286205410610664576104368433611bf1565b61251c8085029085820414851517156106385761271090047f00000000000000000000000000000000000000000000000000000000000000009061047b813384611893565b813b15610610576000918291828651888101927fa9059cbb00000000000000000000000000000000000000000000000000000000845261dead60248301528a036044820152604481526104cd81611836565b51925af13d15610608573d9067ffffffffffffffff82116105da5783519161051c867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184611852565b82523d60008684013e5b156105b257805180610563575b505050907fb465fdeb3ebbfca21e5c9948763b89c650cd01f37885ef0f17288a717ab81bfb91519283523392a280f35b818591810103126105ad578301518015908115036105ad57610586578080610533565b90517ff1568f95000000000000000000000000000000000000000000000000000000008152fd5b600080fd5b5090517ff1568f95000000000000000000000000000000000000000000000000000000008152fd5b6041837f4e487b71000000000000000000000000000000000000000000000000000000006000525260246000fd5b606090610526565b8284517f09ee12d5000000000000000000000000000000000000000000000000000000008152fd5b6024866011847f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b90517f4090aa74000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b9050346102f157827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102f15733835260056020528183205460d81c801561078f5762093a8042910111610768575033825260056020528082209060007affffffffffffffffffffffffffffffffffffffffffffffffffffff835416925561073b82337f0000000000000000000000000000000000000000000000000000000000000000611893565b519081527f6491edcc9713a1632f4815828503f3d92930fc86bb47e85dce7404ec62341d7760203392a280f35b90517fd21bb723000000000000000000000000000000000000000000000000000000008152fd5b5090517fe58cf77c000000000000000000000000000000000000000000000000000000008152fd5b919050346102f1576020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261068b578383359373ffffffffffffffffffffffffffffffffffffffff807f000000000000000000000000000000000000000000000000000000000000000016803b1561068b5785517fda3e8ce400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016848201908152336020820152306040820152606081018990529091859183919082908490829060800103925af180156109b95785939291859161099e575b50509061092e916108d88830611b54565b6108e788826007541630611cc3565b60075487517f6e553f650000000000000000000000000000000000000000000000000000000081529283018981523360208201529295869492909116928492839160400190565b03925af180156109945761096a575b507f95b16666f2ba8078d36b18fc489cc80a51e48a2ef77a4075b8bd795f07320f2891519283523392a280f35b8190813d831161098d575b61097f8183611852565b8101031261068b573861093d565b503d610975565b83513d87823e3d90fd5b6109ab91929394506117f3565b6102f15790839183386108c7565b86513d86823e3d90fd5b828434610a5957817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610a5957506109fc6117ad565b913073ffffffffffffffffffffffffffffffffffffffff841614610a325750610a2b6020926024359033611a13565b5160018152f35b90517f1575f0ec000000000000000000000000000000000000000000000000000000008152fd5b80fd5b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020905161251c8152f35b83833461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a57805191809380549160019083821c92828516948515610be5575b6020958686108114610bb957858952908115610b775750600114610b1f575b610b1b8787610b11828c0383611852565b5191829182611747565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b828410610b645750505082610b1b94610b1192820101948680610b00565b8054868501880152928601928101610b46565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168887015250505050151560051b8301019250610b1182610b1b8680610b00565b6024846022857f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b93607f1693610ae1565b83833461019a576020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102f1578335917affffffffffffffffffffffffffffffffffffffffffffffffffffff808416809403610d8657338552848352838286205410610d5e57338552600583528185205460d81c610d3657610c768433611bf1565b81519082820182811067ffffffffffffffff821117610d08577fce2e58ec45e7e80591b90a23a140aaa39112a85d1079bdde719a59d8df8d3bbc9596975083528582527fffffffffff0000000000000000000000000000000000000000000000000000008483019164ffffffffff4216835233895260058652848920935116915160d81b16179055519283523392a280f35b6041887f4e487b71000000000000000000000000000000000000000000000000000000006000525260246000fd5b8582517f259d9181000000000000000000000000000000000000000000000000000000008152fd5b8582517f4090aa74000000000000000000000000000000000000000000000000000000008152fd5b8480fd5b50503461019a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a578060209273ffffffffffffffffffffffffffffffffffffffff610ddc6117ad565b16815280845220549051908152f35b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a5760209073ffffffffffffffffffffffffffffffffffffffff600654169051908152f35b9050346102f157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102f157610e766117ad565b90610e7f6117d0565b9173ffffffffffffffffffffffffffffffffffffffff90817f0000000000000000000000000000000000000000000000000000000000000000163303610f98576007549260ff8460a01c16610f7157507f3cd5ec01b1ae7cfec6ca1863e2cd6aa25d6d1702825803ff2b7cc95010fffdc2949392827fffffffffffffffffffffff0000000000000000000000000000000000000000009374010000000000000000000000000000000000000000931694857fffffffffffffffffffffffff000000000000000000000000000000000000000060065416176006551692839116171760075582519182526020820152a180f35b85517f1fa47cd3000000000000000000000000000000000000000000000000000000008152fd5b8285517f1b2ba697000000000000000000000000000000000000000000000000000000008152fd5b919050346102f15760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102f15781359173ffffffffffffffffffffffffffffffffffffffff807f000000000000000000000000000000000000000000000000000000000000000016803b1561119f5783517fda3e8ce400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016848201908152336020820152306040820152606081018790529091879183919082908490829060800103925af1801561119557611180575b509084916110d68530611b54565b6110e585826006541630611cc3565b60065416803b156102f15783517faceccf8f0000000000000000000000000000000000000000000000000000000081529182018581523360208201528391839182908490829060400103925af180156102f55761116c575b5050519081527f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d60203392a280f35b611175906117f3565b6102f157823861113d565b61118d90959192956117f3565b9390386110c8565b84513d88823e3d90fd5b8580fd5b50503461019a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a57809173ffffffffffffffffffffffffffffffffffffffff6111f36117ad565b168152600560205220548151907affffffffffffffffffffffffffffffffffffffffffffffffffffff8116825260d81c6020820152f35b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020905160128152f35b90508234610a595760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610a595761129e6117ad565b6112a66117d0565b916044359373ffffffffffffffffffffffffffffffffffffffff30818616146113f4578316808352600160205286832033845260205286832054917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8303611317575b602088610a2b898989611a13565b8683106113af57811561138057331561135157508252600160209081528683203384528152918690209085900390558290610a2b87611309565b602490848951917f94280d62000000000000000000000000000000000000000000000000000000008352820152fd5b602490848951917fe602df05000000000000000000000000000000000000000000000000000000008352820152fd5b87517ffb8f41b2000000000000000000000000000000000000000000000000000000008152339181019182526020820193909352604081018790528291506060010390fd5b5085517f1575f0ec000000000000000000000000000000000000000000000000000000008152fd5b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020906002549051908152f35b9050346102f157827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102f15733835260056020528183205460d81c156115035750338252600560205280822090827affffffffffffffffffffffffffffffffffffffffffffffffffffff83541692556114d68233611b54565b519081527ff5b697bc9e0f80790bb81c2e36b544393efbe2aab3d108a4970a51bae8f0ade560203392a280f35b90517fe58cf77c000000000000000000000000000000000000000000000000000000008152fd5b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020905162093a808152f35b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a5760209073ffffffffffffffffffffffffffffffffffffffff600754169051908152f35b50503461019a57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a57602090610a2b6115f76117ad565b6024359033611cc3565b9291503461068b57837ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261068b57600354600181811c918690828116801561173d575b602095868610821461171157508488529081156116d15750600114611678575b610b1b8686610b11828b0383611852565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106116be5750505082610b1b94610b11928201019438611667565b80548685018801529286019281016116a1565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001687860152505050151560051b8301019250610b1182610b1b38611667565b8360226024927f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b93607f1693611647565b60208082528251818301819052939260005b858110611799575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8460006040809697860101520116010190565b818101830151848201604001528201611759565b6004359073ffffffffffffffffffffffffffffffffffffffff821682036105ad57565b6024359073ffffffffffffffffffffffffffffffffffffffff821682036105ad57565b67ffffffffffffffff811161180757604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6080810190811067ffffffffffffffff82111761180757604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761180757604052565b91823b156119e9576040519073ffffffffffffffffffffffffffffffffffffffff60208301937fa9059cbb0000000000000000000000000000000000000000000000000000000085521660248301526044820152604481526118f481611836565b600092839283809351925af13d156119e1573d9067ffffffffffffffff82116119b4576040519161194d60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184611852565b82523d83602084013e5b1561198a5780518061196857505050565b816020918101031261019a576020015190811591821503610a59575061198a57565b60046040517ff1568f95000000000000000000000000000000000000000000000000000000008152fd5b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b606090611957565b60046040517f09ee12d5000000000000000000000000000000000000000000000000000000008152fd5b9173ffffffffffffffffffffffffffffffffffffffff808416928315611b235716928315611af25760009083825281602052604082205490838210611a9a575091604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b6040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff919091166004820152602481019190915260448101839052606490fd5b60246040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152fd5b60246040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152fd5b73ffffffffffffffffffffffffffffffffffffffff16908115611af25760025490808201809211611bc25760207fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9160009360025584845283825260408420818154019055604051908152a3565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9073ffffffffffffffffffffffffffffffffffffffff8216908115611b235760009282845283602052604084205490828210611c6b5750817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926020928587528684520360408620558060025403600255604051908152a3565b6040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff919091166004820152602481019190915260448101829052606490fd5b73ffffffffffffffffffffffffffffffffffffffff809116918215611d625716918215611d315760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b60246040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152fd5b60246040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152fdfea26469706673582212205f1e62281898f40919be5f5aad96aa7469e53c7d71ad290cd78ce770ce7fc54564736f6c63430008140033000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e00000000000000000000000000000000000ea4af05656c17b90f4d64add29e1d

Deployed Bytecode

0x608060408181526004918236101561001657600080fd5b600092833560e01c91826306fdde031461160157508163095ea7b3146115b95781630a2e4835146115665781631251abf71461152a57816313ca8de11461145957816318160ddd1461141c57816323b872dd14611264578163313ce5671461122a578163334943e8146111a357816346a1054614610fc0578163485cc95514610e3e57816364b87a7014610deb57816370a0823114610d8a5781639520223214610bef57816395d89b4114610a975781639d543f7414610a5c578163a9059cbb146109c3578163b91bd464146107b7578163d5121bf31461068f578163d8c655fe146103e5578163dd62ed3e1461036e578163e822574c146102ff578163ea598cb01461019e575063f01f7ce41461012d57600080fd5b3461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020905173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000ea4af05656c17b90f4d64add29e1d168152f35b5080fd5b919050346102f15760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102f1578282359273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000ea4af05656c17b90f4d64add29e1d16803b156102f15783517fda3e8ce400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e1692810192835233602084015230604084015260608301869052918391839182908490829060800103925af180156102f5576102dd575b50506102b08233611b54565b519081527f4700c1726b4198077cd40320a32c45265a1910521eb0ef713dd1d8412413d7fc60203392a280f35b6102e6906117f3565b6102f15782386102a4565b8280fd5b83513d84823e3d90fd5b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020905173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e168152f35b50503461019a57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020916103a96117ad565b826103b26117d0565b9273ffffffffffffffffffffffffffffffffffffffff809316815260018652209116600052825280600020549051908152f35b919050346102f157602090817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261068b57823592338552848352838286205410610664576104368433611bf1565b61251c8085029085820414851517156106385761271090047f000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e9061047b813384611893565b813b15610610576000918291828651888101927fa9059cbb00000000000000000000000000000000000000000000000000000000845261dead60248301528a036044820152604481526104cd81611836565b51925af13d15610608573d9067ffffffffffffffff82116105da5783519161051c867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184611852565b82523d60008684013e5b156105b257805180610563575b505050907fb465fdeb3ebbfca21e5c9948763b89c650cd01f37885ef0f17288a717ab81bfb91519283523392a280f35b818591810103126105ad578301518015908115036105ad57610586578080610533565b90517ff1568f95000000000000000000000000000000000000000000000000000000008152fd5b600080fd5b5090517ff1568f95000000000000000000000000000000000000000000000000000000008152fd5b6041837f4e487b71000000000000000000000000000000000000000000000000000000006000525260246000fd5b606090610526565b8284517f09ee12d5000000000000000000000000000000000000000000000000000000008152fd5b6024866011847f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b90517f4090aa74000000000000000000000000000000000000000000000000000000008152fd5b8380fd5b9050346102f157827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102f15733835260056020528183205460d81c801561078f5762093a8042910111610768575033825260056020528082209060007affffffffffffffffffffffffffffffffffffffffffffffffffffff835416925561073b82337f000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e611893565b519081527f6491edcc9713a1632f4815828503f3d92930fc86bb47e85dce7404ec62341d7760203392a280f35b90517fd21bb723000000000000000000000000000000000000000000000000000000008152fd5b5090517fe58cf77c000000000000000000000000000000000000000000000000000000008152fd5b919050346102f1576020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261068b578383359373ffffffffffffffffffffffffffffffffffffffff807f00000000000000000000000000000000000ea4af05656c17b90f4d64add29e1d16803b1561068b5785517fda3e8ce400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e16848201908152336020820152306040820152606081018990529091859183919082908490829060800103925af180156109b95785939291859161099e575b50509061092e916108d88830611b54565b6108e788826007541630611cc3565b60075487517f6e553f650000000000000000000000000000000000000000000000000000000081529283018981523360208201529295869492909116928492839160400190565b03925af180156109945761096a575b507f95b16666f2ba8078d36b18fc489cc80a51e48a2ef77a4075b8bd795f07320f2891519283523392a280f35b8190813d831161098d575b61097f8183611852565b8101031261068b573861093d565b503d610975565b83513d87823e3d90fd5b6109ab91929394506117f3565b6102f15790839183386108c7565b86513d86823e3d90fd5b828434610a5957817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610a5957506109fc6117ad565b913073ffffffffffffffffffffffffffffffffffffffff841614610a325750610a2b6020926024359033611a13565b5160018152f35b90517f1575f0ec000000000000000000000000000000000000000000000000000000008152fd5b80fd5b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020905161251c8152f35b83833461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a57805191809380549160019083821c92828516948515610be5575b6020958686108114610bb957858952908115610b775750600114610b1f575b610b1b8787610b11828c0383611852565b5191829182611747565b0390f35b81529295507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b828410610b645750505082610b1b94610b1192820101948680610b00565b8054868501880152928601928101610b46565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168887015250505050151560051b8301019250610b1182610b1b8680610b00565b6024846022857f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b93607f1693610ae1565b83833461019a576020807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102f1578335917affffffffffffffffffffffffffffffffffffffffffffffffffffff808416809403610d8657338552848352838286205410610d5e57338552600583528185205460d81c610d3657610c768433611bf1565b81519082820182811067ffffffffffffffff821117610d08577fce2e58ec45e7e80591b90a23a140aaa39112a85d1079bdde719a59d8df8d3bbc9596975083528582527fffffffffff0000000000000000000000000000000000000000000000000000008483019164ffffffffff4216835233895260058652848920935116915160d81b16179055519283523392a280f35b6041887f4e487b71000000000000000000000000000000000000000000000000000000006000525260246000fd5b8582517f259d9181000000000000000000000000000000000000000000000000000000008152fd5b8582517f4090aa74000000000000000000000000000000000000000000000000000000008152fd5b8480fd5b50503461019a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a578060209273ffffffffffffffffffffffffffffffffffffffff610ddc6117ad565b16815280845220549051908152f35b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a5760209073ffffffffffffffffffffffffffffffffffffffff600654169051908152f35b9050346102f157817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102f157610e766117ad565b90610e7f6117d0565b9173ffffffffffffffffffffffffffffffffffffffff90817f0000000000000000000000003ab105f0e4a22ec4a96a9b0ca90c5c534d21f3a7163303610f98576007549260ff8460a01c16610f7157507f3cd5ec01b1ae7cfec6ca1863e2cd6aa25d6d1702825803ff2b7cc95010fffdc2949392827fffffffffffffffffffffff0000000000000000000000000000000000000000009374010000000000000000000000000000000000000000931694857fffffffffffffffffffffffff000000000000000000000000000000000000000060065416176006551692839116171760075582519182526020820152a180f35b85517f1fa47cd3000000000000000000000000000000000000000000000000000000008152fd5b8285517f1b2ba697000000000000000000000000000000000000000000000000000000008152fd5b919050346102f15760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102f15781359173ffffffffffffffffffffffffffffffffffffffff807f00000000000000000000000000000000000ea4af05656c17b90f4d64add29e1d16803b1561119f5783517fda3e8ce400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e16848201908152336020820152306040820152606081018790529091879183919082908490829060800103925af1801561119557611180575b509084916110d68530611b54565b6110e585826006541630611cc3565b60065416803b156102f15783517faceccf8f0000000000000000000000000000000000000000000000000000000081529182018581523360208201528391839182908490829060400103925af180156102f55761116c575b5050519081527f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d60203392a280f35b611175906117f3565b6102f157823861113d565b61118d90959192956117f3565b9390386110c8565b84513d88823e3d90fd5b8580fd5b50503461019a5760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a57809173ffffffffffffffffffffffffffffffffffffffff6111f36117ad565b168152600560205220548151907affffffffffffffffffffffffffffffffffffffffffffffffffffff8116825260d81c6020820152f35b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020905160128152f35b90508234610a595760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610a595761129e6117ad565b6112a66117d0565b916044359373ffffffffffffffffffffffffffffffffffffffff30818616146113f4578316808352600160205286832033845260205286832054917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8303611317575b602088610a2b898989611a13565b8683106113af57811561138057331561135157508252600160209081528683203384528152918690209085900390558290610a2b87611309565b602490848951917f94280d62000000000000000000000000000000000000000000000000000000008352820152fd5b602490848951917fe602df05000000000000000000000000000000000000000000000000000000008352820152fd5b87517ffb8f41b2000000000000000000000000000000000000000000000000000000008152339181019182526020820193909352604081018790528291506060010390fd5b5085517f1575f0ec000000000000000000000000000000000000000000000000000000008152fd5b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020906002549051908152f35b9050346102f157827ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102f15733835260056020528183205460d81c156115035750338252600560205280822090827affffffffffffffffffffffffffffffffffffffffffffffffffffff83541692556114d68233611b54565b519081527ff5b697bc9e0f80790bb81c2e36b544393efbe2aab3d108a4970a51bae8f0ade560203392a280f35b90517fe58cf77c000000000000000000000000000000000000000000000000000000008152fd5b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a576020905162093a808152f35b50503461019a57817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a5760209073ffffffffffffffffffffffffffffffffffffffff600754169051908152f35b50503461019a57807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261019a57602090610a2b6115f76117ad565b6024359033611cc3565b9291503461068b57837ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261068b57600354600181811c918690828116801561173d575b602095868610821461171157508488529081156116d15750600114611678575b610b1b8686610b11828b0383611852565b929550600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106116be5750505082610b1b94610b11928201019438611667565b80548685018801529286019281016116a1565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001687860152505050151560051b8301019250610b1182610b1b38611667565b8360226024927f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b93607f1693611647565b60208082528251818301819052939260005b858110611799575050507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8460006040809697860101520116010190565b818101830151848201604001528201611759565b6004359073ffffffffffffffffffffffffffffffffffffffff821682036105ad57565b6024359073ffffffffffffffffffffffffffffffffffffffff821682036105ad57565b67ffffffffffffffff811161180757604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6080810190811067ffffffffffffffff82111761180757604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761180757604052565b91823b156119e9576040519073ffffffffffffffffffffffffffffffffffffffff60208301937fa9059cbb0000000000000000000000000000000000000000000000000000000085521660248301526044820152604481526118f481611836565b600092839283809351925af13d156119e1573d9067ffffffffffffffff82116119b4576040519161194d60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184611852565b82523d83602084013e5b1561198a5780518061196857505050565b816020918101031261019a576020015190811591821503610a59575061198a57565b60046040517ff1568f95000000000000000000000000000000000000000000000000000000008152fd5b6024837f4e487b710000000000000000000000000000000000000000000000000000000081526041600452fd5b606090611957565b60046040517f09ee12d5000000000000000000000000000000000000000000000000000000008152fd5b9173ffffffffffffffffffffffffffffffffffffffff808416928315611b235716928315611af25760009083825281602052604082205490838210611a9a575091604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef958760209652828652038282205586815220818154019055604051908152a3565b6040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff919091166004820152602481019190915260448101839052606490fd5b60246040517fec442f0500000000000000000000000000000000000000000000000000000000815260006004820152fd5b60246040517f96c6fd1e00000000000000000000000000000000000000000000000000000000815260006004820152fd5b73ffffffffffffffffffffffffffffffffffffffff16908115611af25760025490808201809211611bc25760207fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9160009360025584845283825260408420818154019055604051908152a3565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b9073ffffffffffffffffffffffffffffffffffffffff8216908115611b235760009282845283602052604084205490828210611c6b5750817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926020928587528684520360408620558060025403600255604051908152a3565b6040517fe450d38c00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff919091166004820152602481019190915260448101829052606490fd5b73ffffffffffffffffffffffffffffffffffffffff809116918215611d625716918215611d315760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260018252604060002085600052825280604060002055604051908152a3565b60246040517f94280d6200000000000000000000000000000000000000000000000000000000815260006004820152fd5b60246040517fe602df0500000000000000000000000000000000000000000000000000000000815260006004820152fdfea26469706673582212205f1e62281898f40919be5f5aad96aa7469e53c7d71ad290cd78ce770ce7fc54564736f6c63430008140033

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

000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e00000000000000000000000000000000000ea4af05656c17b90f4d64add29e1d

-----Decoded View---------------
Arg [0] : looks (address): 0xf4d2888d29D722226FafA5d9B24F9164c092421E
Arg [1] : transferManager (address): 0x00000000000ea4af05656C17b90f4d64AdD29e1d

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000f4d2888d29d722226fafa5d9b24f9164c092421e
Arg [1] : 00000000000000000000000000000000000ea4af05656c17b90f4d64add29e1d


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.