Contract 0xE4bA6740aF4c666325D49B3112E4758371386aDc 3

 

Contract Overview

Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xefa911fe0c3d168433d79ef6cacfe7559bde7dce9e53cdb4e41595219e3c2b5bMulticall1854432492024-02-28 20:01:5917 mins ago0xb97331e86ea4ce364491650e127e096c720dc422 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00031077 0.1
0x167017e0dff02ca5ee028208106079720e6c2bf2523bf08800d85d83f50fd043Multicall1854408292024-02-28 19:51:3227 mins ago0xbb742d7e53115edf30a168b7cab2badb0d8c77a6 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.000721960.1
0x0c3959e500cef4b3fdf538be6cfd6aa400f3f9e7c4c2ecd79a27a77207fe9738Multicall1854387252024-02-28 19:42:1937 mins ago0x7b583354f3d81a35405fbf60c7d904d4e74baf23 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00060892 0.1
0x062b0a07df3b4b8354275656229aac773ed294867cba465b73f04e1aa08ca5c5Multicall1854339732024-02-28 19:21:4057 mins ago0xee2c1f481dc2fcc920187b71678d0646b3bf681f IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.0004589 0.1
0xed921dfb2eb62a6a5c8229ba267100c06feda3a7c65f6151da1f525f77cbae76Multicall1854338122024-02-28 19:20:5958 mins ago0x53e213da8c28d85dc6663c3b5e35bb0ffbb05752 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.000749360.1
0x8d60114b3686f1198a8db0c005294fad143e84ec5752cb684ba764d8b0eb19dbMulticall1854332272024-02-28 19:18:311 hr ago0xee2c1f481dc2fcc920187b71678d0646b3bf681f IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00037493 0.1
0x98cf38aa684c725dada9809e4f750c0818b25aca3acd29854d19c863b52474beMulticall1854322932024-02-28 19:14:261 hr 5 mins ago0x7f4a5e7a5f7528ca125620820a4b24084d9e4175 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.000816260.1
0xa786bc7b7302afc2ac8885ce1b7431417402c6fb1f90b6a664bb850e3a2c95baMulticall1854316862024-02-28 19:11:511 hr 7 mins ago0x7b583354f3d81a35405fbf60c7d904d4e74baf23 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00068491 0.1
0x0a08cec7f69ecd83791854f510ee32b50c1b542605fc2ac446161e4b7a30984dMulticall1854313692024-02-28 19:10:311 hr 8 mins ago0x7b583354f3d81a35405fbf60c7d904d4e74baf23 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00085522 0.1
0x1f4454e3af90bb447a749ea6abc5bae64879880ee8934a1477b04973c75449bfMulticall1854263452024-02-28 18:49:131 hr 30 mins ago0x7f4a5e7a5f7528ca125620820a4b24084d9e4175 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.001172960.1
0x5649e751743be650791b6508e529956998d5899a2f9987019826c0ece6b7e28cMulticall1853993652024-02-28 16:55:503 hrs 23 mins ago0xb9255462c218d8cdd6b20ba138dd265bb096bf0f IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00048807 0.1
0xb894de85a971f4c073b99c7d0d326c97b3961f70c63763708a53c6e97d142da3Multicall1853991552024-02-28 16:54:573 hrs 24 mins ago0xb9255462c218d8cdd6b20ba138dd265bb096bf0f IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00047294 0.1
0xbc9b8eb66cfe50dafdfdb10381c56329d353f316c59687163e073725b0ebd8e1Multicall1853981302024-02-28 16:50:413 hrs 28 mins ago0x972521d0e4d3e1d3509c8449ffe119f8038d82ea IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00037127 0.1
0x9dd0dbfe3005d53a5b42f8729bea1b400ed6681ba49f7e307f56b7ad170c739aMulticall1853963592024-02-28 16:43:153 hrs 36 mins ago0x36505cd5748cd9b5435ad393d31da8a3a228c0a6 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00035413 0.1
0x9065b9efcad4033f1560f4501cade3c8be0875d27b0d7a17b200770a76c70a50Multicall1853945542024-02-28 16:35:413 hrs 43 mins ago0x80c650d06d533e7925aac7b472cef8968fb88b87 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.0003673 0.1
0xc7191b8a60781de4c998a96e70c58a8a4013547cccebce0f9e97f1fac25cc0f1Multicall1853943442024-02-28 16:34:473 hrs 44 mins ago0x80c650d06d533e7925aac7b472cef8968fb88b87 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00036222 0.1
0xd86501c2164d5280c6942727f5332da0d6cf72be43cc29ed70eef9a598fd77b6Multicall1853942262024-02-28 16:34:183 hrs 45 mins ago0x80c650d06d533e7925aac7b472cef8968fb88b87 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00033063 0.1
0x0027543d48ec42897ffa42bfb221fb79160c2376b1ebdacafaeddecdf8fb675cMulticall1853934792024-02-28 16:31:113 hrs 48 mins ago0x80c650d06d533e7925aac7b472cef8968fb88b87 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00057076 0.1
0x5dc9343d1bdc1ef90427b2c3afda991a301b768a8768fbd7e4c875d4183d76abMulticall1853914482024-02-28 16:22:383 hrs 56 mins ago0x972521d0e4d3e1d3509c8449ffe119f8038d82ea IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00028324 0.1
0xa7803c09a86283484cd59ca5205a992bfd03cb98aa97d6c138b8a94836db361fMulticall1853859802024-02-28 15:59:484 hrs 19 mins ago0x29320e2d8fb4137b5dfbfc0b27cb3203e10b7888 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00084928 0.1
0x10a806515a98f7a832f588078dfad80604376e249ecc77c26a0404f5839c7482Multicall1853842032024-02-28 15:52:184 hrs 27 mins ago0x1eed68b6397e99c306aeb2b5ec5c1159225db72b IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.0004591 0.1
0xadd3e16d96928fc3f869d24d50e5ea8fa3107ac56474ca3124f90a9f621662e1Multicall1853840932024-02-28 15:51:504 hrs 27 mins ago0x53e213da8c28d85dc6663c3b5e35bb0ffbb05752 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.000931060.1
0x4fc9f3bea1d027b4145639db737fbc0e855277ad25386abf2f524fe06b7ae20cMulticall1853804082024-02-28 15:36:214 hrs 43 mins ago0x3513c20348ba5c50d721803fe6d05f2bb4ebb569 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00040885 0.1
0xdd57dcf1d6ef5cd8c6018ee115cd1d8a4cc3bbd4d8312a67582d7f2b0e7c8e0cMulticall1853803622024-02-28 15:36:094 hrs 43 mins ago0x15760142b3e749ecbe82d4d542e9416af3228ed0 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00042506 0.1
0x3718f9dcc9173cb997079f816851666fb9f8da4cfc72358b568fe110486eb4b4Multicall1853779262024-02-28 15:26:024 hrs 53 mins ago0xf9bb823a2eaa181ab89b79cea6301274368999b4 IN  0xe4ba6740af4c666325d49b3112e4758371386adc0 ETH0.00040467 0.1
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
DopexV2PositionManager

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 0 runs

