Contract 0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e

 
Txn Hash Method
Block
From
To
Value
0xe0b0fa446968999417d692a42098db7ad753468ecbf2c96bb07f315747539500Churn126900242021-06-23 11:06:011 hr 18 mins ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00487503917
0x6bbf525180176243eb44f6a057bb881597569783cf7557e88a2a75829f301f2eRecord Incoming ...126890942021-06-23 7:30:584 hrs 53 mins ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00177165517
0xbfe26c0eb6806a1a75cd013e827a8c8fdcaff5642beae811beb784cdbfdccfe6Single Transfer ...126889772021-06-23 7:02:295 hrs 22 mins ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00143406917
0xe18dab861f5f22ef627e9cfe02be888f6d68f2404f5cb78c975688fc6029470eRecord UTXO Swee...126889462021-06-23 6:54:335 hrs 30 mins ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00093380418
0x36475fcfa9b96e5d3f80e3c742e1c3fc8ef7b63840186e859825341a2ab15680Record UTXO Swee...126875232021-06-23 1:29:2510 hrs 55 mins ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00238583646
0xc3db672060926b33345a2a106079e9286aee76f78a8b8c2f00492d09952bb56dSingle Transfer ...126874822021-06-23 1:22:1911 hrs 2 mins ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00496962949
0x0a2182b926e11c03c0dcdd43c37192cea717186be5f3777b1b4dae0405631265Churn126870252021-06-22 23:39:2812 hrs 45 mins ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00946331133
0x48cc1bb6911af820b3db2ca255507021b306bdf1249192408d1e693f209da05dCollect Swap Fee...126859452021-06-22 19:37:2216 hrs 47 mins ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00199980832
0x849f2abefdd3d98be734933a4922052a15c138aaba735ea9dc2ced8ac0e71278Collect Swap Fee...126853582021-06-22 17:27:5718 hrs 56 mins ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.003125350
0xdc0802617c20053056acb79896b1986f420e5acf847fb306db3c02e3f760ba78Churn126840452021-06-22 12:36:2723 hrs 48 mins ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.031115656104
0xb3f986fadc15bc7a7d6b1c971907ff181dabace5faa2350288b665889be4b35bSingle Transfer ...126833812021-06-22 10:05:421 day 2 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00497493959
0x9e28e2ae5a124066c8a6bba79fbd0efc3f5d2ff2f5ceccffed381a72f201bcabRecord UTXO Swee...126833442021-06-22 9:56:201 day 2 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00269765652
0x288925ee799f0b8c436bb0659dd62e6f09cb91b7559cdc506fb43d126fdc57ccSingle Transfer ...126831972021-06-22 9:20:301 day 3 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00517430751
0xe67238f8ebbc446da00cda65d90b7b8100ea16d7a40ac8b440e0b934274f06e3Collect Swap Fee...126831412021-06-22 9:10:191 day 3 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00268672643
0xd5d36a4f45813199bd3a58343644568ed5fe0bf33a21a8c47af440810e24efe4Record UTXO Swee...126830672021-06-22 8:53:091 day 3 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00202324239
0xc1135739b38de0fc09c13816b7d5b999d72c0dbf3d1e41a0aac55bcfe9da42b3Single Transfer ...126829912021-06-22 8:32:151 day 3 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.0034491334
0x1ef1a377de5925b51e9169792c25f16415d81f27f64ef74a5f711432c4ef6728Single Transfer ...126828522021-06-22 8:03:141 day 4 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00202370424
0xf183e3a07327fa5973d6da7f8da12e50754df03172f1e654bb9bc8edb83e7a0eCollect Swap Fee...126826212021-06-22 7:11:391 day 5 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00112532418
0xcb2959b49e36c8d0873c0315cdf5a6a75abc5efa1ec548f1ba43ecc15bea7e40Record Incoming ...126818322021-06-22 4:14:061 day 8 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.0027095926
0xd68f6a849429601e1352b764ed76cf5c95630f62e40ab4a2d530466cf9b63900Single Transfer ...126789022021-06-21 17:13:341 day 19 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.0060852660
0x0f3ebe05d61fc3119e2e1051cb784b006bd50e234b7931f921cfbfe5e037f40bSingle Transfer ...126784062021-06-21 15:22:481 day 21 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.0040563640
0x495360782f0e6e377653cbda8cb41c0144f7a2aace02b1254c2bdad0ba457a3bRecord Outcoming...126781742021-06-21 14:33:431 day 21 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00651291462
0x76fc4f489ef1f5b9d39c445ceb3fabaf2e3dc7323c0423784e03d40302954092Record Outcoming...126777412021-06-21 12:54:211 day 23 hrs ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00546244452
0x2821beb96256c1b7eca159a679a8243d806be4102b50bb619ee6aaae74a7c0f6Record Outcoming...126774832021-06-21 11:57:172 days 27 mins ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00787762575
0x740ce7f9cc23dc499a18bfe68d7ff7ebb42f3a50e2f23354ab9664d3c7b6abc5Single Transfer ...126774032021-06-21 11:41:132 days 43 mins ago0x37017e77d1e015b0336baa957e2eba729c1c4920 IN  0xbe83f11d3900f3a13d8d12fb62f5e85646cda45e0 Ether0.00596265684
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SwapContract

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-01-30
*/

// File: contracts/interfaces/IERC20.sol
// SPDX-License-Identifier: AGPL-3.0

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

    /**
     * @dev Returns the bep token owner. (This is a BEP-20 token specific.)
     */
    function getOwner() external view returns (address);

    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender,
        address recipient,
        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: contracts/interfaces/IBurnableToken.sol

pragma solidity >=0.6.0 <0.8.0;


interface IBurnableToken is IERC20 {
    function mint(address target, uint256 amount) external returns (bool);

    function burn(uint256 amount) external returns (bool);

    function mintable() external returns (bool);
}

// File: contracts/interfaces/ISwapContract.sol

pragma solidity >=0.6.0 <0.8.0;

interface ISwapContract {
    function singleTransferERC20(
        address _destToken,
        address _to,
        uint256 _amount,
        uint256 _totalSwapped,
        uint256 _rewardsAmount,
        bytes32[] memory _redeemedFloatTxIds
    ) external returns (bool);

    function multiTransferERC20TightlyPacked(
        address _destToken,
        bytes32[] memory _addressesAndAmounts,
        uint256 _totalSwapped,
        uint256 _rewardsAmount,
        bytes32[] memory _redeemedFloatTxIds
    ) external returns (bool);

    function collectSwapFeesForBTC(
        address _destToken,
        uint256 _incomingAmount,
        uint256 _minerFee,
        uint256 _rewardsAmount
    ) external returns (bool);

    function recordIncomingFloat(
        address _token,
        bytes32 _addressesAndAmountOfFloat,
        bool _zerofee,
        bytes32 _txid
    ) external returns (bool);

    function recordOutcomingFloat(
        address _token,
        bytes32 _addressesAndAmountOfLPtoken,
        uint256 _minerFee,
        bytes32 _txid
    ) external returns (bool);

    function distributeNodeRewards() external returns (bool);

    function recordUTXOSweepMinerFee(uint256 _minerFee, bytes32 _txid)
        external
        returns (bool);

    function churn(
        address _newOwner,
        bytes32[] memory _rewardAddressAndAmounts,
        bool[] memory _isRemoved,
        uint8 _churnedInCount,
        uint8 _tssThreshold,
        uint8 _nodeRewardsRatio,
        uint8 _withdrawalFeeBPS
    ) external returns (bool);

    function isTxUsed(bytes32 _txid) external view returns (bool);

    function getCurrentPriceLP() external view returns (uint256);

    function getDepositFeeRate(address _token, uint256 _amountOfFloat)
        external
        view
        returns (uint256);

    function getFloatReserve(address _tokenA, address _tokenB)
        external
        returns (uint256 reserveA, uint256 reserveB);

    function getActiveNodes() external returns (bytes32[] memory);
}

// File: @openzeppelin/contracts/GSN/Context.sol


pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


pragma solidity >=0.6.0 <0.8.0;

