Contract 0xC037545bF624d818799F21488489eD54502A0D53

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x9f9e5c2a70e994238fe0db6e3faf8da22a6aa117a480736c3622409976637388Unzap From Matri...485478422022-10-06 11:18:076 hrs 42 mins ago0xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.001774353602
0x1a321846d25d869972bc32bbeb9ebbb1c7abe45f7f421fb93dc164627b0a54eaZap To Matrix485307062022-10-06 6:00:1012 hrs ago0xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df IN  0xc037545bf624d818799f21488489ed54502a0d53172 FTM0.001747615
0xee1e4204b5b054ee3d915f9c723485515643f1468211ed1ef9f23077bbc303beZap To Matrix485306812022-10-06 5:59:4612 hrs ago0xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df IN  0xc037545bf624d818799f21488489ed54502a0d53172 FTM0.0021504025
0xa6a15c6a48291f0bf66d50407ae7ce732d9f698baac9ea7c43f1de68fd2a1c0fZap To Matrix485287322022-10-06 5:24:0012 hrs 36 mins ago0xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df IN  0xc037545bf624d818799f21488489ed54502a0d538 FTM0.0018119
0xd0184f55c9ad5f7a7f8ca1a3dba0efee095baffb6d6c921d3cb2fe2ae64aaf21Zap To Matrix485287092022-10-06 5:23:3612 hrs 36 mins ago0xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df IN  0xc037545bf624d818799f21488489ed54502a0d538 FTM0.0022430075
0x33d571b6d232e7ae83713088f264f7d116c996a73d4bd49cbf430a637a4b793dUnzap From Matri...485112712022-10-06 0:05:1317 hrs 55 mins ago0xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.004157090038
0x09e5a7f67d822a17184b7b33a4d1b0eae9dcba4afb82690995639720c1242a07Unzap From Matri...485112052022-10-06 0:04:0317 hrs 56 mins ago0xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.004157090038
0x29b241cc4d0eb3bac432d326373252100276c6d3a42d2c77f3caf9c904337397Unzap From Matri...485111792022-10-06 0:03:3017 hrs 56 mins ago0xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.004157090038
0x5efb10615f0c0f83b0526d4df5c18f1646cd54dc64e476ad14b78aa5d1424762Zap To Matrix485110682022-10-06 0:01:1817 hrs 58 mins ago0xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df IN  0xc037545bf624d818799f21488489ed54502a0d5366 FTM0.013171990118
0xd30ec9a607562a0a603b3fec4f613a4cc680d534dc73e86dee9f6048f4ee616cZap To Matrix484998112022-10-05 20:41:2921 hrs 18 mins ago0xf5c7ae8a6556d34aa68ef186020a350bf60343c0 IN  0xc037545bf624d818799f21488489ed54502a0d53140.60169690492867 FTM0.00173125032
0xb4644306bb38f2660d9e55c49c6d99b138c580260468c92a1f4942b551018a7cZap To Matrix484843012022-10-05 15:49:341 day 2 hrs ago0xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df IN  0xc037545bf624d818799f21488489ed54502a0d532 FTM0.001894736799
0x69f529823adcc367c73f73abc2966299b90ca4761316504d5efe6753a4825c8dZap To Matrix484838412022-10-05 15:41:021 day 2 hrs ago0xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df IN  0xc037545bf624d818799f21488489ed54502a0d532 FTM0.002327562698
0x124c211060490e4fe55c7ee9a0f869627453e0171aaaab602da70335e8ff787fZap To Matrix484835552022-10-05 15:35:281 day 2 hrs ago0xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df IN  0xc037545bf624d818799f21488489ed54502a0d532 FTM0.010833072746
0x2cf56d9e000ab01a9929ec8ca313c288d870e81ba7bff555d5cd947f0a453722Unzap From Matri...484773282022-10-05 13:37:151 day 4 hrs ago0xfeb2523775623f37e234a9ea4f759d74178a8469 IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.000561287484
0x05e36d4c1c465243f7a2a6cb08705f45acad5c595f1b4272cb91fce2ddabfec8Zap To Matrix484610042022-10-05 8:48:371 day 9 hrs ago0xe3e320ee847cd3ae825330b29815f585091a94c8 IN  0xc037545bf624d818799f21488489ed54502a0d53919.8755382828608 FTM0.001292136866
0x6feb540d2ca8d442492cbfe55e03ff2998c4a24d413d6c23050554b41692266eUnzap From Matri...484609532022-10-05 8:47:361 day 9 hrs ago0xe3e320ee847cd3ae825330b29815f585091a94c8 IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.001363329546
0xadef1b84c39d4a504d9ed39974c65eefdcb2d7d3c1780fb535b321ca9bbf92ecUnzap From Matri...484609022022-10-05 8:46:451 day 9 hrs ago0xe3e320ee847cd3ae825330b29815f585091a94c8 IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.001563860935
0xe59a0ce189db76b44c6209fef657ce2cb4c23c666862c12b8c289f07d6571a57Unzap From Matri...484608862022-10-05 8:46:261 day 9 hrs ago0xe3e320ee847cd3ae825330b29815f585091a94c8 IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.005227462087
0x918df436e6aabdcebc8c7614530cc118e1ca1641fbb84cd2f7443cc7f193ab86Unzap From Matri...484608792022-10-05 8:46:161 day 9 hrs ago0xe3e320ee847cd3ae825330b29815f585091a94c8 IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.001563860935
0x26ec7461b647c5c9242a28b7c380631e77d64dc4f7b0fbff0ba5157d586db71aUnzap From Matri...484608562022-10-05 8:45:381 day 9 hrs ago0xe3e320ee847cd3ae825330b29815f585091a94c8 IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.001563860935
0x2e03c9fcbd1c452ae141c4e9a4a30ef870c553e51c2cd22e7808375d30eeb8c7Unzap From Matri...484543282022-10-05 6:37:381 day 11 hrs ago0x3c273c90214beb09fef9767b00c66f8dca2d4b90 IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.002151275
0x90cb8acf6fab670a7d91f65dcbad85d89bfd640d380862b140b23f6bbade227dUnzap From Matri...483886172022-10-04 10:14:342 days 7 hrs ago0xfd1ab0f336224104e9a66b2e07866241a87c96fc IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.0321462
0x9e3a9943a65b854e5203f5b6c6581a4e093e99014750a66a510930733b03160dZap To Matrix483848152022-10-04 9:06:352 days 8 hrs ago0xead9f532c72cf35dab18a42223ee7a1b19bc5abf IN  0xc037545bf624d818799f21488489ed54502a0d53190 FTM0.032200692902
0xa6679e929c6108527a8223906637ce75499c56c706cf38160c8a8082277997f4Zap To Matrix483790222022-10-04 7:15:482 days 10 hrs ago0xa562c4d7183005c5755b624d1a186e99637afe79 IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.001307390127
0x40763b2a6cc03a09e7f0379e8bbb7c850ad300354857e32b81cde77946f7a384Zap To Matrix483789702022-10-04 7:14:562 days 10 hrs ago0xa562c4d7183005c5755b624d1a186e99637afe79 IN  0xc037545bf624d818799f21488489ed54502a0d530 FTM0.001539411868
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x9f9e5c2a70e994238fe0db6e3faf8da22a6aa117a480736c3622409976637388485478422022-10-06 11:18:076 hrs 42 mins ago 0xc037545bf624d818799f21488489ed54502a0d530xf2017ed6f046d4cbb293db0b3aba9b8fe10ca6df180.442017037852399037 FTM
0x9f9e5c2a70e994238fe0db6e3faf8da22a6aa117a480736c3622409976637388485478422022-10-06 11:18:076 hrs 42 mins ago Fantom Finance: Wrapped Fantom Token 0xc037545bf624d818799f21488489ed54502a0d53180.442017037852399037 FTM
0x1a321846d25d869972bc32bbeb9ebbb1c7abe45f7f421fb93dc164627b0a54ea485307062022-10-06 6:00:1012 hrs ago 0xc037545bf624d818799f21488489ed54502a0d53 Fantom Finance: Wrapped Fantom Token172 FTM
0xee1e4204b5b054ee3d915f9c723485515643f1468211ed1ef9f23077bbc303be485306812022-10-06 5:59:4612 hrs ago 0xc037545bf624d818799f21488489ed54502a0d53 Fantom Finance: Wrapped Fantom Token172 FTM
0xa6a15c6a48291f0bf66d50407ae7ce732d9f698baac9ea7c43f1de68fd2a1c0f485287322022-10-06 5:24:0012 hrs 36 mins ago 0xc037545bf624d818799f21488489ed54502a0d53 Fantom Finance: Wrapped Fantom Token8 FTM
0xd0184f55c9ad5f7a7f8ca1a3dba0efee095baffb6d6c921d3cb2fe2ae64aaf21485287092022-10-06 5:23:3612 hrs 36 mins ago 0xc037545bf624d818799f21488489ed54502a0d53 Fantom Finance: Wrapped Fantom Token8 FTM
0x33d571b6d232e7ae83713088f264f7d116c996a73d4bd49cbf430a637a4b793d485112712022-10-06 0:05:1317 hrs 55 mins ago Fantom Finance: Wrapped Fantom Token 0xc037545bf624d818799f21488489ed54502a0d5369.1940952145127614 FTM
0x09e5a7f67d822a17184b7b33a4d1b0eae9dcba4afb82690995639720c1242a07485112052022-10-06 0:04:0317 hrs 56 mins ago Fantom Finance: Wrapped Fantom Token 0xc037545bf624d818799f21488489ed54502a0d5369.219185916509787177 FTM
0x29b241cc4d0eb3bac432d326373252100276c6d3a42d2c77f3caf9c904337397485111792022-10-06 0:03:3017 hrs 56 mins ago Fantom Finance: Wrapped Fantom Token 0xc037545bf624d818799f21488489ed54502a0d5369.219176736128673382 FTM
0x5efb10615f0c0f83b0526d4df5c18f1646cd54dc64e476ad14b78aa5d1424762485110682022-10-06 0:01:1817 hrs 58 mins ago 0xc037545bf624d818799f21488489ed54502a0d53 Fantom Finance: Wrapped Fantom Token66 FTM
0xd30ec9a607562a0a603b3fec4f613a4cc680d534dc73e86dee9f6048f4ee616c484998112022-10-05 20:41:2921 hrs 18 mins ago 0xc037545bf624d818799f21488489ed54502a0d53 Fantom Finance: Wrapped Fantom Token140.60169690492867 FTM
0xb4644306bb38f2660d9e55c49c6d99b138c580260468c92a1f4942b551018a7c484843012022-10-05 15:49:341 day 2 hrs ago 0xc037545bf624d818799f21488489ed54502a0d53 Fantom Finance: Wrapped Fantom Token2 FTM
0x69f529823adcc367c73f73abc2966299b90ca4761316504d5efe6753a4825c8d484838412022-10-05 15:41:021 day 2 hrs ago 0xc037545bf624d818799f21488489ed54502a0d53 Fantom Finance: Wrapped Fantom Token2 FTM
0x124c211060490e4fe55c7ee9a0f869627453e0171aaaab602da70335e8ff787f484835552022-10-05 15:35:281 day 2 hrs ago 0xc037545bf624d818799f21488489ed54502a0d53 Fantom Finance: Wrapped Fantom Token2 FTM
0x2cf56d9e000ab01a9929ec8ca313c288d870e81ba7bff555d5cd947f0a453722484773282022-10-05 13:37:151 day 4 hrs ago 0xc037545bf624d818799f21488489ed54502a0d530xfeb2523775623f37e234a9ea4f759d74178a84692,006.990777195654734948 FTM
0x2cf56d9e000ab01a9929ec8ca313c288d870e81ba7bff555d5cd947f0a453722484773282022-10-05 13:37:151 day 4 hrs ago Fantom Finance: Wrapped Fantom Token 0xc037545bf624d818799f21488489ed54502a0d532,006.990777195654734948 FTM
0x05e36d4c1c465243f7a2a6cb08705f45acad5c595f1b4272cb91fce2ddabfec8484610042022-10-05 8:48:371 day 9 hrs ago 0xc037545bf624d818799f21488489ed54502a0d53 Fantom Finance: Wrapped Fantom Token919.8755382828608 FTM
0x6feb540d2ca8d442492cbfe55e03ff2998c4a24d413d6c23050554b41692266e484609532022-10-05 8:47:361 day 9 hrs ago 0xc037545bf624d818799f21488489ed54502a0d530xe3e320ee847cd3ae825330b29815f585091a94c8443.432318154766087334 FTM
0x6feb540d2ca8d442492cbfe55e03ff2998c4a24d413d6c23050554b41692266e484609532022-10-05 8:47:361 day 9 hrs ago Fantom Finance: Wrapped Fantom Token 0xc037545bf624d818799f21488489ed54502a0d53443.432318154766087334 FTM
0xe59a0ce189db76b44c6209fef657ce2cb4c23c666862c12b8c289f07d6571a57484608862022-10-05 8:46:261 day 9 hrs ago 0xc037545bf624d818799f21488489ed54502a0d530xe3e320ee847cd3ae825330b29815f585091a94c8476.475047027004173125 FTM
0xe59a0ce189db76b44c6209fef657ce2cb4c23c666862c12b8c289f07d6571a57484608862022-10-05 8:46:261 day 9 hrs ago Fantom Finance: Wrapped Fantom Token 0xc037545bf624d818799f21488489ed54502a0d53476.475047027004173125 FTM
0x2e03c9fcbd1c452ae141c4e9a4a30ef870c553e51c2cd22e7808375d30eeb8c7484543282022-10-05 6:37:381 day 11 hrs ago Fantom Finance: Wrapped Fantom Token 0xc037545bf624d818799f21488489ed54502a0d53314.495775089724601761 FTM
0x90cb8acf6fab670a7d91f65dcbad85d89bfd640d380862b140b23f6bbade227d483886172022-10-04 10:14:342 days 7 hrs ago 0xc037545bf624d818799f21488489ed54502a0d530xfd1ab0f336224104e9a66b2e07866241a87c96fc0.394006532079867951 FTM
0x90cb8acf6fab670a7d91f65dcbad85d89bfd640d380862b140b23f6bbade227d483886172022-10-04 10:14:342 days 7 hrs ago Fantom Finance: Wrapped Fantom Token 0xc037545bf624d818799f21488489ed54502a0d530.394006532079867951 FTM
0x9e3a9943a65b854e5203f5b6c6581a4e093e99014750a66a510930733b03160d483848152022-10-04 9:06:352 days 8 hrs ago 0xc037545bf624d818799f21488489ed54502a0d53 Fantom Finance: Wrapped Fantom Token190 FTM
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Zapper

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