Other Settings:
london EvmVersion
File 1 of 10 : DopexV2PositionManager.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0 <0.9.0;

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

import {IERC20} from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";

import {Ownable} from "openzeppelin-contracts/contracts/access/Ownable.sol";
import {ReentrancyGuard} from "openzeppelin-contracts/contracts/security/ReentrancyGuard.sol";
import {Multicall} from "openzeppelin-contracts/contracts/utils/Multicall.sol";

/**
 * @title DopexV2PositionManager
 * @author 0xcarrot
 * @dev This contract is an entry point which acts as shared interface
 * between liquidity managers (handlers) and apps utilizing the liquidity.
 * It does not store any user data, it accepts truth from the handlers.
 * Use only known Handler! Be Safe!
 */
contract DopexV2PositionManager is Ownable, ReentrancyGuard, Multicall {
    using SafeERC20 for IERC20;

    mapping(bytes32 => bool) public whitelistedHandlersWithApp;
    mapping(address => bool) public whitelistedHandlers;

    // events
    event LogMintPosition(
        IHandler _handler,
        uint256 tokenId,
        address user,
        uint256 sharesMinted
    );

    event LogBurnPosition(
        IHandler _handler,
        uint256 tokenId,
        address user,
        uint256 sharesBurned
    );

    event LogUsePosition(IHandler _handler, uint256 liquidityUsed);

    event LogUnusePosition(IHandler _handler, uint256 liquidityUnused);

    event LogDonation(IHandler _handler, uint256 liquidityDonated);

    event LogUpdateWhitelistHandlerWithApp(
        address _handler,
        address _app,
        bool _status
    );

    event LogUpdateWhitelistHandler(address _handler, bool _status);

    // errors
    error DopexV2PositionManager__NotWhitelistedApp();
    error DopexV2PositionManager__NotWhitelistedHandler();

    modifier onlyWhitelistedHandlersWithApps(IHandler _handler) {
        if (
            !whitelistedHandlersWithApp[
                keccak256(abi.encode(address(_handler), msg.sender))
            ]
        ) revert DopexV2PositionManager__NotWhitelistedApp();
        _;
    }

    modifier onlyWhitelistedHandlers(IHandler _handler) {
        if (!whitelistedHandlers[address(_handler)])
            revert DopexV2PositionManager__NotWhitelistedHandler();
        _;
    }

    /**
     * @notice Mint a new position using the specified handler.
     * @param _handler The address of the handler to use.
     * @param _mintPositionData The data required to mint the position.
     * @return sharesMinted The number of shares minted.
     */
    function mintPosition(
        IHandler _handler,
        bytes calldata _mintPositionData
    )
        external
        onlyWhitelistedHandlers(_handler)
        nonReentrant
        returns (uint256 sharesMinted)
    {
        uint256 tokenId = _handler.getHandlerIdentifier(_mintPositionData);

        (address[] memory tokens, uint256[] memory amounts) = _handler
            .tokensToPullForMint(_mintPositionData);

        uint256 amount;
        for (uint256 i; i < tokens.length; i++) {
            amount = amounts[i];
            if (amount != 0) {
                IERC20(tokens[i]).safeTransferFrom(
                    msg.sender,
                    address(this),
                    amount
                );
                IERC20(tokens[i]).safeIncreaseAllowance(
                    address(_handler),
                    amount
                );
            }
        }

        sharesMinted = _handler.mintPositionHandler(
            msg.sender,
            _mintPositionData
        );

        emit LogMintPosition(_handler, tokenId, msg.sender, sharesMinted);
    }

    /**
     * @notice Burn an existing position using the specified handler.
     * @param _handler The address of the handler to use.
     * @param _burnPositionData The data required to burn the position.
     * @return sharesBurned The number of shares burned.
     */
    function burnPosition(
        IHandler _handler,
        bytes calldata _burnPositionData
    )
        external
        onlyWhitelistedHandlers(_handler)
        nonReentrant
        returns (uint256 sharesBurned)
    {
        uint256 tokenId = _handler.getHandlerIdentifier(_burnPositionData);

        sharesBurned = _handler.burnPositionHandler(
            msg.sender,
            _burnPositionData
        );

        emit LogBurnPosition(_handler, tokenId, msg.sender, sharesBurned);
    }

    /**
     * @notice Use an existing position using the specified handler.
     * @param _handler The address of the handler to use.
     * @param _usePositionData The data required to use the position.
     * @return tokens The tokens that will be unwrapped
     * @return amounts The amounts that will be received
     * @return liquidityUsed Amount of liquidity used
     */
    function usePosition(
        IHandler _handler,
        bytes calldata _usePositionData
    )
        external
        onlyWhitelistedHandlersWithApps(_handler)
        nonReentrant
        returns (
            address[] memory tokens,
            uint256[] memory amounts,
            uint256 liquidityUsed
        )
    {
        (tokens, amounts, liquidityUsed) = _handler.usePositionHandler(
            _usePositionData
        );

        uint256 amount;
        for (uint256 i; i < tokens.length; i++) {
            amount = amounts[i];
            if (amount != 0) {
                IERC20(tokens[i]).safeTransfer(msg.sender, amount);
            }
        }

        emit LogUsePosition(_handler, liquidityUsed);
    }

    /**
     * @notice Unuse an existing position using the specified handler.
     * @param _handler The address of the handler to use.
     * @param _unusePositionData The data required to unuse the position.
     * @return amounts The  amounts returned
     * @return liquidity The total liquidity unused.
     */
    function unusePosition(
        IHandler _handler,
        bytes calldata _unusePositionData
    )
        external
        onlyWhitelistedHandlersWithApps(_handler)
        nonReentrant
        returns (uint256[] memory amounts, uint256 liquidity)
    {
        (address[] memory tokens, uint256[] memory a) = _handler
            .tokensToPullForUnUse(_unusePositionData);

        uint256 amount;
        for (uint256 i; i < tokens.length; i++) {
            amount = a[i];
            if (amount != 0) {
                IERC20(tokens[i]).safeTransferFrom(
                    msg.sender,
                    address(this),
                    amount
                );
                IERC20(tokens[i]).safeIncreaseAllowance(
                    address(_handler),
                    amount
                );
            }
        }
        (amounts, liquidity) = _handler.unusePositionHandler(
            _unusePositionData
        );

        emit LogUnusePosition(_handler, liquidity);
    }

    /**
     * @notice Donate to an existing position using the specified handler.
     * @param _handler The address of the handler to use.
     * @param _donatePosition The data required to donate to the position.
     * @return amounts The tokens and amounts donated.
     * @return liquidity The total liquidity donated.
     */
    function donateToPosition(
        IHandler _handler,
        bytes calldata _donatePosition
    )
        external
        onlyWhitelistedHandlersWithApps(_handler)
        nonReentrant
        returns (uint256[] memory amounts, uint256 liquidity)
    {
        (address[] memory tokens, uint256[] memory a) = _handler
            .tokensToPullForDonate(_donatePosition);

        uint256 amount;
        for (uint256 i; i < tokens.length; i++) {
            amount = a[i];
            if (amount != 0) {
                IERC20(tokens[i]).safeTransferFrom(
                    msg.sender,
                    address(this),
                    amount
                );
                IERC20(tokens[i]).safeIncreaseAllowance(
                    address(_handler),
                    amount
                );
            }
        }
        (amounts, liquidity) = _handler.donateToPosition(_donatePosition);

        emit LogDonation(_handler, liquidity);
    }

    /**
     * @notice Update the whitelist status of a handler for a specific app.
     * @dev Only owner can call this function
     * @param _handler The address of the handler.
     * @param _app The address of the app.
     * @param _status The new whitelist status.
     */
    function updateWhitelistHandlerWithApp(
        address _handler,
        address _app,
        bool _status
    ) external onlyOwner {
        whitelistedHandlersWithApp[
            keccak256(abi.encode(_handler, _app))
        ] = _status;

        emit LogUpdateWhitelistHandlerWithApp(_handler, _app, _status);
    }

    /**
     * @notice Update the whitelist status of a handler.
     * @dev Only owner can call this function
     * @param _handler The address of the handler.
     * @param _status The new whitelist status.
     */
    function updateWhitelistHandler(
        address _handler,
        bool _status
    ) external onlyOwner {
        whitelistedHandlers[_handler] = _status;

        emit LogUpdateWhitelistHandler(_handler, _status);
    }
}