/**
 * @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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: @openzeppelin/contracts/math/SafeMath.sol


pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: contracts/SwapContract.sol

pragma solidity >=0.6.0 <0.8.0;






contract SwapContract is Ownable, ISwapContract {
    using SafeMath for uint256;

    address public WBTC_ADDR;
    address public lpToken;

    mapping(address => bool) public whitelist;

    uint8 public churnedInCount;
    uint8 public tssThreshold;
    uint8 public nodeRewardsRatio;
    uint8 public depositFeesBPS;
    uint8 public withdrawalFeeBPS;
    uint256 public lockedLPTokensForNode;
    uint256 public feesLPTokensForNode;
    uint256 public initialExchangeRate;

    uint256 private priceDecimals;
    uint256 private lpDecimals;

    mapping(address => uint256) private floatAmountOf;
    mapping(bytes32 => bool) private used;
    // Node lists
    mapping(address => bytes32) private nodes;
    mapping(address => bool) private isInList;
    address[] private nodeAddrs;

    /**
     * Events
     */

    event Swap(address from, address to, uint256 amount);

    event RewardsCollection(
        address feesToken,
        uint256 rewards,
        uint256 amountLPTokensForNode,
        uint256 currentPriceLP
    );

    event IssueLPTokensForFloat(
        address to,
        uint256 amountOfFloat,
        uint256 amountOfLP,
        uint256 currentPriceLP,
        uint256 depositFees,
        bytes32 txid
    );

    event BurnLPTokensForFloat(
        address token,
        uint256 amountOfLP,
        uint256 amountOfFloat,
        uint256 currentPriceLP,
        uint256 withdrawal,
        bytes32 txid
    );

    modifier priceCheck() {
        uint256 beforePrice = getCurrentPriceLP();
        _;
        require(getCurrentPriceLP() >= beforePrice, "Invalid LPT price");
    }

    constructor(
        address _lpToken,
        address _wbtc,
        uint256 _existingBTCFloat
    ) public {
        // Set lpToken address
        lpToken = _lpToken;
        // Set initial lpDecimals of LP token
        lpDecimals = 10**IERC20(lpToken).decimals();
        // Set WBTC address
        WBTC_ADDR = _wbtc;
        // Set nodeRewardsRatio
        nodeRewardsRatio = 66;
        // Set depositFeesBPS
        depositFeesBPS = 50;
        // Set withdrawalFeeBPS
        withdrawalFeeBPS = 20;
        // Set priceDecimals
        priceDecimals = 10**8;
        // Set initialExchangeRate
        initialExchangeRate = priceDecimals;
        // Set lockedLPTokensForNode
        lockedLPTokensForNode = 0;
        // Set feesLPTokensForNode
        feesLPTokensForNode = 0;
        // Set whitelist addresses
        whitelist[WBTC_ADDR] = true;
        whitelist[lpToken] = true;
        whitelist[address(0)] = true;
        floatAmountOf[address(0)] = _existingBTCFloat;
    }

    /**
     * Transfer part
     */

    /// @dev singleTransferERC20 sends tokens from contract.
    /// @param _destToken The address of target token.
    /// @param _to The address of recipient.
    /// @param _amount The amount of tokens.
    /// @param _totalSwapped The amount of swap.
    /// @param _rewardsAmount The fees that should be paid.
    /// @param _redeemedFloatTxIds The txids which is for recording.
    function singleTransferERC20(
        address _destToken,
        address _to,
        uint256 _amount,
        uint256 _totalSwapped,
        uint256 _rewardsAmount,
        bytes32[] memory _redeemedFloatTxIds
    ) external override onlyOwner returns (bool) {
        require(whitelist[_destToken], "_destToken is not whitelisted");
        require(
            _destToken != address(0),
            "_destToken should not be address(0)"
        );
        address _feesToken = address(0);
        if (_totalSwapped > 0) {
            _swap(address(0), WBTC_ADDR, _totalSwapped);
        } else if (_totalSwapped == 0) {
            _feesToken = WBTC_ADDR;
        }
        if (_destToken == lpToken) {
            _feesToken = lpToken;
        }
        _rewardsCollection(_feesToken, _rewardsAmount);
        _addUsedTxs(_redeemedFloatTxIds);
        require(IERC20(_destToken).transfer(_to, _amount));
        return true;
    }

    /// @dev multiTransferERC20TightlyPacked sends tokens from contract.
    /// @param _destToken The address of target token.
    /// @param _addressesAndAmounts The address of recipient and amount.
    /// @param _totalSwapped The amount of swap.
    /// @param _rewardsAmount The fees that should be paid.
    /// @param _redeemedFloatTxIds The txids which is for recording.
    function multiTransferERC20TightlyPacked(
        address _destToken,
        bytes32[] memory _addressesAndAmounts,
        uint256 _totalSwapped,
        uint256 _rewardsAmount,
        bytes32[] memory _redeemedFloatTxIds
    ) external override onlyOwner returns (bool) {
        require(whitelist[_destToken], "_destToken is not whitelisted");
        require(
            _destToken != address(0),
            "_destToken should not be address(0)"
        );
        address _feesToken = address(0);
        if (_totalSwapped > 0) {
            _swap(address(0), WBTC_ADDR, _totalSwapped);
        } else if (_totalSwapped == 0) {
            _feesToken = WBTC_ADDR;
        }
        if (_destToken == lpToken) {
            _feesToken = lpToken;
        }
        _rewardsCollection(_feesToken, _rewardsAmount);
        _addUsedTxs(_redeemedFloatTxIds);
        for (uint256 i = 0; i < _addressesAndAmounts.length; i++) {
            require(
                IERC20(_destToken).transfer(
                    address(uint160(uint256(_addressesAndAmounts[i]))),
                    uint256(uint96(bytes12(_addressesAndAmounts[i])))
                ),
                "Batch transfer error"
            );
        }
        return true;
    }

    /// @dev collectSwapFeesForBTC collects fees in the case of swap WBTC to BTC.
    /// @param _destToken The address of target token.
    /// @param _incomingAmount The spent amount. (WBTC)
    /// @param _minerFee The miner fees of BTC transaction.
    /// @param _rewardsAmount The fees that should be paid.
    function collectSwapFeesForBTC(
        address _destToken,
        uint256 _incomingAmount,
        uint256 _minerFee,
        uint256 _rewardsAmount
    ) external override onlyOwner returns (bool) {
        require(_destToken == address(0), "_destToken should be address(0)");
        address _feesToken = WBTC_ADDR;
        if (_incomingAmount > 0) {
            uint256 swapAmount = _incomingAmount.sub(_rewardsAmount).sub(
                _minerFee
            );
            _swap(WBTC_ADDR, address(0), swapAmount.add(_minerFee));
        } else if (_incomingAmount == 0) {
            _feesToken = address(0);
        }
        _rewardsCollection(_feesToken, _rewardsAmount);
        return true;
    }

    /**
     * Float part
     */

    /// @dev recordIncomingFloat mints LP token.
    /// @param _token The address of target token.
    /// @param _addressesAndAmountOfFloat The address of recipient and amount.
    /// @param _zerofee The flag to accept zero fees.
    /// @param _txid The txids which is for recording.
    function recordIncomingFloat(
        address _token,
        bytes32 _addressesAndAmountOfFloat,
        bool _zerofee,
        bytes32 _txid
    ) external override onlyOwner priceCheck returns (bool) {
        require(whitelist[_token], "_token is invalid");
        require(
            _issueLPTokensForFloat(
                _token,
                _addressesAndAmountOfFloat,
                _zerofee,
                _txid
            )
        );
        return true;
    }

    /// @dev recordOutcomingFloat burns LP token.
    /// @param _token The address of target token.
    /// @param _addressesAndAmountOfLPtoken The address of recipient and amount.
    /// @param _minerFee The miner fees of BTC transaction.
    /// @param _txid The txid which is for recording.
    function recordOutcomingFloat(
        address _token,
        bytes32 _addressesAndAmountOfLPtoken,
        uint256 _minerFee,
        bytes32 _txid
    ) external override onlyOwner priceCheck returns (bool) {
        require(whitelist[_token], "_token is invalid");
        require(
            _burnLPTokensForFloat(
                _token,
                _addressesAndAmountOfLPtoken,
                _minerFee,
                _txid
            )
        );
        return true;
    }

    /// @dev distributeNodeRewards sends rewards for Nodes.
    function distributeNodeRewards() external override returns (bool) {
        // Reduce Gas
        uint256 rewardLPTsForNodes = lockedLPTokensForNode.add(
            feesLPTokensForNode
        );
        require(
            rewardLPTsForNodes > 0,
            "totalRewardLPsForNode is not positive"
        );
        bytes32[] memory nodeList = getActiveNodes();
        uint256 totalStaked = 0;
        for (uint256 i = 0; i < nodeList.length; i++) {
            totalStaked = totalStaked.add(
                uint256(uint96(bytes12(nodeList[i])))
            );
        }
        IBurnableToken(lpToken).mint(address(this), lockedLPTokensForNode);
        for (uint256 i = 0; i < nodeList.length; i++) {
            IBurnableToken(lpToken).transfer(
                address(uint160(uint256(nodeList[i]))),
                rewardLPTsForNodes
                    .mul(uint256(uint96(bytes12(nodeList[i]))))
                    .div(totalStaked)
            );
        }
        lockedLPTokensForNode = 0;
        feesLPTokensForNode = 0;
        return true;
    }

    /**
     * Life cycle part
     */

    /// @dev recordUTXOSweepMinerFee reduces float amount by collected miner fees.
    /// @param _minerFee The miner fees of BTC transaction.
    /// @param _txid The txid which is for recording.
    function recordUTXOSweepMinerFee(uint256 _minerFee, bytes32 _txid)
        public
        override
        onlyOwner
        returns (bool)
    {
        require(!isTxUsed(_txid), "The txid is already used");
        floatAmountOf[address(0)] = floatAmountOf[address(0)].sub(
            _minerFee,
            "BTC float amount insufficient"
        );
        _addUsedTx(_txid);
        return true;
    }

    /// @dev churn transfers contract ownership and set variables of the next TSS validator set.
    /// @param _newOwner The address of new Owner.
    /// @param _rewardAddressAndAmounts The reward addresses and amounts.
    /// @param _isRemoved The flags to remove node.
    /// @param _churnedInCount The number of next party size of TSS group.
    /// @param _tssThreshold The number of next threshold.
    /// @param _nodeRewardsRatio The number of rewards ratio for node owners
    /// @param _withdrawalFeeBPS The amount of wthdrawal fees.
    function churn(
        address _newOwner,
        bytes32[] memory _rewardAddressAndAmounts,
        bool[] memory _isRemoved,
        uint8 _churnedInCount,
        uint8 _tssThreshold,
        uint8 _nodeRewardsRatio,
        uint8 _withdrawalFeeBPS
    ) external override onlyOwner returns (bool) {
        require(
            _tssThreshold >= tssThreshold && _tssThreshold <= 2**8 - 1,
            "_tssThreshold should be >= tssThreshold"
        );
        require(
            _churnedInCount >= _tssThreshold + uint8(1),
            "n should be >= t+1"
        );
        require(
            _nodeRewardsRatio >= 0 && _nodeRewardsRatio <= 100,
            "_nodeRewardsRatio is not valid"
        );
        require(
            _withdrawalFeeBPS >= 0 && _withdrawalFeeBPS <= 100,
            "_withdrawalFeeBPS is invalid"
        );
        require(
            _rewardAddressAndAmounts.length == _isRemoved.length,
            "_rewardAddressAndAmounts and _isRemoved length is not match"
        );
        transferOwnership(_newOwner);
        // Update active node list
        for (uint256 i = 0; i < _rewardAddressAndAmounts.length; i++) {
            (address newNode, ) = _splitToValues(_rewardAddressAndAmounts[i]);
            _addNode(newNode, _rewardAddressAndAmounts[i], _isRemoved[i]);
        }
        bytes32[] memory nodeList = getActiveNodes();
        if (nodeList.length > 100) {
            revert("Stored node size should be <= 100");
        }
        churnedInCount = _churnedInCount;
        tssThreshold = _tssThreshold;
        nodeRewardsRatio = _nodeRewardsRatio;
        withdrawalFeeBPS = _withdrawalFeeBPS;
        return true;
    }

    /// @dev isTxUsed sends rewards for Nodes.
    /// @param _txid The txid which is for recording.
    function isTxUsed(bytes32 _txid) public override view returns (bool) {
        return used[_txid];
    }

    /// @dev getCurrentPriceLP returns the current exchange rate of LP token.
    function getCurrentPriceLP()
        public
        override
        view
        returns (uint256 nowPrice)
    {
        (uint256 reserveA, uint256 reserveB) = getFloatReserve(
            address(0),
            WBTC_ADDR
        );
        uint256 totalLPs = IBurnableToken(lpToken).totalSupply();
        // decimals of totalReserved == 8, lpDecimals == 8, decimals of rate == 8
        nowPrice = totalLPs == 0
            ? initialExchangeRate
            : (reserveA.add(reserveB)).mul(lpDecimals).div(
                totalLPs.add(lockedLPTokensForNode)
            );
        return nowPrice;
    }

    /// @dev getDepositFeeRate returns deposit fees rate
    /// @param _token The address of target token.
    /// @param _amountOfFloat The amount of float.
    function getDepositFeeRate(address _token, uint256 _amountOfFloat)
        public
        override
        view
        returns (uint256 depositFeeRate)
    {
        uint8 isFlip = _checkFlips(_token, _amountOfFloat);
        if (isFlip == 1) {
            depositFeeRate = _token == WBTC_ADDR ? depositFeesBPS : 0;
        } else if (isFlip == 2) {
            depositFeeRate = _token == address(0) ? depositFeesBPS : 0;
        }
    }

    /// @dev getFloatReserve returns float reserves
    /// @param _tokenA The address of target tokenA.
    /// @param _tokenB The address of target tokenB.
    function getFloatReserve(address _tokenA, address _tokenB)
        public
        override
        view
        returns (uint256 reserveA, uint256 reserveB)
    {
        (reserveA, reserveB) = (floatAmountOf[_tokenA], floatAmountOf[_tokenB]);
    }

    /// @dev getActiveNodes returns active nodes list (stakes and amount)
    function getActiveNodes() public override view returns (bytes32[] memory) {
        uint256 nodeCount = 0;
        uint256 count = 0;
        // Seek all nodes
        for (uint256 i = 0; i < nodeAddrs.length; i++) {
            if (nodes[nodeAddrs[i]] != 0x0) {
                nodeCount = nodeCount.add(1);
            }
        }
        bytes32[] memory _nodes = new bytes32[](nodeCount);
        for (uint256 i = 0; i < nodeAddrs.length; i++) {
            if (nodes[nodeAddrs[i]] != 0x0) {
                _nodes[count] = nodes[nodeAddrs[i]];
                count = count.add(1);
            }
        }
        return _nodes;
    }

    /// @dev _issueLPTokensForFloat
    /// @param _token The address of target token.
    /// @param _transaction The recevier address and amount.
    /// @param _zerofee The flag to accept zero fees.
    /// @param _txid The txid which is for recording.
    function _issueLPTokensForFloat(
        address _token,
        bytes32 _transaction,
        bool _zerofee,
        bytes32 _txid
    ) internal returns (bool) {
        require(!isTxUsed(_txid), "The txid is already used");
        require(_transaction != 0x0, "The transaction is not valid");
        // Define target address which is recorded on the tx data (20 bytes)
        // Define amountOfFloat which is recorded top on tx data (12 bytes)
        (address to, uint256 amountOfFloat) = _splitToValues(_transaction);
        // Calculate the amount of LP token
        uint256 nowPrice = getCurrentPriceLP();
        uint256 amountOfLP = amountOfFloat.mul(priceDecimals).div(nowPrice);
        uint256 depositFeeRate = getDepositFeeRate(_token, amountOfFloat);
        uint256 depositFees = depositFeeRate != 0
            ? amountOfLP.mul(depositFeeRate).div(10000)
            : 0;

        if (_zerofee && depositFees != 0) {
            revert();
        }
        // Send LP tokens to LP
        IBurnableToken(lpToken).mint(to, amountOfLP.sub(depositFees));
        // Add deposit fees
        lockedLPTokensForNode = lockedLPTokensForNode.add(depositFees);
        // Add float amount
        _addFloat(_token, amountOfFloat);
        _addUsedTx(_txid);
        emit IssueLPTokensForFloat(
            to,
            amountOfFloat,
            amountOfLP,
            nowPrice,
            depositFees,
            _txid
        );
        return true;
    }

    /// @dev _burnLPTokensForFloat
    /// @param _token The address of target token.
    /// @param _transaction The address of sender and amount.
    /// @param _minerFee The miner fees of BTC transaction.
    /// @param _txid The txid which is for recording.
    function _burnLPTokensForFloat(
        address _token,
        bytes32 _transaction,
        uint256 _minerFee,
        bytes32 _txid
    ) internal returns (bool) {
        require(!isTxUsed(_txid), "The txid is already used");
        require(_transaction != 0x0, "The transaction is not valid");
        // Define target address which is recorded on the tx data (20bytes)
        // Define amountLP which is recorded top on tx data (12bytes)
        (address to, uint256 amountOfLP) = _splitToValues(_transaction);
        // Calculate the amount of LP token
        uint256 nowPrice = getCurrentPriceLP();
        // Calculate the amountOfFloat
        uint256 amountOfFloat = amountOfLP.mul(nowPrice).div(priceDecimals);
        uint256 withdrawalFees = amountOfFloat.mul(withdrawalFeeBPS).div(10000);
        require(
            amountOfFloat.sub(withdrawalFees) >= _minerFee,
            "Error: amountOfFloat.sub(withdrawalFees) < _minerFee"
        );
        uint256 withdrawal = amountOfFloat.sub(withdrawalFees).sub(_minerFee);
        (uint256 reserveA, uint256 reserveB) = getFloatReserve(
            address(0),
            WBTC_ADDR
        );
        if (_token == address(0)) {
            require(
                reserveA >= amountOfFloat.sub(withdrawalFees),
                "The float balance insufficient."
            );
        } else if (_token == WBTC_ADDR) {
            require(
                reserveB >= amountOfFloat.sub(withdrawalFees),
                "The float balance insufficient."
            );
        }
        // Collect fees before remove float
        _rewardsCollection(_token, withdrawalFees);
        // Remove float amount
        _removeFloat(_token, amountOfFloat);
        // Add txid for recording.
        _addUsedTx(_txid);
        // WBTC transfer if token address is WBTC_ADDR
        if (_token == WBTC_ADDR) {
            // _minerFee should be zero
            require(
                IERC20(_token).transfer(to, withdrawal),
                "WBTC balance insufficient"
            );
        }
        // Burn LP tokens
        require(IBurnableToken(lpToken).burn(amountOfLP));
        emit BurnLPTokensForFloat(
            to,
            amountOfLP,
            amountOfFloat,
            nowPrice,
            withdrawal,
            _txid
        );
        return true;
    }

    /// @dev _checkFlips checks whether the fees are activated.
    /// @param _token The address of target token.
    /// @param _amountOfFloat The amount of float.
    function _checkFlips(address _token, uint256 _amountOfFloat)
        internal
        view
        returns (uint8)
    {
        (uint256 reserveA, uint256 reserveB) = getFloatReserve(
            address(0),
            WBTC_ADDR
        );
        uint256 threshold = reserveA
            .add(reserveB)
            .add(_amountOfFloat)
            .mul(2)
            .div(3);
        if (_token == WBTC_ADDR && reserveB.add(_amountOfFloat) >= threshold) {
            return 1; // BTC float insufficient
        }
        if (_token == address(0) && reserveA.add(_amountOfFloat) >= threshold) {
            return 2; // WBTC float insufficient
        }
        return 0;
    }

    /// @dev _addFloat updates one side of the float.
    /// @param _token The address of target token.
    /// @param _amount The amount of float.
    function _addFloat(address _token, uint256 _amount) internal {
        floatAmountOf[_token] = floatAmountOf[_token].add(_amount);
    }

    /// @dev _removeFloat remove one side of the float.
    /// @param _token The address of target token.
    /// @param _amount The amount of float.
    function _removeFloat(address _token, uint256 _amount) internal {
        floatAmountOf[_token] = floatAmountOf[_token].sub(
            _amount,
            "_removeFloat: float amount insufficient"
        );
    }

    /// @dev _swap collects swap amount to change float.
    /// @param _sourceToken The address of source token
    /// @param _destToken The address of target token.
    /// @param _swapAmount The amount of swap.
    function _swap(
        address _sourceToken,
        address _destToken,
        uint256 _swapAmount
    ) internal {
        floatAmountOf[_destToken] = floatAmountOf[_destToken].sub(
            _swapAmount,
            "_swap: float amount insufficient"
        );
        floatAmountOf[_sourceToken] = floatAmountOf[_sourceToken].add(
            _swapAmount
        );
        emit Swap(_sourceToken, _destToken, _swapAmount);
    }

    /// @dev _rewardsCollection collects tx rewards.
    /// @param _feesToken The token address for collection fees.
    /// @param _rewardsAmount The amount of rewards.
    function _rewardsCollection(address _feesToken, uint256 _rewardsAmount)
        internal
    {
        if (_rewardsAmount == 0) return;
        if (_feesToken == lpToken) {
            feesLPTokensForNode = feesLPTokensForNode.add(_rewardsAmount);
            emit RewardsCollection(_feesToken, _rewardsAmount, 0, 0);
            return;
        }
        // Get current LP token price.
        uint256 nowPrice = getCurrentPriceLP();
        // Add all fees into pool
        floatAmountOf[_feesToken] = floatAmountOf[_feesToken].add(
            _rewardsAmount
        );
        uint256 amountForNodes = _rewardsAmount.mul(nodeRewardsRatio).div(100);
        // Alloc LP tokens for nodes as fees
        uint256 amountLPTokensForNode = amountForNodes.mul(priceDecimals).div(
            nowPrice
        );
        // Add minted LP tokens for Nodes
        lockedLPTokensForNode = lockedLPTokensForNode.add(
            amountLPTokensForNode
        );
        emit RewardsCollection(
            _feesToken,
            _rewardsAmount,
            amountLPTokensForNode,
            nowPrice
        );
    }

    /// @dev _addUsedTx updates txid list which is spent. (single hash)
    /// @param _txid The array of txid.
    function _addUsedTx(bytes32 _txid) internal {
        used[_txid] = true;
    }

    /// @dev _addUsedTxs updates txid list which is spent. (multiple hashes)
    /// @param _txids The array of txid.
    function _addUsedTxs(bytes32[] memory _txids) internal {
        for (uint256 i = 0; i < _txids.length; i++) {
            used[_txids[i]] = true;
        }
    }

    /// @dev _addNode updates a staker's info.
    /// @param _addr The address of staker.
    /// @param _data The data of staker.
    /// @param _remove The flag to remove node.
    function _addNode(
        address _addr,
        bytes32 _data,
        bool _remove
    ) internal returns (bool) {
        if (_remove) {
            delete nodes[_addr];
            return true;
        }
        if (!isInList[_addr]) {
            nodeAddrs.push(_addr);
            isInList[_addr] = true;
        }
        if (nodes[_addr] == 0x0) {
            nodes[_addr] = _data;
        }
        return true;
    }

    /// @dev _splitToValues returns address and amount of staked SWINGBYs
    /// @param _data The info of a staker.
    function _splitToValues(bytes32 _data)
        internal
        pure
        returns (address, uint256)
    {
        return (
            address(uint160(uint256(_data))),
            uint256(uint96(bytes12(_data)))
        );
    }

    /// @dev The contract doesn't allow receiving Ether.
    fallback() external {
        revert();
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"address","name":"_wbtc","type":"address"},{"internalType":"uint256","name":"_existingBTCFloat","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOfLP","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOfFloat","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"currentPriceLP","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"withdrawal","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"txid","type":"bytes32"}],"name":"BurnLPTokensForFloat","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountOfFloat","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountOfLP","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"currentPriceLP","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"depositFees","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"txid","type":"bytes32"}],"name":"IssueLPTokensForFloat","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"feesToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewards","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountLPTokensForNode","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"currentPriceLP","type":"uint256"}],"name":"RewardsCollection","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Swap","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[],"name":"WBTC_ADDR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"},{"internalType":"bytes32[]","name":"_rewardAddressAndAmounts","type":"bytes32[]"},{"internalType":"bool[]","name":"_isRemoved","type":"bool[]"},{"internalType":"uint8","name":"_churnedInCount","type":"uint8"},{"internalType":"uint8","name":"_tssThreshold","type":"uint8"},{"internalType":"uint8","name":"_nodeRewardsRatio","type":"uint8"},{"internalType":"uint8","name":"_withdrawalFeeBPS","type":"uint8"}],"name":"churn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"churnedInCount","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_destToken","type":"address"},{"internalType":"uint256","name":"_incomingAmount","type":"uint256"},{"internalType":"uint256","name":"_minerFee","type":"uint256"},{"internalType":"uint256","name":"_rewardsAmount","type":"uint256"}],"name":"collectSwapFeesForBTC","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositFeesBPS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributeNodeRewards","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feesLPTokensForNode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getActiveNodes","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentPriceLP","outputs":[{"internalType":"uint256","name":"nowPrice","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amountOfFloat","type":"uint256"}],"name":"getDepositFeeRate","outputs":[{"internalType":"uint256","name":"depositFeeRate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenA","type":"address"},{"internalType":"address","name":"_tokenB","type":"address"}],"name":"getFloatReserve","outputs":[{"internalType":"uint256","name":"reserveA","type":"uint256"},{"internalType":"uint256","name":"reserveB","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialExchangeRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_txid","type":"bytes32"}],"name":"isTxUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockedLPTokensForNode","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_destToken","type":"address"},{"internalType":"bytes32[]","name":"_addressesAndAmounts","type":"bytes32[]"},{"internalType":"uint256","name":"_totalSwapped","type":"uint256"},{"internalType":"uint256","name":"_rewardsAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_redeemedFloatTxIds","type":"bytes32[]"}],"name":"multiTransferERC20TightlyPacked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nodeRewardsRatio","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bytes32","name":"_addressesAndAmountOfFloat","type":"bytes32"},{"internalType":"bool","name":"_zerofee","type":"bool"},{"internalType":"bytes32","name":"_txid","type":"bytes32"}],"name":"recordIncomingFloat","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bytes32","name":"_addressesAndAmountOfLPtoken","type":"bytes32"},{"internalType":"uint256","name":"_minerFee","type":"uint256"},{"internalType":"bytes32","name":"_txid","type":"bytes32"}],"name":"recordOutcomingFloat","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minerFee","type":"uint256"},{"internalType":"bytes32","name":"_txid","type":"bytes32"}],"name":"recordUTXOSweepMinerFee","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_destToken","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_totalSwapped","type":"uint256"},{"internalType":"uint256","name":"_rewardsAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_redeemedFloatTxIds","type":"bytes32[]"}],"name":"singleTransferERC20","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tssThreshold","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawalFeeBPS","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162002d7838038062002d78833981810160405260608110156200003757600080fd5b508051602082015160409092015190919060006200005462000221565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600280546001600160a01b0319166001600160a01b0385811691909117918290556040805163313ce56760e01b81529051929091169163313ce56791600480820192602092909190829003018186803b158015620000fb57600080fd5b505afa15801562000110573d6000803e3d6000fd5b505050506040513d60208110156200012757600080fd5b505160ff16600a90810a600955600180546001600160a01b0319166001600160a01b03948516178082556004805462ff00001916624200001763ff000000191663320000001760ff60201b19166414000000001790556305f5e10060088190556007556000600581905560068190559085168152600360209081526040808320805460ff1990811686179091556002549097168352822080548716841790559080527f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff80549095169091179093559091527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e3555062000225565b3390565b612b4380620002356000396000f3fe608060405234801561001057600080fd5b50600436106101a85760003560e01c80636b51e919116100f9578063b6268e5d11610097578063e9e9bf6a11610071578063e9e9bf6a14610755578063ec4827291461075d578063f2fde38b146107a4578063f7824bc7146107ca576101a8565b8063b6268e5d1461070d578063c810a53914610715578063e6ca208414610738576101a8565b80638006cc3e116100d35780638006cc3e146105685780638da5cb5b146105a05780639b19251a146105a8578063ad289e76146105ce576101a8565b80636b51e919146104fe5780636d019f3514610556578063715018a61461055e576101a8565b80633b6fa127116101665780634e4317d5116101405780634e4317d51461034a5780634e54cee01461036e5780635fcbd285146104bc57806363f289d9146104c4576101a8565b80633b6fa1271461030e578063424192551461033a57806345137e2714610342576101a8565b806289356f146101ad5780630b68134d146101cb5780630d63aca7146101d357806312d1441e146102b45780632586c562146102bc5780632d55282d146102f4575b600080fd5b6101b56107d2565b6040805160ff9092168252519081900360200190f35b6101b56107db565b6102a0600480360360c08110156101e957600080fd5b6001600160a01b0382358116926020810135909116916040820135916060810135916080820135919081019060c0810160a0820135600160201b81111561022f57600080fd5b82018360208201111561024157600080fd5b803590602001918460208302840111600160201b8311171561026257600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506107ea945050505050565b604080519115158252519081900360200190f35b6101b5610a00565b6102a0600480360360808110156102d257600080fd5b506001600160a01b038135169060208101359060408101359060600135610a0e565b6102fc610b48565b60408051918252519081900360200190f35b6102fc6004803603604081101561032457600080fd5b506001600160a01b038135169060200135610b4e565b6101b5610bda565b6102fc610bea565b610352610cd6565b604080516001600160a01b039092168252519081900360200190f35b6102a0600480360360e081101561038457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b8111156103ae57600080fd5b8201836020820111156103c057600080fd5b803590602001918460208302840111600160201b831117156103e157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561043057600080fd5b82018360208201111561044257600080fd5b803590602001918460208302840111600160201b8311171561046357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295505060ff833581169450602084013581169360408101358216935060600135169050610ce5565b610352610ff9565b6102a0600480360360808110156104da57600080fd5b506001600160a01b0381351690602081013590604081013515159060600135611008565b6105066110dc565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561054257818101518382015260200161052a565b505050509050019250505060405180910390f35b6102fc61123b565b610566611241565b005b6102a06004803603608081101561057e57600080fd5b506001600160a01b0381351690602081013590604081013590606001356112e3565b61035261140a565b6102a0600480360360208110156105be57600080fd5b50356001600160a01b0316611419565b6102a0600480360360a08110156105e457600080fd5b6001600160a01b038235169190810190604081016020820135600160201b81111561060e57600080fd5b82018360208201111561062057600080fd5b803590602001918460208302840111600160201b8311171561064157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295843595602086013595919450925060608101915060400135600160201b81111561069c57600080fd5b8201836020820111156106ae57600080fd5b803590602001918460208302840111600160201b831117156106cf57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955061142e945050505050565b6101b56116be565b6102a06004803603604081101561072b57600080fd5b50803590602001356116ce565b6102a06004803603602081101561074e57600080fd5b5035611829565b6102a061183e565b61078b6004803603604081101561077357600080fd5b506001600160a01b0381358116916020013516611a72565b6040805192835260208301919091528051918290030190f35b610566600480360360208110156107ba57600080fd5b50356001600160a01b0316611a9c565b6102fc611b94565b60045460ff1681565b60045462010000900460ff1681565b60006107f4611b9a565b6000546001600160a01b03908116911614610844576040805162461bcd60e51b81526020600482018190526024820152600080516020612a69833981519152604482015290519081900360640190fd5b6001600160a01b03871660009081526003602052604090205460ff166108b1576040805162461bcd60e51b815260206004820152601d60248201527f5f64657374546f6b656e206973206e6f742077686974656c6973746564000000604482015290519081900360640190fd5b6001600160a01b0387166108f65760405162461bcd60e51b8152600401808060200182810382526023815260200180612aeb6023913960400191505060405180910390fd5b6000841561091c57600154610917906000906001600160a01b031687611b9e565b61092f565b8461092f57506001546001600160a01b03165b6002546001600160a01b038981169116141561095357506002546001600160a01b03165b61095d8185611c8a565b61096683611e01565b876001600160a01b031663a9059cbb88886040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156109bd57600080fd5b505af11580156109d1573d6000803e3d6000fd5b505050506040513d60208110156109e757600080fd5b50516109f257600080fd5b506001979650505050505050565b600454610100900460ff1681565b6000610a18611b9a565b6000546001600160a01b03908116911614610a68576040805162461bcd60e51b81526020600482018190526024820152600080516020612a69833981519152604482015290519081900360640190fd5b6000610a72610bea565b6001600160a01b03871660009081526003602052604090205490915060ff16610ad6576040805162461bcd60e51b815260206004820152601160248201527017dd1bdad95b881a5cc81a5b9d985b1a59607a1b604482015290519081900360640190fd5b610ae286868686611e50565b610aeb57600080fd5b6001915080610af8610bea565b1015610b3f576040805162461bcd60e51b8152602060048201526011602482015270496e76616c6964204c505420707269636560781b604482015290519081900360640190fd5b50949350505050565b60055481565b600080610b5b84846122b5565b90508060ff1660011415610b9d576001546001600160a01b03858116911614610b85576000610b93565b6004546301000000900460ff165b60ff169150610bd3565b8060ff1660021415610bd3576001600160a01b03841615610bbf576000610bcd565b6004546301000000900460ff165b60ff1691505b5092915050565b6004546301000000900460ff1681565b60015460009081908190610c089082906001600160a01b0316611a72565b915091506000600260009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c5c57600080fd5b505afa158015610c70573d6000803e3d6000fd5b505050506040513d6020811015610c8657600080fd5b505190508015610cca57610cc5610ca86005548361236f90919063ffffffff16565b600954610cbf90610cb9878761236f565b906123d0565b90612429565b610cce565b6007545b935050505090565b6001546001600160a01b031681565b6000610cef611b9a565b6000546001600160a01b03908116911614610d3f576040805162461bcd60e51b81526020600482018190526024820152600080516020612a69833981519152604482015290519081900360640190fd5b60045460ff610100909104811690851610801590610d61575060ff8460ff1611155b610d9c5760405162461bcd60e51b8152600401808060200182810382526027815260200180612a006027913960400191505060405180910390fd5b6001840160ff168560ff161015610def576040805162461bcd60e51b81526020600482015260126024820152716e2073686f756c64206265203e3d20742b3160701b604482015290519081900360640190fd5b60648360ff161115610e48576040805162461bcd60e51b815260206004820152601e60248201527f5f6e6f646552657761726473526174696f206973206e6f742076616c69640000604482015290519081900360640190fd5b60648260ff161115610ea1576040805162461bcd60e51b815260206004820152601c60248201527f5f7769746864726177616c46656542505320697320696e76616c696400000000604482015290519081900360640190fd5b8551875114610ee15760405162461bcd60e51b815260040180806020018281038252603b815260200180612ab0603b913960400191505060405180910390fd5b610eea88611a9c565b60005b8751811015610f52576000610f14898381518110610f0757fe5b602002602001015161246b565b509050610f48818a8481518110610f2757fe5b60200260200101518a8581518110610f3b57fe5b6020026020010151612474565b5050600101610eed565b506060610f5d6110dc565b9050606481511115610fa05760405162461bcd60e51b8152600401808060200182810382526021815260200180612a486021913960400191505060405180910390fd5b50506004805460ff191660ff9586161761ff001916610100948616949094029390931762ff0000191662010000928516929092029190911764ff000000001916600160201b919093160291909117905550600192915050565b6002546001600160a01b031681565b6000611012611b9a565b6000546001600160a01b03908116911614611062576040805162461bcd60e51b81526020600482018190526024820152600080516020612a69833981519152604482015290519081900360640190fd5b600061106c610bea565b6001600160a01b03871660009081526003602052604090205490915060ff166110d0576040805162461bcd60e51b815260206004820152601160248201527017dd1bdad95b881a5cc81a5b9d985b1a59607a1b604482015290519081900360640190fd5b610ae286868686612564565b606060008060005b600e5481101561113f57600c6000600e83815481106110ff57fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054156111375761113483600161236f565b92505b6001016110e4565b5060608267ffffffffffffffff8111801561115957600080fd5b50604051908082528060200260200182016040528015611183578160200160208202803683370190505b50905060005b600e5481101561123357600c6000600e83815481106111a457fe5b60009182526020808320909101546001600160a01b031683528201929092526040019020541561122b57600c6000600e83815481106111df57fe5b60009182526020808320909101546001600160a01b03168352820192909252604001902054825183908590811061121257fe5b602090810291909101015261122883600161236f565b92505b600101611189565b509250505090565b60075481565b611249611b9a565b6000546001600160a01b03908116911614611299576040805162461bcd60e51b81526020600482018190526024820152600080516020612a69833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60006112ed611b9a565b6000546001600160a01b0390811691161461133d576040805162461bcd60e51b81526020600482018190526024820152600080516020612a69833981519152604482015290519081900360640190fd5b6001600160a01b03851615611399576040805162461bcd60e51b815260206004820152601f60248201527f5f64657374546f6b656e2073686f756c64206265206164647265737328302900604482015290519081900360640190fd5b6001546001600160a01b031684156113eb5760006113c1856113bb88876127ab565b906127ab565b6001549091506113e5906001600160a01b031660006113e0848961236f565b611b9e565b506113f4565b846113f4575060005b6113fe8184611c8a565b50600195945050505050565b6000546001600160a01b031690565b60036020526000908152604090205460ff1681565b6000611438611b9a565b6000546001600160a01b03908116911614611488576040805162461bcd60e51b81526020600482018190526024820152600080516020612a69833981519152604482015290519081900360640190fd5b6001600160a01b03861660009081526003602052604090205460ff166114f5576040805162461bcd60e51b815260206004820152601d60248201527f5f64657374546f6b656e206973206e6f742077686974656c6973746564000000604482015290519081900360640190fd5b6001600160a01b03861661153a5760405162461bcd60e51b8152600401808060200182810382526023815260200180612aeb6023913960400191505060405180910390fd5b600084156115605760015461155b906000906001600160a01b031687611b9e565b611573565b8461157357506001546001600160a01b03165b6002546001600160a01b038881169116141561159757506002546001600160a01b03165b6115a18185611c8a565b6115aa83611e01565b60005b86518110156109f257876001600160a01b031663a9059cbb8883815181106115d157fe5b602002602001015160001c8984815181106115e857fe5b602002602001015160a01c6001600160601b03166040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561164257600080fd5b505af1158015611656573d6000803e3d6000fd5b505050506040513d602081101561166c57600080fd5b50516116b6576040805162461bcd60e51b81526020600482015260146024820152732130ba31b4103a3930b739b332b91032b93937b960611b604482015290519081900360640190fd5b6001016115ad565b600454600160201b900460ff1681565b60006116d8611b9a565b6000546001600160a01b03908116911614611728576040805162461bcd60e51b81526020600482018190526024820152600080516020612a69833981519152604482015290519081900360640190fd5b61173182611829565b1561177e576040805162461bcd60e51b8152602060048201526018602482015277151a19481d1e1a59081a5cc8185b1c9958591e481d5cd95960421b604482015290519081900360640190fd5b60408051808201909152601d81527f42544320666c6f617420616d6f756e7420696e73756666696369656e7400000060208083019190915260008052600a90527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e3546117eb9185906127e9565b60008052600a6020527f13da86008ba1c6922daee3e07db95305ef49ebced9f5467a0b8613fcc6b343e35561181f82612880565b5060015b92915050565b6000908152600b602052604090205460ff1690565b60008061185860065460055461236f90919063ffffffff16565b9050600081116118995760405162461bcd60e51b81526004018080602001828103825260258152602001806129816025913960400191505060405180910390fd5b60606118a36110dc565b90506000805b82518110156118ee576118e48382815181106118c157fe5b602002602001015160a01c6001600160601b03168361236f90919063ffffffff16565b91506001016118a9565b50600254600554604080516340c10f1960e01b81523060048201526024810192909252516001600160a01b03909216916340c10f19916044808201926020929091908290030181600087803b15801561194657600080fd5b505af115801561195a573d6000803e3d6000fd5b505050506040513d602081101561197057600080fd5b50600090505b8251811015611a5d5760025483516001600160a01b039091169063a9059cbb908590849081106119a257fe5b602002602001015160001c6119e385610cbf8887815181106119c057fe5b602002602001015160a01c6001600160601b03168a6123d090919063ffffffff16565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611a2957600080fd5b505af1158015611a3d573d6000803e3d6000fd5b505050506040513d6020811015611a5357600080fd5b5050600101611976565b50506000600581905560065550600191505090565b6001600160a01b039182166000908152600a60205260408082205492909316815291909120549091565b611aa4611b9a565b6000546001600160a01b03908116911614611af4576040805162461bcd60e51b81526020600482018190526024820152600080516020612a69833981519152604482015290519081900360640190fd5b6001600160a01b038116611b395760405162461bcd60e51b81526004018080602001828103825260268152602001806129da6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60065481565b3390565b60408051808201825260208082527f5f737761703a20666c6f617420616d6f756e7420696e73756666696369656e74818301526001600160a01b0385166000908152600a9091529190912054611bf59183906127e9565b6001600160a01b038084166000908152600a60205260408082209390935590851681522054611c24908261236f565b6001600160a01b038085166000818152600a602090815260409182902094909455805191825291851692810192909252818101839052517fea368a40e9570069bb8e6511d668293ad2e1f03b0d982431fd223de9f3b70ca69181900360600190a1505050565b80611c9457611dfd565b6002546001600160a01b0383811691161415611d0f57600654611cb7908261236f565b600655604080516001600160a01b0384168152602081018390526000818301819052606082015290517fe3debe835f6848edc082b32a1d729781d3bfcd7e14422d80bcaa6794d3816b2f9181900360800190a1611dfd565b6000611d19610bea565b6001600160a01b0384166000908152600a6020526040902054909150611d3f908361236f565b6001600160a01b0384166000908152600a6020526040812091909155600454611d7990606490610cbf90869062010000900460ff166123d0565b90506000611d9683610cbf600854856123d090919063ffffffff16565b600554909150611da6908261236f565b600555604080516001600160a01b0387168152602081018690528082018390526060810185905290517fe3debe835f6848edc082b32a1d729781d3bfcd7e14422d80bcaa6794d3816b2f9181900360800190a15050505b5050565b60005b8151811015611dfd576001600b6000848481518110611e1f57fe5b6020908102919091018101518252810191909152604001600020805460ff1916911515919091179055600101611e04565b6000611e5b82611829565b15611ea8576040805162461bcd60e51b8152602060048201526018602482015277151a19481d1e1a59081a5cc8185b1c9958591e481d5cd95960421b604482015290519081900360640190fd5b83611efa576040805162461bcd60e51b815260206004820152601c60248201527f546865207472616e73616374696f6e206973206e6f742076616c696400000000604482015290519081900360640190fd5b600080611f068661246b565b915091506000611f14610bea565b90506000611f31600854610cbf84866123d090919063ffffffff16565b600454909150600090611f579061271090610cbf908590600160201b900460ff166123d0565b905087611f6483836127ab565b1015611fa15760405162461bcd60e51b81526004018080602001828103825260348152602001806129a66034913960400191505060405180910390fd5b6000611fb1896113bb85856127ab565b6001549091506000908190611fd09082906001600160a01b0316611a72565b90925090506001600160a01b038d1661204657611fed85856127ab565b821015612041576040805162461bcd60e51b815260206004820152601f60248201527f54686520666c6f61742062616c616e636520696e73756666696369656e742e00604482015290519081900360640190fd5b6120ba565b6001546001600160a01b038e8116911614156120ba5761206685856127ab565b8110156120ba576040805162461bcd60e51b815260206004820152601f60248201527f54686520666c6f61742062616c616e636520696e73756666696369656e742e00604482015290519081900360640190fd5b6120c48d85611c8a565b6120ce8d8661289b565b6120d78a612880565b6001546001600160a01b038e8116911614156121c1578c6001600160a01b031663a9059cbb89856040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561214457600080fd5b505af1158015612158573d6000803e3d6000fd5b505050506040513d602081101561216e57600080fd5b50516121c1576040805162461bcd60e51b815260206004820152601960248201527f574254432062616c616e636520696e73756666696369656e7400000000000000604482015290519081900360640190fd5b60025460408051630852cd8d60e31b8152600481018a905290516001600160a01b03909216916342966c68916024808201926020929091908290030181600087803b15801561220f57600080fd5b505af1158015612223573d6000803e3d6000fd5b505050506040513d602081101561223957600080fd5b505161224457600080fd5b604080516001600160a01b038a16815260208101899052808201879052606081018890526080810185905260a081018c905290517fa9da34e5e4a956b744307ae7611795634e8365951073bf049d76b64b2ae7a0589181900360c00190a15060019c9b505050505050505050505050565b600154600090819081906122d39082906001600160a01b0316611a72565b909250905060006122f86003610cbf6002610cb9896122f2898961236f565b9061236f565b6001549091506001600160a01b03878116911614801561232157508061231e838761236f565b10155b156123325760019350505050611823565b6001600160a01b03861615801561235257508061234f848761236f565b10155b156123635760029350505050611823565b50600095945050505050565b6000828201838110156123c9576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b6000826123df57506000611823565b828202828482816123ec57fe5b04146123c95760405162461bcd60e51b8152600401808060200182810382526021815260200180612a276021913960400191505060405180910390fd5b60006123c983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506128f8565b9060a082901c90565b6000811561249d57506001600160a01b0383166000908152600c602052604081205560016123c9565b6001600160a01b0384166000908152600d602052604090205460ff1661252157600e805460018082019092557fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319166001600160a01b0387169081179091556000908152600d60205260409020805460ff191690911790555b6001600160a01b0384166000908152600c602052604090205461255a576001600160a01b0384166000908152600c602052604090208390555b5060019392505050565b600061256f82611829565b156125bc576040805162461bcd60e51b8152602060048201526018602482015277151a19481d1e1a59081a5cc8185b1c9958591e481d5cd95960421b604482015290519081900360640190fd5b8361260e576040805162461bcd60e51b815260206004820152601c60248201527f546865207472616e73616374696f6e206973206e6f742076616c696400000000604482015290519081900360640190fd5b60008061261a8661246b565b915091506000612628610bea565b9050600061264582610cbf600854866123d090919063ffffffff16565b905060006126538a85610b4e565b9050600081612663576000612673565b612673612710610cbf85856123d0565b905088801561268157508015155b1561268b57600080fd5b6002546001600160a01b03166340c10f19876126a786856127ab565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156126ed57600080fd5b505af1158015612701573d6000803e3d6000fd5b505050506040513d602081101561271757600080fd5b5050600554612726908261236f565b6005556127338b8661295d565b61273c88612880565b604080516001600160a01b038816815260208101879052808201859052606081018690526080810183905260a081018a905290517fdfaf4e23f7030adafec91a682e05bf9fb30c721f9cec3d8bcfae0459c5362db19181900360c00190a15060019a9950505050505050505050565b60006123c983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152505b600081848411156128785760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561283d578181015183820152602001612825565b50505050905090810190601f16801561286a5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000908152600b60205260409020805460ff19166001179055565b6128d881604051806060016040528060278152602001612a89602791396001600160a01b0385166000908152600a602052604090205491906127e9565b6001600160a01b039092166000908152600a602052604090209190915550565b600081836129475760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561283d578181015183820152602001612825565b50600083858161295357fe5b0495945050505050565b6001600160a01b0382166000908152600a60205260409020546128d8908261236f56fe746f74616c5265776172644c5073466f724e6f6465206973206e6f7420706f7369746976654572726f723a20616d6f756e744f66466c6f61742e737562287769746864726177616c4665657329203c205f6d696e65724665654f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573735f7473735468726573686f6c642073686f756c64206265203e3d207473735468726573686f6c64536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7753746f726564206e6f64652073697a652073686f756c64206265203c3d203130304f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f72656d6f7665466c6f61743a20666c6f617420616d6f756e7420696e73756666696369656e745f72657761726441646472657373416e64416d6f756e747320616e64205f697352656d6f766564206c656e677468206973206e6f74206d617463685f64657374546f6b656e2073686f756c64206e6f742062652061646472657373283029a26469706673582212208c201e7f6836730464d2a06af477b11b43220b6c1b74a94e4c184838e1e79ba264736f6c6343000705003300000000000000000000000022883a3db06737ece21f479a8009b8b9f22b6cc90000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000000000000000000

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