File 2 of 13 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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);
}

File 3 of 13 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

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

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

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

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

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

File 4 of 13 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(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) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason 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 {
            // 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

File 6 of 13 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

File 7 of 13 : IUniswapV2Router01.sol
pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 8 of 13 : IUniswapV2Router02.sol
pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 9 of 13 : Zapper.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "./interfaces/IUniswapV2Pair.sol";
import "./interfaces/IWFTM.sol";
import "./interfaces/IMatrixVault.sol";
import "./strategies/MatrixSwapHelper.sol";

contract Zapper is MatrixSwapHelper, Ownable {
    using SafeERC20 for IERC20;
    using EnumerableSet for EnumerableSet.AddressSet;

    event DefaultRouterChanged(
        address indexed _oldRouter,
        address indexed _newRouter
    );
    event CustomRouterSet(
        address indexed _lpToken,
        address indexed _customRouter
    );

    event ZapIn(
        address indexed _user,
        address indexed _vault,
        address indexed _want,
        uint256 _amountIn
    );

    event ZapOut(
        address indexed _user,
        address indexed _vault,
        address indexed _want,
        uint256 _amountOut
    );

    string public constant VERSION = "1.2";

    address public constant WFTM = 0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83;
    address internal constant SPOOKYSWAP_ROUTER =
        0xF491e7B69E4244ad4002BC14e878a34207E38c29;
    /// @dev Mapping of LP ERC20 -> Router
    /// In order to support a wider range of UniV2 forks
    mapping(address => address) public customRouter;

    /// @dev Mapping of Factory -> Router to retrieve
    /// the default router for LP token
    mapping(address => address) public factoryToRouter;

    /// @dev Default router for LP Tokens
    address public defaultRouter;
    

    /// @notice SPOOKYSWAP ROUTER AS DEFAULT FOR LP TOKENS AND SWAPS
    constructor() MatrixSwapHelper(SPOOKYSWAP_ROUTER) {
        /// Default router to put LPs in:
        _setDefaultRouter(SPOOKYSWAP_ROUTER);

        // Factory to Router
        // spookyswap
        factoryToRouter[0x152eE697f2E276fA89E96742e9bB9aB1F2E61bE3] = 0xF491e7B69E4244ad4002BC14e878a34207E38c29;

        // spiritswap
        factoryToRouter[0xEF45d134b73241eDa7703fa787148D9C9F4950b0] = 0x16327E3FbDaCA3bcF7E38F5Af2599D2DDc33aE52;

        // tombswap
        factoryToRouter[0xE236f6890F1824fa0a7ffc39b1597A5A6077Cfe9] = 0x6D0176C5ea1e44b08D3dd001b0784cE42F47a3A7;

        // hyperjump
        factoryToRouter[0x991152411A7B5A14A8CF0cDDE8439435328070dF] = 0x53c153a0df7E050BbEFbb70eE9632061f12795fB;

        // wigoswap
        factoryToRouter[0xC831A5cBfb4aC2Da5ed5B194385DFD9bF5bFcBa7] = 0x5023882f4D1EC10544FCB2066abE9C1645E95AA0;
    }

    receive() external payable {}

    /// @notice Get swap custom swap paths, if any
    /// @dev Otherwise reverts to default FROMTOKEN-WFTM-TOTOKEN behavior
    function getSwapPath(address _fromToken, address _toToken)
        public
        view
        override
        returns (SwapPath memory _swapPath)
    {
        bytes32 _swapKey = keccak256(abi.encodePacked(_fromToken, _toToken));
        if (swapPaths[_swapKey].path.length == 0) {
            if (_fromToken != WFTM && _toToken != WFTM) {
                address[] memory _path = new address[](3);
                _path[0] = _fromToken;
                _path[1] = WFTM;
                _path[2] = _toToken;
                _swapPath.path = _path;
            } else {
                address[] memory _path = new address[](2);
                _path[0] = _fromToken;
                _path[1] = _toToken;
                _swapPath.path = _path;
            }
            _swapPath.unirouter = unirouter;
        } else {
            return swapPaths[_swapKey];
        }
    }

    /// @dev Allows owner to set a custom swap path from a token to another
    /// @param _unirouter Can also set a custom unirouter for the swap, or address(0) for default router (spooky)
    function setSwapPath(
        address _fromToken,
        address _toToken,
        address _unirouter,
        address[] memory _path
    ) external onlyOwner {
        _setSwapPath(_fromToken, _toToken, _unirouter, _path);
    }

    function zapToLp(
        address _fromToken,
        address _toLpToken,
        uint256 _amountIn,
        uint256 _minLpAmountOut
    ) external payable {
        uint256 _lpAmountOut = _zapToLp(
            _fromToken,
            _toLpToken,
            _amountIn,
            _minLpAmountOut
        );

        IERC20(_toLpToken).safeTransfer(msg.sender, _lpAmountOut);
    }

    function zapToMatrix(
        address _fromToken,
        address _matrixVault,
        uint256 _amountIn,
        uint256 _minLpAmountOut
    ) external payable {
        IMatrixVault _vault = IMatrixVault(_matrixVault);
        address _toLpToken = _vault.want();

        uint256 _lpAmountOut = _zapToLp(
            _fromToken,
            _toLpToken,
            _amountIn,
            _minLpAmountOut
        );

        uint256 _vaultBalanceBefore = _vault.balanceOf(address(this));
        IERC20(_toLpToken).safeApprove(_matrixVault, _lpAmountOut);
        _vault.deposit(_lpAmountOut);
        uint256 _vaultAmountOut = _vault.balanceOf(address(this)) -
            _vaultBalanceBefore;
        require(_vaultAmountOut > 0, "deposit-in-vault-failed");
        _vault.transfer(msg.sender, _vaultAmountOut);

        emit ZapIn(msg.sender, address(_vault), _toLpToken, _lpAmountOut);
    }

    function unzapFromMatrix(
        address _matrixVault,
        address _toToken,
        uint256 _withdrawAmount,
        uint256 _minAmountOut
    ) external {
        IMatrixVault _vault = IMatrixVault(_matrixVault);
        address _fromLpToken = _vault.want();

        _vault.transferFrom(msg.sender, address(this), _withdrawAmount);
        _vault.withdraw(_withdrawAmount);

        uint256 _amountOut = _unzapFromLp(
            _fromLpToken,
            _toToken,
            IERC20(_fromLpToken).balanceOf(address(this)),
            _minAmountOut
        );

        emit ZapOut(msg.sender, address(_vault), _fromLpToken, _amountOut);
    }

    function unzapFromLp(
        address _fromLpToken,
        address _toToken,
        uint256 _amountLpIn,
        uint256 _minAmountOut
    ) external {
        _unzapFromLp(_fromLpToken, _toToken, _amountLpIn, _minAmountOut);
    }

    /// @notice In case tokens got stuck/mistakenly sent here
    function sweepERC20(address _token) external onlyOwner {
        IERC20(_token).safeTransfer(
            msg.sender,
            IERC20(_token).balanceOf(_token)
        );
    }

    function setDefaultRouter(address _newDefaultRouter) external onlyOwner {
        _setDefaultRouter(_newDefaultRouter);
    }

    function setCustomRouter(address _token, address _router)
        external
        onlyOwner
    {
        require(_token != address(0), "invalid-token-addr");
        require(_router != defaultRouter, "invalid-custom-router");
        emit CustomRouterSet(_token, _router);
        customRouter[_token] = _router;
    }

    function _setDefaultRouter(address _newDefaultRouter) internal {
        require(_newDefaultRouter != address(0), "invalid-default-router");
        emit DefaultRouterChanged(defaultRouter, _newDefaultRouter);
        defaultRouter = _newDefaultRouter;
    }

    function addRouter(address _factory, address _router) external onlyOwner {
        require(factoryToRouter[_factory] == address(0), "already-set");

        factoryToRouter[_factory] = _router;
    }

    /// @notice Get router for LPToken
    function _getRouter(address _lpToken) internal view returns (address) {
        if (customRouter[_lpToken] != address(0)) return customRouter[_lpToken];
        
        address _factory = IUniswapV2Pair(_lpToken).factory();
        require(factoryToRouter[_factory] != address(0), "unsupported-router");

        return factoryToRouter[_factory];
    }

    function _zapToLp(
        address _fromToken,
        address _toLpToken,
        uint256 _amountIn,
        uint256 _minLpAmountOut
    ) internal returns (uint256 _lpAmountOut) {
        if (msg.value > 0) {
            // If you send FTM instead of WFTM these requirements must hold.
            require(_fromToken == WFTM, "invalid-from-token");
            require(_amountIn == msg.value, "invalid-amount-in");
            // Auto-wrap FTM to WFTM
            IWFTM(WFTM).deposit{value: msg.value}();
        } else {
            IERC20(_fromToken).safeTransferFrom(
                msg.sender,
                address(this),
                _amountIn
            );
        }

        address _router = _getRouter(_toLpToken);

        IERC20(_fromToken).safeApprove(_router, 0);
        IERC20(_fromToken).safeApprove(_router, _amountIn);

        address _token0 = IUniswapV2Pair(_toLpToken).token0();
        address _token1 = IUniswapV2Pair(_toLpToken).token1();

        address _defaultRouter = unirouter;
        unirouter = _router;
        // Uses lpToken' _router as the default router
        // You can override this by using setting a custom path
        // Using setSwapPath

        uint256 _token0Out = _swap(_fromToken, _token0, _amountIn / 2);
        uint256 _token1Out = _swap(
            _fromToken,
            _token1,
            _amountIn - (_amountIn / 2)
        );

        // Revert back to defaultRouter for swaps
        unirouter = _defaultRouter;

        IERC20(_token0).safeApprove(_router, 0);
        IERC20(_token1).safeApprove(_router, 0);
        IERC20(_token0).safeApprove(_router, _token0Out);
        IERC20(_token1).safeApprove(_router, _token1Out);

        uint256 _lpBalanceBefore = IERC20(_toLpToken).balanceOf(address(this));
        IUniswapV2Router02(_router).addLiquidity(
            _token0,
            _token1,
            _token0Out,
            _token1Out,
            0,
            0,
            address(this),
            block.timestamp
        );

        _lpAmountOut =
            IERC20(_toLpToken).balanceOf(address(this)) -
            _lpBalanceBefore;
        require(_lpAmountOut >= _minLpAmountOut, "slippage-rekt-you");
    }

    function _unzapFromLp(
        address _fromLpToken,
        address _toToken,
        uint256 _amountLpIn,
        uint256 _minAmountOut
    ) internal returns (uint256 _amountOut) {
        address _router = _getRouter(_fromLpToken);

        address _token0 = IUniswapV2Pair(_fromLpToken).token0();
        address _token1 = IUniswapV2Pair(_fromLpToken).token1();

        IERC20(_fromLpToken).safeApprove(_router, 0);
        IERC20(_fromLpToken).safeApprove(_router, _amountLpIn);

        IUniswapV2Router02(_router).removeLiquidity(
            _token0,
            _token1,
            _amountLpIn,
            0,
            0,
            address(this),
            block.timestamp
        );

        address _defaultRouter = unirouter;
        unirouter = _router;
        // Uses lpToken' _router as the default router
        // You can override this by using setting a custom path
        // Using setSwapPath

        _swap(_token0, _toToken, IERC20(_token0).balanceOf(address(this)));
        _swap(_token1, _toToken, IERC20(_token1).balanceOf(address(this)));

        // Revert back to defaultRouter for swaps
        unirouter = _defaultRouter;

        _amountOut = IERC20(_toToken).balanceOf(address(this));

        require(_amountOut >= _minAmountOut, "slippage-rekt-you");

        if (_toToken == WFTM) {
            IWFTM(WFTM).withdraw(_amountOut);

            (bool _success, ) = msg.sender.call{value: _amountOut}("");
            require(_success, "ftm-transfer-failed");
        } else {
            IERC20(_toToken).transfer(msg.sender, _amountOut);
        }
    }

    function _checkPath(address[] memory _path) internal override {}

    function _checkRouter(address _router) internal override {}
}

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

pragma solidity 0.8.9;

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

interface IMatrixVault is IERC20 {

    function want() external view returns (address);

    function deposit(uint256) external;

    function withdraw(uint256 _shares) external;

}

File 11 of 13 : IUniswapV2Pair.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

interface IUniswapV2Pair {
  event Approval(address indexed owner, address indexed spender, uint value);
  event Transfer(address indexed from, address indexed to, uint value);

  function name() external pure returns (string memory);

  function symbol() external pure returns (string memory);

  function decimals() external pure returns (uint8);

  function totalSupply() external view returns (uint);

  function balanceOf(address owner) external view returns (uint);

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

  function approve(address spender, uint value) external returns (bool);

  function transfer(address to, uint value) external returns (bool);

  function transferFrom(
    address from,
    address to,
    uint value
  ) external returns (bool);

  function DOMAIN_SEPARATOR() external view returns (bytes32);

  function PERMIT_TYPEHASH() external pure returns (bytes32);

  function nonces(address owner) external view returns (uint);

  function permit(
    address owner,
    address spender,
    uint value,
    uint deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external;

  event Mint(address indexed sender, uint amount0, uint amount1);
  event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
  event Swap(
    address indexed sender,
    uint amount0In,
    uint amount1In,
    uint amount0Out,
    uint amount1Out,
    address indexed to
  );
  event Sync(uint112 reserve0, uint112 reserve1);

  function MINIMUM_LIQUIDITY() external pure returns (uint);

  function factory() external view returns (address);

  function token0() external view returns (address);

  function token1() external view returns (address);

  function getReserves()
    external
    view
    returns (
      uint112 reserve0,
      uint112 reserve1,
      uint32 blockTimestampLast
    );

  function price0CumulativeLast() external view returns (uint);

  function price1CumulativeLast() external view returns (uint);

  function kLast() external view returns (uint);

  function mint(address to) external returns (uint liquidity);

  function burn(address to) external returns (uint amount0, uint amount1);

  function swap(
    uint amount0Out,
    uint amount1Out,
    address to,
    bytes calldata data
  ) external;

  function skim(address to) external;

  function sync() external;

  function initialize(address, address) external;
}

File 12 of 13 : IWFTM.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.9;

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

interface IWFTM is IERC20 {
    function deposit() external payable;

    function withdraw(uint256) external;
}

File 13 of 13 : MatrixSwapHelper.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "../interfaces/IUniswapV2Pair.sol";

/// @title Swap Helper to perform swaps and setting routes in matrix strategies
contract MatrixSwapHelper {
    using SafeERC20 for IERC20;
    using EnumerableSet for EnumerableSet.AddressSet;

    address public unirouter;

    /// @dev Enumerable set of external tokens and routers
    /// strategy can interact with
    EnumerableSet.AddressSet internal whitelistedAddresses;

    struct SwapPath {
        address unirouter;
        address[] path;
    }

    mapping(bytes32 => SwapPath) internal swapPaths;

    constructor(address _uniRouter) {
        unirouter = _uniRouter;
    }

    function getWhitelistedAddresses()
        public
        virtual
        returns (address[] memory)
    {
        return whitelistedAddresses.values();
    }

    function getSwapPath(address _fromToken, address _toToken)
        public
        view
        virtual
        returns (SwapPath memory _swapPath)
    {
        bytes32 _swapKey = keccak256(abi.encodePacked(_fromToken, _toToken));
        require(swapPaths[_swapKey].unirouter != address(0), "path-not-found");
        return swapPaths[_swapKey];
    }

    function _setSwapPath(
        address _fromToken,
        address _toToken,
        address _unirouter,
        address[] memory _path
    ) internal virtual {
        require(_path[0] == _fromToken, "invalid-path");
        require(_path[_path.length - 1] == _toToken, "invalid-path");
        _checkPath(_path);

        bytes32 _swapKey = keccak256(abi.encodePacked(_fromToken, _toToken));
        address _router = _unirouter == address(0) ? unirouter : _unirouter;

        _checkRouter(_router);

        swapPaths[_swapKey] = SwapPath(_router, _path);
    }

    /// @dev Checks that tokens in path are whitelisted
    /// @notice Override this to skip checks
    function _checkPath(address[] memory _path) internal virtual {
        for (uint256 i; i < _path.length; i++)
            require(
                whitelistedAddresses.contains(_path[i]),
                "token-not-whitelisted"
            );
    }

    /// @dev Checks that router for swap is whitelisted
    /// @notice Override this to skip checks
    function _checkRouter(address _router) internal virtual {
        require(
            whitelistedAddresses.contains(_router),
            "router-not-whitelisted"
        );
    }

    function _swap(
        address _fromToken,
        address _toToken,
        uint256 _amount
    ) internal returns (uint256 _toTokenAmount) {
        if (_fromToken == _toToken) return _amount;
        SwapPath memory _swapPath = getSwapPath(_fromToken, _toToken);

        IERC20(_fromToken).safeApprove(_swapPath.unirouter, 0);
        IERC20(_fromToken).safeApprove(_swapPath.unirouter, type(uint256).max);
        
        uint256 _toTokenBefore = IERC20(_toToken).balanceOf(address(this));
        IUniswapV2Router02(_swapPath.unirouter).swapExactTokensForTokens(
            _amount,
            0,
            _swapPath.path,
            address(this),
            block.timestamp
        );
        _toTokenAmount =
            IERC20(_toToken).balanceOf(address(this)) -
            _toTokenBefore;
    }
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_lpToken","type":"address"},{"indexed":true,"internalType":"address","name":"_customRouter","type":"address"}],"name":"CustomRouterSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_oldRouter","type":"address"},{"indexed":true,"internalType":"address","name":"_newRouter","type":"address"}],"name":"DefaultRouterChanged","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":"_user","type":"address"},{"indexed":true,"internalType":"address","name":"_vault","type":"address"},{"indexed":true,"internalType":"address","name":"_want","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amountIn","type":"uint256"}],"name":"ZapIn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":true,"internalType":"address","name":"_vault","type":"address"},{"indexed":true,"internalType":"address","name":"_want","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amountOut","type":"uint256"}],"name":"ZapOut","type":"event"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WFTM","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"name":"addRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"customRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"defaultRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"factoryToRouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"},{"internalType":"address","name":"_toToken","type":"address"}],"name":"getSwapPath","outputs":[{"components":[{"internalType":"address","name":"unirouter","type":"address"},{"internalType":"address[]","name":"path","type":"address[]"}],"internalType":"struct MatrixSwapHelper.SwapPath","name":"_swapPath","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWhitelistedAddresses","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"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":"_token","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"name":"setCustomRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newDefaultRouter","type":"address"}],"name":"setDefaultRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"},{"internalType":"address","name":"_toToken","type":"address"},{"internalType":"address","name":"_unirouter","type":"address"},{"internalType":"address[]","name":"_path","type":"address[]"}],"name":"setSwapPath","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"sweepERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unirouter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_fromLpToken","type":"address"},{"internalType":"address","name":"_toToken","type":"address"},{"internalType":"uint256","name":"_amountLpIn","type":"uint256"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"unzapFromLp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_matrixVault","type":"address"},{"internalType":"address","name":"_toToken","type":"address"},{"internalType":"uint256","name":"_withdrawAmount","type":"uint256"},{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"unzapFromMatrix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"},{"internalType":"address","name":"_toLpToken","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_minLpAmountOut","type":"uint256"}],"name":"zapToLp","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"},{"internalType":"address","name":"_matrixVault","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_minLpAmountOut","type":"uint256"}],"name":"zapToMatrix","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5073f491e7b69e4244ad4002bc14e878a34207e38c29806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050620000886200007c620003f160201b60201c565b620003f960201b60201c565b620000ad73f491e7b69e4244ad4002bc14e878a34207e38c29620004bf60201b60201c565b73f491e7b69e4244ad4002bc14e878a34207e38c296006600073152ee697f2e276fa89e96742e9bb9ab1f2e61be373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507316327e3fbdaca3bcf7e38f5af2599d2ddc33ae526006600073ef45d134b73241eda7703fa787148d9c9f4950b073ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550736d0176c5ea1e44b08d3dd001b0784ce42f47a3a76006600073e236f6890f1824fa0a7ffc39b1597a5a6077cfe973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507353c153a0df7e050bbefbb70ee9632061f12795fb6006600073991152411a7b5a14a8cf0cdde8439435328070df73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550735023882f4d1ec10544fcb2066abe9c1645e95aa06006600073c831a5cbfb4ac2da5ed5b194385dfd9bf5bfcba773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555062000675565b600033905090565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141562000532576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620005299062000653565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fcf98fac394e29dfa548be1508c2e5b7f69e854047c2da29482539f65f574e76360405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600082825260208201905092915050565b7f696e76616c69642d64656661756c742d726f7574657200000000000000000000600082015250565b60006200063b601683620005f2565b9150620006488262000603565b602082019050919050565b600060208201905081810360008301526200066e816200062c565b9050919050565b614ac080620006856000396000f3fe6080604052600436106101225760003560e01c80638da5cb5b116100a0578063ccdc36f711610064578063ccdc36f7146103af578063e00af4a7146103d8578063f2fde38b14610401578063f4392fb31461042a578063ffa1ad741461045357610129565b80638da5cb5b146102d957806395e125cc14610304578063be9e09d61461032d578063c7d19aac1461036a578063cc47c34c1461038657610129565b80634cd17e65116100e75780634cd17e651461020657806352df107f1461022f578063679705401461025a5780636d02802714610297578063715018a6146102c257610129565b8062539af01461012e578063067b5c86146101575780630d43b9dd1461017357806321dbe876146101b0578063257ae0de146101db57610129565b3661012957005b600080fd5b34801561013a57600080fd5b5061015560048036038101906101509190613698565b61047e565b005b610171600480360381019061016c91906136fb565b610506565b005b34801561017f57600080fd5b5061019a60048036038101906101959190613698565b610548565b6040516101a79190613771565b60405180910390f35b3480156101bc57600080fd5b506101c561057b565b6040516101d29190613771565b60405180910390f35b3480156101e757600080fd5b506101f0610593565b6040516101fd9190613771565b60405180910390f35b34801561021257600080fd5b5061022d6004803603810190610228919061378c565b6105b7565b005b34801561023b57600080fd5b50610244610810565b6040516102519190613771565b60405180910390f35b34801561026657600080fd5b50610281600480360381019061027c9190613698565b610836565b60405161028e9190613771565b60405180910390f35b3480156102a357600080fd5b506102ac610869565b6040516102b9919061388a565b60405180910390f35b3480156102ce57600080fd5b506102d761087a565b005b3480156102e557600080fd5b506102ee610902565b6040516102fb9190613771565b60405180910390f35b34801561031057600080fd5b5061032b600480360381019061032691906136fb565b61092c565b005b34801561033957600080fd5b50610354600480360381019061034f919061378c565b610bcb565b6040516103619190613958565b60405180910390f35b610384600480360381019061037f91906136fb565b61107b565b005b34801561039257600080fd5b506103ad60048036038101906103a891906136fb565b611425565b005b3480156103bb57600080fd5b506103d660048036038101906103d1919061378c565b611438565b005b3480156103e457600080fd5b506103ff60048036038101906103fa9190613698565b611604565b005b34801561040d57600080fd5b5061042860048036038101906104239190613698565b611736565b005b34801561043657600080fd5b50610451600480360381019061044c9190613ad3565b61182e565b005b34801561045f57600080fd5b506104686118bc565b6040516104759190613bde565b60405180910390f35b6104866118f5565b73ffffffffffffffffffffffffffffffffffffffff166104a4610902565b73ffffffffffffffffffffffffffffffffffffffff16146104fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f190613c4c565b60405180910390fd5b610503816118fd565b50565b600061051485858585611a2d565b905061054133828673ffffffffffffffffffffffffffffffffffffffff166120b29092919063ffffffff16565b5050505050565b60056020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b7321be370d5312f44cb42ce377bc9b8a0cef1a4c8381565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6105bf6118f5565b73ffffffffffffffffffffffffffffffffffffffff166105dd610902565b73ffffffffffffffffffffffffffffffffffffffff1614610633576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062a90613c4c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156106a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069a90613cb8565b60405180910390fd5b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610734576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072b90613d24565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fd44c32953fd34ef97c6d6f5e281f9abbc92927f7e596992b7c1006e861cdc23d60405160405180910390a380600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60066020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606108756001612138565b905090565b6108826118f5565b73ffffffffffffffffffffffffffffffffffffffff166108a0610902565b73ffffffffffffffffffffffffffffffffffffffff16146108f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108ed90613c4c565b60405180910390fd5b6109006000612159565b565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600084905060008173ffffffffffffffffffffffffffffffffffffffff16631f1fcd516040518163ffffffff1660e01b815260040160206040518083038186803b15801561097957600080fd5b505afa15801561098d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b19190613d59565b90508173ffffffffffffffffffffffffffffffffffffffff166323b872dd3330876040518463ffffffff1660e01b81526004016109f093929190613d95565b602060405180830381600087803b158015610a0a57600080fd5b505af1158015610a1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a429190613e04565b508173ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d856040518263ffffffff1660e01b8152600401610a7c9190613e31565b600060405180830381600087803b158015610a9657600080fd5b505af1158015610aaa573d6000803e3d6000fd5b505050506000610b4482878473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610aee9190613771565b60206040518083038186803b158015610b0657600080fd5b505afa158015610b1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3e9190613e61565b8761221f565b90508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fb6b31433b0feeb179e7bdaf74af8f681471ac78f86bddc6e35ab7f514f84af0384604051610bba9190613e31565b60405180910390a450505050505050565b610bd361354f565b60008383604051602001610be8929190613ed6565b604051602081830303815290604052805190602001209050600060036000838152602001908152602001600020600101805490501415610f69577321be370d5312f44cb42ce377bc9b8a0cef1a4c8373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614158015610cb257507321be370d5312f44cb42ce377bc9b8a0cef1a4c8373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614155b15610e15576000600367ffffffffffffffff811115610cd457610cd3613990565b5b604051908082528060200260200182016040528015610d025781602001602082028036833780820191505090505b5090508481600081518110610d1a57610d19613f02565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250507321be370d5312f44cb42ce377bc9b8a0cef1a4c8381600181518110610d7d57610d7c613f02565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508381600281518110610dcc57610dcb613f02565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080836020018190525050610f0c565b6000600267ffffffffffffffff811115610e3257610e31613990565b5b604051908082528060200260200182016040528015610e605781602001602082028036833780820191505090505b5090508481600081518110610e7857610e77613f02565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508381600181518110610ec757610ec6613f02565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050808360200181905250505b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050611073565b600360008281526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016001820180548060200260200160405190810160405280929190818152602001828054801561106257602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311611018575b505050505081525050915050611075565b505b92915050565b600083905060008173ffffffffffffffffffffffffffffffffffffffff16631f1fcd516040518163ffffffff1660e01b815260040160206040518083038186803b1580156110c857600080fd5b505afa1580156110dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111009190613d59565b9050600061111087838787611a2d565b905060008373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161114d9190613771565b60206040518083038186803b15801561116557600080fd5b505afa158015611179573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119d9190613e61565b90506111ca87838573ffffffffffffffffffffffffffffffffffffffff166128d19092919063ffffffff16565b8373ffffffffffffffffffffffffffffffffffffffff1663b6b55f25836040518263ffffffff1660e01b81526004016112039190613e31565b600060405180830381600087803b15801561121d57600080fd5b505af1158015611231573d6000803e3d6000fd5b505050506000818573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016112719190613771565b60206040518083038186803b15801561128957600080fd5b505afa15801561129d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c19190613e61565b6112cb9190613f60565b905060008111611310576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130790613fe0565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b815260040161134b929190614000565b602060405180830381600087803b15801561136557600080fd5b505af1158015611379573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139d9190613e04565b508373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167ffb4595efc62c0b8b1567ac9769b05ea4215e28a83691f58ba050aa6981c7c3cb866040516114129190613e31565b60405180910390a4505050505050505050565b6114318484848461221f565b5050505050565b6114406118f5565b73ffffffffffffffffffffffffffffffffffffffff1661145e610902565b73ffffffffffffffffffffffffffffffffffffffff16146114b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ab90613c4c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611582576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161157990614075565b60405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b61160c6118f5565b73ffffffffffffffffffffffffffffffffffffffff1661162a610902565b73ffffffffffffffffffffffffffffffffffffffff1614611680576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167790613c4c565b60405180910390fd5b611733338273ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b81526004016116bd9190613771565b60206040518083038186803b1580156116d557600080fd5b505afa1580156116e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061170d9190613e61565b8373ffffffffffffffffffffffffffffffffffffffff166120b29092919063ffffffff16565b50565b61173e6118f5565b73ffffffffffffffffffffffffffffffffffffffff1661175c610902565b73ffffffffffffffffffffffffffffffffffffffff16146117b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a990613c4c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611822576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181990614107565b60405180910390fd5b61182b81612159565b50565b6118366118f5565b73ffffffffffffffffffffffffffffffffffffffff16611854610902565b73ffffffffffffffffffffffffffffffffffffffff16146118aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118a190613c4c565b60405180910390fd5b6118b684848484612a2f565b50505050565b6040518060400160405280600381526020017f312e32000000000000000000000000000000000000000000000000000000000081525081565b600033905090565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561196d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196490614173565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167fcf98fac394e29dfa548be1508c2e5b7f69e854047c2da29482539f65f574e76360405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600080341115611b75577321be370d5312f44cb42ce377bc9b8a0cef1a4c8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614611ab9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ab0906141df565b60405180910390fd5b348314611afb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af29061424b565b60405180910390fd5b7321be370d5312f44cb42ce377bc9b8a0cef1a4c8373ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015611b5757600080fd5b505af1158015611b6b573d6000803e3d6000fd5b5050505050611ba3565b611ba23330858873ffffffffffffffffffffffffffffffffffffffff16612c98909392919063ffffffff16565b5b6000611bae85612d21565b9050611bdc8160008873ffffffffffffffffffffffffffffffffffffffff166128d19092919063ffffffff16565b611c0781858873ffffffffffffffffffffffffffffffffffffffff166128d19092919063ffffffff16565b60008573ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015611c4f57600080fd5b505afa158015611c63573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c879190613d59565b905060008673ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015611cd157600080fd5b505afa158015611ce5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d099190613d59565b905060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050836000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000611d8a8a8560028b611d85919061429a565b612fd6565b90506000611db08b8560028c611da0919061429a565b8c611dab9190613f60565b612fd6565b9050826000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550611e1e8660008773ffffffffffffffffffffffffffffffffffffffff166128d19092919063ffffffff16565b611e4a8660008673ffffffffffffffffffffffffffffffffffffffff166128d19092919063ffffffff16565b611e7586838773ffffffffffffffffffffffffffffffffffffffff166128d19092919063ffffffff16565b611ea086828673ffffffffffffffffffffffffffffffffffffffff166128d19092919063ffffffff16565b60008a73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611edb9190613771565b60206040518083038186803b158015611ef357600080fd5b505afa158015611f07573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f2b9190613e61565b90508673ffffffffffffffffffffffffffffffffffffffff1663e8e337008787868660008030426040518963ffffffff1660e01b8152600401611f75989796959493929190614310565b606060405180830381600087803b158015611f8f57600080fd5b505af1158015611fa3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fc7919061438e565b505050808b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016120049190613771565b60206040518083038186803b15801561201c57600080fd5b505afa158015612030573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120549190613e61565b61205e9190613f60565b9750888810156120a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209a9061442d565b60405180910390fd5b50505050505050949350505050565b6121338363a9059cbb60e01b84846040516024016120d1929190614000565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613270565b505050565b6060600061214883600001613337565b905060608190508092505050919050565b6000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008061222b86612d21565b905060008673ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561227557600080fd5b505afa158015612289573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122ad9190613d59565b905060008773ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b1580156122f757600080fd5b505afa15801561230b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061232f9190613d59565b905061235d8360008a73ffffffffffffffffffffffffffffffffffffffff166128d19092919063ffffffff16565b61238883878a73ffffffffffffffffffffffffffffffffffffffff166128d19092919063ffffffff16565b8273ffffffffffffffffffffffffffffffffffffffff1663baa2abde83838960008030426040518863ffffffff1660e01b81526004016123ce979695949392919061444d565b6040805180830381600087803b1580156123e757600080fd5b505af11580156123fb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061241f91906144bc565b505060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050836000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061251a83898573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016124c59190613771565b60206040518083038186803b1580156124dd57600080fd5b505afa1580156124f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125159190613e61565b612fd6565b506125ae82898473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016125599190613771565b60206040518083038186803b15801561257157600080fd5b505afa158015612585573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125a99190613e61565b612fd6565b50806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508773ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016126289190613771565b60206040518083038186803b15801561264057600080fd5b505afa158015612654573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126789190613e61565b9450858510156126bd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b49061442d565b60405180910390fd5b7321be370d5312f44cb42ce377bc9b8a0cef1a4c8373ffffffffffffffffffffffffffffffffffffffff168873ffffffffffffffffffffffffffffffffffffffff161415612836577321be370d5312f44cb42ce377bc9b8a0cef1a4c8373ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d866040518263ffffffff1660e01b81526004016127529190613e31565b600060405180830381600087803b15801561276c57600080fd5b505af1158015612780573d6000803e3d6000fd5b5050505060003373ffffffffffffffffffffffffffffffffffffffff16866040516127aa9061452d565b60006040518083038185875af1925050503d80600081146127e7576040519150601f19603f3d011682016040523d82523d6000602084013e6127ec565b606091505b5050905080612830576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128279061458e565b60405180910390fd5b506128c5565b8773ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33876040518363ffffffff1660e01b8152600401612871929190614000565b602060405180830381600087803b15801561288b57600080fd5b505af115801561289f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128c39190613e04565b505b50505050949350505050565b600081148061296a575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016129189291906145ae565b60206040518083038186803b15801561293057600080fd5b505afa158015612944573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129689190613e61565b145b6129a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a090614649565b60405180910390fd5b612a2a8363095ea7b360e01b84846040516024016129c8929190614000565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613270565b505050565b8373ffffffffffffffffffffffffffffffffffffffff1681600081518110612a5a57612a59613f02565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614612ab8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aaf906146b5565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff168160018351612ade9190613f60565b81518110612aef57612aee613f02565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614612b4d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b44906146b5565b60405180910390fd5b612b5681613393565b60008484604051602001612b6b929190613ed6565b60405160208183030381529060405280519060200120905060008073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614612bbe5783612be0565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff165b9050612beb81613396565b60405180604001604052808273ffffffffffffffffffffffffffffffffffffffff168152602001848152506003600084815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001019080519060200190612c8c92919061357f565b50905050505050505050565b612d1b846323b872dd60e01b858585604051602401612cb993929190613d95565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613270565b50505050565b60008073ffffffffffffffffffffffffffffffffffffffff16600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612e1c57600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050612fd1565b60008273ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b158015612e6457600080fd5b505afa158015612e78573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e9c9190613d59565b9050600073ffffffffffffffffffffffffffffffffffffffff16600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612f6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6490614721565b60405180910390fd5b600660008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150505b919050565b60008273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561301457819050613269565b60006130208585610bcb565b9050613052816000015160008773ffffffffffffffffffffffffffffffffffffffff166128d19092919063ffffffff16565b6130a181600001517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8773ffffffffffffffffffffffffffffffffffffffff166128d19092919063ffffffff16565b60008473ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016130dc9190613771565b60206040518083038186803b1580156130f457600080fd5b505afa158015613108573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061312c9190613e61565b9050816000015173ffffffffffffffffffffffffffffffffffffffff166338ed1739856000856020015130426040518663ffffffff1660e01b8152600401613178959493929190614741565b600060405180830381600087803b15801561319257600080fd5b505af11580156131a6573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906131cf919061485e565b50808573ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161320a9190613771565b60206040518083038186803b15801561322257600080fd5b505afa158015613236573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061325a9190613e61565b6132649190613f60565b925050505b9392505050565b60006132d2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166133999092919063ffffffff16565b905060008151111561333257808060200190518101906132f29190613e04565b613331576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332890614919565b60405180910390fd5b5b505050565b60608160000180548060200260200160405190810160405280929190818152602001828054801561338757602002820191906000526020600020905b815481526020019060010190808311613373575b50505050509050919050565b50565b50565b60606133a884846000856133b1565b90509392505050565b6060824710156133f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133ed906149ab565b60405180910390fd5b6133ff856134c5565b61343e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343590614a17565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516134679190614a73565b60006040518083038185875af1925050503d80600081146134a4576040519150601f19603f3d011682016040523d82523d6000602084013e6134a9565b606091505b50915091506134b98282866134e8565b92505050949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b606083156134f857829050613548565b60008351111561350b5782518084602001fd5b816040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161353f9190613bde565b60405180910390fd5b9392505050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001606081525090565b8280548282559060005260206000209081019282156135f8579160200282015b828111156135f75782518260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509160200191906001019061359f565b5b5090506136059190613609565b5090565b5b8082111561362257600081600090555060010161360a565b5090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006136658261363a565b9050919050565b6136758161365a565b811461368057600080fd5b50565b6000813590506136928161366c565b92915050565b6000602082840312156136ae576136ad613630565b5b60006136bc84828501613683565b91505092915050565b6000819050919050565b6136d8816136c5565b81146136e357600080fd5b50565b6000813590506136f5816136cf565b92915050565b6000806000806080858703121561371557613714613630565b5b600061372387828801613683565b945050602061373487828801613683565b9350506040613745878288016136e6565b9250506060613756878288016136e6565b91505092959194509250565b61376b8161365a565b82525050565b60006020820190506137866000830184613762565b92915050565b600080604083850312156137a3576137a2613630565b5b60006137b185828601613683565b92505060206137c285828601613683565b9150509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6138018161365a565b82525050565b600061381383836137f8565b60208301905092915050565b6000602082019050919050565b6000613837826137cc565b61384181856137d7565b935061384c836137e8565b8060005b8381101561387d5781516138648882613807565b975061386f8361381f565b925050600181019050613850565b5085935050505092915050565b600060208201905081810360008301526138a4818461382c565b905092915050565b600082825260208201905092915050565b60006138c8826137cc565b6138d281856138ac565b93506138dd836137e8565b8060005b8381101561390e5781516138f58882613807565b97506139008361381f565b9250506001810190506138e1565b5085935050505092915050565b600060408301600083015161393360008601826137f8565b506020830151848203602086015261394b82826138bd565b9150508091505092915050565b60006020820190508181036000830152613972818461391b565b905092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6139c88261397f565b810181811067ffffffffffffffff821117156139e7576139e6613990565b5b80604052505050565b60006139fa613626565b9050613a0682826139bf565b919050565b600067ffffffffffffffff821115613a2657613a25613990565b5b602082029050602081019050919050565b600080fd5b6000613a4f613a4a84613a0b565b6139f0565b90508083825260208201905060208402830185811115613a7257613a71613a37565b5b835b81811015613a9b5780613a878882613683565b845260208401935050602081019050613a74565b5050509392505050565b600082601f830112613aba57613ab961397a565b5b8135613aca848260208601613a3c565b91505092915050565b60008060008060808587031215613aed57613aec613630565b5b6000613afb87828801613683565b9450506020613b0c87828801613683565b9350506040613b1d87828801613683565b925050606085013567ffffffffffffffff811115613b3e57613b3d613635565b5b613b4a87828801613aa5565b91505092959194509250565b600081519050919050565b600082825260208201905092915050565b60005b83811015613b90578082015181840152602081019050613b75565b83811115613b9f576000848401525b50505050565b6000613bb082613b56565b613bba8185613b61565b9350613bca818560208601613b72565b613bd38161397f565b840191505092915050565b60006020820190508181036000830152613bf88184613ba5565b905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613c36602083613b61565b9150613c4182613c00565b602082019050919050565b60006020820190508181036000830152613c6581613c29565b9050919050565b7f696e76616c69642d746f6b656e2d616464720000000000000000000000000000600082015250565b6000613ca2601283613b61565b9150613cad82613c6c565b602082019050919050565b60006020820190508181036000830152613cd181613c95565b9050919050565b7f696e76616c69642d637573746f6d2d726f757465720000000000000000000000600082015250565b6000613d0e601583613b61565b9150613d1982613cd8565b602082019050919050565b60006020820190508181036000830152613d3d81613d01565b9050919050565b600081519050613d538161366c565b92915050565b600060208284031215613d6f57613d6e613630565b5b6000613d7d84828501613d44565b91505092915050565b613d8f816136c5565b82525050565b6000606082019050613daa6000830186613762565b613db76020830185613762565b613dc46040830184613d86565b949350505050565b60008115159050919050565b613de181613dcc565b8114613dec57600080fd5b50565b600081519050613dfe81613dd8565b92915050565b600060208284031215613e1a57613e19613630565b5b6000613e2884828501613def565b91505092915050565b6000602082019050613e466000830184613d86565b92915050565b600081519050613e5b816136cf565b92915050565b600060208284031215613e7757613e76613630565b5b6000613e8584828501613e4c565b91505092915050565b60008160601b9050919050565b6000613ea682613e8e565b9050919050565b6000613eb882613e9b565b9050919050565b613ed0613ecb8261365a565b613ead565b82525050565b6000613ee28285613ebf565b601482019150613ef28284613ebf565b6014820191508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613f6b826136c5565b9150613f76836136c5565b925082821015613f8957613f88613f31565b5b828203905092915050565b7f6465706f7369742d696e2d7661756c742d6661696c6564000000000000000000600082015250565b6000613fca601783613b61565b9150613fd582613f94565b602082019050919050565b60006020820190508181036000830152613ff981613fbd565b9050919050565b60006040820190506140156000830185613762565b6140226020830184613d86565b9392505050565b7f616c72656164792d736574000000000000000000000000000000000000000000600082015250565b600061405f600b83613b61565b915061406a82614029565b602082019050919050565b6000602082019050818103600083015261408e81614052565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006140f1602683613b61565b91506140fc82614095565b604082019050919050565b60006020820190508181036000830152614120816140e4565b9050919050565b7f696e76616c69642d64656661756c742d726f7574657200000000000000000000600082015250565b600061415d601683613b61565b915061416882614127565b602082019050919050565b6000602082019050818103600083015261418c81614150565b9050919050565b7f696e76616c69642d66726f6d2d746f6b656e0000000000000000000000000000600082015250565b60006141c9601283613b61565b91506141d482614193565b602082019050919050565b600060208201905081810360008301526141f8816141bc565b9050919050565b7f696e76616c69642d616d6f756e742d696e000000000000000000000000000000600082015250565b6000614235601183613b61565b9150614240826141ff565b602082019050919050565b6000602082019050818103600083015261426481614228565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006142a5826136c5565b91506142b0836136c5565b9250826142c0576142bf61426b565b5b828204905092915050565b6000819050919050565b6000819050919050565b60006142fa6142f56142f0846142cb565b6142d5565b6136c5565b9050919050565b61430a816142df565b82525050565b600061010082019050614326600083018b613762565b614333602083018a613762565b6143406040830189613d86565b61434d6060830188613d86565b61435a6080830187614301565b61436760a0830186614301565b61437460c0830185613762565b61438160e0830184613d86565b9998505050505050505050565b6000806000606084860312156143a7576143a6613630565b5b60006143b586828701613e4c565b93505060206143c686828701613e4c565b92505060406143d786828701613e4c565b9150509250925092565b7f736c6970706167652d72656b742d796f75000000000000000000000000000000600082015250565b6000614417601183613b61565b9150614422826143e1565b602082019050919050565b600060208201905081810360008301526144468161440a565b9050919050565b600060e082019050614462600083018a613762565b61446f6020830189613762565b61447c6040830188613d86565b6144896060830187614301565b6144966080830186614301565b6144a360a0830185613762565b6144b060c0830184613d86565b98975050505050505050565b600080604083850312156144d3576144d2613630565b5b60006144e185828601613e4c565b92505060206144f285828601613e4c565b9150509250929050565b600081905092915050565b50565b60006145176000836144fc565b915061452282614507565b600082019050919050565b60006145388261450a565b9150819050919050565b7f66746d2d7472616e736665722d6661696c656400000000000000000000000000600082015250565b6000614578601383613b61565b915061458382614542565b602082019050919050565b600060208201905081810360008301526145a78161456b565b9050919050565b60006040820190506145c36000830185613762565b6145d06020830184613762565b9392505050565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b6000614633603683613b61565b915061463e826145d7565b604082019050919050565b6000602082019050818103600083015261466281614626565b9050919050565b7f696e76616c69642d706174680000000000000000000000000000000000000000600082015250565b600061469f600c83613b61565b91506146aa82614669565b602082019050919050565b600060208201905081810360008301526146ce81614692565b9050919050565b7f756e737570706f727465642d726f757465720000000000000000000000000000600082015250565b600061470b601283613b61565b9150614716826146d5565b602082019050919050565b6000602082019050818103600083015261473a816146fe565b9050919050565b600060a0820190506147566000830188613d86565b6147636020830187614301565b8181036040830152614775818661382c565b90506147846060830185613762565b6147916080830184613d86565b9695505050505050565b600067ffffffffffffffff8211156147b6576147b5613990565b5b602082029050602081019050919050565b60006147da6147d58461479b565b6139f0565b905080838252602082019050602084028301858111156147fd576147fc613a37565b5b835b8181101561482657806148128882613e4c565b8452602084019350506020810190506147ff565b5050509392505050565b600082601f8301126148455761484461397a565b5b81516148558482602086016147c7565b91505092915050565b60006020828403121561487457614873613630565b5b600082015167ffffffffffffffff81111561489257614891613635565b5b61489e84828501614830565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000614903602a83613b61565b915061490e826148a7565b604082019050919050565b60006020820190508181036000830152614932816148f6565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000614995602683613b61565b91506149a082614939565b604082019050919050565b600060208201905081810360008301526149c481614988565b9050919050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000614a01601d83613b61565b9150614a0c826149cb565b602082019050919050565b60006020820190508181036000830152614a30816149f4565b9050919050565b600081519050919050565b6000614a4d82614a37565b614a5781856144fc565b9350614a67818560208601613b72565b80840191505092915050565b6000614a7f8284614a42565b91508190509291505056fea2646970667358221220716d370207ba515d6fb1a9158d71398ac3ef529f7846a67a5967b27cdcebe61764736f6c63430008090033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Validator ID :
0 FTM

Amount Staked
0

Amount Delegated
0

Staking Total
0

Staking Start Epoch
0

Staking Start Time
0

Proof of Importance
0

Origination Score
0

Validation Score
0

Active
0

Online
0

Downtime
0 s
Address Amount claimed Rewards Created On Epoch Created On
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.