File 2 of 10 : IHandler.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

interface IHandler {
    function getHandlerIdentifier(
        bytes calldata _data
    ) external view returns (uint256 handlerIdentifierId);

    function tokensToPullForMint(
        bytes calldata _mintPositionData
    ) external view returns (address[] memory tokens, uint256[] memory amounts);

    function mintPositionHandler(
        address context,
        bytes calldata _mintPositionData
    ) external returns (uint256 sharesMinted);

    function burnPositionHandler(
        address context,
        bytes calldata _burnPositionData
    ) external returns (uint256 sharesBurned);

    function usePositionHandler(
        bytes calldata _usePositionData
    )
        external
        returns (
            address[] memory tokens,
            uint256[] memory amounts,
            uint256 liquidityUsed
        );

    function tokensToPullForUnUse(
        bytes calldata _unusePositionData
    ) external view returns (address[] memory tokens, uint256[] memory amounts);

    function unusePositionHandler(
        bytes calldata _unusePositionData
    ) external returns (uint256[] memory amounts, uint256 liquidity);

    function donateToPosition(
        bytes calldata _donatePosition
    ) external returns (uint256[] memory amounts, uint256 liquidity);

    function tokensToPullForDonate(
        bytes calldata _donatePosition
    ) external view returns (address[] memory tokens, uint256[] memory amounts);
}

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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

File 4 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

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

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

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

File 7 of 10 : Multicall.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Multicall.sol)

pragma solidity ^0.8.0;

import "./Address.sol";