00000000000000000000000022883a3db06737ece21f479a8009b8b9f22b6cc90000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _lpToken (address): 0x22883a3db06737ece21f479a8009b8b9f22b6cc9
Arg [1] : _wbtc (address): 0x2260fac5e5542a773aa44fbcfedf7c193bc2c599
Arg [2] : _existingBTCFloat (uint256): 0

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000022883a3db06737ece21f479a8009b8b9f22b6cc9
Arg [1] : 0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000


Deployed ByteCode Sourcemap

14646:24979:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39606:8;;;14848:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;14914:29;;;:::i;17796:961::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17796:961:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;17796:961:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;17796:961:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;17796:961:0;;-1:-1:-1;17796:961:0;;-1:-1:-1;;;;;17796:961:0:i;:::-;;;;;;;;;;;;;;;;;;14882:25;;;:::i;22632:507::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;22632:507:0;;;;;;;;;;;;;;;;;;:::i;15020:36::-;;;:::i;:::-;;;;;;;;;;;;;;;;28365:450;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28365:450:0;;;;;;;;:::i;14950:27::-;;;:::i;27569:626::-;;;:::i;14736:24::-;;;:::i;:::-;;;;-1:-1:-1;;;;;14736:24:0;;;;;;;;;;;;;;25540:1725;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25540:1725:0;;;;;;;;;;;;;;;-1:-1:-1;;;25540:1725:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;25540:1725:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25540:1725:0;;;;;;;;-1:-1:-1;25540:1725:0;;-1:-1:-1;;;;;25540:1725:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;25540:1725:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25540:1725:0;;-1:-1:-1;;25540:1725:0;;;;;;-1:-1:-1;25540:1725:0;;;;;;;;;;;;;;-1:-1:-1;25540:1725:0;;;;;-1:-1:-1;25540:1725:0;:::i;14767:22::-;;;:::i;21825:498::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;21825:498:0;;;;;;;;;;;;;;;;;;;;:::i;29323:656::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15104:34;;;:::i;8617:148::-;;;:::i;:::-;;20756:729;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;20756:729:0;;;;;;;;;;;;;;;;;;:::i;7975:79::-;;;:::i;14798:41::-;;;;;;;;;;;;;;;;-1:-1:-1;14798:41:0;-1:-1:-1;;;;;14798:41:0;;:::i;19150:1280::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19150:1280:0;;;;;;;;;;;;;;;-1:-1:-1;;;19150:1280:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;19150:1280:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19150:1280:0;;;;;;;;;;;;-1:-1:-1;19150:1280:0;-1:-1:-1;19150:1280:0;;;;-1:-1:-1;19150:1280:0;;;-1:-1:-1;;;19150:1280:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;19150:1280:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19150:1280:0;;-1:-1:-1;19150:1280:0;;-1:-1:-1;;;;;19150:1280:0:i;14984:29::-;;;:::i;24556:420::-;;;;;;;;;;;;;;;;-1:-1:-1;24556:420:0;;;;;;;:::i;27376:106::-;;;;;;;;;;;;;;;;-1:-1:-1;27376:106:0;;:::i;23208:1096::-;;;:::i;28984:256::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28984:256:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;8920:244;;;;;;;;;;;;;;;;-1:-1:-1;8920:244:0;-1:-1:-1;;;;;8920:244:0;;:::i;15063:34::-;;;:::i;14848:27::-;;;;;;:::o;14914:29::-;;;;;;;;;:::o;17796:961::-;18058:4;8197:12;:10;:12::i;:::-;8187:6;;-1:-1:-1;;;;;8187:6:0;;;:22;;;8179:67;;;;;-1:-1:-1;;;8179:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8179:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;18083:21:0;::::1;;::::0;;;:9:::1;:21;::::0;;;;;::::1;;18075:63;;;::::0;;-1:-1:-1;;;18075:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;18171:24:0;::::1;18149:109;;;;-1:-1:-1::0;;;18149:109:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18269:18;18315:17:::0;;18311:172:::1;;18367:9;::::0;18349:43:::1;::::0;18363:1:::1;::::0;-1:-1:-1;;;;;18367:9:0::1;18378:13:::0;18349:5:::1;:43::i;:::-;18311:172;;;18414:18:::0;18410:73:::1;;-1:-1:-1::0;18462:9:0::1;::::0;-1:-1:-1;;;;;18462:9:0::1;18410:73;18511:7;::::0;-1:-1:-1;;;;;18497:21:0;;::::1;18511:7:::0;::::1;18497:21;18493:74;;;-1:-1:-1::0;18548:7:0::1;::::0;-1:-1:-1;;;;;18548:7:0::1;18493:74;18577:46;18596:10;18608:14;18577:18;:46::i;:::-;18634:32;18646:19;18634:11;:32::i;:::-;18692:10;-1:-1:-1::0;;;;;18685:27:0::1;;18713:3;18718:7;18685:41;;;;;;;;;;;;;-1:-1:-1::0;;;;;18685:41:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;18685:41:0;18677:50:::1;;;::::0;::::1;;-1:-1:-1::0;18745:4:0::1;::::0;17796:961;-1:-1:-1;;;;;;;17796:961:0:o;14882:25::-;;;;;;;;;:::o;22632:507::-;22841:4;8197:12;:10;:12::i;:::-;8187:6;;-1:-1:-1;;;;;8187:6:0;;;:22;;;8179:67;;;;;-1:-1:-1;;;8179:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8179:67:0;;;;;;;;;;;;;;;16187:19:::1;16209;:17;:19::i;:::-;-1:-1:-1::0;;;;;22866:17:0;::::2;;::::0;;;:9:::2;:17;::::0;;;;;16187:41;;-1:-1:-1;22866:17:0::2;;22858:47;;;::::0;;-1:-1:-1;;;22858:47:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;22858:47:0;;;;;;;;;;;;;::::2;;22938:160;22978:6;23003:28;23050:9;23078:5;22938:21;:160::i;:::-;22916:193;;;::::0;::::2;;23127:4;23120:11;;16282::::1;16259:19;:17;:19::i;:::-;:34;;16251:64;;;::::0;;-1:-1:-1;;;16251:64:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;16251:64:0;;;;;;;;;;;;;::::1;;8257:1;22632:507:::0;;;;;;:::o;15020:36::-;;;;:::o;28365:450::-;28498:22;28538:12;28553:35;28565:6;28573:14;28553:11;:35::i;:::-;28538:50;;28603:6;:11;;28613:1;28603:11;28599:209;;;28658:9;;-1:-1:-1;;;;;28648:19:0;;;28658:9;;28648:19;:40;;28687:1;28648:40;;;28670:14;;;;;;;28648:40;28631:57;;;;28599:209;;;28710:6;:11;;28720:1;28710:11;28706:102;;;-1:-1:-1;;;;;28755:20:0;;;:41;;28795:1;28755:41;;;28778:14;;;;;;;28755:41;28738:58;;;;28706:102;28365:450;;;;;:::o;14950:27::-;;;;;;;;;:::o;27569:626::-;27792:9;;27664:16;;;;;;27737:75;;27664:16;;-1:-1:-1;;;;;27792:9:0;27737:15;:75::i;:::-;27698:114;;;;27823:16;27857:7;;;;;;;;;-1:-1:-1;;;;;27857:7:0;-1:-1:-1;;;;;27842:35:0;;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27842:37:0;;-1:-1:-1;27984:13:0;;:177;;28048:113;28111:35;28124:21;;28111:8;:12;;:35;;;;:::i;:::-;28077:10;;28048:40;;28049:22;:8;28062;28049:12;:22::i;:::-;28048:28;;:40::i;:::-;:44;;:113::i;:::-;27984:177;;;28013:19;;27984:177;27973:188;;28172:15;;;27569:626;:::o;14736:24::-;;;-1:-1:-1;;;;;14736:24:0;;:::o;25540:1725::-;25844:4;8197:12;:10;:12::i;:::-;8187:6;;-1:-1:-1;;;;;8187:6:0;;;:22;;;8179:67;;;;;-1:-1:-1;;;8179:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8179:67:0;;;;;;;;;;;;;;;25900:12:::1;::::0;::::1;;::::0;;::::1;::::0;::::1;25883:29:::0;;::::1;;::::0;::::1;::::0;:58:::1;;;25933:8;25916:13;:25;;;;25883:58;25861:147;;;;-1:-1:-1::0;;;25861:147:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26082:1;26060:13;:24;26041:43;;:15;:43;;;;26019:111;;;::::0;;-1:-1:-1;;;26019:111:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;26019:111:0;;;;;;;;;;;;;::::1;;26210:3;26189:17;:24;;;;26141:130;;;::::0;;-1:-1:-1;;;26141:130:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;26351:3;26330:17;:24;;;;26282:128;;;::::0;;-1:-1:-1;;;26282:128:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;26478:10;:17;26443:24;:31;:52;26421:161;;;;-1:-1:-1::0;;;26421:161:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26593:28;26611:9;26593:17;:28::i;:::-;26673:9;26668:230;26692:24;:31;26688:1;:35;26668:230;;;26746:15;26767:43;26782:24;26807:1;26782:27;;;;;;;;;;;;;;26767:14;:43::i;:::-;26745:65;;;26825:61;26834:7;26843:24;26868:1;26843:27;;;;;;;;;;;;;;26872:10;26883:1;26872:13;;;;;;;;;;;;;;26825:8;:61::i;:::-;-1:-1:-1::0;;26725:3:0::1;;26668:230;;;;26908:25;26936:16;:14;:16::i;:::-;26908:44;;26985:3;26967:8;:15;:21;26963:97;;;27005:43;;-1:-1:-1::0;;;27005:43:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26963:97;-1:-1:-1::0;;27070:14:0::1;:32:::0;;-1:-1:-1;;27070:32:0::1;;::::0;;::::1;;-1:-1:-1::0;;27113:28:0::1;27070:32;27113:28:::0;;::::1;::::0;;;::::1;::::0;;;::::1;-1:-1:-1::0;;27152:36:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;;::::1;-1:-1:-1::0;;27199:36:0::1;-1:-1:-1::0;;;27199:36:0;;;::::1;;::::0;;;::::1;::::0;;-1:-1:-1;;;25540:1725:0;-1:-1:-1;;25540:1725:0:o;14767:22::-;;;-1:-1:-1;;;;;14767:22:0;;:::o;21825:498::-;22027:4;8197:12;:10;:12::i;:::-;8187:6;;-1:-1:-1;;;;;8187:6:0;;;:22;;;8179:67;;;;;-1:-1:-1;;;8179:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8179:67:0;;;;;;;;;;;;;;;16187:19:::1;16209;:17;:19::i;:::-;-1:-1:-1::0;;;;;22052:17:0;::::2;;::::0;;;:9:::2;:17;::::0;;;;;16187:41;;-1:-1:-1;22052:17:0::2;;22044:47;;;::::0;;-1:-1:-1;;;22044:47:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;22044:47:0;;;;;;;;;;;;;::::2;;22124:158;22165:6;22190:26;22235:8;22262:5;22124:22;:158::i;29323:656::-:0;29379:16;29408:17;29440:13;29500:9;29495:168;29519:9;:16;29515:20;;29495:168;;;29561:5;:19;29567:9;29577:1;29567:12;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29567:12:0;29561:19;;;;;;;;;;;;;:26;29557:95;;29620:16;:9;29634:1;29620:13;:16::i;:::-;29608:28;;29557:95;29537:3;;29495:168;;;;29673:23;29713:9;29699:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29699:24:0;;29673:50;;29739:9;29734:214;29758:9;:16;29754:20;;29734:214;;;29800:5;:19;29806:9;29816:1;29806:12;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29806:12:0;29800:19;;;;;;;;;;;;;:26;29796:141;;29863:5;:19;29869:9;29879:1;29869:12;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29869:12:0;29863:19;;;;;;;;;;;;;29847:13;;:6;;29854:5;;29847:13;;;;;;;;;;;;;;;:35;29909:12;:5;29919:1;29909:9;:12::i;:::-;29901:20;;29796:141;29776:3;;29734:214;;;-1:-1:-1;29965:6:0;-1:-1:-1;;;29323:656:0;:::o;15104:34::-;;;;:::o;8617:148::-;8197:12;:10;:12::i;:::-;8187:6;;-1:-1:-1;;;;;8187:6:0;;;:22;;;8179:67;;;;;-1:-1:-1;;;8179:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8179:67:0;;;;;;;;;;;;;;;8724:1:::1;8708:6:::0;;8687:40:::1;::::0;-1:-1:-1;;;;;8708:6:0;;::::1;::::0;8687:40:::1;::::0;8724:1;;8687:40:::1;8755:1;8738:19:::0;;-1:-1:-1;;;;;;8738:19:0::1;::::0;;8617:148::o;20756:729::-;20955:4;8197:12;:10;:12::i;:::-;8187:6;;-1:-1:-1;;;;;8187:6:0;;;:22;;;8179:67;;;;;-1:-1:-1;;;8179:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8179:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;20980:24:0;::::1;::::0;20972:68:::1;;;::::0;;-1:-1:-1;;;20972:68:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;21072:9;::::0;-1:-1:-1;;;;;21072:9:0::1;21096:19:::0;;21092:307:::1;;21132:18;21153:82;21211:9:::0;21153:35:::1;:15:::0;21173:14;21153:19:::1;:35::i;:::-;:39:::0;::::1;:82::i;:::-;21256:9;::::0;21132:103;;-1:-1:-1;21250:55:0::1;::::0;-1:-1:-1;;;;;21256:9:0::1;;21279:25;21132:103:::0;21294:9;21279:14:::1;:25::i;:::-;21250:5;:55::i;:::-;21092:307;;;;21327:20:::0;21323:76:::1;;-1:-1:-1::0;21385:1:0::1;21323:76;21409:46;21428:10;21440:14;21409:18;:46::i;:::-;-1:-1:-1::0;21473:4:0::1;::::0;20756:729;-1:-1:-1;;;;;20756:729:0:o;7975:79::-;8013:7;8040:6;-1:-1:-1;;;;;8040:6:0;7975:79;:::o;14798:41::-;;;;;;;;;;;;;;;:::o;19150:1280::-;19424:4;8197:12;:10;:12::i;:::-;8187:6;;-1:-1:-1;;;;;8187:6:0;;;:22;;;8179:67;;;;;-1:-1:-1;;;8179:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8179:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;19449:21:0;::::1;;::::0;;;:9:::1;:21;::::0;;;;;::::1;;19441:63;;;::::0;;-1:-1:-1;;;19441:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;19537:24:0;::::1;19515:109;;;;-1:-1:-1::0;;;19515:109:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19635:18;19681:17:::0;;19677:172:::1;;19733:9;::::0;19715:43:::1;::::0;19729:1:::1;::::0;-1:-1:-1;;;;;19733:9:0::1;19744:13:::0;19715:5:::1;:43::i;:::-;19677:172;;;19780:18:::0;19776:73:::1;;-1:-1:-1::0;19828:9:0::1;::::0;-1:-1:-1;;;;;19828:9:0::1;19776:73;19877:7;::::0;-1:-1:-1;;;;;19863:21:0;;::::1;19877:7:::0;::::1;19863:21;19859:74;;;-1:-1:-1::0;19914:7:0::1;::::0;-1:-1:-1;;;;;19914:7:0::1;19859:74;19943:46;19962:10;19974:14;19943:18;:46::i;:::-;20000:32;20012:19;20000:11;:32::i;:::-;20048:9;20043:358;20067:20;:27;20063:1;:31;20043:358;;;20149:10;-1:-1:-1::0;;;;;20142:27:0::1;;20216:20;20237:1;20216:23;;;;;;;;;;;;;;20208:32;;20288:20;20309:1;20288:23;;;;;;;;;;;;;;20273:40;;-1:-1:-1::0;;;;;20265:49:0::1;20142:191;;;;;;;;;;;;;-1:-1:-1::0;;;;;20142:191:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;20142:191:0;20116:273:::1;;;::::0;;-1:-1:-1;;;20116:273:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;20116:273:0;;;;;;;;;;;;;::::1;;20096:3;;20043:358;;14984:29:::0;;;-1:-1:-1;;;14984:29:0;;;;;:::o;24556:420::-;24694:4;8197:12;:10;:12::i;:::-;8187:6;;-1:-1:-1;;;;;8187:6:0;;;:22;;;8179:67;;;;;-1:-1:-1;;;8179:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8179:67:0;;;;;;;;;;;;;;;24725:15:::1;24734:5;24725:8;:15::i;:::-;24724:16;24716:53;;;::::0;;-1:-1:-1;;;24716:53:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;24716:53:0;;;;;;;;;;;;;::::1;;24808:110;::::0;;;;::::1;::::0;;;::::1;::::0;;::::1;;::::0;;::::1;::::0;;;;-1:-1:-1;24808:25:0;;:13:::1;:25:::0;;;;:110:::1;::::0;24852:9;;24808:29:::1;:110::i;:::-;24780:25;::::0;;:13:::1;:25;::::0;;:138;24929:17:::1;24940:5:::0;24929:10:::1;:17::i;:::-;-1:-1:-1::0;24964:4:0::1;8257:1;24556:420:::0;;;;:::o;27376:106::-;27439:4;27463:11;;;:4;:11;;;;;;;;;27376:106::o;23208:1096::-;23268:4;23308:26;23337:70;23377:19;;23337:21;;:25;;:70;;;;:::i;:::-;23308:99;;23461:1;23440:18;:22;23418:109;;;;-1:-1:-1;;;23418:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23538:25;23566:16;:14;:16::i;:::-;23538:44;;23593:19;23632:9;23627:173;23651:8;:15;23647:1;:19;23627:173;;;23702:86;23759:8;23768:1;23759:11;;;;;;;;;;;;;;23744:28;;-1:-1:-1;;;;;23736:37:0;23702:11;:15;;:86;;;;:::i;:::-;23688:100;-1:-1:-1;23668:3:0;;23627:173;;;-1:-1:-1;23825:7:0;;23854:21;;23810:66;;;-1:-1:-1;;;23810:66:0;;23847:4;23810:66;;;;;;;;;;;;-1:-1:-1;;;;;23825:7:0;;;;23810:28;;:66;;;;;;;;;;;;;;;23825:7;;23810:66;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23892:9:0;;-1:-1:-1;23887:318:0;23911:8;:15;23907:1;:19;23887:318;;;23963:7;;24023:11;;-1:-1:-1;;;;;23963:7:0;;;;23948:32;;24023:8;;24032:1;;24023:11;;;;;;;;;;;;24015:20;;24056:122;24166:11;24056:83;24124:8;24133:1;24124:11;;;;;;;;;;;;;;24109:28;;-1:-1:-1;;;;;24101:37:0;24056:18;:44;;:83;;;;:::i;:122::-;23948:245;;;;;;;;;;;;;-1:-1:-1;;;;;23948:245:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;23928:3:0;;23887:318;;;-1:-1:-1;;24239:1:0;24215:21;:25;;;24251:19;:23;-1:-1:-1;24292:4:0;;-1:-1:-1;;23208:1096:0;:::o;28984:256::-;-1:-1:-1;;;;;29185:22:0;;;29109:16;29185:22;;;:13;:22;;;;;;;29209;;;;;;;;;;;29185;;28984:256::o;8920:244::-;8197:12;:10;:12::i;:::-;8187:6;;-1:-1:-1;;;;;8187:6:0;;;:22;;;8179:67;;;;;-1:-1:-1;;;8179:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;8179:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;9009:22:0;::::1;9001:73;;;;-1:-1:-1::0;;;9001:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9111:6;::::0;;9090:38:::1;::::0;-1:-1:-1;;;;;9090:38:0;;::::1;::::0;9111:6;::::1;::::0;9090:38:::1;::::0;::::1;9139:6;:17:::0;;-1:-1:-1;;;;;;9139:17:0::1;-1:-1:-1::0;;;;;9139:17:0;;;::::1;::::0;;;::::1;::::0;;8920:244::o;15063:34::-;;;;:::o;6512:106::-;6600:10;6512:106;:::o;36232:451::-;36392:115;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36392:25:0;;-1:-1:-1;36392:25:0;;;:13;:25;;;;;;;;:115;;36436:11;;36392:29;:115::i;:::-;-1:-1:-1;;;;;36364:25:0;;;;;;;:13;:25;;;;;;:143;;;;36548:27;;;;;;;:68;;36594:11;36548:31;:68::i;:::-;-1:-1:-1;;;;;36518:27:0;;;;;;;:13;:27;;;;;;;;;:98;;;;36632:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36232:451;;;:::o;36865:1142::-;36975:19;36971:32;;36996:7;;36971:32;37031:7;;-1:-1:-1;;;;;37017:21:0;;;37031:7;;37017:21;37013:207;;;37077:19;;:39;;37101:14;37077:23;:39::i;:::-;37055:19;:61;37136:51;;;-1:-1:-1;;;;;37136:51:0;;;;;;;;;;37182:1;37136:51;;;;;;;;;;;;;;;;;;;;;37202:7;;37013:207;37270:16;37289:19;:17;:19::i;:::-;-1:-1:-1;;;;;37382:25:0;;;;;;:13;:25;;;;;;37270:38;;-1:-1:-1;37382:69:0;;37426:14;37382:29;:69::i;:::-;-1:-1:-1;;;;;37354:25:0;;;;;;:13;:25;;;;;:97;;;;37506:16;;37487:45;;37528:3;;37487:36;;:14;;37506:16;;;;;37487:18;:36::i;:45::-;37462:70;;37589:29;37621:71;37673:8;37621:33;37640:13;;37621:14;:18;;:33;;;;:::i;:71::-;37770:21;;37589:103;;-1:-1:-1;37770:72:0;;37589:103;37770:25;:72::i;:::-;37746:21;:96;37858:141;;;-1:-1:-1;;;;;37858:141:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36865:1142;;;;;;:::o;38338:166::-;38409:9;38404:93;38428:6;:13;38424:1;:17;38404:93;;;38481:4;38463;:15;38468:6;38475:1;38468:9;;;;;;;;;;;;;;;;;;;38463:15;;;;;;;;;;-1:-1:-1;38463:15:0;:22;;-1:-1:-1;;38463:22:0;;;;;;;;;;-1:-1:-1;38443:3:0;38404:93;;32036:2409;32200:4;32226:15;32235:5;32226:8;:15::i;:::-;32225:16;32217:53;;;;;-1:-1:-1;;;32217:53:0;;;;;;;;;;;;-1:-1:-1;;;32217:53:0;;;;;;;;;;;;;;;32289:19;32281:60;;;;;-1:-1:-1;;;32281:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;32501:10;32513:18;32535:28;32550:12;32535:14;:28::i;:::-;32500:63;;;;32619:16;32638:19;:17;:19::i;:::-;32619:38;;32708:21;32732:43;32761:13;;32732:24;32747:8;32732:10;:14;;:24;;;;:::i;:43::-;32829:16;;32708:67;;-1:-1:-1;32786:22:0;;32811:46;;32851:5;;32811:35;;32708:67;;-1:-1:-1;;;32829:16:0;;;;32811:17;:35::i;:46::-;32786:71;-1:-1:-1;32927:9:0;32890:33;:13;32786:71;32890:17;:33::i;:::-;:46;;32868:148;;;;-1:-1:-1;;;32868:148:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33027:18;33048:48;33086:9;33048:33;:13;33066:14;33048:17;:33::i;:48::-;33201:9;;33027:69;;-1:-1:-1;33108:16:0;;;;33146:75;;33108:16;;-1:-1:-1;;;;;33201:9:0;33146:15;:75::i;:::-;33107:114;;-1:-1:-1;33107:114:0;-1:-1:-1;;;;;;33236:20:0;;33232:387;;33311:33;:13;33329:14;33311:17;:33::i;:::-;33299:8;:45;;33273:138;;;;;-1:-1:-1;;;33273:138:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;33232:387;;;33443:9;;-1:-1:-1;;;;;33433:19:0;;;33443:9;;33433:19;33429:190;;;33507:33;:13;33525:14;33507:17;:33::i;:::-;33495:8;:45;;33469:138;;;;;-1:-1:-1;;;33469:138:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;33674:42;33693:6;33701:14;33674:18;:42::i;:::-;33759:35;33772:6;33780:13;33759:12;:35::i;:::-;33841:17;33852:5;33841:10;:17::i;:::-;33939:9;;-1:-1:-1;;;;;33929:19:0;;;33939:9;;33929:19;33925:219;;;34039:6;-1:-1:-1;;;;;34032:23:0;;34056:2;34060:10;34032:39;;;;;;;;;;;;;-1:-1:-1;;;;;34032:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34032:39:0;34006:126;;;;;-1:-1:-1;;;34006:126:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;34204:7;;34189:40;;;-1:-1:-1;;;34189:40:0;;;;;;;;;;-1:-1:-1;;;;;34204:7:0;;;;34189:28;;:40;;;;;;;;;;;;;;;34204:7;;34189:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34189:40:0;34181:49;;;;;;34246:169;;;-1:-1:-1;;;;;34246:169:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34433:4:0;;32036:2409;-1:-1:-1;;;;;;;;;;;;32036:2409:0:o;34622:702::-;34850:9;;34733:5;;;;;;34795:75;;34733:5;;-1:-1:-1;;;;;34850:9:0;34795:15;:75::i;:::-;34756:114;;-1:-1:-1;34756:114:0;-1:-1:-1;34881:17:0;34901:112;35011:1;34901:91;34990:1;34901:70;34956:14;34901:36;34756:114;;34901:26;:36::i;:::-;:54;;:70::i;:112::-;35038:9;;34881:132;;-1:-1:-1;;;;;;35028:19:0;;;35038:9;;35028:19;:64;;;;-1:-1:-1;35083:9:0;35051:28;:8;35064:14;35051:12;:28::i;:::-;:41;;35028:64;35024:131;;;35116:1;35109:8;;;;;;;35024:131;-1:-1:-1;;;;;35169:20:0;;;:65;;;;-1:-1:-1;35225:9:0;35193:28;:8;35206:14;35193:12;:28::i;:::-;:41;;35169:65;35165:133;;;35258:1;35251:8;;;;;;;35165:133;-1:-1:-1;35315:1:0;;34622:702;-1:-1:-1;;;;;34622:702:0:o;10102:181::-;10160:7;10192:5;;;10216:6;;;;10208:46;;;;;-1:-1:-1;;;10208:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;10274:1;10102:181;-1:-1:-1;;;10102:181:0:o;11456:471::-;11514:7;11759:6;11755:47;;-1:-1:-1;11789:1:0;11782:8;;11755:47;11826:5;;;11830:1;11826;:5;:1;11850:5;;;;;:10;11842:56;;;;-1:-1:-1;;;11842:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12403:132;12461:7;12488:39;12492:1;12495;12488:39;;;;;;;;;;;;;;;;;:3;:39::i;39267:242::-;39436:5;39467:22;;;;;39267:242::o;38696:444::-;38810:4;38831:7;38827:85;;;-1:-1:-1;;;;;;38862:12:0;;;;;;:5;:12;;;;;38855:19;38896:4;38889:11;;38827:85;-1:-1:-1;;;;;38927:15:0;;;;;;:8;:15;;;;;;;;38922:107;;38959:9;:21;;;;;;;;;;;;;-1:-1:-1;;;;;;38959:21:0;-1:-1:-1;;;;;38959:21:0;;;;;;;;-1:-1:-1;38995:15:0;;;:8;38959:21;38995:15;;;;:22;;-1:-1:-1;;38995:22:0;;;;;;38922:107;-1:-1:-1;;;;;39043:12:0;;;;;;:5;:12;;;;;;39039:72;;-1:-1:-1;;;;;39079:12:0;;;;;;:5;:12;;;;;:20;;;39039:72;-1:-1:-1;39128:4:0;38696:444;;;;;:::o;30248:1513::-;30409:4;30435:15;30444:5;30435:8;:15::i;:::-;30434:16;30426:53;;;;;-1:-1:-1;;;30426:53:0;;;;;;;;;;;;-1:-1:-1;;;30426:53:0;;;;;;;;;;;;;;;30498:19;30490:60;;;;;-1:-1:-1;;;30490:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;30717:10;30729:21;30754:28;30769:12;30754:14;:28::i;:::-;30716:66;;;;30838:16;30857:19;:17;:19::i;:::-;30838:38;;30887:18;30908:46;30945:8;30908:32;30926:13;;30908;:17;;:32;;;;:::i;:46::-;30887:67;;30965:22;30990:40;31008:6;31016:13;30990:17;:40::i;:::-;30965:65;-1:-1:-1;31041:19:0;31063;:93;;31155:1;31063:93;;;31098:41;31133:5;31098:30;:10;31113:14;31098;:30::i;:41::-;31041:115;;31173:8;:28;;;;-1:-1:-1;31185:16:0;;;31173:28;31169:69;;;31218:8;;;31169:69;31296:7;;-1:-1:-1;;;;;31296:7:0;31281:28;31310:2;31314:27;:10;31329:11;31314:14;:27::i;:::-;31281:61;;;;;;;;;;;;;-1:-1:-1;;;;;31281:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;31406:21:0;;:38;;31432:11;31406:25;:38::i;:::-;31382:21;:62;31484:32;31494:6;31502:13;31484:9;:32::i;:::-;31527:17;31538:5;31527:10;:17::i;:::-;31560:171;;;-1:-1:-1;;;;;31560:171:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31749:4:0;;30248:1513;-1:-1:-1;;;;;;;;;;30248:1513:0:o;10566:136::-;10624:7;10651:43;10655:1;10658;10651:43;;;;;;;;;;;;;;;;;11005:192;11091:7;11127:12;11119:6;;;;11111:29;;;;-1:-1:-1;;;11111:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;11163:5:0;;;11005:192::o;38129:81::-;38184:11;;;;:4;:11;;;;;:18;;-1:-1:-1;;38184:18:0;38198:4;38184:18;;;38129:81::o;35784:221::-;35883:114;35923:7;35883:114;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35883:21:0;;;;;;:13;:21;;;;;;;:114;:25;:114::i;:::-;-1:-1:-1;;;;;35859:21:0;;;;;;;:13;:21;;;;;:138;;;;-1:-1:-1;35784:221:0:o;13031:278::-;13117:7;13152:12;13145:5;13137:28;;;;-1:-1:-1;;;13137:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13176:9;13192:1;13188;:5;;;;;;;13031:278;-1:-1:-1;;;;;13031:278:0:o;35484:138::-;-1:-1:-1;;;;;35580:21:0;;;;;;:13;:21;;;;;;:34;;35606:7;35580:25;:34::i

Swarm Source

ipfs://8c201e7f6836730464d2a06af477b11b43220b6c1b74a94e4c184838e1e79ba2
Block Transaction Difficulty Gas Used Reward
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.