ETH Price: $1,879.70 (-4.73%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Ownersh...243428522026-01-29 20:18:1124 days ago1769717891IN
0x45cF2FDE...A516b2b6f
0 ETH0.000003750.12066847
Add Executor243428402026-01-29 20:15:4724 days ago1769717747IN
0x45cF2FDE...A516b2b6f
0 ETH0.000006720.14169242
Approve Token243422382026-01-29 18:15:1124 days ago1769710511IN
0x45cF2FDE...A516b2b6f
0 ETH0.00002870.41842367
Add Executor243422332026-01-29 18:14:1124 days ago1769710451IN
0x45cF2FDE...A516b2b6f
0 ETH0.000020680.43549921
Add Executor243422312026-01-29 18:13:4724 days ago1769710427IN
0x45cF2FDE...A516b2b6f
0 ETH0.000017590.3704779
Approve Token243422292026-01-29 18:13:2324 days ago1769710403IN
0x45cF2FDE...A516b2b6f
0 ETH0.000023250.39288027
Approve Token243422282026-01-29 18:13:1124 days ago1769710391IN
0x45cF2FDE...A516b2b6f
0 ETH0.000022530.41256505
Approve Token243422272026-01-29 18:12:5924 days ago1769710379IN
0x45cF2FDE...A516b2b6f
0 ETH0.000026710.38948959

Latest 5 internal transactions

Advanced mode:
Parent Transaction Hash Method Block
From
To
Approve243422382026-01-29 18:15:1124 days ago1769710511
0x45cF2FDE...A516b2b6f
0 ETH
Approve243422292026-01-29 18:13:2324 days ago1769710403
0x45cF2FDE...A516b2b6f
0 ETH
Approve243422282026-01-29 18:13:1124 days ago1769710391
0x45cF2FDE...A516b2b6f
0 ETH
Approve243422272026-01-29 18:12:5924 days ago1769710379
0x45cF2FDE...A516b2b6f
0 ETH
Asset243421712026-01-29 18:01:4724 days ago1769709707
0x45cF2FDE...A516b2b6f
0 ETH
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PositionManagerOwnable2StepWithShortcut

Compiler Version
v0.8.22+commit.4fc1097e

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 19 : PositionManagerOwnable2StepWithShortcut.sol
/* SPDX-License-Identifier: UNLICENSED */
pragma solidity ^0.8.0;

import './PositionManager.sol';
import '@itb/quant-common/contracts/solidity8/utils/Ownable2StepWithShortcut.sol';

contract PositionManagerOwnable2StepWithShortcut is PositionManager, Ownable2StepWithShortcut {
    constructor(address[] memory _executors, address payable _wnative, address _morpho_vault, address _merkle_distributor) PositionManager(_executors, _wnative, _morpho_vault, _merkle_distributor) {}
}

/* SPDX-License-Identifier: UNLICENSED */
pragma solidity ^0.8.0;

interface IMerkleDistributor {
    function claim(address[] calldata users, address[] calldata tokens, uint256[] calldata amounts, bytes32[][] calldata proofs) external;

    function claimed(address user, address token) external view returns (uint208 amount, uint48 timestamp, bytes32 merkleRoot);
}

/* SPDX-License-Identifier: UNLICENSED */
pragma solidity ^0.8.0;

import '@itb/quant-common/contracts/solidity8/ITBContract.sol';
import '@openzeppelin/contracts/interfaces/IERC4626.sol';
import './interfaces/IMerkleDistributor.sol';

struct MerkleClaimData {
    address[] users;
    address[] tokens;
    uint[] values;
    bytes32[][] proof;
}

/// @title PositionManager for Morpho Vaults
/// @author IntoTheBlock Corp
contract PositionManager is ITBContract {
    struct PositionConfig {
        address morpho_vault;
        address underlying;
    }

    PositionConfig public positionConfig;
    IMerkleDistributor public merkleDistributor;

    event Deposit(address indexed caller, address vault, address token, uint amount, uint lpt_change);
    event Redeem(address indexed caller, address vault, address token, uint amount, uint lpt_change);

    event Assemble(address indexed caller, address[] tokens, uint[] amounts, uint lpt_change);
    event Disassemble(address indexed caller, address[] tokens, uint[] amounts, uint lpt_change);
    event UpdateMerkleDistributor(address indexed caller, address merkle_distributor);
    event ClaimMerkleRewards(address indexed caller, address[] tokens, uint[] values);
    event UpdatePositionConfig(address indexed caller, address vault, address underlying);

    function VERSION() external pure returns (string memory) {
        return '1.0.0';
    }

    /// @param _executors Executor addresses
    /// @param _wnative Wrapped native token address
    constructor(address[] memory _executors, address payable _wnative, address _morpho_vault, address _merkle_distributor) ITBContract(_executors, _wnative) {
        updatePositionConfig(_morpho_vault);
        updateMerkleDistributor(_merkle_distributor);
    }

    modifier hasConfig() {
        require(positionConfig.morpho_vault != address(0), 'A3'); // position_config is missing
        _;
    }

    function getPositionAssets() public view returns (address[] memory) {
        address[] memory assets = new address[](1);
        assets[0] = positionConfig.underlying;
        return assets;
    }

    function getUnderlyings() external view returns (address[] memory assets, uint256[] memory amounts) {
        PositionConfig memory c = positionConfig;
        address[] memory tokens = getPositionAssets();
        uint256[] memory balances = new uint256[](tokens.length);
        balances[0] = IERC4626(c.morpho_vault).convertToAssets(_erc20Balance(c.morpho_vault));
        return (tokens, balances);
    }

    function updatePositionConfig(address _morpho_vault) public onlyOwner {
        PositionConfig memory c = positionConfig;
        if (c.morpho_vault != address(0)) {
            require(_erc20Balance(c.morpho_vault) == 0, 'PositionManager: NON_ZERO_LP, DISASSEMBLE_FIRST');
        }
        address underlying = IERC4626(_morpho_vault).asset();
        positionConfig = PositionConfig(_morpho_vault, underlying);
        emit UpdatePositionConfig(msg.sender, _morpho_vault, underlying);
    }

    /// @param _merkle_distributor reward distributor address
    function updateMerkleDistributor(address _merkle_distributor) public onlyOwner {
        merkleDistributor = IMerkleDistributor(_merkle_distributor);
        emit UpdateMerkleDistributor(msg.sender, _merkle_distributor);
    }

    function deposit(uint _amount, uint _min_lpt_out) public onlyExecutor hasConfig returns (uint lpt_out) {
        PositionConfig memory c = positionConfig;
        lpt_out = IERC4626(c.morpho_vault).deposit(_amount, address(this));
        require(lpt_out >= _min_lpt_out, 'D1');
        emit Deposit(msg.sender, c.morpho_vault, c.underlying, _amount, lpt_out);
    }

    function redeem(uint _lpt_amount, uint _min_out) public onlyExecutor hasConfig returns (uint coin_out) {
        PositionConfig memory c = positionConfig;
        coin_out = IERC4626(c.morpho_vault).redeem(_lpt_amount, address(this), address(this));
        require(coin_out >= _min_out, 'W1');
        emit Redeem(msg.sender, c.morpho_vault, c.underlying, coin_out, _lpt_amount);
    }

    function assemble(uint _min_lpt_out) external onlyExecutor hasConfig returns (uint lpt_out) {
        PositionConfig memory c = positionConfig;
        uint underlying_before = _erc20Balance(c.underlying);

        lpt_out = deposit(underlying_before, _min_lpt_out);

        address[] memory tokens = getPositionAssets();
        uint[] memory underlyings_change = new uint[](tokens.length);
        underlyings_change[0] = underlying_before - _erc20Balance(c.underlying);
        emit Assemble(msg.sender, tokens, underlyings_change, lpt_out);
    }

    function disassemble(uint _percentage, uint _min_coin_out) public onlyExecutor hasConfig returns (uint coin_out) {
        PositionConfig memory c = positionConfig;
        uint lpt_amount = _percentageAmount(_erc20Balance(c.morpho_vault), _percentage);

        coin_out = redeem(lpt_amount, _min_coin_out);
        
        address[] memory tokens = getPositionAssets();
        uint[] memory underlyings_change = new uint[](tokens.length);
        underlyings_change[0] = coin_out;
        emit Disassemble(msg.sender, tokens, underlyings_change, lpt_amount);
    }

    function fullDisassemble(uint _min_coin_out) external onlyExecutor hasConfig returns (uint) {
        return disassemble(1e18, _min_coin_out);
    }

    /// @notice Claims the merkle rewards for the specified users
    /// @param _merkle_claim_data merkle claim data
    /// @return merkle_tokens_out tokens addresses claimed
    /// @return merkle_amounts_out amounts of tokens claimed
    function claimRewards(MerkleClaimData calldata _merkle_claim_data) external onlyExecutor returns (address[] memory merkle_tokens_out, uint[] memory merkle_amounts_out) {
        uint[] memory claimed = new uint[](_merkle_claim_data.values.length);
        uint [] memory balances_before = new uint[](_merkle_claim_data.tokens.length);

        for (uint i = 0; i < _merkle_claim_data.tokens.length; i++)
            balances_before[i] = _erc20Balance(_merkle_claim_data.tokens[i]);

        merkleDistributor.claim(_merkle_claim_data.users, _merkle_claim_data.tokens, _merkle_claim_data.values, _merkle_claim_data.proof);

        for (uint i = 0; i < _merkle_claim_data.tokens.length; i++)
            claimed[i] = _erc20Balance(_merkle_claim_data.tokens[i]) - balances_before[i];

        emit ClaimMerkleRewards(msg.sender, _merkle_claim_data.tokens, claimed);

        return (_merkle_claim_data.tokens, claimed);
    }

    // YIELD INTERFACE
    function disassemble(uint _percentage, uint256[] memory _min_coins_out) external onlyExecutor hasConfig returns (uint256[] memory) {
        uint256 coin_out = disassemble(_percentage, _min_coins_out[0]);
        uint256[] memory coins_out = new uint256[](1);
        coins_out[0] = coin_out;
        return coins_out;
    }

}

/* SPDX-License-Identifier: UNLICENSED */
pragma solidity ^0.8.20;

import './utils/Withdrawable.sol';
import './utils/IWETH.sol';


/// @title ITBContract contract that implements common owner only functions accros all strategies
/// @author IntoTheBlock Corp
/// @dev Abstract
abstract contract ITBContract is Withdrawable {
    using SafeERC20 for IERC20;
    event ApproveToken(address indexed token, address guy, uint256 wad);
    address payable immutable public WNATIVE;

    uint constant ONE = 1e18;

    /// @param _executors Executor addresses
    constructor(address[] memory _executors, address payable _wnative) Executable(_executors) {
        WNATIVE = _wnative;
    }

    function _percentageAmount(uint _amount, uint _percentage) internal pure returns (uint) {
        return _amount * _percentage / ONE;
    }

    /// @notice Set allowance for a given token, amount and spender
    /// @param _token Token to spend
    /// @param _guy Spender
    /// @param _wad Max amount to spend
    function _approveToken(address _token, address _guy, uint256 _wad) internal {
        if (_wad != 0)
            IERC20(_token).forceApprove(_guy, _wad);
        else
            IERC20(_token).approve(_guy, _wad);
        emit ApproveToken(_token, _guy, _wad);
    }

    /// @notice For a given token, amount and spender, check if contract can spend amount and, if necessary, set the allowance to amount
    /// @param _token Token to spend
    /// @param _guy Spender
    /// @param _amount Amount to spend
    function _checkAllowanceAndApprove(address _token, address _guy, uint256 _amount) internal {
        _checkAllowanceAndApprove(_token, _guy, _amount, _amount);
    }

    /// @notice For a given token, amount and spender, check if contract can spend amount and, if necessary, set the allowance to approval amount
    /// @param _token Token to spend
    /// @param _guy Spender
    /// @param _amount Amount to spend
    /// @param _approval_amount Amount to approve
    function _checkAllowanceAndApprove(address _token, address _guy, uint256 _amount, uint256 _approval_amount) internal {
        if (IERC20(_token).allowance(address(this), _guy) < _amount)
            _approveToken(_token, _guy, _approval_amount);
    }

    /// @notice Only owner. Set allowance for a given token, amount and spender
    /// @param _token Token to spend
    /// @param _guy Spender
    /// @param _wad Max amount to spend
    function approveToken(address _token, address _guy, uint256 _wad) external onlyOwner {
        _approveToken(_token, _guy, _wad);
    }

    /// @notice Only owner. Revoke allowance for a given token and spender
    /// @param _token Token to spend
    /// @param _guy Spender
    function revokeToken(address _token, address _guy) external onlyOwner {
        _approveToken(_token, _guy, 0);
    }

    /// @notice Only owner. Execute an arbitrary call
    /// @param _to Target address
    /// @param _value Value (i. e. msg.value)
    /// @param _data Invocation data
    function execute(address _to, uint256 _value, bytes calldata _data) external payable onlyOwner {
        (bool success, bytes memory returnData) = _to.call{ value: _value }(_data);
        require(success, string(returnData));
    }

    /// @notice Only owner. Execute multiple arbitrary calls in order
    /// @param _tos Target address for each call
    /// @param _values Value for each call (i. e. msg.value)
    /// @param _datas Invocation data for each call
    function batchExecute(address[] calldata _tos, uint256[] calldata _values, bytes[] calldata _datas) external payable onlyOwner {
        require(_tos.length == _values.length && _tos.length == _datas.length, "Arguments length mismatch");
        for (uint256 i = 0; i < _tos.length; i++) {
            (bool success, bytes memory returnData) = _tos[i].call{ value: _values[i] }(_datas[i]);
            require(success, string(returnData));
        }
    }

    function wrapNative(uint256 _amount) public onlyExecutor {
        IWETH(WNATIVE).deposit{ value: _amount }();
    }

    function unwrapNative(uint256 _amount) public onlyExecutor {
        IWETH(WNATIVE).withdraw(_amount);
    }
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/access/Ownable2Step.sol";

/// @title Base contract that implements executor related functions
/// @author IntoTheBlock Corp
/// @dev Abstract
abstract contract Executable is Ownable2Step {
    mapping(address => bool) public executors;

    event ExecutorUpdated(address indexed executor, bool enabled);

    /// @param _executors Initial whitelisted executor addresses
    constructor(address[] memory _executors) Ownable(msg.sender) {
        for (uint256 i = 0; i < _executors.length; i++) {
            addExecutor(_executors[i]);
        }
    }

    /// @notice Revert if call is not being made from the owner or an executor
    modifier onlyExecutor() {
        require(owner() == msg.sender || executors[msg.sender], "Executable: caller is not the executor");
        _;
    }

    /// @notice Only owner. Add an executor
    /// @param _executor New executor address
    function addExecutor(address _executor) public onlyOwner {
        emit ExecutorUpdated(_executor, true);
        executors[_executor] = true;
    }

    /// @notice Only owner. Remove an executor
    /// @param _executor Executor address to remove
    function removeExecutor(address _executor) external onlyOwner {
        emit ExecutorUpdated(_executor, false);
        executors[_executor] = false;
    }
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;

interface IWETH {
    function name() external view returns (string memory);
    function symbol() external view returns (string memory);
    function decimals() external view returns (uint8);

    event Approval(address indexed src, address indexed guy, uint256 wad);
    event Transfer(address indexed src, address indexed dst, uint256 wad);
    event Deposit(address indexed dst, uint256 wad);
    event Withdrawal(address indexed src, uint256 wad);

    function balanceOf(address) external view returns (uint256);
    function allowance(address, address) external view returns (uint256);

    fallback() external payable;
    receive() external payable;
    function deposit() external payable;
    function withdraw(uint256 wad) external;
    function totalSupply() external view returns (uint256);
    function approve(address guy, uint256 wad) external returns (bool);
    function transfer(address dst, uint256 wad) external returns (bool);
    function transferFrom(address src, address dst, uint256 wad) external returns (bool);
}

File 7 of 19 : Ownable2StepWithShortcut.sol
/* SPDX-License-Identifier: UNLICENSED */
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/access/Ownable2Step.sol";

abstract contract Ownable2StepWithShortcut is Ownable2Step {
    function transferOwnership1Step(address newOwner) public onlyOwner {
        require(newOwner != address(0), "ITBOwnable: zero address");
        _transferOwnership(newOwner);
    }
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import './Executable.sol';

/**
    Ensures that any contract that inherits from this contract is able to
    withdraw funds that are accidentally received or stuck.
 */

/// @title Base contract that implements withdrawal related functions
/// @author IntoTheBlock Corp
/// @dev Abstract
abstract contract Withdrawable is Executable {
    using SafeERC20 for IERC20;
    address constant ETHER = address(0);

    event LogWithdraw(
        address indexed _to,
        address indexed _asset_address,
        uint256 amount
    );

    receive() external payable {}

    
    /// @notice ERC20 or ETH balance of this contract given a token address
    /// @param _asset_address Token address or address(0) for ETH
    /// @return Balance    
    function _erc20OrNativeBalance(address _asset_address) internal view returns (uint256) {
        return _asset_address == ETHER ? _nativeBalance() : _erc20Balance(_asset_address);
    }
    
    function _erc20Balance(address _asset_address) internal view returns (uint256) {
        return IERC20(_asset_address).balanceOf(address(this));
    }

    function _nativeBalance() internal view returns (uint256) {
        return address(this).balance;
    }
    
    /// @notice ERC20 balance of given account
    /// @param _asset_address Token address 
    /// @param _account Account address 
    /// @return Balance  
    function balanceOf(address _asset_address, address _account) public view returns (uint256) {
        return IERC20(_asset_address).balanceOf(_account);
    }

    /// @notice Send the given amount of the given token or ETH to the given receiver
    /// @param _asset_address Token address or address(0) for ETH
    /// @param _amount Amount to send
    /// @param _to Receiver address
    function _withdraw_to(address _asset_address, uint256 _amount, address payable _to) internal {
        require(_to != address(0), 'Invalid address');
        uint256 balance = _erc20OrNativeBalance(_asset_address);
        require(balance >= _amount, 'Insufficient funds');
        if (_asset_address == ETHER) {
            (bool success, ) = _to.call{value: _amount}(''); /* carry gas over so it works with contracts with custom fallback, we dont care about reentrancy on onlyOwner */
            require(success, 'Native transfer failed.');
        } else
            IERC20(_asset_address).safeTransfer(_to, _amount);
        emit LogWithdraw(_to, _asset_address, _amount);
    }

    /// @notice Only owner. Send the given amount of the given token or ETH to the caller
    /// @param _asset_address Token address or address(0) for ETH
    /// @param _amount Amount to send
    function withdraw(address _asset_address, uint256 _amount) external onlyOwner {
        _withdraw_to(_asset_address, _amount, payable(msg.sender));
    }

    /// @notice Only owner. Send the given amount of the given token or ETH to the given receiver
    /// @param _asset_address Token address or address(0) for ETH
    /// @param _amount Amount to send
    /// @param _to Receiver address
    function withdrawTo(address _asset_address, uint256 _amount, address payable _to) external onlyOwner {
        _withdraw_to(_asset_address, _amount, _to);
    }

    /// @notice Only owner. Send its entire balance of the given token or ETH to the caller
    /// @param _asset_address Token address or address(0) for ETH
    function withdrawAll(address _asset_address) external onlyOwner {
        uint256 balance = _erc20OrNativeBalance(_asset_address);
        _withdraw_to(_asset_address, balance, payable(msg.sender));
    }

    /// @notice Only owner. Send its entire balance of the given token or ETH to the given receiver
    /// @param _asset_address Token address or address(0) for ETH
    /// @param _to Receiver address
    function withdrawAllTo(address _asset_address, address payable _to) external onlyOwner {
        uint256 balance = _erc20OrNativeBalance(_asset_address);
        _withdraw_to(_asset_address, balance, _to);
    }
}

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

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

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

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

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

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

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Contract module which provides access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * This extension of the {Ownable} contract includes a two-step mechanism to transfer
 * ownership, where the new owner must call {acceptOwnership} in order to replace the
 * old one. This can help prevent common mistakes, such as transfers of ownership to
 * incorrect accounts, or to contracts that are unable to interact with the
 * permission system.
 *
 * The initial owner is specified at deployment time in the constructor for `Ownable`. This
 * can later be changed with {transferOwnership} and {acceptOwnership}.
 *
 * This module is used through inheritance. It will make available all functions
 * from parent (Ownable).
 */
abstract contract Ownable2Step is Ownable {
    address private _pendingOwner;

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

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

    /**
     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
     * Can only be called by the current owner.
     *
     * Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.
     */
    function transferOwnership(address newOwner) public virtual override onlyOwner {
        _pendingOwner = newOwner;
        emit OwnershipTransferStarted(owner(), newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual override {
        delete _pendingOwner;
        super._transferOwnership(newOwner);
    }

    /**
     * @dev The new owner accepts the ownership transfer.
     */
    function acceptOwnership() public virtual {
        address sender = _msgSender();
        if (pendingOwner() != sender) {
            revert OwnableUnauthorizedAccount(sender);
        }
        _transferOwnership(sender);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)

pragma solidity >=0.6.2;

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

/**
 * @title IERC1363
 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
 *
 * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
 * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
 */
interface IERC1363 is IERC20, IERC165 {
    /*
     * Note: the ERC-165 identifier for this interface is 0xb0202a11.
     * 0xb0202a11 ===
     *   bytes4(keccak256('transferAndCall(address,uint256)')) ^
     *   bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
     *   bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256)')) ^
     *   bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
     */

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
     * and then calls {IERC1363Receiver-onTransferReceived} on `to`.
     * @param from The address which you want to send tokens from.
     * @param to The address which you want to transfer to.
     * @param value The amount of tokens to be transferred.
     * @param data Additional data with no specified format, sent in call to `to`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value) external returns (bool);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
     * @param spender The address which will spend the funds.
     * @param value The amount of tokens to be spent.
     * @param data Additional data with no specified format, sent in call to `spender`.
     * @return A boolean value indicating whether the operation succeeded unless throwing.
     */
    function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}

File 12 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)

pragma solidity >=0.4.16;

import {IERC165} from "../utils/introspection/IERC165.sol";

File 13 of 19 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)

pragma solidity >=0.4.16;

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC4626.sol)

pragma solidity >=0.6.2;

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

/**
 * @dev Interface of the ERC-4626 "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 redemption 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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity >=0.6.2;

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

/**
 * @dev Interface for the optional metadata functions from the ERC-20 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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (token/ERC20/IERC20.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-20 standard as defined in the ERC.
 */
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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

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

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

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

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

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

    /**
     * @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
     */
    function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
        return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     *
     * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
     * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
     * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
     * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     *
     * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
     * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
     * set here.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

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

    /**
     * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            safeTransfer(token, to, value);
        } else if (!token.transferAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
     * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * Reverts if the returned value is other than `true`.
     */
    function transferFromAndCallRelaxed(
        IERC1363 token,
        address from,
        address to,
        uint256 value,
        bytes memory data
    ) internal {
        if (to.code.length == 0) {
            safeTransferFrom(token, from, to, value);
        } else if (!token.transferFromAndCall(from, to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
     * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
     * targeting contracts.
     *
     * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
     * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
     * once without retrying, and relies on the returned value to be true.
     *
     * Reverts if the returned value is other than `true`.
     */
    function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
        if (to.code.length == 0) {
            forceApprove(token, to, value);
        } else if (!token.approveAndCall(to, value, data)) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            // bubble errors
            if iszero(success) {
                let ptr := mload(0x40)
                returndatacopy(ptr, 0, returndatasize())
                revert(ptr, returndatasize())
            }
            returnSize := returndatasize()
            returnValue := mload(0)
        }

        if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        bool success;
        uint256 returnSize;
        uint256 returnValue;
        assembly ("memory-safe") {
            success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
            returnSize := returndatasize()
            returnValue := mload(0)
        }
        return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (utils/introspection/IERC165.sol)

pragma solidity >=0.4.16;

/**
 * @dev Interface of the ERC-165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[ERC].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address[]","name":"_executors","type":"address[]"},{"internalType":"address payable","name":"_wnative","type":"address"},{"internalType":"address","name":"_morpho_vault","type":"address"},{"internalType":"address","name":"_merkle_distributor","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"guy","type":"address"},{"indexed":false,"internalType":"uint256","name":"wad","type":"uint256"}],"name":"ApproveToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"lpt_change","type":"uint256"}],"name":"Assemble","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"ClaimMerkleRewards","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"address","name":"vault","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpt_change","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"lpt_change","type":"uint256"}],"name":"Disassemble","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"indexed":false,"internalType":"bool","name":"enabled","type":"bool"}],"name":"ExecutorUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":true,"internalType":"address","name":"_asset_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LogWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"address","name":"vault","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lpt_change","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"address","name":"merkle_distributor","type":"address"}],"name":"UpdateMerkleDistributor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"address","name":"vault","type":"address"},{"indexed":false,"internalType":"address","name":"underlying","type":"address"}],"name":"UpdatePositionConfig","type":"event"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"WNATIVE","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_executor","type":"address"}],"name":"addExecutor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_guy","type":"address"},{"internalType":"uint256","name":"_wad","type":"uint256"}],"name":"approveToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_min_lpt_out","type":"uint256"}],"name":"assemble","outputs":[{"internalType":"uint256","name":"lpt_out","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset_address","type":"address"},{"internalType":"address","name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tos","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"internalType":"bytes[]","name":"_datas","type":"bytes[]"}],"name":"batchExecute","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address[]","name":"users","type":"address[]"},{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"bytes32[][]","name":"proof","type":"bytes32[][]"}],"internalType":"struct MerkleClaimData","name":"_merkle_claim_data","type":"tuple"}],"name":"claimRewards","outputs":[{"internalType":"address[]","name":"merkle_tokens_out","type":"address[]"},{"internalType":"uint256[]","name":"merkle_amounts_out","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_min_lpt_out","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"lpt_out","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percentage","type":"uint256"},{"internalType":"uint256[]","name":"_min_coins_out","type":"uint256[]"}],"name":"disassemble","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_percentage","type":"uint256"},{"internalType":"uint256","name":"_min_coin_out","type":"uint256"}],"name":"disassemble","outputs":[{"internalType":"uint256","name":"coin_out","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"execute","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"executors","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_min_coin_out","type":"uint256"}],"name":"fullDisassemble","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPositionAssets","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUnderlyings","outputs":[{"internalType":"address[]","name":"assets","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleDistributor","outputs":[{"internalType":"contract IMerkleDistributor","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"positionConfig","outputs":[{"internalType":"address","name":"morpho_vault","type":"address"},{"internalType":"address","name":"underlying","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lpt_amount","type":"uint256"},{"internalType":"uint256","name":"_min_out","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"coin_out","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_executor","type":"address"}],"name":"removeExecutor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_guy","type":"address"}],"name":"revokeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership1Step","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"unwrapNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_merkle_distributor","type":"address"}],"name":"updateMerkleDistributor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_morpho_vault","type":"address"}],"name":"updatePositionConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset_address","type":"address"}],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset_address","type":"address"},{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawAllTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset_address","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdrawTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"wrapNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a0604090808252346200043757620027dc803803809162000022828562000489565b8339810191608082840312620004375781516001600160401b039390848111620004375783019381601f860112156200043757845191602091831162000457576005958360051b908551946200007b8584018762000489565b85528380860192820101928311620004375783809101915b8383106200043c57508601516001600160a01b039690949250905085841684036200043757620000d36060620000cb878401620004ad565b9201620004ad565b9133156200041f5760018060a01b03199460018681541681556000928354338982161785558a3391167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08680a383825b620003b1575b505050879850608097949596975262000141620004c2565b8387519262000150846200046d565b866003549483861690818152826004549d8e1691015280620002d6575b5050169187516338d52e0f60e01b81528681600481875afa928315620002cb57809362000254575b50509086889984828995897f896f95e2f70e072cc713066c108b45f737eaffbe450cdf479ba0b6249b2000749c9d5196620001d0886200046d565b84885216809781970152161760035516176004558751918252848201527f6483954a781fd2a588f0f6fe46f8e799cfe4c6a31dceaa6b6b0145fdbd0f1146873392a26200021c620004c2565b168093600554161760055583519283523392a2516122ec9081620004f08239608051818181610b3901528181610bdb01526112ce0152f35b909192508682813d8311620002c3575b62000270818362000489565b81010312620002c05750968681998482899589620002b07f896f95e2f70e072cc713066c108b45f737eaffbe450cdf479ba0b6249b2000749d9e620004ad565b9750509450505099989762000195565b80fd5b503d62000264565b8951903d90823e3d90fd5b8a516370a0823160e01b8152306004820152929350829060249082905afa908115620003a757839162000370575b506200031457849086386200016d565b875162461bcd60e51b815260048101879052602f60248201527f506f736974696f6e4d616e616765723a204e4f4e5f5a45524f5f4c502c20444960448201526e14d054d4d15350931157d1925494d5608a1b6064820152608490fd5b90508681813d83116200039f575b6200038a818362000489565b810103126200039b57513862000304565b8280fd5b503d6200037e565b89513d85823e3d90fd5b81518110156200041957808c1b820188015183929183918d16807f9fdbc2d48b8a0db2f62663bf9312ad02f5b1f6414ad600b55a247d09aeec3ea28c8f620003f8620004c2565b51868152a2875260028a528b87208260ff1982541617905501909162000123565b62000129565b8551631e4fbdf760e01b815260006004820152602490fd5b600080fd5b81906200044984620004ad565b815201910190839062000093565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b038211176200045757604052565b601f909101601f19168101906001600160401b038211908210176200045757604052565b51906001600160a01b03821682036200043757565b6000546001600160a01b03163303620004d757565b60405163118cdaa760e01b8152336004820152602490fdfe608060405260048036101561001d575b50361561001b57600080fd5b005b600090813560e01c908163077d97d71461162c578163087ed837146115fc5781631ea68c00146114e85781631f5a0bbe14611479578163247884291461140e5781633419ba23146113405782826334b10a6d1461129a5750816354621b421461117757816362b88f5414610dda5781636ed625ab14610dc0578163715018a614610d5a57816379ba509714610d125781637cbc237314610cf85781638c53b74714610c865781638da5cb5b14610c5f578282639169d83314610ba7575081639ac2a01114610b68578163b381cf4014610b23578163b61d27f614610a9e578163b6703fcd14610a61578163c4e2c1e614610a1f578163da3e33971461080e578163e1b971391461078d578163e2bbb1581461076b578163e30c397814610742578163e6a6e7a214610651578163ecf747771461061d578163f0313acb14610451578163f2fde38b146103e4578163f3fef3a3146103b4578163f4537f781461038b578163f65baefa146102cf578163f7888aec1461022757508063fa09e630146101ef5763ffa1ad740361000f57346101ec57806003193601126101ec576101e86040516101ca8161182a565b60058152640312e302e360dc1b60208201526040519182918261192f565b0390f35b80fd5b50346101ec5760203660031901126101ec5761022461020c6118b1565b610214611fa2565b61021d8161208e565b33916120aa565b80f35b82346101ec5760403660031901126101ec5760206102436118b1565b602461024d6118c7565b6040516370a0823160e01b81526001600160a01b039182169681019690965285928391165afa9081156102c3579061028b575b602090604051908152f35b506020813d6020116102bb575b816102a560209383611845565b810103126102b65760209051610280565b600080fd5b3d9150610298565b604051903d90823e3d90fd5b9050346103875781600319360112610387576102e9611cb0565b916102f2611a3a565b9160206102ff8451611af6565b94516001600160a01b031691602461031684611fce565b9160405194859384926303d1689d60e11b84528301525afa9182156102c35791610355575b5061034583611a19565b526101e8604051928392836118f1565b90506020813d60201161037f575b8161037060209383611845565b810103126102b657513861033b565b3d9150610363565b5080fd5b82346101ec57806003193601126101ec576005546040516001600160a01b039091168152602090f35b82346101ec5760403660031901126101ec576102246103d16118b1565b6103d9611fa2565b3390602435906120aa565b82346101ec5760203660031901126101ec576103fe6118b1565b610406611fa2565b600180546001600160a01b0319166001600160a01b0392831690811790915582549091167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227008380a380f35b905034610387576020806003193601126106195761046d6118b1565b91610476611fa2565b6001600160a01b039081610488611cb0565b5116806105aa575b506040516338d52e0f60e01b815284831693909281848481885afa93841561059f57879461053f575b50907f6483954a781fd2a588f0f6fe46f8e799cfe4c6a31dceaa6b6b0145fdbd0f114694610539949392604051906104f08261182a565b82825285169201829052600380546001600160a01b03199081169092179055825416179055604080516001600160a01b0395861681529490911660208501523393918291820190565b0390a280f35b90929180945081813d8311610598575b6105598183611845565b8101031261059457519282841684036105945790917f6483954a781fd2a588f0f6fe46f8e799cfe4c6a31dceaa6b6b0145fdbd0f11466104b9565b8680fd5b503d61054f565b6040513d89823e3d90fd5b6105b390611fce565b6105bd5738610490565b60405162461bcd60e51b8152908101839052602f60248201527f506f736974696f6e4d616e616765723a204e4f4e5f5a45524f5f4c502c20444960448201526e14d054d4d15350931157d1925494d5608a1b6064820152608490fd5b8280fd5b82346101ec57806003193601126101ec57506003549054604080516001600160a01b03938416815292909116602083015290f35b905034610387576020366003190112610387578154602092610705926001600160a01b03927fe5b4fe1f78fdb60a80c1256020410f15f10c5d037dd186e02089696655ddfa39926106ae918516331490811561072b575b50611a6a565b6106bd83600354161515611ac5565b846106c6611cb0565b016106de6106d685835116611fce565b923583611e57565b9485926106ff6106ec611a3a565b966106f78851611af6565b945116611fce565b90611bc5565b61070e82611a19565b52610720604051928392339684611cd8565b0390a2604051908152f35b60ff915060409033815260028952205416386106a8565b82346101ec57806003193601126101ec576001546040516001600160a01b039091168152602090f35b82346101ec57602061078561077f36611919565b90611e57565b604051908152f35b905034610387576020366003190112610387576107a86118b1565b906107b1611fa2565b6001600160a01b038216156107ca575061022490612038565b60649060206040519162461bcd60e51b8352820152601860248201527f4954424f776e61626c653a207a65726f206164647265737300000000000000006044820152fd5b905034610387576060366003190112610387576108296118b1565b906108326118c7565b916044359161083f611fa2565b838315610979575060405163095ea7b360e01b60208083018281526001600160a01b038881166024860152604480860189905285529394868516949092909160009061088c606489611845565b87519082885af16000513d8261095d575b5050156108e1575b505050505090600080516020612297833981519152915b604080516001600160a01b039586168152602081019390935293169281908101610539565b60405192602084015287166024830152600060448301526044825260808201908282106001600160401b038311176109485750916109386000805160206122978339815191529695949261093d946040528261223a565b61223a565b9091388080806108a5565b604190634e487b7160e01b6000525260246000fd5b9091506109715750833b15155b388061089d565b60011461096a565b6040805163095ea7b360e01b81526001600160a01b03909216928201928352602083810186905293949391928391829101038160006001600160a01b0388165af18015610a13576109db575b50600080516020612297833981519152916108bc565b6020813d602011610a0b575b816109f460209383611845565b810103126102b65751801515036102b657386109c5565b3d91506109e7565b6040513d6000823e3d90fd5b82346101ec5760603660031901126101ec57610a396118b1565b6044356001600160a01b03811681036102b65761022491610a58611fa2565b602435906120aa565b82346101ec5760403660031901126101ec57610224610a7e6118b1565b610a866118c7565b90610a8f611fa2565b610a988161208e565b906120aa565b905060603660031901126103875781610ab56118b1565b604435906001600160401b0393848311610b1f5736602384011215610b1f57820135938411610619573660248584010111610619576024839261022495610afa611fa2565b8060405193849301833781018481520391602435905af1610b196119b2565b906119f1565b8380fd5b82346101ec57806003193601126101ec576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b82346101ec5760203660031901126101ec5760209060ff906040906001600160a01b03610b936118b1565b168152600284522054166040519015158152f35b915034610c5c576020366003190112610c5c5781546001600160a01b0390811633148015610c46575b610bd990611a6a565b7f000000000000000000000000000000000000000000000000000000000000000016803b15610c4257829060405192838092630d0e30db60e41b82528235905af18015610c3757610c275750f35b610c3090611801565b6101ec5780f35b6040513d84823e3d90fd5b5050fd5b503383526002602052604083205460ff16610bd0565b50fd5b82346101ec57806003193601126101ec57546040516001600160a01b039091168152602090f35b82346101ec5760203660031901126101ec57610ca06118b1565b610ca8611fa2565b60018060a01b0316806bffffffffffffffffffffffff60a01b60055416176005556040519081527f896f95e2f70e072cc713066c108b45f737eaffbe450cdf479ba0b6249b20007460203392a280f35b82346101ec576020610785610d0c36611919565b90611d06565b905034610387578160031936011261038757600154336001600160a01b0390911603610d42575061022433612038565b6024906040519063118cdaa760e01b82523390820152fd5b82346101ec57806003193601126101ec57610d73611fa2565b600180546001600160a01b0319908116909155600080549182168155906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b82346101ec576020610785610dd436611919565b90611be8565b9050346103875760203660031901126103875780356001600160401b03811161061957608060031982360301126106195782546001600160a01b039290831633148015611161575b610e2b90611a6a565b6044820191610e46610e3f84838501611b28565b9050611af6565b94610e59610e3f60248401848601611b28565b93815b610e6b60248501858701611b28565b9050811015610eb15780610ea0610e9b610e96600194610e9060248a018a8c01611b28565b90611978565b61199e565b611fce565b610eaa8289611a26565b5201610e5c565b509094610ee8906005541691610ecb848601858701611b28565b929091610edd60248701878901611b28565b929091878901611b28565b919092610efa60648901898b01611b28565b959096883b1561115d5793610f498d9894610f5b94610f3760809c99958f9b996040519e8f9d8e6301c7ba5760e61b8152015260848d0191611b5d565b8a81036003190160248c015291611b5d565b87810360031901604489015291611ba1565b600319858203016064860152828152602081019260208160051b830101938388935b8385106110ed575050505050508383809203925af180156110e2579085916110ce575b505b610fb160248301838501611b28565b9050811015610ffb5780610fea610fd9610e9b610e96600195610e9060248901898b01611b28565b610fe38388611a26565b5190611bc5565b610ff48289611a26565b5201610fa2565b5061106b92506110487feb52dffbee1e79ccc1299cb412e00457926f40b2106ff16cd712172213b06bb661103460248401848601611b28565b929060405193604085526040850191611b5d565b9180830360208201528061105d33948a61187d565b0390a2602481019101611b28565b61107781939293611866565b926110856040519485611845565b818452602084019160051b8101923684116101ec5750905b8282106110b6575050506101e8604051928392836118f1565b602080916110c3846118dd565b81520191019061109d565b6110d790611801565b610b1f578338610fa0565b6040513d87823e3d90fd5b92959194975092959750601f198282030184528635601e19843603018112156111595783016001600160401b0381351161115957803560051b3603602082011361115957602061114560019383838095359101611ba1565b98019401950191948c979589979592610f7d565b8d80fd5b8c80fd5b503384526002602052604084205460ff16610e22565b82346101ec5760203660031901126101ec576111e9906111ab60018060a01b03918281541633149081156112825750611a6a565b6111da816003541615156111be81611ac5565b338360005416148015611269575b6111d590611a6a565b611ac5565b6111e2611cb0565b5116611fce565b90670de0b6b3a76400009182810290808204841490151715611254576020926112159104913582611d06565b907f5ee5e243dcd2dfdba09d22c56585c4a3fcc188b1689ef919b3f8b908a73184c261123f611a3a565b9161124a8351611af6565b8461070e82611a19565b601182634e487b7160e01b6000525260246000fd5b503360009081526002602052604090205460ff166111cc565b60ff91506040903381526002602052205416856106a8565b915034610c5c576020366003190112610c5c5781546001600160a01b039081163314801561132a575b6112cc90611a6a565b7f000000000000000000000000000000000000000000000000000000000000000016803b15610c4257602483926040519485938492632e1a7d4d60e01b84528035908401525af18015610c3757611321575080f35b61022490611801565b503383526002602052604083205460ff166112c3565b9050346103875760403660031901126103875761135b6118b1565b906113646118c7565b61136c611fa2565b60405163095ea7b360e01b81526001600160a01b039182169281018390526024810185905292169160208160448187875af18015611403576113cb575b506040600080516020612297833981519152918151908152846020820152a280f35b6020813d6020116113fb575b816113e460209383611845565b81010312610b1f57518015150361061957386113a9565b3d91506113d7565b6040513d86823e3d90fd5b82346101ec5760203660031901126101ec576114286118b1565b611430611fa2565b60018060a01b0316807f9fdbc2d48b8a0db2f62663bf9312ad02f5b1f6414ad600b55a247d09aeec3ea26020604051858152a28152600260205260408120805460ff1916905580f35b82346101ec5760203660031901126101ec576114936118b1565b61149b611fa2565b60018060a01b0316807f9fdbc2d48b8a0db2f62663bf9312ad02f5b1f6414ad600b55a247d09aeec3ea2602060405160018152a28152600260205260408120805460ff1916600117905580f35b90503461038757604036600319011261038757602435906001600160401b038211610619573660238301121561061957818101359261152684611866565b926115346040519485611845565b84845260209460248686019160051b83010191368311610b1f57906024879201905b8382106115ed57826115a0876115988a6115938a61158860018060a01b03918281541633149081156115d65750611a6a565b600354161515611ac5565b611a19565b519035611be8565b90604051916115ae8361182a565b600183528136818501376115c183611a19565b526101e860405192828493845283019061187d565b60ff915060409033815260028b52205416896106a8565b81358152908201908201611556565b82346101ec57806003193601126101ec576101e8611618611a3a565b6040519182916020835260208301906117c4565b90506060366003190112610387576001600160401b03908035828111610b1f576116599036908301611794565b9290602493602435838111610594576116759036908601611794565b9590946044358581116117905761168f9036908301611794565b94909361169a611fa2565b88811480611787575b1561174357895b8181106116b5578a80f35b6116c3610e96828486611978565b906116cf818c8c611978565b3588821015611731578c8260051b890135601e198a360301811215610387578901938435948c861161061957602001908536038213610619578561172b9484936001986040519384928337810185815203925af1610b196119b2565b016116aa565b634e487b7160e01b8d5260328652868dfd5b60405162461bcd60e51b8152602081850152601960248201527f417267756d656e7473206c656e677468206d69736d61746368000000000000006044820152606490fd5b508581146116a3565b8880fd5b9181601f840112156102b6578235916001600160401b0383116102b6576020808501948460051b0101116102b657565b90815180825260208080930193019160005b8281106117e4575050505090565b83516001600160a01b0316855293810193928101926001016117d6565b6001600160401b03811161181457604052565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761181457604052565b90601f801991011681019081106001600160401b0382111761181457604052565b6001600160401b0381116118145760051b60200190565b90815180825260208080930193019160005b82811061189d575050505090565b83518552938101939281019260010161188f565b600435906001600160a01b03821682036102b657565b602435906001600160a01b03821682036102b657565b35906001600160a01b03821682036102b657565b9091611908611916936040845260408401906117c4565b91602081840391015261187d565b90565b60409060031901126102b6576004359060243590565b6020808252825181830181905290939260005b82811061196457505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501611942565b91908110156119885760051b0190565b634e487b7160e01b600052603260045260246000fd5b356001600160a01b03811681036102b65790565b3d156119ec573d906001600160401b03821161181457604051916119e0601f8201601f191660200184611845565b82523d6000602084013e565b606090565b156119f95750565b60405162461bcd60e51b8152908190611a15906004830161192f565b0390fd5b8051156119885760200190565b80518210156119885760209160051b010190565b604051611a468161182a565b60018152602036818301376004546001600160a01b0316611a6682611a19565b5290565b15611a7157565b60405162461bcd60e51b815260206004820152602660248201527f45786563757461626c653a2063616c6c6572206973206e6f742074686520657860448201526532b1baba37b960d11b6064820152608490fd5b15611acc57565b60405162461bcd60e51b8152602060048201526002602482015261413360f01b6044820152606490fd5b90611b0082611866565b611b0d6040519182611845565b8281528092611b1e601f1991611866565b0190602036910137565b903590601e19813603018212156102b657018035906001600160401b0382116102b657602001918160051b360383136102b657565b91908082526020809201929160005b828110611b7a575050505090565b909192938280600192838060a01b03611b92896118dd565b16815201950193929101611b6c565b81835290916001600160fb1b0383116102b65760209260051b809284830137010190565b91908203918211611bd257565b634e487b7160e01b600052601160045260246000fd5b600054611c1b906001600160a01b0390811633148015611c97575b611c0c90611a6a565b6111da81600354161515611ac5565b818102918183041490151715611bd257670de0b6b3a7640000611c4091049182611d06565b907f5ee5e243dcd2dfdba09d22c56585c4a3fcc188b1689ef919b3f8b908a73184c2611c6a611a3a565b91611c758351611af6565b84611c7f82611a19565b52611c91604051928392339684611cd8565b0390a290565b503360009081526002602052604090205460ff16611c03565b60405190611cbd8261182a565b6003546001600160a01b039081168352600454166020830152565b939291611d0190611cf36040936060885260608801906117c4565b90868203602088015261187d565b930152565b60008054909291906001600160a01b0390811633148015611e41575b611d2b90611a6a565b611d3a81600354161515611ac5565b83611d43611cb0565b938285511660405190635d043b2960e11b82528560048301523060248301523060448301528160648160209687945af19687156102c3578097611e0f575b50508510611de6578351930151604080516001600160a01b0395841686168152919092169390931660208401528201839052606082015233907faee47cdf925cf525fdae94f9777ee5a06cac37e1c41220d0a8a89ed154f62d1c908060808101611c91565b6064906040519062461bcd60e51b825260048201526002602482015261573160f01b6044820152fd5b909196508282813d8311611e3a575b611e288183611845565b810103126101ec575051943880611d81565b503d611e1e565b503384526002602052604084205460ff16611d22565b60008054909291906001600160a01b0390811633148015611f8c575b611e7c90611a6a565b611e8b81600354161515611ac5565b83611e94611cb0565b938285511660405190636e553f6560e01b82528560048301523060248301528160448160209687945af19687156102c3578097611f5a575b50508510611f31578351930151604080516001600160a01b0395841686168152919092169390931660208401528201526060810182905233907f5fe47ed6d4225326d3303476197d782ded5a4e9c14f479dc9ec4992af4e85d59908060808101611c91565b6064906040519062461bcd60e51b825260048201526002602482015261443160f01b6044820152fd5b909196508282813d8311611f85575b611f738183611845565b810103126101ec575051943880611ecc565b503d611f69565b503384526002602052604084205460ff16611e73565b6000546001600160a01b03163303611fb657565b60405163118cdaa760e01b8152336004820152602490fd5b6040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa908115610a1357600091612009575090565b90506020813d602011612030575b8161202460209383611845565b810103126102b6575190565b3d9150612017565b6bffffffffffffffffffffffff60a01b90816001541660015560005460018060a01b038092168093821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b6001600160a01b0381166120a157504790565b61191690611fce565b90916001600160a01b0390811691821561220357836120c88261208e565b106121c95716918261215e57600080808084865af16120e56119b2565b50156121195760207f9207361cc2a04b9c7a06691df1eb87c6a63957ae88bf01d0d18c81e3d1272099915b604051908152a3565b60405162461bcd60e51b815260206004820152601760248201527f4e6174697665207472616e73666572206661696c65642e0000000000000000006044820152606490fd5b60405163a9059cbb60e01b6020808301919091526001600160a01b0384166024830152604480830184905282527f9207361cc2a04b9c7a06691df1eb87c6a63957ae88bf01d0d18c81e3d12720999290916121c4906121be606482611845565b8661223a565b612110565b60405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606490fd5b60405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606490fd5b906000602091828151910182855af115610a13576000513d61228d57506001600160a01b0381163b155b61226b5750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b6001141561226456feeded619173dbb378903f97d44ecec898a1c4876f445ae551e063113aef58b471a26469706673582212202d747394a805c8dfc051d30a83fbf9ad4c05d0c308f16cb4b8106ca1d968667664736f6c634300081600330000000000000000000000000000000000000000000000000000000000000080000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000b576765fb15505433af24fee2c0325895c559fb20000000000000000000000003ef3d8ba38ebe18db133cec108f4d14ce00dd9ae000000000000000000000000000000000000000000000000000000000000000100000000000000000000000094a025c477a313471199d38e7e41532a727ed480

Deployed Bytecode

0x608060405260048036101561001d575b50361561001b57600080fd5b005b600090813560e01c908163077d97d71461162c578163087ed837146115fc5781631ea68c00146114e85781631f5a0bbe14611479578163247884291461140e5781633419ba23146113405782826334b10a6d1461129a5750816354621b421461117757816362b88f5414610dda5781636ed625ab14610dc0578163715018a614610d5a57816379ba509714610d125781637cbc237314610cf85781638c53b74714610c865781638da5cb5b14610c5f578282639169d83314610ba7575081639ac2a01114610b68578163b381cf4014610b23578163b61d27f614610a9e578163b6703fcd14610a61578163c4e2c1e614610a1f578163da3e33971461080e578163e1b971391461078d578163e2bbb1581461076b578163e30c397814610742578163e6a6e7a214610651578163ecf747771461061d578163f0313acb14610451578163f2fde38b146103e4578163f3fef3a3146103b4578163f4537f781461038b578163f65baefa146102cf578163f7888aec1461022757508063fa09e630146101ef5763ffa1ad740361000f57346101ec57806003193601126101ec576101e86040516101ca8161182a565b60058152640312e302e360dc1b60208201526040519182918261192f565b0390f35b80fd5b50346101ec5760203660031901126101ec5761022461020c6118b1565b610214611fa2565b61021d8161208e565b33916120aa565b80f35b82346101ec5760403660031901126101ec5760206102436118b1565b602461024d6118c7565b6040516370a0823160e01b81526001600160a01b039182169681019690965285928391165afa9081156102c3579061028b575b602090604051908152f35b506020813d6020116102bb575b816102a560209383611845565b810103126102b65760209051610280565b600080fd5b3d9150610298565b604051903d90823e3d90fd5b9050346103875781600319360112610387576102e9611cb0565b916102f2611a3a565b9160206102ff8451611af6565b94516001600160a01b031691602461031684611fce565b9160405194859384926303d1689d60e11b84528301525afa9182156102c35791610355575b5061034583611a19565b526101e8604051928392836118f1565b90506020813d60201161037f575b8161037060209383611845565b810103126102b657513861033b565b3d9150610363565b5080fd5b82346101ec57806003193601126101ec576005546040516001600160a01b039091168152602090f35b82346101ec5760403660031901126101ec576102246103d16118b1565b6103d9611fa2565b3390602435906120aa565b82346101ec5760203660031901126101ec576103fe6118b1565b610406611fa2565b600180546001600160a01b0319166001600160a01b0392831690811790915582549091167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e227008380a380f35b905034610387576020806003193601126106195761046d6118b1565b91610476611fa2565b6001600160a01b039081610488611cb0565b5116806105aa575b506040516338d52e0f60e01b815284831693909281848481885afa93841561059f57879461053f575b50907f6483954a781fd2a588f0f6fe46f8e799cfe4c6a31dceaa6b6b0145fdbd0f114694610539949392604051906104f08261182a565b82825285169201829052600380546001600160a01b03199081169092179055825416179055604080516001600160a01b0395861681529490911660208501523393918291820190565b0390a280f35b90929180945081813d8311610598575b6105598183611845565b8101031261059457519282841684036105945790917f6483954a781fd2a588f0f6fe46f8e799cfe4c6a31dceaa6b6b0145fdbd0f11466104b9565b8680fd5b503d61054f565b6040513d89823e3d90fd5b6105b390611fce565b6105bd5738610490565b60405162461bcd60e51b8152908101839052602f60248201527f506f736974696f6e4d616e616765723a204e4f4e5f5a45524f5f4c502c20444960448201526e14d054d4d15350931157d1925494d5608a1b6064820152608490fd5b8280fd5b82346101ec57806003193601126101ec57506003549054604080516001600160a01b03938416815292909116602083015290f35b905034610387576020366003190112610387578154602092610705926001600160a01b03927fe5b4fe1f78fdb60a80c1256020410f15f10c5d037dd186e02089696655ddfa39926106ae918516331490811561072b575b50611a6a565b6106bd83600354161515611ac5565b846106c6611cb0565b016106de6106d685835116611fce565b923583611e57565b9485926106ff6106ec611a3a565b966106f78851611af6565b945116611fce565b90611bc5565b61070e82611a19565b52610720604051928392339684611cd8565b0390a2604051908152f35b60ff915060409033815260028952205416386106a8565b82346101ec57806003193601126101ec576001546040516001600160a01b039091168152602090f35b82346101ec57602061078561077f36611919565b90611e57565b604051908152f35b905034610387576020366003190112610387576107a86118b1565b906107b1611fa2565b6001600160a01b038216156107ca575061022490612038565b60649060206040519162461bcd60e51b8352820152601860248201527f4954424f776e61626c653a207a65726f206164647265737300000000000000006044820152fd5b905034610387576060366003190112610387576108296118b1565b906108326118c7565b916044359161083f611fa2565b838315610979575060405163095ea7b360e01b60208083018281526001600160a01b038881166024860152604480860189905285529394868516949092909160009061088c606489611845565b87519082885af16000513d8261095d575b5050156108e1575b505050505090600080516020612297833981519152915b604080516001600160a01b039586168152602081019390935293169281908101610539565b60405192602084015287166024830152600060448301526044825260808201908282106001600160401b038311176109485750916109386000805160206122978339815191529695949261093d946040528261223a565b61223a565b9091388080806108a5565b604190634e487b7160e01b6000525260246000fd5b9091506109715750833b15155b388061089d565b60011461096a565b6040805163095ea7b360e01b81526001600160a01b03909216928201928352602083810186905293949391928391829101038160006001600160a01b0388165af18015610a13576109db575b50600080516020612297833981519152916108bc565b6020813d602011610a0b575b816109f460209383611845565b810103126102b65751801515036102b657386109c5565b3d91506109e7565b6040513d6000823e3d90fd5b82346101ec5760603660031901126101ec57610a396118b1565b6044356001600160a01b03811681036102b65761022491610a58611fa2565b602435906120aa565b82346101ec5760403660031901126101ec57610224610a7e6118b1565b610a866118c7565b90610a8f611fa2565b610a988161208e565b906120aa565b905060603660031901126103875781610ab56118b1565b604435906001600160401b0393848311610b1f5736602384011215610b1f57820135938411610619573660248584010111610619576024839261022495610afa611fa2565b8060405193849301833781018481520391602435905af1610b196119b2565b906119f1565b8380fd5b82346101ec57806003193601126101ec576040517f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03168152602090f35b82346101ec5760203660031901126101ec5760209060ff906040906001600160a01b03610b936118b1565b168152600284522054166040519015158152f35b915034610c5c576020366003190112610c5c5781546001600160a01b0390811633148015610c46575b610bd990611a6a565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216803b15610c4257829060405192838092630d0e30db60e41b82528235905af18015610c3757610c275750f35b610c3090611801565b6101ec5780f35b6040513d84823e3d90fd5b5050fd5b503383526002602052604083205460ff16610bd0565b50fd5b82346101ec57806003193601126101ec57546040516001600160a01b039091168152602090f35b82346101ec5760203660031901126101ec57610ca06118b1565b610ca8611fa2565b60018060a01b0316806bffffffffffffffffffffffff60a01b60055416176005556040519081527f896f95e2f70e072cc713066c108b45f737eaffbe450cdf479ba0b6249b20007460203392a280f35b82346101ec576020610785610d0c36611919565b90611d06565b905034610387578160031936011261038757600154336001600160a01b0390911603610d42575061022433612038565b6024906040519063118cdaa760e01b82523390820152fd5b82346101ec57806003193601126101ec57610d73611fa2565b600180546001600160a01b0319908116909155600080549182168155906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b82346101ec576020610785610dd436611919565b90611be8565b9050346103875760203660031901126103875780356001600160401b03811161061957608060031982360301126106195782546001600160a01b039290831633148015611161575b610e2b90611a6a565b6044820191610e46610e3f84838501611b28565b9050611af6565b94610e59610e3f60248401848601611b28565b93815b610e6b60248501858701611b28565b9050811015610eb15780610ea0610e9b610e96600194610e9060248a018a8c01611b28565b90611978565b61199e565b611fce565b610eaa8289611a26565b5201610e5c565b509094610ee8906005541691610ecb848601858701611b28565b929091610edd60248701878901611b28565b929091878901611b28565b919092610efa60648901898b01611b28565b959096883b1561115d5793610f498d9894610f5b94610f3760809c99958f9b996040519e8f9d8e6301c7ba5760e61b8152015260848d0191611b5d565b8a81036003190160248c015291611b5d565b87810360031901604489015291611ba1565b600319858203016064860152828152602081019260208160051b830101938388935b8385106110ed575050505050508383809203925af180156110e2579085916110ce575b505b610fb160248301838501611b28565b9050811015610ffb5780610fea610fd9610e9b610e96600195610e9060248901898b01611b28565b610fe38388611a26565b5190611bc5565b610ff48289611a26565b5201610fa2565b5061106b92506110487feb52dffbee1e79ccc1299cb412e00457926f40b2106ff16cd712172213b06bb661103460248401848601611b28565b929060405193604085526040850191611b5d565b9180830360208201528061105d33948a61187d565b0390a2602481019101611b28565b61107781939293611866565b926110856040519485611845565b818452602084019160051b8101923684116101ec5750905b8282106110b6575050506101e8604051928392836118f1565b602080916110c3846118dd565b81520191019061109d565b6110d790611801565b610b1f578338610fa0565b6040513d87823e3d90fd5b92959194975092959750601f198282030184528635601e19843603018112156111595783016001600160401b0381351161115957803560051b3603602082011361115957602061114560019383838095359101611ba1565b98019401950191948c979589979592610f7d565b8d80fd5b8c80fd5b503384526002602052604084205460ff16610e22565b82346101ec5760203660031901126101ec576111e9906111ab60018060a01b03918281541633149081156112825750611a6a565b6111da816003541615156111be81611ac5565b338360005416148015611269575b6111d590611a6a565b611ac5565b6111e2611cb0565b5116611fce565b90670de0b6b3a76400009182810290808204841490151715611254576020926112159104913582611d06565b907f5ee5e243dcd2dfdba09d22c56585c4a3fcc188b1689ef919b3f8b908a73184c261123f611a3a565b9161124a8351611af6565b8461070e82611a19565b601182634e487b7160e01b6000525260246000fd5b503360009081526002602052604090205460ff166111cc565b60ff91506040903381526002602052205416856106a8565b915034610c5c576020366003190112610c5c5781546001600160a01b039081163314801561132a575b6112cc90611a6a565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216803b15610c4257602483926040519485938492632e1a7d4d60e01b84528035908401525af18015610c3757611321575080f35b61022490611801565b503383526002602052604083205460ff166112c3565b9050346103875760403660031901126103875761135b6118b1565b906113646118c7565b61136c611fa2565b60405163095ea7b360e01b81526001600160a01b039182169281018390526024810185905292169160208160448187875af18015611403576113cb575b506040600080516020612297833981519152918151908152846020820152a280f35b6020813d6020116113fb575b816113e460209383611845565b81010312610b1f57518015150361061957386113a9565b3d91506113d7565b6040513d86823e3d90fd5b82346101ec5760203660031901126101ec576114286118b1565b611430611fa2565b60018060a01b0316807f9fdbc2d48b8a0db2f62663bf9312ad02f5b1f6414ad600b55a247d09aeec3ea26020604051858152a28152600260205260408120805460ff1916905580f35b82346101ec5760203660031901126101ec576114936118b1565b61149b611fa2565b60018060a01b0316807f9fdbc2d48b8a0db2f62663bf9312ad02f5b1f6414ad600b55a247d09aeec3ea2602060405160018152a28152600260205260408120805460ff1916600117905580f35b90503461038757604036600319011261038757602435906001600160401b038211610619573660238301121561061957818101359261152684611866565b926115346040519485611845565b84845260209460248686019160051b83010191368311610b1f57906024879201905b8382106115ed57826115a0876115988a6115938a61158860018060a01b03918281541633149081156115d65750611a6a565b600354161515611ac5565b611a19565b519035611be8565b90604051916115ae8361182a565b600183528136818501376115c183611a19565b526101e860405192828493845283019061187d565b60ff915060409033815260028b52205416896106a8565b81358152908201908201611556565b82346101ec57806003193601126101ec576101e8611618611a3a565b6040519182916020835260208301906117c4565b90506060366003190112610387576001600160401b03908035828111610b1f576116599036908301611794565b9290602493602435838111610594576116759036908601611794565b9590946044358581116117905761168f9036908301611794565b94909361169a611fa2565b88811480611787575b1561174357895b8181106116b5578a80f35b6116c3610e96828486611978565b906116cf818c8c611978565b3588821015611731578c8260051b890135601e198a360301811215610387578901938435948c861161061957602001908536038213610619578561172b9484936001986040519384928337810185815203925af1610b196119b2565b016116aa565b634e487b7160e01b8d5260328652868dfd5b60405162461bcd60e51b8152602081850152601960248201527f417267756d656e7473206c656e677468206d69736d61746368000000000000006044820152606490fd5b508581146116a3565b8880fd5b9181601f840112156102b6578235916001600160401b0383116102b6576020808501948460051b0101116102b657565b90815180825260208080930193019160005b8281106117e4575050505090565b83516001600160a01b0316855293810193928101926001016117d6565b6001600160401b03811161181457604052565b634e487b7160e01b600052604160045260246000fd5b604081019081106001600160401b0382111761181457604052565b90601f801991011681019081106001600160401b0382111761181457604052565b6001600160401b0381116118145760051b60200190565b90815180825260208080930193019160005b82811061189d575050505090565b83518552938101939281019260010161188f565b600435906001600160a01b03821682036102b657565b602435906001600160a01b03821682036102b657565b35906001600160a01b03821682036102b657565b9091611908611916936040845260408401906117c4565b91602081840391015261187d565b90565b60409060031901126102b6576004359060243590565b6020808252825181830181905290939260005b82811061196457505060409293506000838284010152601f8019910116010190565b818101860151848201604001528501611942565b91908110156119885760051b0190565b634e487b7160e01b600052603260045260246000fd5b356001600160a01b03811681036102b65790565b3d156119ec573d906001600160401b03821161181457604051916119e0601f8201601f191660200184611845565b82523d6000602084013e565b606090565b156119f95750565b60405162461bcd60e51b8152908190611a15906004830161192f565b0390fd5b8051156119885760200190565b80518210156119885760209160051b010190565b604051611a468161182a565b60018152602036818301376004546001600160a01b0316611a6682611a19565b5290565b15611a7157565b60405162461bcd60e51b815260206004820152602660248201527f45786563757461626c653a2063616c6c6572206973206e6f742074686520657860448201526532b1baba37b960d11b6064820152608490fd5b15611acc57565b60405162461bcd60e51b8152602060048201526002602482015261413360f01b6044820152606490fd5b90611b0082611866565b611b0d6040519182611845565b8281528092611b1e601f1991611866565b0190602036910137565b903590601e19813603018212156102b657018035906001600160401b0382116102b657602001918160051b360383136102b657565b91908082526020809201929160005b828110611b7a575050505090565b909192938280600192838060a01b03611b92896118dd565b16815201950193929101611b6c565b81835290916001600160fb1b0383116102b65760209260051b809284830137010190565b91908203918211611bd257565b634e487b7160e01b600052601160045260246000fd5b600054611c1b906001600160a01b0390811633148015611c97575b611c0c90611a6a565b6111da81600354161515611ac5565b818102918183041490151715611bd257670de0b6b3a7640000611c4091049182611d06565b907f5ee5e243dcd2dfdba09d22c56585c4a3fcc188b1689ef919b3f8b908a73184c2611c6a611a3a565b91611c758351611af6565b84611c7f82611a19565b52611c91604051928392339684611cd8565b0390a290565b503360009081526002602052604090205460ff16611c03565b60405190611cbd8261182a565b6003546001600160a01b039081168352600454166020830152565b939291611d0190611cf36040936060885260608801906117c4565b90868203602088015261187d565b930152565b60008054909291906001600160a01b0390811633148015611e41575b611d2b90611a6a565b611d3a81600354161515611ac5565b83611d43611cb0565b938285511660405190635d043b2960e11b82528560048301523060248301523060448301528160648160209687945af19687156102c3578097611e0f575b50508510611de6578351930151604080516001600160a01b0395841686168152919092169390931660208401528201839052606082015233907faee47cdf925cf525fdae94f9777ee5a06cac37e1c41220d0a8a89ed154f62d1c908060808101611c91565b6064906040519062461bcd60e51b825260048201526002602482015261573160f01b6044820152fd5b909196508282813d8311611e3a575b611e288183611845565b810103126101ec575051943880611d81565b503d611e1e565b503384526002602052604084205460ff16611d22565b60008054909291906001600160a01b0390811633148015611f8c575b611e7c90611a6a565b611e8b81600354161515611ac5565b83611e94611cb0565b938285511660405190636e553f6560e01b82528560048301523060248301528160448160209687945af19687156102c3578097611f5a575b50508510611f31578351930151604080516001600160a01b0395841686168152919092169390931660208401528201526060810182905233907f5fe47ed6d4225326d3303476197d782ded5a4e9c14f479dc9ec4992af4e85d59908060808101611c91565b6064906040519062461bcd60e51b825260048201526002602482015261443160f01b6044820152fd5b909196508282813d8311611f85575b611f738183611845565b810103126101ec575051943880611ecc565b503d611f69565b503384526002602052604084205460ff16611e73565b6000546001600160a01b03163303611fb657565b60405163118cdaa760e01b8152336004820152602490fd5b6040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa908115610a1357600091612009575090565b90506020813d602011612030575b8161202460209383611845565b810103126102b6575190565b3d9150612017565b6bffffffffffffffffffffffff60a01b90816001541660015560005460018060a01b038092168093821617600055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b6001600160a01b0381166120a157504790565b61191690611fce565b90916001600160a01b0390811691821561220357836120c88261208e565b106121c95716918261215e57600080808084865af16120e56119b2565b50156121195760207f9207361cc2a04b9c7a06691df1eb87c6a63957ae88bf01d0d18c81e3d1272099915b604051908152a3565b60405162461bcd60e51b815260206004820152601760248201527f4e6174697665207472616e73666572206661696c65642e0000000000000000006044820152606490fd5b60405163a9059cbb60e01b6020808301919091526001600160a01b0384166024830152604480830184905282527f9207361cc2a04b9c7a06691df1eb87c6a63957ae88bf01d0d18c81e3d12720999290916121c4906121be606482611845565b8661223a565b612110565b60405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606490fd5b60405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b6044820152606490fd5b906000602091828151910182855af115610a13576000513d61228d57506001600160a01b0381163b155b61226b5750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b6001141561226456feeded619173dbb378903f97d44ecec898a1c4876f445ae551e063113aef58b471a26469706673582212202d747394a805c8dfc051d30a83fbf9ad4c05d0c308f16cb4b8106ca1d968667664736f6c63430008160033

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

0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000b576765fb15505433af24fee2c0325895c559fb20000000000000000000000003ef3d8ba38ebe18db133cec108f4d14ce00dd9ae000000000000000000000000000000000000000000000000000000000000000100000000000000000000000094a025c477a313471199d38e7e41532a727ed480

-----Decoded View---------------
Arg [0] : _executors (address[]): 0x94A025c477A313471199D38e7e41532a727Ed480
Arg [1] : _wnative (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
Arg [2] : _morpho_vault (address): 0xb576765fB15505433aF24FEe2c0325895C559FB2
Arg [3] : _merkle_distributor (address): 0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [2] : 000000000000000000000000b576765fb15505433af24fee2c0325895c559fb2
Arg [3] : 0000000000000000000000003ef3d8ba38ebe18db133cec108f4d14ce00dd9ae
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [5] : 00000000000000000000000094a025c477a313471199d38e7e41532a727ed480


Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]

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