/**
 * @dev Provides a function to batch together multiple calls in a single external call.
 *
 * _Available since v4.1._
 */
abstract contract Multicall {
    /**
     * @dev Receives and executes a batch of function calls on this contract.
     * @custom:oz-upgrades-unsafe-allow-reachable delegatecall
     */
    function multicall(bytes[] calldata data) external virtual returns (bytes[] memory results) {
        results = new bytes[](data.length);
        for (uint256 i = 0; i < data.length; i++) {
            results[i] = Address.functionDelegateCall(address(this), data[i]);
        }
        return results;
    }
}

File 8 of 10 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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

File 9 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

Settings
{
  "remappings": [
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "openzeppelin/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin/=lib/openzeppelin-contracts/",
    "v3-core/=lib/v3-core/",
    "v3-periphery/=lib/v3-periphery/contracts/",
    "@uniswap/v3-core/=lib/v3-core/",
    "base64-sol/=lib/openzeppelin-contracts/contracts/utils/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 0
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs"
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "london",
  "libraries": {}
}

Contract ABI

[{"inputs":[],"name":"DopexV2PositionManager__NotWhitelistedApp","type":"error"},{"inputs":[],"name":"DopexV2PositionManager__NotWhitelistedHandler","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IHandler","name":"_handler","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"sharesBurned","type":"uint256"}],"name":"LogBurnPosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IHandler","name":"_handler","type":"address"},{"indexed":false,"internalType":"uint256","name":"liquidityDonated","type":"uint256"}],"name":"LogDonation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IHandler","name":"_handler","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"sharesMinted","type":"uint256"}],"name":"LogMintPosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IHandler","name":"_handler","type":"address"},{"indexed":false,"internalType":"uint256","name":"liquidityUnused","type":"uint256"}],"name":"LogUnusePosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_handler","type":"address"},{"indexed":false,"internalType":"bool","name":"_status","type":"bool"}],"name":"LogUpdateWhitelistHandler","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_handler","type":"address"},{"indexed":false,"internalType":"address","name":"_app","type":"address"},{"indexed":false,"internalType":"bool","name":"_status","type":"bool"}],"name":"LogUpdateWhitelistHandlerWithApp","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"contract IHandler","name":"_handler","type":"address"},{"indexed":false,"internalType":"uint256","name":"liquidityUsed","type":"uint256"}],"name":"LogUsePosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"contract IHandler","name":"_handler","type":"address"},{"internalType":"bytes","name":"_burnPositionData","type":"bytes"}],"name":"burnPosition","outputs":[{"internalType":"uint256","name":"sharesBurned","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IHandler","name":"_handler","type":"address"},{"internalType":"bytes","name":"_donatePosition","type":"bytes"}],"name":"donateToPosition","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IHandler","name":"_handler","type":"address"},{"internalType":"bytes","name":"_mintPositionData","type":"bytes"}],"name":"mintPosition","outputs":[{"internalType":"uint256","name":"sharesMinted","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IHandler","name":"_handler","type":"address"},{"internalType":"bytes","name":"_unusePositionData","type":"bytes"}],"name":"unusePosition","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_handler","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"updateWhitelistHandler","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_handler","type":"address"},{"internalType":"address","name":"_app","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"updateWhitelistHandlerWithApp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IHandler","name":"_handler","type":"address"},{"internalType":"bytes","name":"_usePositionData","type":"bytes"}],"name":"usePosition","outputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"liquidityUsed","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelistedHandlers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"whitelistedHandlersWithApp","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061001a33610023565b60018055610073565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611bd2806100826000396000f3fe608060405234801561001057600080fd5b50600436106100af5760003560e01c806305d293e9146100b457806336300051146100c95780635ab70f5614610101578063715018a6146101145780637f541a7e1461011c5780638da5cb5b1461013f5780639d297b601461015f578063ac9650d814610180578063d5256ca3146101a0578063e54b89b3146101b3578063e7bcda4c146101d4578063f2fde38b146101f6578063f960226c14610209575b600080fd5b6100c76100c2366004611420565b61021c565b005b6100ec6100d7366004611459565b60036020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6100c761010f366004611476565b610287565b6100c761032f565b6100ec61012a3660046114c1565b60026020526000908152604090205460ff1681565b610147610343565b6040516001600160a01b0390911681526020016100f8565b61017261016d3660046114da565b610352565b6040516100f8929190611599565b61019361018e3660046115bb565b6105b3565b6040516100f89190611687565b6101726101ae3660046114da565b6106a7565b6101c66101c13660046114da565b6108aa565b6040519081526020016100f8565b6101e76101e23660046114da565b610a26565b6040516100f8939291906116e9565b6100c7610204366004611459565b610bd5565b6101c66102173660046114da565b610c53565b610224610eb6565b6001600160a01b038216600081815260036020908152604091829020805460ff19168515159081179091558251938452908301527f48fd1bb994f7f5d40a6f2e8e4b9d8060239dc6e26f0ad2be628f9ac597e07b71910160405180910390a15050565b61028f610eb6565b806002600085856040516020016102a7929190611751565b60408051808303601f190181529181528151602092830120835282820193909352908201600020805460ff19169315159390931790925580516001600160a01b038681168252851692810192909252821515908201527fdb7869e7b3ce14388c8d68c7590a2ec6f7cc0a26d12c7c3c58e1927c7520e2649060600160405180910390a1505050565b610337610eb6565b6103416000610f15565b565b6000546001600160a01b031690565b606060008460026000823360405160200161036e929190611751565b60408051601f198184030181529181528151602092830120835290820192909252016000205460ff166103b457604051630b967c2d60e41b815260040160405180910390fd5b6103bc610f65565b600080876001600160a01b031663b8ea4a8488886040518363ffffffff1660e01b81526004016103ed929190611794565b600060405180830381865afa15801561040a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261043291908101906118e0565b915091506000805b83518110156104e95782818151811061045557610455611943565b60200260200101519150816000146104d7576104a033308487858151811061047f5761047f611943565b60200260200101516001600160a01b0316610fbe909392919063ffffffff16565b6104d78a838684815181106104b7576104b7611943565b60200260200101516001600160a01b031661102f9092919063ffffffff16565b806104e18161196f565b91505061043a565b50604051634d0b1de360e01b81526001600160a01b038a1690634d0b1de390610518908b908b90600401611794565b6000604051808303816000875af1158015610537573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261055f9190810190611988565b60405191975095507f615b82d09530cb171fb9954512b751ee6d5197d08431b056ca6e8c3d8aca681190610596908b9088906119ce565b60405180910390a15050506105aa60018055565b50935093915050565b6060816001600160401b038111156105cd576105cd6117a8565b60405190808252806020026020018201604052801561060057816020015b60608152602001906001900390816105eb5790505b50905060005b828110156106a0576106703085858481811061062457610624611943565b905060200281019061063691906119e7565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506110cb92505050565b82828151811061068257610682611943565b602002602001018190525080806106989061196f565b915050610606565b5092915050565b60606000846002600082336040516020016106c3929190611751565b60408051601f198184030181529181528151602092830120835290820192909252016000205460ff1661070957604051630b967c2d60e41b815260040160405180910390fd5b610711610f65565b600080876001600160a01b031663e0f19adf88886040518363ffffffff1660e01b8152600401610742929190611794565b600060405180830381865afa15801561075f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261078791908101906118e0565b915091506000805b83518110156107fd578281815181106107aa576107aa611943565b60200260200101519150816000146107eb576107d433308487858151811061047f5761047f611943565b6107eb8a838684815181106104b7576104b7611943565b806107f58161196f565b91505061078f565b506040516315a6c9f560e11b81526001600160a01b038a1690632b4d93ea9061082c908b908b90600401611794565b6000604051808303816000875af115801561084b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108739190810190611988565b60405191975095507fa904e206451b4cf70118a8d8de5262c854b7f410c531a11d1b9cae3963df4c7290610596908b9088906119ce565b6001600160a01b038316600090815260036020526040812054849060ff166108e5576040516307608f1d60e01b815260040160405180910390fd5b6108ed610f65565b604051630c7eab1960e31b81526000906001600160a01b038716906363f558c89061091e9088908890600401611794565b602060405180830381865afa15801561093b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095f9190611a34565b6040516302aebd2960e31b81529091506001600160a01b03871690631575e9489061099290339089908990600401611a4d565b6020604051808303816000875af11580156109b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d59190611a34565b92507f8577627db3a9f2f61b18276503ba52e3c40082e7961f7b2dbd8ee51dac2d045886823386604051610a0c9493929190611a7b565b60405180910390a150610a1e60018055565b509392505050565b606080600085600260008233604051602001610a43929190611751565b60408051601f198184030181529181528151602092830120835290820192909252016000205460ff16610a8957604051630b967c2d60e41b815260040160405180910390fd5b610a91610f65565b604051630b220e4760e41b81526001600160a01b0388169063b220e47090610abf9089908990600401611794565b6000604051808303816000875af1158015610ade573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b069190810190611aa5565b919550935091506000805b8551811015610b8757848181518110610b2c57610b2c611943565b6020026020010151915081600014610b7557610b753383888481518110610b5557610b55611943565b60200260200101516001600160a01b03166110f79092919063ffffffff16565b80610b7f8161196f565b915050610b11565b507f44ae980d119b4b6cb308fd614f06a80a2e8c8b52c574d28ea5f3590611d19c488884604051610bb99291906119ce565b60405180910390a150610bcb60018055565b5093509350939050565b610bdd610eb6565b6001600160a01b038116610c475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610c5081610f15565b50565b6001600160a01b038316600090815260036020526040812054849060ff16610c8e576040516307608f1d60e01b815260040160405180910390fd5b610c96610f65565b604051630c7eab1960e31b81526000906001600160a01b038716906363f558c890610cc79088908890600401611794565b602060405180830381865afa158015610ce4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d089190611a34565b9050600080876001600160a01b031663742b5fdd88886040518363ffffffff1660e01b8152600401610d3b929190611794565b600060405180830381865afa158015610d58573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d8091908101906118e0565b915091506000805b8351811015610df657828181518110610da357610da3611943565b6020026020010151915081600014610de457610dcd33308487858151811061047f5761047f611943565b610de48a838684815181106104b7576104b7611943565b80610dee8161196f565b915050610d88565b50604051637b3fd96560e01b81526001600160a01b038a1690637b3fd96590610e279033908c908c90600401611a4d565b6020604051808303816000875af1158015610e46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6a9190611a34565b95507f7d382e6b0706c98d28b2e81b67286e0fea9b2af3ea216ea9917f2aa2814ac38b89853389604051610ea19493929190611a7b565b60405180910390a150505050610a1e60018055565b33610ebf610343565b6001600160a01b0316146103415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c3e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403610fb75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c3e565b6002600155565b6040516001600160a01b03808516602483015283166044820152606481018290526110299085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261111b565b50505050565b604051636eb1769f60e11b81526000906001600160a01b0385169063dd62ed3e906110609030908790600401611751565b602060405180830381865afa15801561107d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a19190611a34565b90506110298463095ea7b360e01b856110ba8686611b11565b604051602401610ff29291906119ce565b60606110f08383604051806060016040528060278152602001611b76602791396111f0565b9392505050565b6111168363a9059cbb60e01b8484604051602401610ff29291906119ce565b505050565b6000611170826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112689092919063ffffffff16565b90508051600014806111915750808060200190518101906111919190611b29565b6111165760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610c3e565b6060600080856001600160a01b03168560405161120d9190611b46565b600060405180830381855af49150503d8060008114611248576040519150601f19603f3d011682016040523d82523d6000602084013e61124d565b606091505b509150915061125e8683838761127f565b9695505050505050565b606061127784846000856112f8565b949350505050565b606083156112ee5782516000036112e7576001600160a01b0385163b6112e75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c3e565b5081611277565b61127783836113d3565b6060824710156113595760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610c3e565b600080866001600160a01b031685876040516113759190611b46565b60006040518083038185875af1925050503d80600081146113b2576040519150601f19603f3d011682016040523d82523d6000602084013e6113b7565b606091505b50915091506113c88783838761127f565b979650505050505050565b8151156113e35781518083602001fd5b8060405162461bcd60e51b8152600401610c3e9190611b62565b6001600160a01b0381168114610c5057600080fd5b8015158114610c5057600080fd5b6000806040838503121561143357600080fd5b823561143e816113fd565b9150602083013561144e81611412565b809150509250929050565b60006020828403121561146b57600080fd5b81356110f0816113fd565b60008060006060848603121561148b57600080fd5b8335611496816113fd565b925060208401356114a6816113fd565b915060408401356114b681611412565b809150509250925092565b6000602082840312156114d357600080fd5b5035919050565b6000806000604084860312156114ef57600080fd5b83356114fa816113fd565b925060208401356001600160401b038082111561151657600080fd5b818601915086601f83011261152a57600080fd5b81358181111561153957600080fd5b87602082850101111561154b57600080fd5b6020830194508093505050509250925092565b600081518084526020808501945080840160005b8381101561158e57815187529582019590820190600101611572565b509495945050505050565b6040815260006115ac604083018561155e565b90508260208301529392505050565b600080602083850312156115ce57600080fd5b82356001600160401b03808211156115e557600080fd5b818501915085601f8301126115f957600080fd5b81358181111561160857600080fd5b8660208260051b850101111561161d57600080fd5b60209290920196919550909350505050565b60005b8381101561164a578181015183820152602001611632565b838111156110295750506000910152565b6000815180845261167381602086016020860161162f565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156116dc57603f198886030184526116ca85835161165b565b945092850192908501906001016116ae565b5092979650505050505050565b606080825284519082018190526000906020906080840190828801845b8281101561172b5781516001600160a01b031684529284019290840190600101611706565b5050508381038285015261173f818761155e565b92505050826040830152949350505050565b6001600160a01b0392831681529116602082015260400190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60208152600061127760208301848661176b565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156117e6576117e66117a8565b604052919050565b60006001600160401b03821115611807576118076117a8565b5060051b60200190565b600082601f83011261182257600080fd5b81516020611837611832836117ee565b6117be565b82815260059290921b8401810191818101908684111561185657600080fd5b8286015b8481101561187a57805161186d816113fd565b835291830191830161185a565b509695505050505050565b600082601f83011261189657600080fd5b815160206118a6611832836117ee565b82815260059290921b840181019181810190868411156118c557600080fd5b8286015b8481101561187a57805183529183019183016118c9565b600080604083850312156118f357600080fd5b82516001600160401b038082111561190a57600080fd5b61191686838701611811565b9350602085015191508082111561192c57600080fd5b5061193985828601611885565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161198157611981611959565b5060010190565b6000806040838503121561199b57600080fd5b82516001600160401b038111156119b157600080fd5b6119bd85828601611885565b925050602083015190509250929050565b6001600160a01b03929092168252602082015260400190565b6000808335601e198436030181126119fe57600080fd5b8301803591506001600160401b03821115611a1857600080fd5b602001915036819003821315611a2d57600080fd5b9250929050565b600060208284031215611a4657600080fd5b5051919050565b6001600160a01b0384168152604060208201819052600090611a72908301848661176b565b95945050505050565b6001600160a01b039485168152602081019390935292166040820152606081019190915260800190565b600080600060608486031215611aba57600080fd5b83516001600160401b0380821115611ad157600080fd5b611add87838801611811565b94506020860151915080821115611af357600080fd5b50611b0086828701611885565b925050604084015190509250925092565b60008219821115611b2457611b24611959565b500190565b600060208284031215611b3b57600080fd5b81516110f081611412565b60008251611b5881846020870161162f565b9190910192915050565b6020815260006110f0602083018461165b56fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220c3a28a77648c9a786e378ec96af06ca95e80c5d4edde7a2c030b2b2be530445264736f6c634300080f0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100af5760003560e01c806305d293e9146100b457806336300051146100c95780635ab70f5614610101578063715018a6146101145780637f541a7e1461011c5780638da5cb5b1461013f5780639d297b601461015f578063ac9650d814610180578063d5256ca3146101a0578063e54b89b3146101b3578063e7bcda4c146101d4578063f2fde38b146101f6578063f960226c14610209575b600080fd5b6100c76100c2366004611420565b61021c565b005b6100ec6100d7366004611459565b60036020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6100c761010f366004611476565b610287565b6100c761032f565b6100ec61012a3660046114c1565b60026020526000908152604090205460ff1681565b610147610343565b6040516001600160a01b0390911681526020016100f8565b61017261016d3660046114da565b610352565b6040516100f8929190611599565b61019361018e3660046115bb565b6105b3565b6040516100f89190611687565b6101726101ae3660046114da565b6106a7565b6101c66101c13660046114da565b6108aa565b6040519081526020016100f8565b6101e76101e23660046114da565b610a26565b6040516100f8939291906116e9565b6100c7610204366004611459565b610bd5565b6101c66102173660046114da565b610c53565b610224610eb6565b6001600160a01b038216600081815260036020908152604091829020805460ff19168515159081179091558251938452908301527f48fd1bb994f7f5d40a6f2e8e4b9d8060239dc6e26f0ad2be628f9ac597e07b71910160405180910390a15050565b61028f610eb6565b806002600085856040516020016102a7929190611751565b60408051808303601f190181529181528151602092830120835282820193909352908201600020805460ff19169315159390931790925580516001600160a01b038681168252851692810192909252821515908201527fdb7869e7b3ce14388c8d68c7590a2ec6f7cc0a26d12c7c3c58e1927c7520e2649060600160405180910390a1505050565b610337610eb6565b6103416000610f15565b565b6000546001600160a01b031690565b606060008460026000823360405160200161036e929190611751565b60408051601f198184030181529181528151602092830120835290820192909252016000205460ff166103b457604051630b967c2d60e41b815260040160405180910390fd5b6103bc610f65565b600080876001600160a01b031663b8ea4a8488886040518363ffffffff1660e01b81526004016103ed929190611794565b600060405180830381865afa15801561040a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261043291908101906118e0565b915091506000805b83518110156104e95782818151811061045557610455611943565b60200260200101519150816000146104d7576104a033308487858151811061047f5761047f611943565b60200260200101516001600160a01b0316610fbe909392919063ffffffff16565b6104d78a838684815181106104b7576104b7611943565b60200260200101516001600160a01b031661102f9092919063ffffffff16565b806104e18161196f565b91505061043a565b50604051634d0b1de360e01b81526001600160a01b038a1690634d0b1de390610518908b908b90600401611794565b6000604051808303816000875af1158015610537573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261055f9190810190611988565b60405191975095507f615b82d09530cb171fb9954512b751ee6d5197d08431b056ca6e8c3d8aca681190610596908b9088906119ce565b60405180910390a15050506105aa60018055565b50935093915050565b6060816001600160401b038111156105cd576105cd6117a8565b60405190808252806020026020018201604052801561060057816020015b60608152602001906001900390816105eb5790505b50905060005b828110156106a0576106703085858481811061062457610624611943565b905060200281019061063691906119e7565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506110cb92505050565b82828151811061068257610682611943565b602002602001018190525080806106989061196f565b915050610606565b5092915050565b60606000846002600082336040516020016106c3929190611751565b60408051601f198184030181529181528151602092830120835290820192909252016000205460ff1661070957604051630b967c2d60e41b815260040160405180910390fd5b610711610f65565b600080876001600160a01b031663e0f19adf88886040518363ffffffff1660e01b8152600401610742929190611794565b600060405180830381865afa15801561075f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261078791908101906118e0565b915091506000805b83518110156107fd578281815181106107aa576107aa611943565b60200260200101519150816000146107eb576107d433308487858151811061047f5761047f611943565b6107eb8a838684815181106104b7576104b7611943565b806107f58161196f565b91505061078f565b506040516315a6c9f560e11b81526001600160a01b038a1690632b4d93ea9061082c908b908b90600401611794565b6000604051808303816000875af115801561084b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526108739190810190611988565b60405191975095507fa904e206451b4cf70118a8d8de5262c854b7f410c531a11d1b9cae3963df4c7290610596908b9088906119ce565b6001600160a01b038316600090815260036020526040812054849060ff166108e5576040516307608f1d60e01b815260040160405180910390fd5b6108ed610f65565b604051630c7eab1960e31b81526000906001600160a01b038716906363f558c89061091e9088908890600401611794565b602060405180830381865afa15801561093b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095f9190611a34565b6040516302aebd2960e31b81529091506001600160a01b03871690631575e9489061099290339089908990600401611a4d565b6020604051808303816000875af11580156109b1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d59190611a34565b92507f8577627db3a9f2f61b18276503ba52e3c40082e7961f7b2dbd8ee51dac2d045886823386604051610a0c9493929190611a7b565b60405180910390a150610a1e60018055565b509392505050565b606080600085600260008233604051602001610a43929190611751565b60408051601f198184030181529181528151602092830120835290820192909252016000205460ff16610a8957604051630b967c2d60e41b815260040160405180910390fd5b610a91610f65565b604051630b220e4760e41b81526001600160a01b0388169063b220e47090610abf9089908990600401611794565b6000604051808303816000875af1158015610ade573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610b069190810190611aa5565b919550935091506000805b8551811015610b8757848181518110610b2c57610b2c611943565b6020026020010151915081600014610b7557610b753383888481518110610b5557610b55611943565b60200260200101516001600160a01b03166110f79092919063ffffffff16565b80610b7f8161196f565b915050610b11565b507f44ae980d119b4b6cb308fd614f06a80a2e8c8b52c574d28ea5f3590611d19c488884604051610bb99291906119ce565b60405180910390a150610bcb60018055565b5093509350939050565b610bdd610eb6565b6001600160a01b038116610c475760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b610c5081610f15565b50565b6001600160a01b038316600090815260036020526040812054849060ff16610c8e576040516307608f1d60e01b815260040160405180910390fd5b610c96610f65565b604051630c7eab1960e31b81526000906001600160a01b038716906363f558c890610cc79088908890600401611794565b602060405180830381865afa158015610ce4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d089190611a34565b9050600080876001600160a01b031663742b5fdd88886040518363ffffffff1660e01b8152600401610d3b929190611794565b600060405180830381865afa158015610d58573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610d8091908101906118e0565b915091506000805b8351811015610df657828181518110610da357610da3611943565b6020026020010151915081600014610de457610dcd33308487858151811061047f5761047f611943565b610de48a838684815181106104b7576104b7611943565b80610dee8161196f565b915050610d88565b50604051637b3fd96560e01b81526001600160a01b038a1690637b3fd96590610e279033908c908c90600401611a4d565b6020604051808303816000875af1158015610e46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6a9190611a34565b95507f7d382e6b0706c98d28b2e81b67286e0fea9b2af3ea216ea9917f2aa2814ac38b89853389604051610ea19493929190611a7b565b60405180910390a150505050610a1e60018055565b33610ebf610343565b6001600160a01b0316146103415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c3e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600260015403610fb75760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c3e565b6002600155565b6040516001600160a01b03808516602483015283166044820152606481018290526110299085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261111b565b50505050565b604051636eb1769f60e11b81526000906001600160a01b0385169063dd62ed3e906110609030908790600401611751565b602060405180830381865afa15801561107d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a19190611a34565b90506110298463095ea7b360e01b856110ba8686611b11565b604051602401610ff29291906119ce565b60606110f08383604051806060016040528060278152602001611b76602791396111f0565b9392505050565b6111168363a9059cbb60e01b8484604051602401610ff29291906119ce565b505050565b6000611170826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166112689092919063ffffffff16565b90508051600014806111915750808060200190518101906111919190611b29565b6111165760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610c3e565b6060600080856001600160a01b03168560405161120d9190611b46565b600060405180830381855af49150503d8060008114611248576040519150601f19603f3d011682016040523d82523d6000602084013e61124d565b606091505b509150915061125e8683838761127f565b9695505050505050565b606061127784846000856112f8565b949350505050565b606083156112ee5782516000036112e7576001600160a01b0385163b6112e75760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c3e565b5081611277565b61127783836113d3565b6060824710156113595760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610c3e565b600080866001600160a01b031685876040516113759190611b46565b60006040518083038185875af1925050503d80600081146113b2576040519150601f19603f3d011682016040523d82523d6000602084013e6113b7565b606091505b50915091506113c88783838761127f565b979650505050505050565b8151156113e35781518083602001fd5b8060405162461bcd60e51b8152600401610c3e9190611b62565b6001600160a01b0381168114610c5057600080fd5b8015158114610c5057600080fd5b6000806040838503121561143357600080fd5b823561143e816113fd565b9150602083013561144e81611412565b809150509250929050565b60006020828403121561146b57600080fd5b81356110f0816113fd565b60008060006060848603121561148b57600080fd5b8335611496816113fd565b925060208401356114a6816113fd565b915060408401356114b681611412565b809150509250925092565b6000602082840312156114d357600080fd5b5035919050565b6000806000604084860312156114ef57600080fd5b83356114fa816113fd565b925060208401356001600160401b038082111561151657600080fd5b818601915086601f83011261152a57600080fd5b81358181111561153957600080fd5b87602082850101111561154b57600080fd5b6020830194508093505050509250925092565b600081518084526020808501945080840160005b8381101561158e57815187529582019590820190600101611572565b509495945050505050565b6040815260006115ac604083018561155e565b90508260208301529392505050565b600080602083850312156115ce57600080fd5b82356001600160401b03808211156115e557600080fd5b818501915085601f8301126115f957600080fd5b81358181111561160857600080fd5b8660208260051b850101111561161d57600080fd5b60209290920196919550909350505050565b60005b8381101561164a578181015183820152602001611632565b838111156110295750506000910152565b6000815180845261167381602086016020860161162f565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b828110156116dc57603f198886030184526116ca85835161165b565b945092850192908501906001016116ae565b5092979650505050505050565b606080825284519082018190526000906020906080840190828801845b8281101561172b5781516001600160a01b031684529284019290840190600101611706565b5050508381038285015261173f818761155e565b92505050826040830152949350505050565b6001600160a01b0392831681529116602082015260400190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60208152600061127760208301848661176b565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156117e6576117e66117a8565b604052919050565b60006001600160401b03821115611807576118076117a8565b5060051b60200190565b600082601f83011261182257600080fd5b81516020611837611832836117ee565b6117be565b82815260059290921b8401810191818101908684111561185657600080fd5b8286015b8481101561187a57805161186d816113fd565b835291830191830161185a565b509695505050505050565b600082601f83011261189657600080fd5b815160206118a6611832836117ee565b82815260059290921b840181019181810190868411156118c557600080fd5b8286015b8481101561187a57805183529183019183016118c9565b600080604083850312156118f357600080fd5b82516001600160401b038082111561190a57600080fd5b61191686838701611811565b9350602085015191508082111561192c57600080fd5b5061193985828601611885565b9150509250929050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820161198157611981611959565b5060010190565b6000806040838503121561199b57600080fd5b82516001600160401b038111156119b157600080fd5b6119bd85828601611885565b925050602083015190509250929050565b6001600160a01b03929092168252602082015260400190565b6000808335601e198436030181126119fe57600080fd5b8301803591506001600160401b03821115611a1857600080fd5b602001915036819003821315611a2d57600080fd5b9250929050565b600060208284031215611a4657600080fd5b5051919050565b6001600160a01b0384168152604060208201819052600090611a72908301848661176b565b95945050505050565b6001600160a01b039485168152602081019390935292166040820152606081019190915260800190565b600080600060608486031215611aba57600080fd5b83516001600160401b0380821115611ad157600080fd5b611add87838801611811565b94506020860151915080821115611af357600080fd5b50611b0086828701611885565b925050604084015190509250925092565b60008219821115611b2457611b24611959565b500190565b600060208284031215611b3b57600080fd5b81516110f081611412565b60008251611b5881846020870161162f565b9190910192915050565b6020815260006110f0602083018461165b56fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220c3a28a77648c9a786e378ec96af06ca95e80c5d4edde7a2c030b2b2be530445264736f6c634300080f0033

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