Source Code
Latest 25 from a total of 6,290 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Swap | 24899268 | 6 days ago | IN | 0.000001 HYPE | 0.00003514 | ||||
| Swap | 24889571 | 6 days ago | IN | 0 HYPE | 0.00538742 | ||||
| Swap | 24889556 | 6 days ago | IN | 0 HYPE | 0.00021572 | ||||
| Swap | 24704682 | 8 days ago | IN | 0.5 HYPE | 0.00087767 | ||||
| Swap | 24700470 | 8 days ago | IN | 0 HYPE | 0.00009583 | ||||
| Swap | 24700463 | 8 days ago | IN | 0 HYPE | 0.00014375 | ||||
| Swap | 24700046 | 8 days ago | IN | 0.01 HYPE | 0.00067122 | ||||
| Swap | 24441242 | 11 days ago | IN | 0 HYPE | 0.0002745 | ||||
| Swap | 24384595 | 12 days ago | IN | 0 HYPE | 0.00001789 | ||||
| Swap | 24381646 | 12 days ago | IN | 0 HYPE | 0.00011619 | ||||
| Swap | 24291069 | 13 days ago | IN | 0 HYPE | 0.00020413 | ||||
| Swap | 24081635 | 15 days ago | IN | 0.8 HYPE | 0.00007231 | ||||
| Swap | 23937907 | 17 days ago | IN | 0 HYPE | 0.00162707 | ||||
| Swap | 23770005 | 19 days ago | IN | 0 HYPE | 0.00007993 | ||||
| Swap | 23761520 | 19 days ago | IN | 0 HYPE | 0.00003335 | ||||
| Swap | 23693864 | 20 days ago | IN | 0 HYPE | 0.00008185 | ||||
| Swap | 23599148 | 21 days ago | IN | 0 HYPE | 0.00086698 | ||||
| Swap | 23553045 | 21 days ago | IN | 0 HYPE | 0.00168375 | ||||
| Swap | 23459531 | 22 days ago | IN | 0 HYPE | 0.0002114 | ||||
| Swap | 23330704 | 24 days ago | IN | 0 HYPE | 0.00303763 | ||||
| Swap | 23220905 | 25 days ago | IN | 0 HYPE | 0.00005333 | ||||
| Swap | 23150273 | 26 days ago | IN | 0 HYPE | 0.00174175 | ||||
| Swap | 23076095 | 27 days ago | IN | 0 HYPE | 0.00146457 | ||||
| Swap | 22915174 | 28 days ago | IN | 0 HYPE | 0.00116731 | ||||
| Swap | 22870521 | 29 days ago | IN | 1 HYPE | 0.00011836 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 24899268 | 6 days ago | 0.000001 HYPE | ||||
| 24704682 | 8 days ago | 0.5 HYPE | ||||
| 24700046 | 8 days ago | 0.01 HYPE | ||||
| 24081635 | 15 days ago | 0.8 HYPE | ||||
| 22870521 | 29 days ago | 1 HYPE | ||||
| 22870505 | 29 days ago | 1 HYPE | ||||
| 22825667 | 29 days ago | 0.91 HYPE | ||||
| 22772358 | 30 days ago | 1.03948135 HYPE | ||||
| 22772358 | 30 days ago | 1.03948135 HYPE | ||||
| 22771966 | 30 days ago | 1 HYPE | ||||
| 22681376 | 31 days ago | 0.05056964 HYPE | ||||
| 22594284 | 32 days ago | 0.98171974 HYPE | ||||
| 22594284 | 32 days ago | 0.98171974 HYPE | ||||
| 22415840 | 34 days ago | 0.5396917 HYPE | ||||
| 22415840 | 34 days ago | 0.00005397 HYPE | ||||
| 22415840 | 34 days ago | 0.53974568 HYPE | ||||
| 21965754 | 39 days ago | 3.8 HYPE | ||||
| 21639550 | 43 days ago | 0.03399098 HYPE | ||||
| 21639550 | 43 days ago | 0.00001508 HYPE | ||||
| 21639550 | 43 days ago | 0.03400607 HYPE | ||||
| 21134569 | 49 days ago | 15.2 HYPE | ||||
| 19788472 | 64 days ago | 0.49990181 HYPE | ||||
| 19788472 | 64 days ago | 1 wei | ||||
| 19788472 | 64 days ago | 0.49990181 HYPE | ||||
| 19222174 | 70 days ago | 0.263 HYPE |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
WowmaxRouter
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "./interfaces/IWETH.sol";
import "./interfaces/IWowmaxRouter.sol";
import "./libraries/UniswapV2.sol";
import "./libraries/UniswapV3.sol";
import "./libraries/Curve.sol";
import "./libraries/CurveTricrypto.sol";
import "./libraries/PancakeSwapStable.sol";
import "./libraries/DODOV2.sol";
import "./libraries/DODOV1.sol";
import "./libraries/DODOV3.sol";
import "./libraries/Hashflow.sol";
import "./libraries/Saddle.sol";
import "./libraries/Wombat.sol";
import "./libraries/Level.sol";
import "./libraries/Fulcrom.sol";
import "./libraries/WooFi.sol";
import "./libraries/Elastic.sol";
import "./libraries/AlgebraV1.sol";
import "./libraries/SyncSwap.sol";
import "./libraries/Vooi.sol";
import "./libraries/VelocoreV2.sol";
import "./libraries/Iziswap.sol";
import "./libraries/Velodrome.sol";
import "./libraries/BalancerV2.sol";
import "./libraries/MaverickV1.sol";
import "./libraries/MaverickV2.sol";
import "./libraries/WrappedNative.sol";
import "./libraries/LiquiditybookV2_1.sol";
import "./libraries/SwaapV2.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./WowmaxSwapReentrancyGuard.sol";
/**
* @title WOWMAX Router
* @notice Router for stateless execution of swaps against multiple DEX protocols.
*
* The WowmaxRouter contract encompasses three primary responsibilities:
* 1. Facilitating the exchange of user tokens based on a provided exchange route.
* 2. Ensuring validation of the received output amounts for users, guaranteeing their alignment
* within the designated slippage range.
* 3. Transferring any surplus amounts to the treasury, thereby functioning as a service fee.
*
* The WowmaxRouter contract does not hold any tokens between swap operations. Tokens should not be transferred directly
* to the contract. If, by any chance, tokens are transferred directly to the contract, they are most likely to be lost.
*/
contract WowmaxRouter is IWowmaxRouter, Ownable, WowmaxSwapReentrancyGuard {
/**
* @dev WETH contract
*/
IWETH public WETH;
/**
* @dev Treasury address
*/
address public treasury;
/**
* @dev Max fee percentage. All contract percentage values have two extra digits for precision. Default value is 1%
*/
uint256 public maxFeePercentage = 100;
/**
* @dev Max allowed slippage percentage, default value is 20%
*/
uint256 public maxSlippage = 2000;
// Mapping of protocol names
bytes32 internal constant UNISWAP_V2 = "UNISWAP_V2";
bytes32 internal constant UNISWAP_V3 = "UNISWAP_V3";
bytes32 internal constant UNISWAP_V2_ROUTER = "UNISWAP_V2_ROUTER";
bytes32 internal constant CURVE = "CURVE";
bytes32 internal constant CURVE_TRICRYPTO = "CURVE_TRICRYPTO";
bytes32 internal constant DODO_V1 = "DODO_V1";
bytes32 internal constant DODO_V2 = "DODO_V2";
bytes32 internal constant DODO_V3 = "DODO_V3";
bytes32 internal constant HASHFLOW = "HASHFLOW";
bytes32 internal constant PANCAKESWAP_STABLE = "PANCAKESWAP_STABLE";
bytes32 internal constant SADDLE = "SADDLE";
bytes32 internal constant WOMBAT = "WOMBAT";
bytes32 internal constant LEVEL = "LEVEL";
bytes32 internal constant FULCROM = "FULCROM";
bytes32 internal constant WOOFI = "WOOFI";
bytes32 internal constant ELASTIC = "ELASTIC";
bytes32 internal constant ALGEBRA_V1 = "ALGEBRA_V1";
bytes32 internal constant ALGEBRA_V1_9 = "ALGEBRA_V1_9";
bytes32 internal constant SYNCSWAP = "SYNCSWAP";
bytes32 internal constant VOOI = "VOOI";
bytes32 internal constant VELOCORE_V2 = "VELOCORE_V2";
bytes32 internal constant IZISWAP = "IZISWAP";
bytes32 internal constant VELODROME = "VELODROME";
bytes32 internal constant BALANCER_V2 = "BALANCER_V2";
bytes32 internal constant MAVERICK_V1 = "MAVERICK_V1";
bytes32 internal constant WRAPPED_NATIVE = "WRAPPED_NATIVE";
bytes32 internal constant LIQUIDITY_BOOK_V2_1 = "LIQUIDITY_BOOK_V2_1";
bytes32 internal constant MAVERICK_V2 = "MAVERICK_V2";
bytes32 internal constant SWAAP_V2 = "SWAAP_V2";
using SafeERC20 for IERC20;
/**
* @dev sets the WETH and treasury addresses
*/
constructor(address _weth, address _treasury) {
require(_weth != address(0), "WOWMAX: Wrong WETH address");
require(_treasury != address(0), "WOWMAX: Wrong treasury address");
WETH = IWETH(_weth);
treasury = _treasury;
}
/**
* @dev fallback function to receive native tokens
*/
receive() external payable {}
/**
* @dev fallback function to process various protocols callback functions
*/
fallback() external onlyDuringSwap {
(bool success, int256 amount0Delta, int256 amount1Delta, bytes calldata data) = UniswapV3.decodeCallback({
dataWithSelector: msg.data
});
require(success, "WOWMAX: unsupported callback");
UniswapV3.invokeCallback(amount0Delta, amount1Delta, data);
}
// Admin functions
/**
* @dev withdraws tokens from a contract, in case of leftovers after a swap, invalid swap requests,
* or direct transfers. Only callable by the owner.
* @param token Token to be withdrawn
* @param amount Amount to be withdrawn
*/
function withdraw(address token, uint256 amount) external onlyOwner {
IERC20(token).safeTransfer(treasury, amount);
}
/**
* @dev withdraws native tokens from a contract, in case of leftovers after a swap or invalid swap requests.
* Only callable by the owner.
* @param amount Amount to be withdrawn
*/
function withdrawETH(uint256 amount) external onlyOwner {
(bool sent, ) = payable(treasury).call{ value: amount }("");
require(sent, "Wowmax: Failed to send native tokens");
}
/**
* @dev sets the max fee percentage. Only callable by the owner.
* @param _maxFeePercentage Max fee percentage
*/
function setMaxFeePercentage(uint256 _maxFeePercentage) external onlyOwner {
maxFeePercentage = _maxFeePercentage;
}
/**
* @dev sets the max allowed slippage. Only callable by the owner.
* @param _maxSlippage Max allowed slippage percentage
*/
function setMaxSlippage(uint256 _maxSlippage) external onlyOwner {
maxSlippage = _maxSlippage;
}
// Callbacks
/**
* @dev callback for Maverick V1 pools. Not allowed to be executed outside of a swap operation
* @param amountToPay Amount to be paid
* @param amountOut Amount to be received
* @param data Additional data to be passed to the callback function
*/
function swapCallback(uint256 amountToPay, uint256 amountOut, bytes calldata data) external onlyDuringSwap {
MaverickV1.invokeCallback(amountToPay, amountOut, data);
}
/**
* @dev callback for Maverick V2 pools. Not allowed to be executed outside of a swap operation
* @param tokenIn Token to be transferred to the caller
* @param amountIn Amount of tokens to be transferred to the caller
*/
function maverickV2SwapCallback(
address tokenIn,
uint256 amountIn,
uint256 /*amountOut*/,
bytes calldata /*data*/
) external onlyDuringSwap {
MaverickV2.invokeCallback(tokenIn, amountIn);
}
/**
* @dev callback for Algebra V1 pairs. Not allowed to be executed outside of a swap operation
* @param amount0Delta Amount of token0 to be transferred to the caller
* @param amount1Delta Amount of token1 to be transferred to the caller
* @param data Additional data to be passed to the callback function
*/
function algebraSwapCallback(
int256 amount0Delta,
int256 amount1Delta,
bytes calldata data
) external onlyDuringSwap {
AlgebraV1.invokeCallback(amount0Delta, amount1Delta, data);
}
/**
* @notice Called to msg.sender in iZiSwapPool#swapX2Y(DesireY) call
* @param x Amount of tokenX trader will pay
* @param data Any dadta passed though by the msg.sender via the iZiSwapPool#swapX2Y(DesireY) call
*/
function swapX2YCallback(uint256 x, uint256 /*y*/, bytes calldata data) external onlyDuringSwap {
Iziswap.transferTokens(x, data);
}
/**
* @notice Called to msg.sender in iZiSwapPool#swapY2X(DesireX) call
* @param y Amount of tokenY trader will pay
* @param data Any dadta passed though by the msg.sender via the iZiSwapPool#swapY2X(DesireX) call
*/
function swapY2XCallback(uint256 /*x*/, uint256 y, bytes calldata data) external onlyDuringSwap {
Iziswap.transferTokens(y, data);
}
/**
* @notice Callback for DODO v3 Pools
* @param token Token to be transferred to the caller
* @param value Amount of tokens to be transferred to the caller
* @param data Additional data to be passed to the callback function
*/
function d3MMSwapCallBack(address token, uint256 value, bytes calldata data) external {
DODOV3.invokeCallback(token, value, data);
}
// Swap functions
/**
* @inheritdoc IWowmaxRouter
*/
function swap(
ExchangeRequest calldata request
) external payable virtual override reentrancyProtectedSwap returns (uint256[] memory amountsOut) {
amountsOut = _swap(request);
}
/**
* @dev swap inner logic
*/
function _swap(ExchangeRequest calldata request) internal returns (uint256[] memory amountsOut) {
checkRequest(request);
uint256 amountIn = receiveTokens(request);
for (uint256 i = 0; i < request.exchangeRoutes.length; i++) {
exchange(request.exchangeRoutes[i]);
}
amountsOut = sendTokens(request);
emit SwapExecuted(
msg.sender,
request.from == address(0) ? address(WETH) : request.from,
amountIn,
request.to,
amountsOut
);
}
/**
* @dev receives tokens from the caller
* @param request Exchange request that contains the token to be received parameters.
*/
function receiveTokens(ExchangeRequest calldata request) private returns (uint256) {
uint256 amountIn;
if (msg.value > 0 && request.from == address(0) && request.amountIn == 0) {
amountIn = msg.value;
WETH.deposit{ value: amountIn }();
} else {
if (request.amountIn > 0) {
amountIn = request.amountIn;
IERC20(request.from).safeTransferFrom(msg.sender, address(this), amountIn);
}
}
return amountIn;
}
/**
* @dev sends swapped received tokens to the caller and treasury
* @param request Exchange request that contains output tokens parameters
*/
function sendTokens(ExchangeRequest calldata request) private returns (uint256[] memory amountsOut) {
amountsOut = new uint256[](request.to.length);
uint256 amountOut;
IERC20 token;
for (uint256 i = 0; i < request.to.length; i++) {
token = IERC20(request.to[i]);
amountOut = address(token) == address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)
? WETH.balanceOf(address(this))
: token.balanceOf(address(this));
uint256 feeAmount;
if (amountOut > request.amountOutExpected[i]) {
feeAmount = amountOut - request.amountOutExpected[i];
uint256 maxFeeAmount = (amountOut * maxFeePercentage) / 10000;
if (feeAmount > maxFeeAmount) {
feeAmount = maxFeeAmount;
amountsOut[i] = amountOut - feeAmount;
} else {
amountsOut[i] = request.amountOutExpected[i];
}
} else {
require(
amountOut >= (request.amountOutExpected[i] * (10000 - request.slippage[i])) / 10000,
"WOWMAX: Insufficient output amount"
);
amountsOut[i] = amountOut;
}
if (address(token) == address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)) {
WETH.withdraw(amountOut);
}
transfer(token, treasury, feeAmount);
transfer(token, msg.sender, amountsOut[i]);
}
}
/**
* @dev transfers token to the recipient
* @param token Token to be transferred
* @param to Recipient address
* @param amount Amount to be transferred
*/
function transfer(IERC20 token, address to, uint256 amount) private {
//slither-disable-next-line incorrect-equality
if (amount == 0) {
return;
}
if (address(token) == address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE)) {
//slither-disable-next-line arbitrary-send-eth //recipient is either a msg.sender or a treasury
(bool sent, ) = payable(to).call{ value: amount }("");
require(sent, "Wowmax: Failed to send native tokens");
} else {
token.safeTransfer(to, amount);
}
}
/**
* @dev executes an exchange operation according to the provided route
* @param exchangeRoute Route to be executed
*/
function exchange(ExchangeRoute calldata exchangeRoute) private returns (uint256) {
uint256 amountIn = IERC20(exchangeRoute.from).balanceOf(address(this));
uint256 amountOut;
for (uint256 i = 0; i < exchangeRoute.swaps.length; i++) {
amountOut += executeSwap(
exchangeRoute.from,
(amountIn * exchangeRoute.swaps[i].part) / exchangeRoute.parts,
exchangeRoute.swaps[i]
);
}
return amountOut;
}
/**
* @dev executes a swap operation according to the provided parameters
* @param from Token to be swapped
* @param amountIn Amount to be swapped
* @param swapData Swap data that contains the swap parameters
*/
function executeSwap(address from, uint256 amountIn, Swap calldata swapData) private returns (uint256) {
if (swapData.family == UNISWAP_V3) {
return UniswapV3.swap(amountIn, swapData);
} else if (swapData.family == HASHFLOW) {
return Hashflow.swap(from, amountIn, swapData);
} else if (swapData.family == WOMBAT) {
return Wombat.swap(from, amountIn, swapData);
} else if (swapData.family == LEVEL) {
return Level.swap(from, amountIn, swapData);
} else if (swapData.family == DODO_V2) {
return DODOV2.swap(from, amountIn, swapData);
} else if (swapData.family == DODO_V3) {
return DODOV3.swap(from, amountIn, swapData);
} else if (swapData.family == WOOFI) {
return WooFi.swap(from, amountIn, swapData);
} else if (swapData.family == UNISWAP_V2) {
return UniswapV2.swap(from, amountIn, swapData);
} else if (swapData.family == CURVE) {
return Curve.swap(from, amountIn, swapData);
} else if (swapData.family == CURVE_TRICRYPTO) {
return CurveTricrypto.swap(from, amountIn, swapData);
} else if (swapData.family == PANCAKESWAP_STABLE) {
return PancakeSwapStable.swap(from, amountIn, swapData);
} else if (swapData.family == DODO_V1) {
return DODOV1.swap(from, amountIn, swapData);
} else if (swapData.family == BALANCER_V2) {
return BalancerV2.swap(from, amountIn, swapData);
} else if (swapData.family == MAVERICK_V1) {
return MaverickV1.swap(amountIn, swapData);
} else if (swapData.family == SADDLE) {
return Saddle.swap(from, amountIn, swapData);
} else if (swapData.family == FULCROM) {
return Fulcrom.swap(from, amountIn, swapData);
} else if (swapData.family == UNISWAP_V2_ROUTER) {
return UniswapV2.routerSwap(from, amountIn, swapData);
} else if (swapData.family == ELASTIC) {
return Elastic.swap(from, amountIn, swapData);
} else if (swapData.family == ALGEBRA_V1) {
return AlgebraV1.swap(from, amountIn, swapData);
} else if (swapData.family == ALGEBRA_V1_9) {
return AlgebraV1.swap(from, amountIn, swapData);
} else if (swapData.family == SYNCSWAP) {
return SyncSwap.swap(from, amountIn, swapData);
} else if (swapData.family == VOOI) {
return Vooi.swap(from, amountIn, swapData);
} else if (swapData.family == VELOCORE_V2) {
return VelocoreV2.swap(address(WETH), from, amountIn, swapData);
} else if (swapData.family == IZISWAP) {
return Iziswap.swap(from, amountIn, swapData);
} else if (swapData.family == VELODROME) {
return Velodrome.swap(from, amountIn, swapData);
} else if (swapData.family == WRAPPED_NATIVE) {
return WrappedNative.swap(from, amountIn, swapData);
} else if (swapData.family == LIQUIDITY_BOOK_V2_1) {
return LiquiditybookV2_1.swap(from, amountIn, swapData);
} else if (swapData.family == MAVERICK_V2) {
return MaverickV2.swap(amountIn, swapData);
} else if (swapData.family == SWAAP_V2) {
return SwaapV2.swap(from, amountIn, swapData);
} else {
revert("WOWMAX: Unknown DEX family");
}
}
// Checks and verifications
/**
* @dev checks the swap request parameters
* @param request Exchange request to be checked
*/
function checkRequest(ExchangeRequest calldata request) private view {
require(request.to.length > 0, "WOWMAX: No output tokens specified");
require(request.to.length == request.amountOutExpected.length, "WOWMAX: Wrong amountOutExpected length");
require(request.to.length == request.slippage.length, "WOWMAX: Wrong slippage length");
for (uint256 i = 0; i < request.to.length; i++) {
require(request.to[i] != address(0), "WOWMAX: Wrong output token address");
require(request.amountOutExpected[i] > 0, "WOWMAX: Wrong amountOutExpected value");
require(request.slippage[i] <= maxSlippage, "WOWMAX: Slippage is too high");
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*
* ==== Security Considerations
*
* There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
* expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
* considered as an intention to spend the allowance in any specific way. The second is that because permits have
* built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
* take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
* generally recommended is:
*
* ```solidity
* function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
* try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
* doThing(..., value);
* }
*
* function doThing(..., uint256 value) public {
* token.safeTransferFrom(msg.sender, address(this), value);
* ...
* }
* ```
*
* Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
* `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
* {SafeERC20-safeTransferFrom}).
*
* Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
* contracts should have entry points that don't rely on permit.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*
* CAUTION: See Security Considerations above.
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/IERC20Permit.sol";
import "../../../utils/Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
function safePermit(
IERC20Permit token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
// and not revert is the subcall reverts.
(bool success, bytes memory returndata) = address(token).call(data);
return
success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/structs/EnumerableSet.sol)
// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.
pragma solidity ^0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```solidity
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*
* [WARNING]
* ====
* Trying to delete such a structure from storage will likely result in data corruption, rendering the structure
* unusable.
* See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
*
* In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an
* array of EnumerableSet.
* ====
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping(bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) {
// Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
if (lastIndex != toDeleteIndex) {
bytes32 lastValue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastValue;
// Update the index for the moved value
set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
}
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
return set._values[index];
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function _values(Set storage set) private view returns (bytes32[] memory) {
return set._values;
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
bytes32[] memory store = _values(set._inner);
bytes32[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(uint160(value))));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint160(uint256(_at(set._inner, index))));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(AddressSet storage set) internal view returns (address[] memory) {
bytes32[] memory store = _values(set._inner);
address[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
/**
* @dev Return the entire set in an array
*
* WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
* to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
* this function has an unbounded cost, and using it as part of a state-changing function may render the function
* uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
*/
function values(UintSet storage set) internal view returns (uint256[] memory) {
bytes32[] memory store = _values(set._inner);
uint256[] memory result;
/// @solidity memory-safe-assembly
assembly {
result := store
}
return result;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
/**
* @title Wrapped Ether contract interface
*/
interface IWETH is IERC20 {
/**
* @dev `msg.value` of ETH sent to this contract grants caller account a matching increase in WETH token balance.
*/
function deposit() external payable;
/**
* @dev Burn WETH token from caller account and withdraw matching ETH to the same.
* @param wad Amount of WETH token to burn.
*/
function withdraw(uint wad) external;
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
/**
* @title IWowmaxEvent
* @notice Interface for the Wowmax event, describes the functions that can be called to process event rewards
*/
interface IWowmaxEvent {
function rewardSwap(
address account,
address tokenIn,
uint256 amountIn,
address[] calldata tokensOut,
uint256[] calldata amountsOut,
address referral
) external;
function eventDates() external view returns (uint256 start, uint256 end);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "./IWowmaxRouterBase.sol";
/**
* @title IWowmaxRouter
* @notice Interface for the Wowmax Router, describes the functions that can be called from the router
* and corresponding data structures
*/
interface IWowmaxRouter is IWowmaxRouterBase {
/**
* @notice Executes a token swap
* @dev if from token is address(0) and amountIn is 0,
* then chain native token is used as a source token, and value is used as an input amount
* @param request Exchange request to be executed
* @return amountsOut Array of output amounts that were received for each target token
*/
function swap(ExchangeRequest calldata request) external payable returns (uint256[] memory amountsOut);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
/**
* @title IWowmaxRouterBase
* @notice Interface for the Wowmax Router Base, describes data structures
*/
interface IWowmaxRouterBase {
/**
* @notice Swap operation details structure
* @param to Target token address
* @param part Part of the currently owned tokens to be swapped. Total number of parts
* is defined in the ExchangeRoute structure
* @param addr Contract address that performs the swap
* @param family Contract DEX family
* @param data Additional data that is required for a specific DEX protocol
*/
struct Swap {
address to;
uint256 part;
address addr;
bytes32 family;
bytes data;
}
/**
* @notice Exchange route details structure
* @param from Source token address
* @param parts Total number of parts of the currently owned tokens
* @param swaps Array of swaps for a specified token
*/
struct ExchangeRoute {
address from;
uint256 parts;
Swap[] swaps;
}
/**
* @notice Exchange request details structure
* @param from Source token address
* @param amountIn Source token amount to swap
* @param to Array of target token addresses
* @param exchangeRoutes Array of exchange routes
* @param slippage Array of slippage tolerance values for each target token
* @param amountOutExpected Array fo expected output amounts for each target token
*/
struct ExchangeRequest {
address from;
uint256 amountIn;
address[] to;
ExchangeRoute[] exchangeRoutes;
uint256[] slippage;
uint256[] amountOutExpected;
}
/**
* @notice Emitted when a swap is executed
* @param account Account that initiated the swap
* @param from Source token address
* @param amountIn Source token amount that was swapped
* @param to Array of target token addresses
* @param amountOut Array of amounts that were received for each target token
*/
event SwapExecuted(
address indexed account,
address indexed from,
uint256 amountIn,
address[] to,
uint256[] amountOut
);
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Algebra V1 pool interface
*/
interface IAlgebraV1Pool {
/**
* @notice Swap token0 for token1, or token1 for token0
* @dev The caller of this method receives a callback in the form of IAlgebraSwapCallback# AlgebraSwapCallback
* @param recipient The address to receive the output of the swap
* @param zeroToOne The direction of the swap, true for token0 to token1, false for token1 to token0
* @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
* @param limitSqrtPrice The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this
* value after the swap. If one for zero, the price cannot be greater than this value after the swap
* @param data Any data to be passed through to the callback. If using the Router it should contain
* SwapRouter#SwapCallbackData
* @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive
* @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive
*/
function swap(
address recipient,
bool zeroToOne,
int256 amountSpecified,
uint160 limitSqrtPrice,
bytes calldata data
) external returns (int256 amount0, int256 amount1);
/**
* @dev Returns the address of the first token of the Uniswap v3 based pair
* @return Address of the first token of the pair
*/
function token0() external view returns (address);
/**
* @dev Returns the address of the second token of the Uniswap v3 based pair
* @return Address of the second token of the pair
*/
function token1() external view returns (address);
}
/**
* @title Algebra V1 library
* @notice Functions to swap tokens on Algebra V1 based protocols
*/
library AlgebraV1 {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Algebra V1 based protocol contract
* @param from Address of token to swap from
* @param amountIn Amount of token to swap
* @param swapData Swap operation details. The `data` field should contain two int128 values,
* which are the indices of the tokens to swap from and to
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
bool zeroToOne = from == IAlgebraV1Pool(swapData.addr).token0();
uint160 sqrtPriceLimitX96 = zeroToOne ? 4295128740 : 1461446703485210103287273052203988822378723970341;
(int256 amount0, int256 amount1) = IAlgebraV1Pool(swapData.addr).swap(
address(this),
zeroToOne,
int256(amountIn),
sqrtPriceLimitX96,
new bytes(0)
);
amountOut = uint(zeroToOne ? -amount1 : -amount0);
}
/**
* @dev Performs Algebra V1 callback, sends required amounts of tokens to the pair
* @param amount0Delta Amount of the first token to send
* @param amount1Delta Amount of the second token to send
*/
function invokeCallback(int256 amount0Delta, int256 amount1Delta, bytes calldata /*_data*/) internal {
if (amount0Delta > 0 && amount1Delta < 0) {
IERC20(IAlgebraV1Pool(msg.sender).token0()).safeTransfer(msg.sender, uint256(amount0Delta));
} else if (amount0Delta < 0 && amount1Delta > 0) {
IERC20(IAlgebraV1Pool(msg.sender).token1()).safeTransfer(msg.sender, uint256(amount1Delta));
} else {
revert("WOWMAX: Algebra V1 invariant violation");
}
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Balancer Asset interface
*/
interface IBalancerAsset {
// solhint-disable-previous-line no-empty-blocks
}
/**
* @title Balancer vault interface
*/
interface IBalancerVault {
enum SwapKind {
GIVEN_IN,
GIVEN_OUT
}
/**
* @dev Data for a single swap executed by `swap`. `amount` is either `amountIn` or `amountOut` depending on
* the `kind` value.
*
* `assetIn` and `assetOut` are either token addresses, or the IAsset sentinel value for ETH (the zero address).
* Note that Pools never interact with ETH directly: it will be wrapped to or unwrapped from WETH by the Vault.
*
* The `userData` field is ignored by the Vault, but forwarded to the Pool in the `onSwap` hook, and may be
* used to extend swap behavior.
*/
struct SingleSwap {
bytes32 poolId;
SwapKind kind;
IBalancerAsset assetIn;
IBalancerAsset assetOut;
uint256 amount;
bytes userData;
}
/**
* @dev All tokens in a swap are either sent from the `sender` account to the Vault, or from the Vault to the
* `recipient` account.
*
* If the caller is not `sender`, it must be an authorized relayer for them.
*
* If `fromInternalBalance` is true, the `sender`'s Internal Balance will be preferred, performing an ERC20
* transfer for the difference between the requested amount and the User's Internal Balance (if any). The `sender`
* must have allowed the Vault to use their tokens via `IERC20.approve()`. This matches the behavior of
* `joinPool`.
*
* If `toInternalBalance` is true, tokens will be deposited to `recipient`'s internal balance instead of
* transferred. This matches the behavior of `exitPool`.
*
* Note that ETH cannot be deposited to or withdrawn from Internal Balance: attempting to do so will trigger a
* revert.
*/
struct FundManagement {
address sender;
bool fromInternalBalance;
address payable recipient;
bool toInternalBalance;
}
/**
* @dev Performs a swap with a single Pool.
*
* If the swap is 'given in' (the number of tokens to send to the Pool is known), it returns the amount of tokens
* taken from the Pool, which must be greater than or equal to `limit`.
*
* If the swap is 'given out' (the number of tokens to take from the Pool is known), it returns the amount of tokens
* sent to the Pool, which must be less than or equal to `limit`.
*
* Internal Balance usage and the recipient are determined by the `funds` struct.
*
* Emits a `Swap` event.
*/
function swap(
SingleSwap memory singleSwap,
FundManagement memory funds,
uint256 limit,
uint256 deadline
) external payable returns (uint256);
}
/**
* @title Balancer library
* @notice Functions to swap tokens on Balancer and compatible protocols
*/
library BalancerV2 {
using SafeERC20 for IERC20;
/**
* @dev Performs a swap through a Balancer based vault
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should contain poolId and vault address
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
(bytes32 poolId, address vaultAddress) = abi.decode(swapData.data, (bytes32, address));
IBalancerVault.SingleSwap memory singleSwap = IBalancerVault.SingleSwap({
poolId: poolId,
kind: IBalancerVault.SwapKind.GIVEN_IN,
assetIn: IBalancerAsset(from),
assetOut: IBalancerAsset(swapData.to),
amount: amountIn,
userData: new bytes(0)
});
IBalancerVault.FundManagement memory funds = IBalancerVault.FundManagement({
sender: address(this),
fromInternalBalance: false,
recipient: payable(address(this)),
toInternalBalance: false
});
IERC20(from).safeIncreaseAllowance(vaultAddress, amountIn);
amountOut = IBalancerVault(vaultAddress).swap(singleSwap, funds, 0, type(uint256).max);
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Curve pool interface
*/
interface ICurvePool {
/**
* @dev Swaps tokens on a Curve based protocol contract
* @param i Index of token to swap from
* @param j Index of token to swap to
* @param dx Amount of token to swap
* @param min_dy Minimum amount of tokens to receive
*/
function exchange(int128 i, int128 j, uint256 dx, uint256 min_dy) external;
}
/**
* @title Curve library
* @notice Functions to swap tokens on Curve based protocols
*/
library Curve {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Curve based protocol contract
* @param from Address of token to swap from
* @param amountIn Amount of token to swap
* @param swapData Swap operation details. The `data` field should contain two int128 values,
* which are the indices of the tokens to swap from and to
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
(int128 i, int128 j) = abi.decode(swapData.data, (int128, int128));
uint256 balanceBefore = IERC20(swapData.to).balanceOf(address(this));
//slither-disable-next-line unused-return //it's safe to ignore
IERC20(from).safeIncreaseAllowance(swapData.addr, amountIn);
ICurvePool(swapData.addr).exchange(i, j, amountIn, 0);
amountOut = IERC20(swapData.to).balanceOf(address(this)) - balanceBefore;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
import "../interfaces/IWETH.sol";
/**
* @title Curve Tricrypto pool interface
*/
interface ICurveTricryptoPool {
/**
* @dev Swaps tokens on a Curve based protocol contract
* @param i Index of token to swap from
* @param j Index of token to swap to
* @param dx Amount of token to swap
* @param min_dy Minimum amount of tokens to receive
*/
function exchange(uint256 i, uint256 j, uint256 dx, uint256 min_dy) external;
}
/**
* @title Curve Tricrypto library
* @notice Functions to swap tokens on Curve Tricrypto based protocols
*/
library CurveTricrypto {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Curve Tricrypto based protocol contract
* @param from Address of token to swap from
* @param amountIn Amount of token to swap
* @param swapData Swap operation details. The `data` field should contain two uint128 values,
* which are the indices of the tokens to swap from and to
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
(uint256 i, uint256 j) = abi.decode(swapData.data, (uint256, uint256));
uint256 balanceBefore = IERC20(swapData.to).balanceOf(address(this));
//slither-disable-next-line unused-return //it's safe to ignore
IERC20(from).safeIncreaseAllowance(swapData.addr, amountIn);
ICurveTricryptoPool(swapData.addr).exchange(i, j, amountIn, 0);
amountOut = IERC20(swapData.to).balanceOf(address(this)) - balanceBefore;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title DODO v1 pool interface
*/
interface IDODOV1Pool {
/**
* @dev Sells base token for quote token
* @param amount Amount of base token to sell
* @param minReceiveQuote Minimum amount of quote token to receive
* @param data Additional data to be used in callback hook
* @return amountOut Amount of quote token received
*/
function sellBaseToken(uint256 amount, uint256 minReceiveQuote, bytes calldata data) external returns (uint256);
/**
* @dev Buys base token with quote token
* @param amount Amount of base token to buy
* @param maxPayQuote Maximum amount of quote token to pay
* @param data Additional data to be used in callback hook
* @return amountOut Amount of base token received
*/
function buyBaseToken(uint256 amount, uint256 maxPayQuote, bytes calldata data) external returns (uint256);
}
/**
* @title DODO v1 library
* @notice Functions to swap tokens on DODO v1 protocol
*/
library DODOV1 {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Curve based protocol contract
* @param from Address of token to swap from
* @param amountIn Amount of token to swap
* @param swapData Swap operation details. The `data` field should contain two int128 values, i and j,
* which are the indexes of the tokens to swap
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
//slither-disable-next-line unused-return //it's safe to ignore
IERC20(from).safeIncreaseAllowance(swapData.addr, amountIn);
amountOut = IDODOV1Pool(swapData.addr).sellBaseToken(amountIn, 0, "");
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title DODO v2 pool interface
*/
interface IDODOV2Pool {
/**
* @dev Swaps tokens on a DODO v2 based protocol contract
* @param to Address of token to swap to
* @return amountOut Amount of tokens received
*/
function sellBase(address to) external returns (uint256);
/**
* @dev Swaps tokens on a DODO v2 based protocol contract
* @param to Address of token to swap to
* @return amountOut Amount of tokens received
*/
function sellQuote(address to) external returns (uint256);
}
/**
* @title DODO v2 library
* @notice Functions to swap tokens on DODO v2 protocol
*/
library DODOV2 {
uint8 internal constant BASE_TO_QUOTE = 0;
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a DODO v2 pool contract
* @param from Address of token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should contain one uint8 value,
* which is the direction of the swap
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
IERC20(from).safeTransfer(swapData.addr, amountIn);
uint8 direction = abi.decode(swapData.data, (uint8));
if (direction == BASE_TO_QUOTE) {
amountOut = IDODOV2Pool(swapData.addr).sellBase(address(this));
} else {
amountOut = IDODOV2Pool(swapData.addr).sellQuote(address(this));
}
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title DODO v3 pool interface
*/
interface IDODOV3Pool {
/**
* @dev Swaps tokens on a DODO v3 based protocol contract
* @param to Address to send swapped tokens to
* @param fromToken Address of a token to swap from
* @param toToken Address of a token to swap to
* @param fromAmount Amount of tokens to swap
* @param minReceiveAmount Minimal amount of tokens to receive
* @param data Data to be passed to the Dodo V3 Swap Callback contract
* @return Amount of tokens received
*/
function sellToken(
address to,
address fromToken,
address toToken,
uint256 fromAmount,
uint256 minReceiveAmount,
bytes calldata data
) external returns (uint256);
}
/**
* @title DODO v3 library
* @notice Functions to swap tokens on DODO v3 protocol
*/
library DODOV3 {
uint8 internal constant BASE_TO_QUOTE = 0;
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a DODO v3 pool contract
* @param from Address of token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should be empty
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
return IDODOV3Pool(swapData.addr).sellToken(address(this), from, swapData.to, amountIn, 0, "");
}
/**
* @dev Callback function to receive tokens from DODO v3 pool contract
* @param token Address of token to receive
* @param amount Amount of tokens to receive
*/
function invokeCallback(address token, uint256 amount, bytes calldata /*data*/) internal {
IERC20(token).safeTransfer(msg.sender, amount);
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Elastic pool interface
*/
interface IElasticPool {
/**
* @notice Swap token0 -> token1, or vice versa
* @dev This method's caller receives a callback in the form of ISwapCallback#swapCallback
* @dev swaps will execute up to limitSqrtP or swapQty is fully used
* @param recipient The address to receive the swap output
* @param swapQty The swap quantity, which implicitly configures the swap as exact input (>0), or exact output (<0)
* @param isToken0 Whether the swapQty is specified in token0 (true) or token1 (false)
* @param limitSqrtP the limit of sqrt price after swapping
* could be MAX_SQRT_RATIO-1 when swapping 1 -> 0 and MIN_SQRT_RATIO+1 when swapping 0 -> 1 for no limit swap
* @param data Any data to be passed through to the callback
* @return qty0 Exact token0 qty sent to recipient if < 0. Minimally received quantity if > 0.
* @return qty1 Exact token1 qty sent to recipient if < 0. Minimally received quantity if > 0.
*/
function swap(
address recipient,
int256 swapQty,
bool isToken0,
uint160 limitSqrtP,
bytes calldata data
) external returns (int256 qty0, int256 qty1);
/**
* @dev Returns the address of the first token of the Uniswap v3 based pair
* @return Address of the first token of the pair
*/
function token0() external view returns (address);
/**
* @dev Returns the address of the second token of the Uniswap v3 based pair
* @return Address of the second token of the pair
*/
function token1() external view returns (address);
}
/**
* @title Elastic library
* @notice Functions to swap tokens on Elastic based protocols
*/
library Elastic {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on Elastic based protocol contract
* @param from Address of token to swap from
* @param amountIn Amount of token to swap
* @param swapData Swap operation details. The `data` field should contain two int128 values,
* which are the indices of the tokens to swap from and to
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
bool isToken0 = from == IElasticPool(swapData.addr).token0();
uint160 sqrtPriceLimitX96 = isToken0 ? 4295128740 : 1461446703485210103287273052203988822378723970341;
(int256 amount0, int256 amount1) = IElasticPool(swapData.addr).swap(
address(this),
int256(amountIn),
isToken0,
sqrtPriceLimitX96,
new bytes(0)
);
amountOut = uint(isToken0 ? -amount1 : -amount0);
}
/**
* @dev Performs Elastic callback, sends required amounts of tokens to the pair
* @param deltaQty0 Amount of the first token to send
* @param deltaQty1 Amount of the second token to send
*/
function invokeCallback(int256 deltaQty0, int256 deltaQty1, bytes calldata /*_data*/) internal {
if (deltaQty0 > 0 && deltaQty1 < 0) {
IERC20(IElasticPool(msg.sender).token0()).safeTransfer(msg.sender, uint256(deltaQty0));
} else if (deltaQty0 < 0 && deltaQty1 > 0) {
IERC20(IElasticPool(msg.sender).token1()).safeTransfer(msg.sender, uint256(deltaQty1));
} else {
revert("WOWMAX: Elastic invariant violation");
}
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Fulcrom pool interface
*/
interface IFulcromPool {
/**
* @dev Swaps tokens on a Fulcrom based protocol contract
* @param _tokenIn Address of a token to swap from
* @param _tokenOut Address of a token to swap to
* @param _receiver Address to send swapped tokens to
* @return amountOut Amount of tokens received
*/
function swap(address _tokenIn, address _tokenOut, address _receiver) external returns (uint256);
}
/**
* @title Fulcrom library
* @notice Functions to swap tokens on Fulcrom protocol
*/
library Fulcrom {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Fulcrom pool contract
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should be empty
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
IERC20(from).safeTransfer(swapData.addr, amountIn);
amountOut = IFulcromPool(swapData.addr).swap(from, swapData.to, address(this));
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Hashflow Router interface
*/
interface IHashflowRouter {
struct RFQTQuote {
/// @notice The address of the HashflowPool to trade against.
address pool;
/**
* @notice The external account linked to the HashflowPool.
* If the HashflowPool holds funds, this should be address(0).
*/
address externalAccount;
/// @notice The recipient of the quoteToken at the end of the trade.
address trader;
/**
* @notice The account "effectively" making the trade (ultimately receiving the funds).
* This is commonly used by aggregators, where a proxy contract (the 'trader')
* receives the quoteToken, and the effective trader is the user initiating the call.
*
* This field DOES NOT influence movement of funds. However, it is used to check against
* quote replay.
*/
address effectiveTrader;
/// @notice The token that the trader sells.
address baseToken;
/// @notice The token that the trader buys.
address quoteToken;
/**
* @notice The amount of baseToken sold in this trade. The exchange rate
* is going to be preserved as the quoteTokenAmount / baseTokenAmount ratio.
*
* Most commonly, effectiveBaseTokenAmount will == baseTokenAmount.
*/
uint256 effectiveBaseTokenAmount;
/// @notice The max amount of baseToken sold.
uint256 baseTokenAmount;
/// @notice The amount of quoteToken bought when baseTokenAmount is sold.
uint256 quoteTokenAmount;
/// @notice The Unix timestamp (in seconds) when the quote expires.
/// @dev This gets checked against block.timestamp.
uint256 quoteExpiry;
/// @notice The nonce used by this effectiveTrader. Nonces are used to protect against replay.
uint256 nonce;
/// @notice Unique identifier for the quote.
/// @dev Generated off-chain via a distributed UUID generator.
bytes32 txid;
/// @notice Signature provided by the market maker (EIP-191).
bytes signature;
}
/**
* @notice Executes an intra-chain RFQ-T trade.
* @param quote The quote data to be executed.
*/
function tradeRFQT(RFQTQuote memory quote) external payable;
}
// @title Hashflow library
// @notice Functions to swap tokens on Hashflow protocol
library Hashflow {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Hashflow router contract
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should contain encoded RFQTQuote structure
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
IHashflowRouter.RFQTQuote memory quote = abi.decode(swapData.data, (IHashflowRouter.RFQTQuote));
//slither-disable-next-line unused-return //it's safe to ignore
IERC20(from).safeIncreaseAllowance(swapData.addr, amountIn);
if (amountIn < quote.baseTokenAmount) {
quote.effectiveBaseTokenAmount = amountIn;
}
uint256 balanceBefore = IERC20(swapData.to).balanceOf(address(this));
IHashflowRouter(swapData.addr).tradeRFQT(quote);
amountOut = IERC20(swapData.to).balanceOf(address(this)) - balanceBefore;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Iziswap pool interface
*/
interface IIziswapPool {
/**
* @notice Swap tokenX for tokenY, given max amount of tokenX user willing to pay.
* @param recipient the address to receive tokenY
* @param amount the max amount of tokenX user willing to pay
* @param lowPt the lowest point(price) of x/y during swap
* @param data any data to be passed through to the callback
* @return amountX amount of tokenX acquired
* @return amountY amount of tokenY payed
*/
function swapX2Y(
address recipient,
uint128 amount,
int24 lowPt,
bytes calldata data
) external returns (uint256 amountX, uint256 amountY);
/**
* @notice Swap tokenY for tokenX, given max amount of tokenY user willing to pay.
* @param recipient the address to receive tokenX
* @param amount the max amount of tokenY user willing to pay
* @param highPt the highest point(price) of x/y during swap
* @param data any data to be passed through to the callback
* @return amountX amount of tokenX payed
* @return amountY amount of tokenY acquired
*/
function swapY2X(
address recipient,
uint128 amount,
int24 highPt,
bytes calldata data
) external returns (uint256 amountX, uint256 amountY);
}
/**
* @title Iziswap library
* @notice Functions to swap tokens on Iziswap based protocols
*/
library Iziswap {
uint256 constant X2Y = 0;
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Iziswap based protocol contract
* @param from Address of token to swap from
* @param amountIn Amount of token to swap
* @param swapData Swap operation details. The `data` field should contain two int128 values,
* which are the indices of the tokens to swap from and to
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
int24 pt = abi.decode(swapData.data, (int24));
//slither-disable-next-line unused-return //it's safe to ignore
bytes memory data = abi.encode(from);
if (from < swapData.to) {
(, amountOut) = IIziswapPool(swapData.addr).swapX2Y(address(this), uint128(amountIn), pt, data);
} else {
(amountOut, ) = IIziswapPool(swapData.addr).swapY2X(address(this), uint128(amountIn), pt, data);
}
}
function transferTokens(uint256 amount, bytes calldata data) internal {
address token = abi.decode(data, (address));
IERC20(token).safeTransfer(msg.sender, amount);
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Level pool interface
*/
interface ILevelPool {
/**
* @dev Swaps tokens on a Level based protocol contract
* @param _tokenIn Address of a token to swap from
* @param _tokenOut Address of a token to swap to
* @param _minOut Minimal amount of tokens to receive
* @param _to Address to send swapped tokens to
* @param extradata Data to be used in callback
*/
function swap(address _tokenIn, address _tokenOut, uint256 _minOut, address _to, bytes calldata extradata) external;
}
/**
* @title Level library
* @notice Functions to swap tokens on Level protocol
*/
library Level {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Level pool contract
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should be empty
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
IERC20(from).safeTransfer(swapData.addr, amountIn);
uint256 balanceBefore = IERC20(swapData.to).balanceOf(address(this));
ILevelPool(swapData.addr).swap(from, swapData.to, 0, address(this), new bytes(0));
amountOut = IERC20(swapData.to).balanceOf(address(this)) - balanceBefore;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Liquiditybook V2.1 pool interface
*/
interface ILiquiditybookV2_1Pool {
/**
* @notice Swap tokens iterating over the bins until the entire amount is swapped.
* Token X will be swapped for token Y if `swapForY` is true, and token Y for token X if `swapForY` is false.
* This function will not transfer the tokens from the caller, it is expected that the tokens have already been
* transferred to this contract through another contract, most likely the router.
* That is why this function shouldn't be called directly, but only through one of the swap functions of a router
* that will also perform safety checks, such as minimum amounts and slippage.
* The variable fee is updated throughout the swap, it increases with the number of bins crossed.
* The oracle is updated at the end of the swap.
* @param swapForY Whether you're swapping token X for token Y (true) or token Y for token X (false)
* @param to The address to send the tokens to
* @return amountsOut The encoded amounts of token X and token Y sent to `to`
*/
function swap(bool swapForY, address to) external returns (bytes32 amountsOut);
}
/**
* @title Liquiditybook V2.1 library
* @notice Functions to swap tokens on Liquiditybook V2.1 based protocols
*/
library LiquiditybookV2_1 {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Liquiditybook V2.1 based protocol contract
* @param from Address of token to swap from
* @param amountIn Amount of token to swap
* @param swapData Swap operation details. The `data` field should contain swapForY flag
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
bool swapForY = abi.decode(swapData.data, (uint256)) == 1;
uint256 balanceBefore = IERC20(swapData.to).balanceOf(address(this));
IERC20(from).safeTransfer(swapData.addr, amountIn);
ILiquiditybookV2_1Pool(swapData.addr).swap(swapForY, address(this));
amountOut = IERC20(swapData.to).balanceOf(address(this)) - balanceBefore;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Maverick V1 pool interface
*/
interface IMaverickV1Pool {
/**
* @dev Swaps tokens on a Maverick v1 based pool
* @param recipient Address to send swapped tokens to
* @param amount Amount of tokens to swap
* @param tokenAIn Flag that indicates token direction. True for tokenA to tokenB direction,
* false for tokenB to tokenA
* @param exactOutput Flag that indicates whether the amount is exact output or input
* @param sqrtPriceLimit Price limit within which swap is processed
* @param data Additional data to be send in callback function
* @return amountIn Amount of the input token to be paid
* @return amountOut Amount of the output token to be received
*/
function swap(
address recipient,
uint256 amount,
bool tokenAIn,
bool exactOutput,
uint256 sqrtPriceLimit,
bytes calldata data
) external returns (uint256 amountIn, uint256 amountOut);
/**
* @dev Returns the address of the first token of the Maverick v1 based pair
* @return Address of the first token of the pair
*/
function tokenA() external view returns (address);
/**
* @dev Returns the address of the second token of the Maverick v1 based pair
* @return Address of the second token of the pair
*/
function tokenB() external view returns (address);
}
/**
* @title Maverick v1 library
* @notice Functions to swap tokens on Maverick v1 and compatible protocol
*/
library MaverickV1 {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Maverick v1 based pair
* @param amountIn Amount of tokens to swap
* @param swapData Swap data. The `data` field should contain zeroForOne flag
* @return amountOut Amount of tokens received
*/
function swap(uint256 amountIn, IWowmaxRouter.Swap memory swapData) internal returns (uint256 amountOut) {
bool tokenAIn = abi.decode(swapData.data, (bool));
(, amountOut) = IMaverickV1Pool(swapData.addr).swap(address(this), amountIn, tokenAIn, false, 0, swapData.data);
}
/**
* @dev Performs Maverick v1 callback, sends required amounts of tokens to the pool
* @param amountToPay amount to pay
* @param _data encoded swap direction
*/
function invokeCallback(uint256 amountToPay, uint256 /*amountOut*/, bytes calldata _data) internal {
bool tokenAIn = abi.decode(_data, (bool));
if (tokenAIn) {
IERC20(IMaverickV1Pool(msg.sender).tokenA()).safeTransfer(msg.sender, amountToPay);
} else {
IERC20(IMaverickV1Pool(msg.sender).tokenB()).safeTransfer(msg.sender, amountToPay);
}
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Maverick V2 pool interface
*/
interface IMaverickV2Pool {
/**
* @notice Parameters for swap.
* @param amount Amount of the token that is either the input if exactOutput is false
* or the output if exactOutput is true.
* @param tokenAIn Boolean indicating whether tokenA is the input.
* @param exactOutput Boolean indicating whether the amount specified is
* the exact output amount (true).
* @param tickLimit The furthest tick a swap will execute in. If no limit
* is desired, value should be set to type(int32).max for a tokenAIn swap
* and type(int32).min for a swap where tokenB is the input.
*/
struct SwapParams {
uint256 amount;
bool tokenAIn;
bool exactOutput;
int32 tickLimit;
}
/**
* @notice Swap tokenA/tokenB assets in the pool. The swap user has two
* options for funding their swap.
* - The user can push the input token amount to the pool before calling
* the swap function. In order to avoid having the pool call the callback,
* the user should pass a zero-length `data` bytes object with the swap
* call.
* - The user can send the input token amount to the pool when the pool
* calls the `maverickV2SwapCallback` function on the calling contract.
* That callback has input parameters that specify the token address of the
* input token, the input and output amounts, and the bytes data sent to
* the swap function.
* @dev If the users elects to do a callback-based swap, the output
* assets will be sent before the callback is called, allowing the user to
* execute flash swaps. However, the pool does have reentrancy protection,
* so a swapper will not be able to interact with the same pool again
* while they are in the callback function.
* @param recipient The address to receive the output tokens.
* @param params Parameters containing the details of the swap
* @param data Bytes information that gets passed to the callback.
*/
function swap(
address recipient,
SwapParams memory params,
bytes calldata data
) external returns (uint256 amountIn, uint256 amountOut);
/**
* @dev Returns the address of the first token of the Maverick V2 based pair
* @return Address of the first token of the pair
*/
function tokenA() external view returns (address);
/**
* @dev Returns the address of the second token of the Maverick V2 based pair
* @return Address of the second token of the pair
*/
function tokenB() external view returns (address);
}
/**
* @title Maverick V2 library
* @notice Functions to swap tokens on Maverick V2 and compatible protocol
*/
library MaverickV2 {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Maverick V2 based pair
* @param amountIn Amount of tokens to swap
* @param swapData Swap data. The `data` field should contain tokenAIn flag
* @return amountOut Amount of tokens received
*/
function swap(uint256 amountIn, IWowmaxRouter.Swap memory swapData) internal returns (uint256 amountOut) {
bool tokenAIn = abi.decode(swapData.data, (bool));
int32 tickLimit = tokenAIn ? type(int32).max : type(int32).min;
IMaverickV2Pool.SwapParams memory params = IMaverickV2Pool.SwapParams({
amount: amountIn,
tokenAIn: tokenAIn,
exactOutput: false,
tickLimit: tickLimit
});
(, amountOut) = IMaverickV2Pool(swapData.addr).swap(address(this), params, swapData.data);
}
/**
* @dev Performs Maverick V2 callback, sends required amounts of tokens to the pool
* @param tokenIn token to pay
* @param amountIn amount to pay
*/
function invokeCallback(address tokenIn, uint256 amountIn) internal {
IERC20(tokenIn).safeTransfer(msg.sender, amountIn);
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title PancakeSwap pool interface
*/
interface IPancakeStablePool {
/**
* @notice Exchange `dx` amount of `i` token to at least `min_dy` amount of `j` token
* @dev Same as Curve but uses uint256 instead of int128
* @param i Index of token to swap from
* @param j Index of token to swap to
* @param dx Amount of `i` token to swap from
* @param min_dy Minimum amount of `j` token to receive
*/
function exchange(uint256 i, uint256 j, uint256 dx, uint256 min_dy) external;
}
/**
* @title PancakeSwap library
* @notice Functions to swap tokens on PancakeSwap like protocols
*/
library PancakeSwapStable {
using SafeERC20 for IERC20;
/**
* @notice Swaps tokens on a PancakeSwap Stable like protocol contract
* @param from Address of token to swap from
* @param amountIn Amount of token to swap
* @param swapData Swap operation details. The `data` field should contain two int128 values,
* which are the indices of the tokens to swap from and to
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
(int128 i, int128 j) = abi.decode(swapData.data, (int128, int128));
uint256 balanceBefore = IERC20(swapData.to).balanceOf(address(this));
//slither-disable-next-line unused-return //it's safe to ignore
IERC20(from).safeIncreaseAllowance(swapData.addr, amountIn);
IPancakeStablePool(swapData.addr).exchange(uint256(uint128(i)), uint256(uint128(j)), amountIn, 0);
amountOut = IERC20(swapData.to).balanceOf(address(this)) - balanceBefore;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Saddle pool interface
*/
interface ISaddlePool {
/**
* @dev Swaps tokens on a Saddle based protocol contract
* @param tokenIndexFrom Index of a token to swap from
* @param tokenIndexTo Index of a token to swap to
* @param dx Amount of tokens to swap
* @param minDy Minimum amount of tokens to receive
* @param deadline Timestamp after which transaction will revert
*/
function swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) external;
}
/**
* @title Saddle library
* @notice Functions to swap tokens on Saddle protocol
*/
library Saddle {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Saddle pool contract
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should contain two uint8 values,
* which are tokenIndexFrom and tokenIndexTo
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
(uint8 tokenIndexFrom, uint8 tokenIndexTo) = abi.decode(swapData.data, (uint8, uint8));
uint256 balanceBefore = IERC20(swapData.to).balanceOf(address(this));
//slither-disable-next-line unused-return //it's safe to ignore
IERC20(from).safeIncreaseAllowance(swapData.addr, amountIn);
ISaddlePool(swapData.addr).swap(tokenIndexFrom, tokenIndexTo, amountIn, 0, type(uint256).max);
amountOut = IERC20(swapData.to).balanceOf(address(this)) - balanceBefore;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Swaap V2 Asset interface
*/
interface ISwaapV2Asset {
// solhint-disable-previous-line no-empty-blocks
}
/**
* @title Swaap V2 vault interface
*/
interface ISwaapV2Vault {
enum SwapKind {
GIVEN_IN,
GIVEN_OUT
}
struct SingleSwap {
bytes32 poolId;
SwapKind kind;
ISwaapV2Asset assetIn;
ISwaapV2Asset assetOut;
uint256 amount;
bytes userData;
}
struct FundManagement {
address sender;
bool fromInternalBalance;
address payable recipient;
bool toInternalBalance;
}
function swap(
SingleSwap memory singleSwap,
FundManagement memory funds,
uint256 limit,
uint256 deadline
) external payable returns (uint256);
}
/**
* @title Swaap V2 library
* @notice Functions to swap tokens on Swaap V2 and compatible protocols
*/
library SwaapV2 {
using SafeERC20 for IERC20;
/**
* @dev Performs a swap through a Swaap V2 based vault
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should contain calldata for the swap
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
(bytes32 poolId, bytes memory userData) = abi.decode(swapData.data, (bytes32, bytes));
ISwaapV2Vault.SingleSwap memory singleSwap = ISwaapV2Vault.SingleSwap({
poolId: poolId,
kind: ISwaapV2Vault.SwapKind.GIVEN_IN,
assetIn: ISwaapV2Asset(from),
assetOut: ISwaapV2Asset(swapData.to),
amount: amountIn,
userData: userData
});
ISwaapV2Vault.FundManagement memory funds = ISwaapV2Vault.FundManagement({
sender: address(this),
fromInternalBalance: false,
recipient: payable(address(this)),
toInternalBalance: false
});
IERC20(from).safeIncreaseAllowance(swapData.addr, amountIn);
amountOut = ISwaapV2Vault(swapData.addr).swap(singleSwap, funds, 0, type(uint256).max);
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title SyncSwap pool interface
*/
interface ISyncSwapPool {
/**
* @dev Token amount structure
* @param token Address of a token
* @param amount Amount of tokens
*/
struct TokenAmount {
address token;
uint amount;
}
/**
* @dev Swaps between tokens.
* @param data Swap operation details
* @param sender Address of the sender
* @param callback Callback address
* @param callbackData Callback data
* @return tokenAmount Amount of tokens received
*/
function swap(
bytes calldata data,
address sender,
address callback,
bytes calldata callbackData
) external returns (TokenAmount memory tokenAmount);
/**
* @dev Returns the address of the SyncSwap pool vault
* @return Vault address
*/
function vault() external view returns (address);
}
/**
* @title SyncSwap vault interface
*/
interface ISyncSwapVault {
/**
* @dev Deposits tokens to the SyncSwap vault
* @param token Address of a token to deposit
* @param to SyncSwap pool address
* @return amount Amount of tokens deposited
*/
function deposit(address token, address to) external payable returns (uint amount);
}
/**
* @title SyncSwap library
* @notice Functions to swap tokens on SyncSwap protocol
*/
library SyncSwap {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a SyncSwap pool contract
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should be empty
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
ISyncSwapVault vault = ISyncSwapVault(ISyncSwapPool(swapData.addr).vault());
IERC20(from).safeTransfer(address(vault), amountIn);
vault.deposit(from, swapData.addr);
bytes memory data = abi.encode(from, address(this), uint8(2)); // from, to, withdrawMode (0 - default, 1 - unwrapped, 2 - wrapped)
ISyncSwapPool.TokenAmount memory out = ISyncSwapPool(swapData.addr).swap(
data,
address(0x0),
address(0x0),
new bytes(0)
);
return out.amount;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Uniswap v2 pair interface
*/
interface IUniswapV2Pair {
/**
* @dev Returns the address of the first token of the Uniswap v2 based pair
* @return Address of the first token of the pair
*/
function token0() external view returns (address);
/**
* @dev Returns the address of the second token of the Uniswap v2 based pair
* @return Address of the second token of the pair
*/
function token1() external view returns (address);
/**
* @dev Returns the Uniswap v2 based pair reserves
* @return _reserve0 Reserve of the first token in the pair
* @return _reserve1 Reserve of the second token in the pair
* @return _blockTimestampLast Block timestamp of the last reserve update
*/
function getReserves() external view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast);
/**
* @dev Swaps tokens on a Uniswap v2 based pair
* @param amount0Out Amount of the first token to receive
* @param amount1Out Amount of the second token to receive
* @param to Address to send tokens to
* @param data Data to be send in callback function, if any
*/
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
/**
* @dev Returns the address of the Uniswap v2 based pair router
* @return Router address
*/
function router() external returns (address);
}
/**
* @title Uniswap v2 router interface
*/
interface IUniswapV2Router {
/**
* @dev Swaps tokens on a Uniswap v2 based router
* @param amountIn Amount of tokens to swap
* @param amountOutMin Minimal amount of tokens to receive
* @param path Sequence of tokens to perform swap through
* @param to Address to send swapped tokens to
* @param deadline Timestamp after which the transaction will revert,
* 0 if it is not defined
* @return amounts Amounts of tokens received for each swap step
*/
function swapExactTokensForTokens(
uint256 amountIn,
uint256 amountOutMin,
address[] calldata path,
address to,
uint256 deadline
) external returns (uint256[] memory amounts);
}
/**
* @title Uniswap v2 library
* @notice Functions to swap tokens on Uniswap v2 and compatible protocols
*/
library UniswapV2 {
/**
* @dev Common fee denominator
*/
uint256 private constant FEE_DENOMINATOR = 10000;
using SafeERC20 for IERC20;
/**
* @dev Performs a direct swap through a Uniswap v2 based pair
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should contain the fee value specific for the pair
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
IERC20(from).safeTransfer(swapData.addr, amountIn);
uint256 fee = abi.decode(swapData.data, (uint256));
bool directSwap = IUniswapV2Pair(swapData.addr).token0() == from;
(uint112 reserveIn, uint112 reserveOut) = getReserves(swapData.addr, directSwap);
amountOut = getAmountOut(amountIn, reserveIn, reserveOut, fee);
if (amountOut > 0) {
IUniswapV2Pair(swapData.addr).swap(
directSwap ? 0 : amountOut,
directSwap ? amountOut : 0,
address(this),
new bytes(0)
);
}
}
/**
* @dev Performs a swap through a Uniswap v2 based protocol using a router contract
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details
* data field should be empty
* @return amountOut Amount of tokens received
*/
function routerSwap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
IUniswapV2Router router = IUniswapV2Router(IUniswapV2Pair(swapData.addr).router());
IERC20(from).safeIncreaseAllowance(address(router), amountIn);
address[] memory path = new address[](2);
path[0] = from;
path[1] = swapData.to;
return router.swapExactTokensForTokens(amountIn, 0, path, address(this), type(uint256).max)[1];
}
/**
* @dev Returns the reserves of a Uniswap v2 based pair ordered according to swap direction
* @param pair Address of a Uniswap v2 based pair
* @param directSwap True if the first token of the pair is the token to swap from, false otherwise
* @return reserveIn Reserve of the token to swap from
* @return reserveOut Reserve of the token to swap to
*/
function getReserves(address pair, bool directSwap) private view returns (uint112 reserveIn, uint112 reserveOut) {
(uint112 reserve0, uint112 reserve1, ) = IUniswapV2Pair(pair).getReserves();
return directSwap ? (reserve0, reserve1) : (reserve1, reserve0);
}
/**
* @dev Returns the amount of tokens to be received for a given input amount and pair reserves
* @param amountIn Amount of tokens to swap
* @param reserveIn Reserve of the token to swap from
* @param reserveOut Reserve of the token to swap to
* @param fee Fee of the Uniswap v2 based pair. This value is specific for the pair
* and/or it's DEX, and should be provided externally
* @return amountOut Amount of tokens received
*/
function getAmountOut(
uint256 amountIn,
uint112 reserveIn,
uint112 reserveOut,
uint256 fee
) private pure returns (uint256 amountOut) {
uint256 amountInWithFee = amountIn * (FEE_DENOMINATOR - fee);
uint256 numerator = amountInWithFee * reserveOut;
uint256 denominator = reserveIn * FEE_DENOMINATOR + amountInWithFee;
amountOut = numerator / denominator;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Uniswap v2 pair interface
*/
interface IUniswapV3Pool {
/**
* @dev Swaps tokens on a Uniswap v3 based pair
* @param recipient Address to send swapped tokens to
* @param zeroForOne Flag that indicates token direction. True for token0 to token1 direction,
* false for token1 to token0
* @param amountSpecified Amount of tokens to swap
* @param sqrtPriceLimitX96 Price limit within which swap is processed
* @param data Additional data to be send in callback function
* @return amount0 Amount of the first token received
* @return amount1 Amount of the second token received
*/
function swap(
address recipient,
bool zeroForOne,
int256 amountSpecified,
uint160 sqrtPriceLimitX96,
bytes calldata data
) external returns (int256 amount0, int256 amount1);
/**
* @dev Returns the address of the first token of the Uniswap v3 based pair
* @return Address of the first token of the pair
*/
function token0() external view returns (address);
/**
* @dev Returns the address of the second token of the Uniswap v3 based pair
* @return Address of the second token of the pair
*/
function token1() external view returns (address);
}
/**
* @title Uniswap v3 library
* @notice Functions to swap tokens on Uniswap v3 and compatible protocol
*/
library UniswapV3 {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Uniswap v3 based pair
* @param amountIn Amount of tokens to swap
* @param swapData Swap data. The `data` field should contain zeroForOne flag
* @return amountOut Amount of tokens received
*/
function swap(uint256 amountIn, IWowmaxRouter.Swap memory swapData) internal returns (uint256 amountOut) {
bool zeroForOne = abi.decode(swapData.data, (bool));
uint160 sqrtPriceLimitX96 = zeroForOne ? 4295128740 : 1461446703485210103287273052203988822378723970341;
(int256 amount0, int256 amount1) = IUniswapV3Pool(swapData.addr).swap(
address(this),
zeroForOne,
int256(amountIn),
sqrtPriceLimitX96,
new bytes(0)
);
amountOut = uint(zeroForOne ? -amount1 : -amount0);
}
/**
* @dev Performs Uniswap v3 callback, sends required amounts of tokens to the pair
* @param amount0Delta Amount of the first token to send
* @param amount1Delta Amount of the second token to send
*/
function invokeCallback(int256 amount0Delta, int256 amount1Delta, bytes calldata /*_data*/) internal {
if (amount0Delta > 0 && amount1Delta < 0) {
IERC20(IUniswapV3Pool(msg.sender).token0()).safeTransfer(msg.sender, uint256(amount0Delta));
} else if (amount0Delta < 0 && amount1Delta > 0) {
IERC20(IUniswapV3Pool(msg.sender).token1()).safeTransfer(msg.sender, uint256(amount1Delta));
} else {
revert("WOWMAX: Uniswap v3 invariant violation");
}
}
/**
* @notice Try to decode provided "dataWithSelector" as Uniswap V3 callback.
* @return Flag indicating whether decoding succeeded, followed by decoded amount0Delta, amount1Delta and data.
*/
function decodeCallback(
bytes calldata dataWithSelector
) internal pure returns (bool, int256, int256, bytes calldata) {
int256 amount0Delta;
int256 amount1Delta;
bytes calldata data;
assembly {
amount0Delta := calldataload(add(dataWithSelector.offset, 4))
amount1Delta := calldataload(add(dataWithSelector.offset, 36))
// get offset of bytes length: selector + (amount0Delta | amount1Delta | data length offset | data length | data).
// "length offset" is relative to start of first parameter in data.
let dataLenOffset := add(add(dataWithSelector.offset, 4), calldataload(add(dataWithSelector.offset, 68)))
data.length := calldataload(dataLenOffset)
data.offset := add(dataLenOffset, 32)
}
// validate that what we got matches what we expect
unchecked {
// account for padding in 32-byte word unaligned data
uint256 paddedDataLen = data.length;
uint256 remainder = data.length % 32;
if (remainder > 0) {
paddedDataLen = paddedDataLen + (32 - remainder);
}
// 132 = 4 (selector) + 64 ("sender", "amount0Delta", "amount1Delta" offsets) + 64 ("length offset" + "length" offsets)
if (dataWithSelector.length != (paddedDataLen + 132)) {
return (false, 0, 0, emptyBytesCalldata());
}
}
return (true, amount0Delta, amount1Delta, data);
}
function emptyBytesCalldata() private pure returns (bytes calldata) {
bytes calldata empty;
assembly {
empty.length := 0
empty.offset := 0
}
return empty;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
import "../interfaces/IWETH.sol";
/**
* @title Velocore vault interface
*/
interface IVelocoreVault {
/**
* @dev Swaps tokens on a Velocore based protocol
* @param pool Address of a Velocore pool contract
* @param method Swap method
* @param t1 Address of a token to swap from
* @param m1 Swap method for the first token
* @param a1 Amount of the first token to swap
* @param t2 Address of a token to swap to
* @param m2 Swap method for the second token
* @param a2 Amount of the second token to swap
* @param data Additional data to be used in swap
* @return amounts Amounts of tokens received
*/
function execute2(
address pool,
uint8 method,
address t1,
uint8 m1,
int128 a1,
address t2,
uint8 m2,
int128 a2,
bytes memory data
) external payable returns (int128[] memory);
function getPair(address tokenA, address tokenB) external view returns (address);
}
/**
* @title Velocore library
* @notice Functions to swap tokens on Velocore protocol
*/
library VelocoreV2 {
uint8 constant SWAP = 0;
uint8 constant EXACTLY = 0;
uint8 constant AT_MOST = 1;
address constant NATIVE_TOKEN = address(0x0);
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Velocore pool contract
* @param wrappedNativeToken Address of a wrapped native token
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should contain vault address
* @return amountOut Amount of tokens received
*/
function swap(
address wrappedNativeToken,
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
address vaultAddress = abi.decode(swapData.data, (address));
IVelocoreVault vault = IVelocoreVault(vaultAddress);
address fromToken = from == wrappedNativeToken ? NATIVE_TOKEN : from;
address toToken = swapData.to == wrappedNativeToken ? NATIVE_TOKEN : swapData.to;
int128[] memory result;
if (fromToken == NATIVE_TOKEN) {
IWETH(wrappedNativeToken).withdraw(amountIn);
result = vault.execute2{ value: amountIn }(
swapData.addr,
SWAP,
fromToken,
EXACTLY,
int128(int256(amountIn)),
toToken,
AT_MOST,
0,
""
);
} else {
IERC20(fromToken).safeIncreaseAllowance(address(vault), amountIn);
result = vault.execute2(
swapData.addr,
SWAP,
fromToken,
EXACTLY,
int128(int256(amountIn)),
toToken,
AT_MOST,
0,
""
);
}
amountOut = uint256(int256(result[1]));
if (toToken == NATIVE_TOKEN) {
IWETH(wrappedNativeToken).deposit{ value: amountOut }();
}
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Velodrome pair interface
*/
interface IVelodromePair {
/**
* @dev Returns the Velodrome based pair amount out
* @param amountIn Amount to swap
* @param from Address of the token to swap from
* @return Amount of tokens to receive
*/
function getAmountOut(uint256 amountIn, address from) external view returns (uint256);
/**
* @dev Swaps tokens on a Velodrome based pair
* @param amount0Out Amount of the first token to receive
* @param amount1Out Amount of the second token to receive
* @param to Address to send tokens to
* @param data Data to be send in callback function, if any
*/
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
}
/**
* @title Velodrome library
* @notice Functions to swap tokens on Velodrome and compatible protocols
*/
library Velodrome {
using SafeERC20 for IERC20;
/**
* @dev Performs a swap through a Velodrome based pair
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should contain from token index
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
uint256 fromIndex = abi.decode(swapData.data, (uint256));
amountOut = IVelodromePair(swapData.addr).getAmountOut(amountIn, from);
if (amountOut > 0) {
IERC20(from).safeTransfer(swapData.addr, amountIn);
IVelodromePair(swapData.addr).swap(
fromIndex == 0 ? 0 : amountOut,
fromIndex == 0 ? amountOut : 0,
address(this),
new bytes(0)
);
}
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Vooi pool interface
*/
interface IVooiPool {
/**
* @notice Swap fromToken for toToken, ensures deadline and minimumToAmount and sends quoted amount to `to` address
* @dev This function assumes tax free token.
* @param _fromID The token being inserted into Pool by user for swap
* @param _toID The token wanted by user, leaving the Pool
* @param _fromAmount The amount of from token inserted
* @param _minToAmount The minimum amount that will be accepted by user as result
* @param _to The user receiving the result of swap
* @param _deadline The deadline to be respected
*/
function swap(
uint256 _fromID,
uint256 _toID,
uint256 _fromAmount,
uint256 _minToAmount,
address _to,
uint256 _deadline
) external returns (uint256 actualToAmount, uint256 lpFeeAmount);
}
/**
* @title Vooi library
* @notice Functions to swap tokens on Vooi protocol
*/
library Vooi {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Vooi pool contract
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should be empty
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
(uint8 fromID, uint8 toID) = abi.decode(swapData.data, (uint8, uint8));
IERC20(from).safeIncreaseAllowance(swapData.addr, amountIn);
(amountOut, ) = IVooiPool(swapData.addr).swap(fromID, toID, amountIn, 0, address(this), type(uint256).max);
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title Wombat pool interface
*/
interface IWombatPool {
/**
* @dev Swaps tokens on a Wombat based protocol contract
* @param fromToken Address of a token to swap from
* @param toToken Address of a token to swap to
* @param fromAmount Amount of tokens to swap
* @param minimumToAmount Minimal amount of tokens to receive
* @param to Address to send swapped tokens to
* @param deadline Timestamp after which the transaction will revert
* @return actualToAmount Actual amount of tokens received
* @return haircut Amount of tokens taken as fee
*/
function swap(
address fromToken,
address toToken,
uint256 fromAmount,
uint256 minimumToAmount,
address to,
uint256 deadline
) external returns (uint256 actualToAmount, uint256 haircut);
}
/**
* @title Wombat library
* @notice Functions to swap tokens on Wombat protocol
*/
library Wombat {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a Wombat pool contract
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should be empty
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
IERC20(from).safeIncreaseAllowance(swapData.addr, amountIn);
(amountOut, ) = IWombatPool(swapData.addr).swap(
from,
swapData.to,
amountIn,
0,
address(this),
type(uint256).max
);
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
/**
* @title WooFi pool interface
*/
interface IWooFiPool {
/**
* @dev Swaps tokens on a WooFi based protocol contract
* @param fromToken Address of a token to swap from
* @param toToken Address of a token to swap to
* @param fromAmount Amount of tokens to swap
* @param minToAmount Minimal amount of tokens to receive
* @param to Address to send swapped tokens to
* @param rebateTo The rebate address (optional, can be address ZERO)
* @return realToAmount Amount of tokens received
*/
function swap(
address fromToken,
address toToken,
uint256 fromAmount,
uint256 minToAmount,
address to,
address rebateTo
) external returns (uint256 realToAmount);
}
/**
* @title WooFi library
* @notice Functions to swap tokens on WooFi protocol
*/
library WooFi {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a WooFi pool contract
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should be empty
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
IERC20(from).safeTransfer(swapData.addr, amountIn);
amountOut = IWooFiPool(swapData.addr).swap(from, swapData.to, amountIn, 0, address(this), address(0x0));
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../interfaces/IWowmaxRouter.sol";
import "../interfaces/IWETH.sol";
/**
* @title WETH library
* @notice Functions to swap tokens on WETH contract
*/
library WrappedNative {
using SafeERC20 for IERC20;
/**
* @dev Swaps tokens on a WETH contract
* @param from Address of a token to swap from
* @param amountIn Amount of tokens to swap
* @param swapData Swap operation details. The `data` field should be empty
* @return amountOut Amount of tokens received
*/
function swap(
address from,
uint256 amountIn,
IWowmaxRouter.Swap memory swapData
) internal returns (uint256 amountOut) {
if (from == swapData.addr) {
IWETH(swapData.addr).withdraw(amountIn);
} else {
IWETH(swapData.addr).deposit{ value: amountIn }();
}
amountOut = amountIn;
}
}// SPDX-License-Identifier: BUSL-1.1
pragma solidity =0.8.7;
import "./WowmaxRouter.sol";
import "./interfaces/IWowmaxEvent.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
contract WowmaxEventRouter is WowmaxRouter {
EnumerableSet.AddressSet private events;
using EnumerableSet for EnumerableSet.AddressSet;
constructor(address _weth, address _treasury) WowmaxRouter(_weth, _treasury) {}
function addEvent(address eventManager) external onlyOwner {
events.add(eventManager);
}
function removeEvent(address eventManager) external onlyOwner {
events.remove(eventManager);
}
function swap(
ExchangeRequest calldata request
) public payable override reentrancyProtectedSwap returns (uint256[] memory amountsOut) {
return _swapWithReward(request, address(0));
}
function swapWithReferral(
ExchangeRequest calldata request,
address referral
) public payable reentrancyProtectedSwap returns (uint256[] memory amountsOut) {
return _swapWithReward(request, referral);
}
function _swapWithReward(
ExchangeRequest calldata request,
address referral
) internal returns (uint256[] memory amountsOut) {
amountsOut = _swap(request);
address tokenIn = request.from == address(0) ? address(WETH) : request.from;
uint256 amountIn = request.from == address(0) ? msg.value : request.amountIn;
uint256 eventsCount = events.length();
for (uint256 i = 0; i < eventsCount; i++) {
IWowmaxEvent(events.at(i)).rewardSwap(_msgSender(), tokenIn, amountIn, request.to, amountsOut, referral);
}
}
}// SPDX-License-Identifier: MIT
pragma solidity =0.8.7;
/**
* @dev Contract module that helps prevent reentrant swaps. Based on OpenZeppelin Contracts (last updated v4.8.0)
* (security/ReentrancyGuard.sol)
*/
abstract contract WowmaxSwapReentrancyGuard {
uint256 private constant _SWAP_IN_PROGRESS = 1;
uint256 private constant _SWAP_NOT_IN_PROGRESS = 2;
uint256 private _swapStatus;
/**
* @dev Prevents a contract from calling swap function again from within swap
*/
modifier reentrancyProtectedSwap() {
_beforeSwap();
_;
_afterSwap();
}
/**
* @dev Prevents operation from being called outside of swap
*/
modifier onlyDuringSwap() {
require(_swapStatus == _SWAP_IN_PROGRESS, "WOWMAX: not allowed outside of swap");
_;
}
constructor() {
_swapStatus = _SWAP_NOT_IN_PROGRESS;
}
/**
* @dev checks if swap is in progress and prevents reentrant calls
*/
function _beforeSwap() private {
require(_swapStatus != _SWAP_IN_PROGRESS, "WOWMAX: reentrant swap not allowed");
_swapStatus = _SWAP_IN_PROGRESS;
}
/**
* @dev sets swap status to not in progress
*/
function _afterSwap() private {
_swapStatus = _SWAP_NOT_IN_PROGRESS;
}
}{
"metadata": {
"bytecodeHash": "none",
"useLiteralContent": true
},
"optimizer": {
"enabled": true,
"runs": 800
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"to","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"amountOut","type":"uint256[]"}],"name":"SwapExecuted","type":"event"},{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"contract IWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"algebraSwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"d3MMSwapCallBack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"maverickV2SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"maxFeePercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSlippage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxFeePercentage","type":"uint256"}],"name":"setMaxFeePercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSlippage","type":"uint256"}],"name":"setMaxSlippage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"to","type":"address[]"},{"components":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"parts","type":"uint256"},{"components":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"part","type":"uint256"},{"internalType":"address","name":"addr","type":"address"},{"internalType":"bytes32","name":"family","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct IWowmaxRouterBase.Swap[]","name":"swaps","type":"tuple[]"}],"internalType":"struct IWowmaxRouterBase.ExchangeRoute[]","name":"exchangeRoutes","type":"tuple[]"},{"internalType":"uint256[]","name":"slippage","type":"uint256[]"},{"internalType":"uint256[]","name":"amountOutExpected","type":"uint256[]"}],"internalType":"struct IWowmaxRouterBase.ExchangeRequest","name":"request","type":"tuple"}],"name":"swap","outputs":[{"internalType":"uint256[]","name":"amountsOut","type":"uint256[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountToPay","type":"uint256"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"x","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapX2YCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"y","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"swapY2XCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]Contract Creation Code
608060405260646004556107d06005553480156200001c57600080fd5b50604051620058f7380380620058f78339810160408190526200003f91620001a2565b6200004a3362000135565b60026001556001600160a01b038216620000ab5760405162461bcd60e51b815260206004820152601a60248201527f574f574d41583a2057726f6e672057455448206164647265737300000000000060448201526064015b60405180910390fd5b6001600160a01b038116620001035760405162461bcd60e51b815260206004820152601e60248201527f574f574d41583a2057726f6e67207472656173757279206164647265737300006044820152606401620000a2565b600280546001600160a01b039384166001600160a01b03199182161790915560038054929093169116179055620001da565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200019d57600080fd5b919050565b60008060408385031215620001b657600080fd5b620001c18362000185565b9150620001d16020840162000185565b90509250929050565b61570d80620001ea6000396000f3fe60806040526004361061012c5760003560e01c80638da5cb5b116100a5578063bf654aac11610074578063f14210a611610059578063f14210a61461040f578063f2fde38b1461042f578063f3fef3a31461044f57610133565b8063bf654aac146103d9578063d3e1c284146103ef57610133565b80638da5cb5b1461035b578063923b8a2a14610379578063a66cd09414610399578063ad5c4648146103b957610133565b806343f68a49116100fc57806367ca7c91116100e157806367ca7c9114610302578063715018a6146103225780638c04166f1461033757610133565b806343f68a49146102aa57806361d027b3146102ca57610133565b8062d5a9e81461021f57806318780684146102485780632c8958f61461026a5780633e88c8ab1461028a57610133565b3661013357005b34801561013f57600080fd5b5060018054146101a25760405162461bcd60e51b815260206004820152602360248201527f574f574d41583a206e6f7420616c6c6f776564206f757473696465206f66207360448201526207761760ec1b60648201526084015b60405180910390fd5b60008060003660006101b560003661046f565b945094509450945094508461020c5760405162461bcd60e51b815260206004820152601c60248201527f574f574d41583a20756e737570706f727465642063616c6c6261636b000000006044820152606401610199565b610218848484846104e4565b5050505050005b61023261022d366004614c60565b610634565b60405161023f91906150b9565b60405180910390f35b34801561025457600080fd5b50610268610263366004614c25565b610658565b005b34801561027657600080fd5b50610268610285366004614c25565b6106c0565b34801561029657600080fd5b506102686102a53660046148f0565b610729565b3480156102b657600080fd5b506102686102c5366004614e5b565b610735565b3480156102d657600080fd5b506003546102ea906001600160a01b031681565b6040516001600160a01b03909116815260200161023f565b34801561030e57600080fd5b5061026861031d36600461494c565b610742565b34801561032e57600080fd5b506102686107b0565b34801561034357600080fd5b5061034d60055481565b60405190815260200161023f565b34801561036757600080fd5b506000546001600160a01b03166102ea565b34801561038557600080fd5b50610268610394366004614c25565b6107c4565b3480156103a557600080fd5b506102686103b4366004614e5b565b61082d565b3480156103c557600080fd5b506002546102ea906001600160a01b031681565b3480156103e557600080fd5b5061034d60045481565b3480156103fb57600080fd5b5061026861040a366004614c25565b61083a565b34801561041b57600080fd5b5061026861042a366004614e5b565b6108a2565b34801561043b57600080fd5b5061026861044a36600461488a565b61095d565b34801561045b57600080fd5b5061026861046a3660046148c4565b6109ed565b600080803681600487810135906024808a01359160448b01358b0191820191013580601f811680156104a45780602003820191505b608482018c146104c9576000808080809a509a509a509a509a505050505050506104da565b506001995093975091955093509150505b9295509295909350565b6000841380156104f45750600083125b156105845761057f3385336001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561053757600080fd5b505afa15801561054b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056f91906148a7565b6001600160a01b03169190610a0b565b61062e565b6000841280156105945750600083135b156105d75761057f3384336001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561053757600080fd5b60405162461bcd60e51b815260206004820152602660248201527f574f574d41583a20556e697377617020763320696e76617269616e742076696f6044820152653630ba34b7b760d11b6064820152608401610199565b50505050565b606061063e610a88565b61064782610aeb565b90506106536002600155565b919050565b60018054146106b55760405162461bcd60e51b815260206004820152602360248201527f574f574d41583a206e6f7420616c6c6f776564206f757473696465206f66207360448201526207761760ec1b6064820152608401610199565b61062e848383610c06565b600180541461071d5760405162461bcd60e51b815260206004820152602360248201527f574f574d41583a206e6f7420616c6c6f776564206f757473696465206f66207360448201526207761760ec1b6064820152608401610199565b61062e84848484610c2a565b61062e84848484610d27565b61073d610d3b565b600555565b600180541461079f5760405162461bcd60e51b815260206004820152602360248201527f574f574d41583a206e6f7420616c6c6f776564206f757473696465206f66207360448201526207761760ec1b6064820152608401610199565b6107a98585610d95565b5050505050565b6107b8610d3b565b6107c26000610da9565b565b60018054146108215760405162461bcd60e51b815260206004820152602360248201527f574f574d41583a206e6f7420616c6c6f776564206f757473696465206f66207360448201526207761760ec1b6064820152608401610199565b61062e84848484610e11565b610835610d3b565b600455565b60018054146108975760405162461bcd60e51b815260206004820152602360248201527f574f574d41583a206e6f7420616c6c6f776564206f757473696465206f66207360448201526207761760ec1b6064820152608401610199565b61062e838383610c06565b6108aa610d3b565b6003546040516000916001600160a01b03169083908381818185875af1925050503d80600081146108f7576040519150601f19603f3d011682016040523d82523d6000602084013e6108fc565b606091505b50509050806109595760405162461bcd60e51b8152602060048201526024808201527f576f776d61783a204661696c656420746f2073656e64206e617469766520746f6044820152636b656e7360e01b6064820152608401610199565b5050565b610965610d3b565b6001600160a01b0381166109e15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610199565b6109ea81610da9565b50565b6109f5610d3b565b600354610959906001600160a01b038481169116835b6040516001600160a01b038316602482015260448101829052610a8390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152610ea8565b505050565b600180541415610ae55760405162461bcd60e51b815260206004820152602260248201527f574f574d41583a207265656e7472616e742073776170206e6f7420616c6c6f77604482015261195960f21b6064820152608401610199565b60018055565b6060610af682610f90565b6000610b01836112c4565b905060005b610b1360608501856153d5565b9050811015610b6657610b53610b2c60608601866153d5565b83818110610b3c57610b3c615693565b9050602002810190610b4e919061541f565b6113a3565b5080610b5e8161562f565b915050610b06565b50610b70836114fe565b91506000610b81602085018561488a565b6001600160a01b031614610ba157610b9c602084018461488a565b610bae565b6002546001600160a01b03165b6001600160a01b0316337f25a3ab87780ac0e2eeeb645d408cbc89d66c72590ae0e1f81bda8f3d3a8d121683610be760408801886153d5565b87604051610bf894939291906152ca565b60405180910390a350919050565b6000610c148284018461488a565b905061062e6001600160a01b0382163386610a0b565b600084138015610c3a5750600083125b15610c7d5761057f3385336001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561053757600080fd5b600084128015610c8d5750600083135b15610cd05761057f3384336001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561053757600080fd5b60405162461bcd60e51b815260206004820152602660248201527f574f574d41583a20416c676562726120563120696e76617269616e742076696f6044820152653630ba34b7b760d11b6064820152608401610199565b61062e6001600160a01b0385163385610a0b565b6000546001600160a01b031633146107c25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610199565b6109596001600160a01b0383163383610a0b565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610e1f82840184614ae1565b90508015610e6a57610e653386336001600160a01b0316630fc63d106040518163ffffffff1660e01b815260040160206040518083038186803b15801561053757600080fd5b6107a9565b6107a93386336001600160a01b0316635f64b55b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561053757600080fd5b6000610efd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661197f9092919063ffffffff16565b9050805160001480610f1e575080806020019051810190610f1e9190614afe565b610a835760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610199565b6000610f9f60408301836153d5565b905011610ff95760405162461bcd60e51b815260206004820152602260248201527f574f574d41583a204e6f206f757470757420746f6b656e732073706563696669604482015261195960f21b6064820152608401610199565b61100660a08201826153d5565b905061101560408301836153d5565b90501461108a5760405162461bcd60e51b815260206004820152602660248201527f574f574d41583a2057726f6e6720616d6f756e744f757445787065637465642060448201527f6c656e67746800000000000000000000000000000000000000000000000000006064820152608401610199565b61109760808201826153d5565b90506110a660408301836153d5565b9050146110f55760405162461bcd60e51b815260206004820152601d60248201527f574f574d41583a2057726f6e6720736c697070616765206c656e6774680000006044820152606401610199565b60005b61110560408301836153d5565b905081101561095957600061111d60408401846153d5565b8381811061112d5761112d615693565b9050602002016020810190611142919061488a565b6001600160a01b031614156111a45760405162461bcd60e51b815260206004820152602260248201527f574f574d41583a2057726f6e67206f757470757420746f6b656e206164647265604482015261737360f01b6064820152608401610199565b60006111b360a08401846153d5565b838181106111c3576111c3615693565b905060200201351161123d5760405162461bcd60e51b815260206004820152602560248201527f574f574d41583a2057726f6e6720616d6f756e744f757445787065637465642060448201527f76616c75650000000000000000000000000000000000000000000000000000006064820152608401610199565b60055461124d60808401846153d5565b8381811061125d5761125d615693565b9050602002013511156112b25760405162461bcd60e51b815260206004820152601c60248201527f574f574d41583a20536c69707061676520697320746f6f2068696768000000006044820152606401610199565b806112bc8161562f565b9150506110f8565b6000806000341180156112ec575060006112e1602085018561488a565b6001600160a01b0316145b80156112fa57506020830135155b15611366575060025460408051630d0e30db60e41b8152905134926001600160a01b03169163d0e30db091849160048082019260009290919082900301818588803b15801561134857600080fd5b505af115801561135c573d6000803e3d6000fd5b505050505061139d565b60208301351561139d57506020820180359061139d9033903090849061138c908861488a565b6001600160a01b0316929190611998565b92915050565b6000806113b3602084018461488a565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b1580156113f457600080fd5b505afa158015611408573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142c9190614b1b565b90506000805b61143f60408601866153d5565b90508110156114f6576114d8611458602087018761488a565b602087013561146a60408901896153d5565b8581811061147a5761147a615693565b905060200281019061148c9190615435565b61149a90602001358761552c565b6114a4919061550a565b6114b160408901896153d5565b858181106114c1576114c1615693565b90506020028101906114d39190615435565b6119d0565b6114e290836154f2565b9150806114ee8161562f565b915050611432565b509392505050565b606061150d60408301836153d5565b905067ffffffffffffffff811115611527576115276156a9565b604051908082528060200260200182016040528015611550578160200160208202803683370190505b50905060008060005b61156660408601866153d5565b90508110156119775761157c60408601866153d5565b8281811061158c5761158c615693565b90506020020160208101906115a1919061488a565b91506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611643576040516370a0823160e01b81523060048201526001600160a01b038316906370a082319060240160206040518083038186803b15801561160657600080fd5b505afa15801561161a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163e9190614b1b565b6116be565b6002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561168657600080fd5b505afa15801561169a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116be9190614b1b565b925060006116cf60a08701876153d5565b838181106116df576116df615693565b905060200201358411156117be576116fa60a08701876153d5565b8381811061170a5761170a615693565b905060200201358461171c919061554b565b9050600061271060045486611731919061552c565b61173b919061550a565b90508082111561177557905080611752818661554b565b86848151811061176457611764615693565b6020026020010181815250506117b8565b61178260a08801886153d5565b8481811061179257611792615693565b905060200201358684815181106117ab576117ab615693565b6020026020010181815250505b506118a4565b6127106117ce60808801886153d5565b848181106117de576117de615693565b905060200201356127106117f2919061554b565b6117ff60a08901896153d5565b8581811061180f5761180f615693565b90506020020135611820919061552c565b61182a919061550a565b8410156118845760405162461bcd60e51b815260206004820152602260248201527f574f574d41583a20496e73756666696369656e74206f757470757420616d6f756044820152611b9d60f21b6064820152608401610199565b8385838151811061189757611897615693565b6020026020010181815250505b6001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561192857600254604051632e1a7d4d60e01b8152600481018690526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561190f57600080fd5b505af1158015611923573d6000803e3d6000fd5b505050505b6003546119409084906001600160a01b031683612130565b611964833387858151811061195757611957615693565b6020026020010151612130565b508061196f8161562f565b915050611559565b505050919050565b606061198e8484600085612222565b90505b9392505050565b6040516001600160a01b038085166024830152831660448201526064810182905261062e9085906323b872dd60e01b90608401610a37565b60007f554e49535741505f56330000000000000000000000000000000000000000000082606001351415611a1757611a1083611a0b84615562565b612316565b9050611991565b7f48415348464c4f5700000000000000000000000000000000000000000000000082606001351415611a5657611a108484611a5185615562565b612423565b7f574f4d424154000000000000000000000000000000000000000000000000000082606001351415611a9557611a108484611a9085615562565b6125df565b7f4c4556454c00000000000000000000000000000000000000000000000000000082606001351415611ad457611a108484611acf85615562565b6126aa565b7f444f444f5f56320000000000000000000000000000000000000000000000000082606001351415611b1357611a108484611b0e85615562565b61284e565b7f444f444f5f56330000000000000000000000000000000000000000000000000082606001351415611b5257611a108484611b4d85615562565b612994565b7f574f4f464900000000000000000000000000000000000000000000000000000082606001351415611b9157611a108484611b8c85615562565b612a45565b7f554e49535741505f56320000000000000000000000000000000000000000000082606001351415611bd057611a108484611bcb85615562565b612aba565b7f435552564500000000000000000000000000000000000000000000000000000082606001351415611c0f57611a108484611c0a85615562565b612c49565b7f43555256455f54524943525950544f000000000000000000000000000000000082606001351415611c4e57611a108484611c4985615562565b612e06565b7f50414e43414b45535741505f535441424c45000000000000000000000000000082606001351415611c8d57611a108484611c8885615562565b612f0b565b7f444f444f5f56310000000000000000000000000000000000000000000000000082606001351415611ccc57611a108484611cc785615562565b613022565b7f42414c414e4345525f563200000000000000000000000000000000000000000082606001351415611d0b57611a108484611d0685615562565b613087565b7f4d4156455249434b5f563100000000000000000000000000000000000000000082606001351415611d4957611a1083611d4484615562565b6131ee565b7f534144444c45000000000000000000000000000000000000000000000000000082606001351415611d8857611a108484611d8385615562565b61329b565b7f46554c43524f4d0000000000000000000000000000000000000000000000000082606001351415611dc757611a108484611dc285615562565b6133ab565b7f554e49535741505f56325f524f5554455200000000000000000000000000000082606001351415611e0657611a108484611e0185615562565b61340b565b7f454c41535449430000000000000000000000000000000000000000000000000082606001351415611e4557611a108484611e4085615562565b6135c9565b7f414c47454252415f56310000000000000000000000000000000000000000000082606001351415611e8457611a108484611e7f85615562565b61373c565b7f414c47454252415f56315f39000000000000000000000000000000000000000082606001351415611ebe57611a108484611e7f85615562565b7f53594e435357415000000000000000000000000000000000000000000000000082606001351415611efd57611a108484611ef885615562565b61383e565b63564f4f4960e01b82606001351415611f2357611a108484611f1e85615562565b613a27565b7f56454c4f434f52455f563200000000000000000000000000000000000000000082606001351415611f6f57600254611a10906001600160a01b03168585611f6a86615562565b613b14565b7f495a49535741500000000000000000000000000000000000000000000000000082606001351415611fae57611a108484611fa985615562565b613e3e565b7f56454c4f44524f4d45000000000000000000000000000000000000000000000082606001351415611fed57611a108484611fe885615562565b613f71565b7f575241505045445f4e41544956450000000000000000000000000000000000008260600135141561202c57611a10848461202785615562565b6140d4565b7f4c49515549444954595f424f4f4b5f56325f31000000000000000000000000008260600135141561206b57611a10848461206685615562565b6141be565b7f4d4156455249434b5f5632000000000000000000000000000000000000000000826060013514156120a957611a10836120a484615562565b614332565b7f53574141505f5632000000000000000000000000000000000000000000000000826060013514156120e857611a1084846120e385615562565b61441a565b60405162461bcd60e51b815260206004820152601a60248201527f574f574d41583a20556e6b6e6f776e204445582066616d696c790000000000006044820152606401610199565b8061213a57505050565b6001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561220e576000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146121ac576040519150601f19603f3d011682016040523d82523d6000602084013e6121b1565b606091505b505090508061062e5760405162461bcd60e51b8152602060048201526024808201527f576f776d61783a204661696c656420746f2073656e64206e617469766520746f6044820152636b656e7360e01b6064820152608401610199565b610a836001600160a01b0384168383610a0b565b60608247101561229a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610199565b600080866001600160a01b031685876040516122b69190614f20565b60006040518083038185875af1925050503d80600081146122f3576040519150601f19603f3d011682016040523d82523d6000602084013e6122f8565b606091505b5091509150612309878383876144fe565b925050505b949350505050565b60008082608001518060200190518101906123319190614afe565b90506000816123545773fffd8963efd1fc6a506488495d951d5263988d2561235b565b6401000276a45b604085810151815160008082526020820193849052630251596160e31b909352929350909182916001600160a01b03169063128acb08906123a790309088908c90899060248101614f76565b6040805180830381600087803b1580156123c057600080fd5b505af11580156123d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f89190614c01565b915091508361240f5761240a8261564a565b612418565b6124188161564a565b979650505050505050565b600080826080015180602001905181019061243e9190614c9b565b604084015190915061245b906001600160a01b0387169086614574565b8060e0015184101561246f5760c081018490525b82516040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156124b257600080fd5b505afa1580156124c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ea9190614b1b565b905083604001516001600160a01b031663c52ac720836040518263ffffffff1660e01b815260040161251c919061511b565b600060405180830381600087803b15801561253657600080fd5b505af115801561254a573d6000803e3d6000fd5b505085516040516370a0823160e01b81523060048201528493506001600160a01b0390911691506370a08231906024015b60206040518083038186803b15801561259357600080fd5b505afa1580156125a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125cb9190614b1b565b6125d5919061554b565b9695505050505050565b60408101516000906125fc906001600160a01b0386169085614574565b60408281015183519151639908fc8b60e01b81526001600160a01b0387811660048301529283166024820152604481018690526000606482015230608482015260001960a4820152911690639908fc8b9060c4016040805180830381600087803b15801561266957600080fd5b505af115801561267d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126a19190614c01565b50949350505050565b60408101516000906126c7906001600160a01b0386169085610a0b565b81516040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561270a57600080fd5b505afa15801561271e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127429190614b1b565b6040848101518551825160008082526020820194859052631fa196a960e21b9094529394506001600160a01b0390911692637e865aa49261278d928a92909190309060248101614f3c565b600060405180830381600087803b1580156127a757600080fd5b505af11580156127bb573d6000803e3d6000fd5b505084516040516370a0823160e01b81523060048201528493506001600160a01b0390911691506370a082319060240160206040518083038186803b15801561280357600080fd5b505afa158015612817573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061283b9190614b1b565b612845919061554b565b95945050505050565b604081015160009061286b906001600160a01b0386169085610a0b565b600082608001518060200190518101906128859190614e74565b905060ff8116612915576040808401519051632f58056d60e21b81523060048201526001600160a01b039091169063bd6015b490602401602060405180830381600087803b1580156128d657600080fd5b505af11580156128ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061290e9190614b1b565b91506114f6565b6040808401519051636ec9facd60e11b81523060048201526001600160a01b039091169063dd93f59a90602401602060405180830381600087803b15801561295c57600080fd5b505af1158015612970573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128459190614b1b565b60408082015182519151637597a8d360e11b81523060048201526001600160a01b03868116602483015292831660448201526064810185905260006084820181905260c060a483015260c48201819052929091169063eb2f51a69060e4015b602060405180830381600087803b158015612a0d57600080fd5b505af1158015612a21573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198e9190614b1b565b6040810151600090612a62906001600160a01b0386169085610a0b565b60408281015183519151633ee101c160e11b81526001600160a01b03878116600483015292831660248201526044810186905260006064820181905230608483015260a4820152911690637dc203829060c4016129f3565b6040810151600090612ad7906001600160a01b0386169085610a0b565b60008260800151806020019051810190612af19190614b1b565b90506000856001600160a01b031684604001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015612b3c57600080fd5b505afa158015612b50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b7491906148a7565b6001600160a01b0316149050600080612b91866040015184614630565b91509150612ba1878383876146c9565b94508415612c3e5785604001516001600160a01b031663022c0d9f84612bc75786612bca565b60005b85612bd6576000612bd8565b875b604080516000815260208101918290526001600160e01b031960e086901b16909152612c0b9291903090602481016153a7565b600060405180830381600087803b158015612c2557600080fd5b505af1158015612c39573d6000803e3d6000fd5b505050505b505050509392505050565b60008060008360800151806020019051810190612c669190614bab565b85516040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a082319060240160206040518083038186803b158015612cb157600080fd5b505afa158015612cc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ce99190614b1b565b6040860151909150612d06906001600160a01b0389169088614574565b6040808601519051630f7c084960e21b8152600f85810b600483015284900b602482015260448101889052600060648201526001600160a01b0390911690633df02124906084015b600060405180830381600087803b158015612d6857600080fd5b505af1158015612d7c573d6000803e3d6000fd5b505086516040516370a0823160e01b81523060048201528493506001600160a01b0390911691506370a082319060240160206040518083038186803b158015612dc457600080fd5b505afa158015612dd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dfc9190614b1b565b612418919061554b565b60008060008360800151806020019051810190612e239190614c01565b85516040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a082319060240160206040518083038186803b158015612e6e57600080fd5b505afa158015612e82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea69190614b1b565b6040860151909150612ec3906001600160a01b0389169088614574565b6040808601519051630b68372160e31b8152600481018590526024810184905260448101889052600060648201526001600160a01b0390911690635b41b90890608401612d4e565b60008060008360800151806020019051810190612f289190614bab565b85516040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a082319060240160206040518083038186803b158015612f7357600080fd5b505afa158015612f87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fab9190614b1b565b6040860151909150612fc8906001600160a01b0389169088614574565b6040808601519051630b68372160e31b81526fffffffffffffffffffffffffffffffff80861660048301528416602482015260448101889052600060648201526001600160a01b0390911690635b41b90890608401612d4e565b604081015160009061303f906001600160a01b0386169085614574565b6040808301519051638dae733360e01b8152600481018590526000602482018190526060604483015260648201526001600160a01b0390911690638dae7333906084016129f3565b600080600083608001518060200190518101906130a49190614b34565b9150915060006040518060c00160405280848152602001600060018111156130ce576130ce61567d565b81526001600160a01b03808a16602083015287511660408201526060810188905260800160006040519080825280601f01601f19166020018201604052801561311e576020820181803683370190505b509052604080516080810182523080825260006020830181905292820152606081019190915290915061315b6001600160a01b0389168489614574565b6040516352bbbe2960e01b81526001600160a01b038416906352bbbe299061319090859085906000906000199060040161520d565b602060405180830381600087803b1580156131aa57600080fd5b505af11580156131be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131e29190614b1b565b98975050505050505050565b60008082608001518060200190518101906132099190614afe565b905082604001516001600160a01b031663c51c902930868460008089608001516040518763ffffffff1660e01b815260040161324a9695949392919061507b565b6040805180830381600087803b15801561326357600080fd5b505af1158015613277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128459190614c01565b600080600083608001518060200190518101906132b89190614e8f565b85516040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a082319060240160206040518083038186803b15801561330357600080fd5b505afa158015613317573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061333b9190614b1b565b6040860151909150613358906001600160a01b0389169088614574565b60408086015190516348b4aac360e11b815260ff808616600483015284166024820152604481018890526000606482015260001960848201526001600160a01b039091169063916955869060a401612d4e565b60408101516000906133c8906001600160a01b0386169085610a0b565b60408281015183519151634998b10960e11b81526001600160a01b03878116600483015292831660248201523060448201529116906393316212906064016129f3565b60008082604001516001600160a01b031663f887ea406040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561344d57600080fd5b505af1158015613461573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061348591906148a7565b905061349b6001600160a01b0386168286614574565b60408051600280825260608201835260009260208301908036833701905050905085816000815181106134d0576134d0615693565b60200260200101906001600160a01b031690816001600160a01b03168152505083600001518160018151811061350857613508615693565b6001600160a01b0392831660209182029290920101526040516338ed173960e01b8152908316906338ed17399061354e9088906000908690309060001990600401615336565b600060405180830381600087803b15801561356857600080fd5b505af115801561357c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526135a49190810190614a55565b6001815181106135b6576135b6615693565b6020026020010151925050509392505050565b60008082604001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561360957600080fd5b505afa15801561361d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061364191906148a7565b6001600160a01b0316856001600160a01b03161490506000816136785773fffd8963efd1fc6a506488495d951d5263988d2561367f565b6401000276a45b60408581015181516000808252602082019384905263092cc68360e21b909352929350909182916001600160a01b0316906324b31a0c906136cb9030908b908990899060248101614fb0565b6040805180830381600087803b1580156136e457600080fd5b505af11580156136f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061371c9190614c01565b91509150836137335761372e8261564a565b6131e2565b6131e28161564a565b60008082604001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561377c57600080fd5b505afa158015613790573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137b491906148a7565b6001600160a01b0316856001600160a01b03161490506000816137eb5773fffd8963efd1fc6a506488495d951d5263988d256137f2565b6401000276a45b604085810151815160008082526020820193849052630251596160e31b909352929350909182916001600160a01b03169063128acb08906136cb90309088908c90899060248101614f76565b60008082604001516001600160a01b031663fbfa77cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561387e57600080fd5b505afa158015613892573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138b691906148a7565b90506138cc6001600160a01b0386168286610a0b565b6040838101519051631f2c13e160e31b81526001600160a01b03878116600483015291821660248201529082169063f9609f0890604401602060405180830381600087803b15801561391d57600080fd5b505af1158015613931573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139559190614b1b565b50604080516001600160a01b03878116602083015230828401526002606080840191909152835180840390910181526080830180855287850151600080835260a0860196879052637132bb7f60e01b9096529194939190921691637132bb7f916139c79186918691829160a4016150cc565b6040805180830381600087803b1580156139e057600080fd5b505af11580156139f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a189190614db3565b60200151979650505050505050565b60008060008360800151806020019051810190613a449190614e8f565b60408601519193509150613a63906001600160a01b0388169087614574565b60408085015190516347b5ef5560e11b815260ff808516600483015283166024820152604481018790526000606482015230608482015260001960a48201526001600160a01b0390911690638f6bdeaa9060c4015b6040805180830381600087803b158015613ad157600080fd5b505af1158015613ae5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b099190614c01565b509695505050505050565b6000808260800151806020019051810190613b2f91906148a7565b90508060006001600160a01b0387811690891614613b4d5786613b50565b60005b90506000886001600160a01b031686600001516001600160a01b031614613b78578551613b7b565b60005b905060606001600160a01b038316613cbd57604051632e1a7d4d60e01b8152600481018990526001600160a01b038b1690632e1a7d4d90602401600060405180830381600087803b158015613bcf57600080fd5b505af1158015613be3573d6000803e3d6000fd5b50505060408089015190516342f3185360e11b81526001600160a01b039182166004820152600060248201819052868316604483015260648201819052600f8c900b608483015285831660a4830152600160c483015260e4820181905261012061010483015261012482015290861691506385e630a6908a90610144016000604051808303818588803b158015613c7957600080fd5b505af1158015613c8d573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052613cb691908101906149b6565b9050613da1565b613cd16001600160a01b038416858a614574565b60408781015190516342f3185360e11b81526001600160a01b039182166004820152600060248201819052858316604483015260648201819052600f8b900b608483015284831660a4830152600160c483015260e48201819052610120610104830152610124820152908516906385e630a69061014401600060405180830381600087803b158015613d6257600080fd5b505af1158015613d76573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613d9e91908101906149b6565b90505b80600181518110613db457613db4615693565b6020026020010151600f0b955060006001600160a01b0316826001600160a01b03161415613e3157896001600160a01b031663d0e30db0876040518263ffffffff1660e01b81526004016000604051808303818588803b158015613e1757600080fd5b505af1158015613e2b573d6000803e3d6000fd5b50505050505b5050505050949350505050565b6000808260800151806020019051810190613e599190614bde565b604080516001600160a01b038816602082015291925060009101604051602081830303815290604052905083600001516001600160a01b0316866001600160a01b03161015613f325783604001516001600160a01b031663857f812f308785856040518563ffffffff1660e01b8152600401613ed89493929190615038565b6040805180830381600087803b158015613ef157600080fd5b505af1158015613f05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f299190614c01565b9350613f689050565b83604001516001600160a01b0316632c481252308785856040518563ffffffff1660e01b8152600401613ab89493929190615038565b50509392505050565b6000808260800151806020019051810190613f8c9190614b1b565b60408085015190516378a051ad60e11b8152600481018790526001600160a01b03888116602483015292935091169063f140a35a9060440160206040518083038186803b158015613fdc57600080fd5b505afa158015613ff0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140149190614b1b565b915081156114f6576040830151614036906001600160a01b0387169086610a0b565b60408301516001600160a01b031663022c0d9f82156140555783614058565b60005b8315614065576000614067565b845b604080516000815260208101918290526001600160e01b031960e086901b1690915261409a9291903090602481016153a7565b600060405180830381600087803b1580156140b457600080fd5b505af11580156140c8573d6000803e3d6000fd5b50505050509392505050565b600081604001516001600160a01b0316846001600160a01b0316141561415d5781604001516001600160a01b0316632e1a7d4d846040518263ffffffff1660e01b815260040161412691815260200190565b600060405180830381600087803b15801561414057600080fd5b505af1158015614154573d6000803e3d6000fd5b505050506141b6565b81604001516001600160a01b031663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b15801561419c57600080fd5b505af11580156141b0573d6000803e3d6000fd5b50505050505b509092915050565b60008082608001518060200190518101906141d99190614b1b565b83516040516370a0823160e01b815230600482015260019290921492506000916001600160a01b03909116906370a082319060240160206040518083038186803b15801561422657600080fd5b505afa15801561423a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061425e9190614b1b565b604085015190915061427b906001600160a01b0388169087610a0b565b604080850151905163029e02cd60e51b815283151560048201523060248201526001600160a01b03909116906353c059a090604401602060405180830381600087803b1580156142ca57600080fd5b505af11580156142de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143029190614b1b565b5083516040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240161257b565b600080826080015180602001905181019061434d9190614afe565b905060008161436157637fffffff19614367565b637fffffff5b60408051608080820183528882528515156020830152600082840152600384900b606083015287830151908801519251633eece7db60e01b815293945090926001600160a01b0390911691633eece7db916143c9913091869190600401614fea565b6040805180830381600087803b1580156143e257600080fd5b505af11580156143f6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124189190614c01565b600080600083608001518060200190518101906144379190614b64565b9150915060006040518060c00160405280848152602001600060018111156144615761446161567d565b81526001600160a01b03808a166020808401829052895190921660408085019190915260608085018c9052608094850188905281519485018252308086526000948601859052858301528401929092529088015192935090916144c5919089614574565b85604001516001600160a01b03166352bbbe29838360006000196040518563ffffffff1660e01b8152600401613190949392919061520d565b6060831561456a578251614563576001600160a01b0385163b6145635760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610199565b508161230e565b61230e8383614737565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e9060440160206040518083038186803b1580156145bf57600080fd5b505afa1580156145d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145f79190614b1b565b905061062e8463095ea7b360e01b8561461086866154f2565b6040516001600160a01b0390921660248301526044820152606401610a37565b600080600080856001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561466f57600080fd5b505afa158015614683573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146a79190614e0b565b5091509150846146b85780826146bb565b81815b9350935050505b9250929050565b6000806146d88361271061554b565b6146e2908761552c565b905060006147006dffffffffffffffffffffffffffff86168361552c565b90506000826147216127106dffffffffffffffffffffffffffff8a1661552c565b61472b91906154f2565b90506131e2818361550a565b8151156147475781518083602001fd5b8060405162461bcd60e51b81526004016101999190615108565b8051610653816156dd565b60008083601f84011261477e57600080fd5b50813567ffffffffffffffff81111561479657600080fd5b6020830191508360208285010111156146c257600080fd5b600082601f8301126147bf57600080fd5b81356147d26147cd826154ca565b615475565b8181528460208386010111156147e757600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261481557600080fd5b81516148236147cd826154ca565b81815284602083860101111561483857600080fd5b61230e826020830160208701615603565b8051600f81900b811461065357600080fd5b80516dffffffffffffffffffffffffffff8116811461065357600080fd5b805160ff8116811461065357600080fd5b60006020828403121561489c57600080fd5b8135611991816156dd565b6000602082840312156148b957600080fd5b8151611991816156dd565b600080604083850312156148d757600080fd5b82356148e2816156dd565b946020939093013593505050565b6000806000806060858703121561490657600080fd5b8435614911816156dd565b935060208501359250604085013567ffffffffffffffff81111561493457600080fd5b6149408782880161476c565b95989497509550505050565b60008060008060006080868803121561496457600080fd5b853561496f816156dd565b94506020860135935060408601359250606086013567ffffffffffffffff81111561499957600080fd5b6149a58882890161476c565b969995985093965092949392505050565b600060208083850312156149c957600080fd5b825167ffffffffffffffff8111156149e057600080fd5b8301601f810185136149f157600080fd5b80516149ff6147cd826154a6565b80828252848201915084840188868560051b8701011115614a1f57600080fd5b600094505b83851015614a4957614a3581614849565b835260019490940193918501918501614a24565b50979650505050505050565b60006020808385031215614a6857600080fd5b825167ffffffffffffffff811115614a7f57600080fd5b8301601f81018513614a9057600080fd5b8051614a9e6147cd826154a6565b80828252848201915084840188868560051b8701011115614abe57600080fd5b600094505b83851015614a49578051835260019490940193918501918501614ac3565b600060208284031215614af357600080fd5b8135611991816156f2565b600060208284031215614b1057600080fd5b8151611991816156f2565b600060208284031215614b2d57600080fd5b5051919050565b60008060408385031215614b4757600080fd5b825191506020830151614b59816156dd565b809150509250929050565b60008060408385031215614b7757600080fd5b82519150602083015167ffffffffffffffff811115614b9557600080fd5b614ba185828601614804565b9150509250929050565b60008060408385031215614bbe57600080fd5b614bc783614849565b9150614bd560208401614849565b90509250929050565b600060208284031215614bf057600080fd5b81518060020b811461199157600080fd5b60008060408385031215614c1457600080fd5b505080516020909101519092909150565b60008060008060608587031215614c3b57600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561493457600080fd5b600060208284031215614c7257600080fd5b813567ffffffffffffffff811115614c8957600080fd5b820160c0818503121561199157600080fd5b600060208284031215614cad57600080fd5b815167ffffffffffffffff80821115614cc557600080fd5b908301906101a08286031215614cda57600080fd5b614ce261544b565b614ceb83614761565b8152614cf960208401614761565b6020820152614d0a60408401614761565b6040820152614d1b60608401614761565b6060820152614d2c60808401614761565b6080820152614d3d60a08401614761565b60a082015260c0838101519082015260e0808401519082015261010080840151908201526101208084015190820152610140808401519082015261016080840151908201526101808084015183811115614d9657600080fd5b614da288828701614804565b918301919091525095945050505050565b600060408284031215614dc557600080fd5b6040516040810181811067ffffffffffffffff82111715614de857614de86156a9565b6040528251614df6816156dd565b81526020928301519281019290925250919050565b600080600060608486031215614e2057600080fd5b614e298461485b565b9250614e376020850161485b565b9150604084015163ffffffff81168114614e5057600080fd5b809150509250925092565b600060208284031215614e6d57600080fd5b5035919050565b600060208284031215614e8657600080fd5b61199182614879565b60008060408385031215614ea257600080fd5b614eab83614879565b9150614bd560208401614879565b600081518084526020808501945080840160005b83811015614ee957815187529582019590820190600101614ecd565b509495945050505050565b60008151808452614f0c816020860160208601615603565b601f01601f19169290920160200192915050565b60008251614f32818460208701615603565b9190910192915050565b60006001600160a01b038088168352808716602084015285604084015280851660608401525060a0608083015261241860a0830184614ef4565b60006001600160a01b038088168352861515602084015285604084015280851660608401525060a0608083015261241860a0830184614ef4565b60006001600160a01b038088168352866020840152851515604084015280851660608401525060a0608083015261241860a0830184614ef4565b6001600160a01b038416815282516020820152602083015115156040820152604083015115156060820152606083015160030b608082015260c060a0820152600061284560c0830184614ef4565b6001600160a01b03851681526fffffffffffffffffffffffffffffffff841660208201528260020b60408201526080606082015260006125d56080830184614ef4565b6001600160a01b03871681528560208201528415156040820152831515606082015282608082015260c060a082015260006131e260c0830184614ef4565b6020815260006119916020830184614eb9565b6080815260006150df6080830187614ef4565b6001600160a01b0386811660208501528516604084015282810360608401526124188185614ef4565b6020815260006119916020830184614ef4565b602081526151356020820183516001600160a01b03169052565b6000602083015161515160408401826001600160a01b03169052565b5060408301516001600160a01b03811660608401525060608301516001600160a01b03811660808401525060808301516001600160a01b03811660a08401525060a08301516001600160a01b03811660c08401525060c083015160e08381019190915283015161010080840191909152830151610120808401919091528301516101408084019190915283015161016080840191909152830151610180808401919091528301516101a08084015261230e6101c0840182614ef4565b60e08152845160e082015260006020860151615228816156bf565b61010083015260408601516001600160a01b03908116610120840152606087015116610140830152608086015161016083015260a086015160c06101808401526152766101a0840182614ef4565b9150506152b860208301866001600160a01b03808251168352602082015115156020840152806040830151166040840152506060810151151560608301525050565b60a082019390935260c0015292915050565b84815260606020808301829052908201849052600090859060808401835b878110156153165783356152fb816156dd565b6001600160a01b0316825292820192908201906001016152e8565b5084810360408601526153298187614eb9565b9998505050505050505050565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156153865784516001600160a01b031683529383019391830191600101615361565b50506001600160a01b03969096166060850152505050608001529392505050565b8481528360208201526001600160a01b03831660408201526080606082015260006125d56080830184614ef4565b6000808335601e198436030181126153ec57600080fd5b83018035915067ffffffffffffffff82111561540757600080fd5b6020019150600581901b36038213156146c257600080fd5b60008235605e19833603018112614f3257600080fd5b60008235609e19833603018112614f3257600080fd5b6040516101a0810167ffffffffffffffff8111828210171561546f5761546f6156a9565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561549e5761549e6156a9565b604052919050565b600067ffffffffffffffff8211156154c0576154c06156a9565b5060051b60200190565b600067ffffffffffffffff8211156154e4576154e46156a9565b50601f01601f191660200190565b6000821982111561550557615505615667565b500190565b60008261552757634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561554657615546615667565b500290565b60008282101561555d5761555d615667565b500390565b600060a0823603121561557457600080fd5b60405160a0810167ffffffffffffffff8282108183111715615598576155986156a9565b81604052843591506155a9826156dd565b81835260208501356020840152604085013591506155c6826156dd565b8160408401526060850135606084015260808501359150808211156155ea57600080fd5b506155f7368286016147ae565b60808301525092915050565b60005b8381101561561e578181015183820152602001615606565b8381111561062e5750506000910152565b600060001982141561564357615643615667565b5060010190565b6000600160ff1b82141561566057615660615667565b5060000390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600281106109ea57634e487b7160e01b600052602160045260246000fd5b6001600160a01b03811681146109ea57600080fd5b80151581146109ea57600080fdfea164736f6c6343000807000a0000000000000000000000005555555555555555555555555555555555555555000000000000000000000000bd4a0f12293c54e4e8ad221271cf0d395dd60a71
Deployed Bytecode
0x60806040526004361061012c5760003560e01c80638da5cb5b116100a5578063bf654aac11610074578063f14210a611610059578063f14210a61461040f578063f2fde38b1461042f578063f3fef3a31461044f57610133565b8063bf654aac146103d9578063d3e1c284146103ef57610133565b80638da5cb5b1461035b578063923b8a2a14610379578063a66cd09414610399578063ad5c4648146103b957610133565b806343f68a49116100fc57806367ca7c91116100e157806367ca7c9114610302578063715018a6146103225780638c04166f1461033757610133565b806343f68a49146102aa57806361d027b3146102ca57610133565b8062d5a9e81461021f57806318780684146102485780632c8958f61461026a5780633e88c8ab1461028a57610133565b3661013357005b34801561013f57600080fd5b5060018054146101a25760405162461bcd60e51b815260206004820152602360248201527f574f574d41583a206e6f7420616c6c6f776564206f757473696465206f66207360448201526207761760ec1b60648201526084015b60405180910390fd5b60008060003660006101b560003661046f565b945094509450945094508461020c5760405162461bcd60e51b815260206004820152601c60248201527f574f574d41583a20756e737570706f727465642063616c6c6261636b000000006044820152606401610199565b610218848484846104e4565b5050505050005b61023261022d366004614c60565b610634565b60405161023f91906150b9565b60405180910390f35b34801561025457600080fd5b50610268610263366004614c25565b610658565b005b34801561027657600080fd5b50610268610285366004614c25565b6106c0565b34801561029657600080fd5b506102686102a53660046148f0565b610729565b3480156102b657600080fd5b506102686102c5366004614e5b565b610735565b3480156102d657600080fd5b506003546102ea906001600160a01b031681565b6040516001600160a01b03909116815260200161023f565b34801561030e57600080fd5b5061026861031d36600461494c565b610742565b34801561032e57600080fd5b506102686107b0565b34801561034357600080fd5b5061034d60055481565b60405190815260200161023f565b34801561036757600080fd5b506000546001600160a01b03166102ea565b34801561038557600080fd5b50610268610394366004614c25565b6107c4565b3480156103a557600080fd5b506102686103b4366004614e5b565b61082d565b3480156103c557600080fd5b506002546102ea906001600160a01b031681565b3480156103e557600080fd5b5061034d60045481565b3480156103fb57600080fd5b5061026861040a366004614c25565b61083a565b34801561041b57600080fd5b5061026861042a366004614e5b565b6108a2565b34801561043b57600080fd5b5061026861044a36600461488a565b61095d565b34801561045b57600080fd5b5061026861046a3660046148c4565b6109ed565b600080803681600487810135906024808a01359160448b01358b0191820191013580601f811680156104a45780602003820191505b608482018c146104c9576000808080809a509a509a509a509a505050505050506104da565b506001995093975091955093509150505b9295509295909350565b6000841380156104f45750600083125b156105845761057f3385336001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561053757600080fd5b505afa15801561054b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056f91906148a7565b6001600160a01b03169190610a0b565b61062e565b6000841280156105945750600083135b156105d75761057f3384336001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561053757600080fd5b60405162461bcd60e51b815260206004820152602660248201527f574f574d41583a20556e697377617020763320696e76617269616e742076696f6044820152653630ba34b7b760d11b6064820152608401610199565b50505050565b606061063e610a88565b61064782610aeb565b90506106536002600155565b919050565b60018054146106b55760405162461bcd60e51b815260206004820152602360248201527f574f574d41583a206e6f7420616c6c6f776564206f757473696465206f66207360448201526207761760ec1b6064820152608401610199565b61062e848383610c06565b600180541461071d5760405162461bcd60e51b815260206004820152602360248201527f574f574d41583a206e6f7420616c6c6f776564206f757473696465206f66207360448201526207761760ec1b6064820152608401610199565b61062e84848484610c2a565b61062e84848484610d27565b61073d610d3b565b600555565b600180541461079f5760405162461bcd60e51b815260206004820152602360248201527f574f574d41583a206e6f7420616c6c6f776564206f757473696465206f66207360448201526207761760ec1b6064820152608401610199565b6107a98585610d95565b5050505050565b6107b8610d3b565b6107c26000610da9565b565b60018054146108215760405162461bcd60e51b815260206004820152602360248201527f574f574d41583a206e6f7420616c6c6f776564206f757473696465206f66207360448201526207761760ec1b6064820152608401610199565b61062e84848484610e11565b610835610d3b565b600455565b60018054146108975760405162461bcd60e51b815260206004820152602360248201527f574f574d41583a206e6f7420616c6c6f776564206f757473696465206f66207360448201526207761760ec1b6064820152608401610199565b61062e838383610c06565b6108aa610d3b565b6003546040516000916001600160a01b03169083908381818185875af1925050503d80600081146108f7576040519150601f19603f3d011682016040523d82523d6000602084013e6108fc565b606091505b50509050806109595760405162461bcd60e51b8152602060048201526024808201527f576f776d61783a204661696c656420746f2073656e64206e617469766520746f6044820152636b656e7360e01b6064820152608401610199565b5050565b610965610d3b565b6001600160a01b0381166109e15760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610199565b6109ea81610da9565b50565b6109f5610d3b565b600354610959906001600160a01b038481169116835b6040516001600160a01b038316602482015260448101829052610a8390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152610ea8565b505050565b600180541415610ae55760405162461bcd60e51b815260206004820152602260248201527f574f574d41583a207265656e7472616e742073776170206e6f7420616c6c6f77604482015261195960f21b6064820152608401610199565b60018055565b6060610af682610f90565b6000610b01836112c4565b905060005b610b1360608501856153d5565b9050811015610b6657610b53610b2c60608601866153d5565b83818110610b3c57610b3c615693565b9050602002810190610b4e919061541f565b6113a3565b5080610b5e8161562f565b915050610b06565b50610b70836114fe565b91506000610b81602085018561488a565b6001600160a01b031614610ba157610b9c602084018461488a565b610bae565b6002546001600160a01b03165b6001600160a01b0316337f25a3ab87780ac0e2eeeb645d408cbc89d66c72590ae0e1f81bda8f3d3a8d121683610be760408801886153d5565b87604051610bf894939291906152ca565b60405180910390a350919050565b6000610c148284018461488a565b905061062e6001600160a01b0382163386610a0b565b600084138015610c3a5750600083125b15610c7d5761057f3385336001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561053757600080fd5b600084128015610c8d5750600083135b15610cd05761057f3384336001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561053757600080fd5b60405162461bcd60e51b815260206004820152602660248201527f574f574d41583a20416c676562726120563120696e76617269616e742076696f6044820152653630ba34b7b760d11b6064820152608401610199565b61062e6001600160a01b0385163385610a0b565b6000546001600160a01b031633146107c25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610199565b6109596001600160a01b0383163383610a0b565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000610e1f82840184614ae1565b90508015610e6a57610e653386336001600160a01b0316630fc63d106040518163ffffffff1660e01b815260040160206040518083038186803b15801561053757600080fd5b6107a9565b6107a93386336001600160a01b0316635f64b55b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561053757600080fd5b6000610efd826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661197f9092919063ffffffff16565b9050805160001480610f1e575080806020019051810190610f1e9190614afe565b610a835760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610199565b6000610f9f60408301836153d5565b905011610ff95760405162461bcd60e51b815260206004820152602260248201527f574f574d41583a204e6f206f757470757420746f6b656e732073706563696669604482015261195960f21b6064820152608401610199565b61100660a08201826153d5565b905061101560408301836153d5565b90501461108a5760405162461bcd60e51b815260206004820152602660248201527f574f574d41583a2057726f6e6720616d6f756e744f757445787065637465642060448201527f6c656e67746800000000000000000000000000000000000000000000000000006064820152608401610199565b61109760808201826153d5565b90506110a660408301836153d5565b9050146110f55760405162461bcd60e51b815260206004820152601d60248201527f574f574d41583a2057726f6e6720736c697070616765206c656e6774680000006044820152606401610199565b60005b61110560408301836153d5565b905081101561095957600061111d60408401846153d5565b8381811061112d5761112d615693565b9050602002016020810190611142919061488a565b6001600160a01b031614156111a45760405162461bcd60e51b815260206004820152602260248201527f574f574d41583a2057726f6e67206f757470757420746f6b656e206164647265604482015261737360f01b6064820152608401610199565b60006111b360a08401846153d5565b838181106111c3576111c3615693565b905060200201351161123d5760405162461bcd60e51b815260206004820152602560248201527f574f574d41583a2057726f6e6720616d6f756e744f757445787065637465642060448201527f76616c75650000000000000000000000000000000000000000000000000000006064820152608401610199565b60055461124d60808401846153d5565b8381811061125d5761125d615693565b9050602002013511156112b25760405162461bcd60e51b815260206004820152601c60248201527f574f574d41583a20536c69707061676520697320746f6f2068696768000000006044820152606401610199565b806112bc8161562f565b9150506110f8565b6000806000341180156112ec575060006112e1602085018561488a565b6001600160a01b0316145b80156112fa57506020830135155b15611366575060025460408051630d0e30db60e41b8152905134926001600160a01b03169163d0e30db091849160048082019260009290919082900301818588803b15801561134857600080fd5b505af115801561135c573d6000803e3d6000fd5b505050505061139d565b60208301351561139d57506020820180359061139d9033903090849061138c908861488a565b6001600160a01b0316929190611998565b92915050565b6000806113b3602084018461488a565b6040516370a0823160e01b81523060048201526001600160a01b0391909116906370a082319060240160206040518083038186803b1580156113f457600080fd5b505afa158015611408573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142c9190614b1b565b90506000805b61143f60408601866153d5565b90508110156114f6576114d8611458602087018761488a565b602087013561146a60408901896153d5565b8581811061147a5761147a615693565b905060200281019061148c9190615435565b61149a90602001358761552c565b6114a4919061550a565b6114b160408901896153d5565b858181106114c1576114c1615693565b90506020028101906114d39190615435565b6119d0565b6114e290836154f2565b9150806114ee8161562f565b915050611432565b509392505050565b606061150d60408301836153d5565b905067ffffffffffffffff811115611527576115276156a9565b604051908082528060200260200182016040528015611550578160200160208202803683370190505b50905060008060005b61156660408601866153d5565b90508110156119775761157c60408601866153d5565b8281811061158c5761158c615693565b90506020020160208101906115a1919061488a565b91506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee14611643576040516370a0823160e01b81523060048201526001600160a01b038316906370a082319060240160206040518083038186803b15801561160657600080fd5b505afa15801561161a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163e9190614b1b565b6116be565b6002546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561168657600080fd5b505afa15801561169a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116be9190614b1b565b925060006116cf60a08701876153d5565b838181106116df576116df615693565b905060200201358411156117be576116fa60a08701876153d5565b8381811061170a5761170a615693565b905060200201358461171c919061554b565b9050600061271060045486611731919061552c565b61173b919061550a565b90508082111561177557905080611752818661554b565b86848151811061176457611764615693565b6020026020010181815250506117b8565b61178260a08801886153d5565b8481811061179257611792615693565b905060200201358684815181106117ab576117ab615693565b6020026020010181815250505b506118a4565b6127106117ce60808801886153d5565b848181106117de576117de615693565b905060200201356127106117f2919061554b565b6117ff60a08901896153d5565b8581811061180f5761180f615693565b90506020020135611820919061552c565b61182a919061550a565b8410156118845760405162461bcd60e51b815260206004820152602260248201527f574f574d41583a20496e73756666696369656e74206f757470757420616d6f756044820152611b9d60f21b6064820152608401610199565b8385838151811061189757611897615693565b6020026020010181815250505b6001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561192857600254604051632e1a7d4d60e01b8152600481018690526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b15801561190f57600080fd5b505af1158015611923573d6000803e3d6000fd5b505050505b6003546119409084906001600160a01b031683612130565b611964833387858151811061195757611957615693565b6020026020010151612130565b508061196f8161562f565b915050611559565b505050919050565b606061198e8484600085612222565b90505b9392505050565b6040516001600160a01b038085166024830152831660448201526064810182905261062e9085906323b872dd60e01b90608401610a37565b60007f554e49535741505f56330000000000000000000000000000000000000000000082606001351415611a1757611a1083611a0b84615562565b612316565b9050611991565b7f48415348464c4f5700000000000000000000000000000000000000000000000082606001351415611a5657611a108484611a5185615562565b612423565b7f574f4d424154000000000000000000000000000000000000000000000000000082606001351415611a9557611a108484611a9085615562565b6125df565b7f4c4556454c00000000000000000000000000000000000000000000000000000082606001351415611ad457611a108484611acf85615562565b6126aa565b7f444f444f5f56320000000000000000000000000000000000000000000000000082606001351415611b1357611a108484611b0e85615562565b61284e565b7f444f444f5f56330000000000000000000000000000000000000000000000000082606001351415611b5257611a108484611b4d85615562565b612994565b7f574f4f464900000000000000000000000000000000000000000000000000000082606001351415611b9157611a108484611b8c85615562565b612a45565b7f554e49535741505f56320000000000000000000000000000000000000000000082606001351415611bd057611a108484611bcb85615562565b612aba565b7f435552564500000000000000000000000000000000000000000000000000000082606001351415611c0f57611a108484611c0a85615562565b612c49565b7f43555256455f54524943525950544f000000000000000000000000000000000082606001351415611c4e57611a108484611c4985615562565b612e06565b7f50414e43414b45535741505f535441424c45000000000000000000000000000082606001351415611c8d57611a108484611c8885615562565b612f0b565b7f444f444f5f56310000000000000000000000000000000000000000000000000082606001351415611ccc57611a108484611cc785615562565b613022565b7f42414c414e4345525f563200000000000000000000000000000000000000000082606001351415611d0b57611a108484611d0685615562565b613087565b7f4d4156455249434b5f563100000000000000000000000000000000000000000082606001351415611d4957611a1083611d4484615562565b6131ee565b7f534144444c45000000000000000000000000000000000000000000000000000082606001351415611d8857611a108484611d8385615562565b61329b565b7f46554c43524f4d0000000000000000000000000000000000000000000000000082606001351415611dc757611a108484611dc285615562565b6133ab565b7f554e49535741505f56325f524f5554455200000000000000000000000000000082606001351415611e0657611a108484611e0185615562565b61340b565b7f454c41535449430000000000000000000000000000000000000000000000000082606001351415611e4557611a108484611e4085615562565b6135c9565b7f414c47454252415f56310000000000000000000000000000000000000000000082606001351415611e8457611a108484611e7f85615562565b61373c565b7f414c47454252415f56315f39000000000000000000000000000000000000000082606001351415611ebe57611a108484611e7f85615562565b7f53594e435357415000000000000000000000000000000000000000000000000082606001351415611efd57611a108484611ef885615562565b61383e565b63564f4f4960e01b82606001351415611f2357611a108484611f1e85615562565b613a27565b7f56454c4f434f52455f563200000000000000000000000000000000000000000082606001351415611f6f57600254611a10906001600160a01b03168585611f6a86615562565b613b14565b7f495a49535741500000000000000000000000000000000000000000000000000082606001351415611fae57611a108484611fa985615562565b613e3e565b7f56454c4f44524f4d45000000000000000000000000000000000000000000000082606001351415611fed57611a108484611fe885615562565b613f71565b7f575241505045445f4e41544956450000000000000000000000000000000000008260600135141561202c57611a10848461202785615562565b6140d4565b7f4c49515549444954595f424f4f4b5f56325f31000000000000000000000000008260600135141561206b57611a10848461206685615562565b6141be565b7f4d4156455249434b5f5632000000000000000000000000000000000000000000826060013514156120a957611a10836120a484615562565b614332565b7f53574141505f5632000000000000000000000000000000000000000000000000826060013514156120e857611a1084846120e385615562565b61441a565b60405162461bcd60e51b815260206004820152601a60248201527f574f574d41583a20556e6b6e6f776e204445582066616d696c790000000000006044820152606401610199565b8061213a57505050565b6001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561220e576000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146121ac576040519150601f19603f3d011682016040523d82523d6000602084013e6121b1565b606091505b505090508061062e5760405162461bcd60e51b8152602060048201526024808201527f576f776d61783a204661696c656420746f2073656e64206e617469766520746f6044820152636b656e7360e01b6064820152608401610199565b610a836001600160a01b0384168383610a0b565b60608247101561229a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610199565b600080866001600160a01b031685876040516122b69190614f20565b60006040518083038185875af1925050503d80600081146122f3576040519150601f19603f3d011682016040523d82523d6000602084013e6122f8565b606091505b5091509150612309878383876144fe565b925050505b949350505050565b60008082608001518060200190518101906123319190614afe565b90506000816123545773fffd8963efd1fc6a506488495d951d5263988d2561235b565b6401000276a45b604085810151815160008082526020820193849052630251596160e31b909352929350909182916001600160a01b03169063128acb08906123a790309088908c90899060248101614f76565b6040805180830381600087803b1580156123c057600080fd5b505af11580156123d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f89190614c01565b915091508361240f5761240a8261564a565b612418565b6124188161564a565b979650505050505050565b600080826080015180602001905181019061243e9190614c9b565b604084015190915061245b906001600160a01b0387169086614574565b8060e0015184101561246f5760c081018490525b82516040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b1580156124b257600080fd5b505afa1580156124c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ea9190614b1b565b905083604001516001600160a01b031663c52ac720836040518263ffffffff1660e01b815260040161251c919061511b565b600060405180830381600087803b15801561253657600080fd5b505af115801561254a573d6000803e3d6000fd5b505085516040516370a0823160e01b81523060048201528493506001600160a01b0390911691506370a08231906024015b60206040518083038186803b15801561259357600080fd5b505afa1580156125a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125cb9190614b1b565b6125d5919061554b565b9695505050505050565b60408101516000906125fc906001600160a01b0386169085614574565b60408281015183519151639908fc8b60e01b81526001600160a01b0387811660048301529283166024820152604481018690526000606482015230608482015260001960a4820152911690639908fc8b9060c4016040805180830381600087803b15801561266957600080fd5b505af115801561267d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126a19190614c01565b50949350505050565b60408101516000906126c7906001600160a01b0386169085610a0b565b81516040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561270a57600080fd5b505afa15801561271e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127429190614b1b565b6040848101518551825160008082526020820194859052631fa196a960e21b9094529394506001600160a01b0390911692637e865aa49261278d928a92909190309060248101614f3c565b600060405180830381600087803b1580156127a757600080fd5b505af11580156127bb573d6000803e3d6000fd5b505084516040516370a0823160e01b81523060048201528493506001600160a01b0390911691506370a082319060240160206040518083038186803b15801561280357600080fd5b505afa158015612817573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061283b9190614b1b565b612845919061554b565b95945050505050565b604081015160009061286b906001600160a01b0386169085610a0b565b600082608001518060200190518101906128859190614e74565b905060ff8116612915576040808401519051632f58056d60e21b81523060048201526001600160a01b039091169063bd6015b490602401602060405180830381600087803b1580156128d657600080fd5b505af11580156128ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061290e9190614b1b565b91506114f6565b6040808401519051636ec9facd60e11b81523060048201526001600160a01b039091169063dd93f59a90602401602060405180830381600087803b15801561295c57600080fd5b505af1158015612970573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128459190614b1b565b60408082015182519151637597a8d360e11b81523060048201526001600160a01b03868116602483015292831660448201526064810185905260006084820181905260c060a483015260c48201819052929091169063eb2f51a69060e4015b602060405180830381600087803b158015612a0d57600080fd5b505af1158015612a21573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198e9190614b1b565b6040810151600090612a62906001600160a01b0386169085610a0b565b60408281015183519151633ee101c160e11b81526001600160a01b03878116600483015292831660248201526044810186905260006064820181905230608483015260a4820152911690637dc203829060c4016129f3565b6040810151600090612ad7906001600160a01b0386169085610a0b565b60008260800151806020019051810190612af19190614b1b565b90506000856001600160a01b031684604001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015612b3c57600080fd5b505afa158015612b50573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b7491906148a7565b6001600160a01b0316149050600080612b91866040015184614630565b91509150612ba1878383876146c9565b94508415612c3e5785604001516001600160a01b031663022c0d9f84612bc75786612bca565b60005b85612bd6576000612bd8565b875b604080516000815260208101918290526001600160e01b031960e086901b16909152612c0b9291903090602481016153a7565b600060405180830381600087803b158015612c2557600080fd5b505af1158015612c39573d6000803e3d6000fd5b505050505b505050509392505050565b60008060008360800151806020019051810190612c669190614bab565b85516040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a082319060240160206040518083038186803b158015612cb157600080fd5b505afa158015612cc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ce99190614b1b565b6040860151909150612d06906001600160a01b0389169088614574565b6040808601519051630f7c084960e21b8152600f85810b600483015284900b602482015260448101889052600060648201526001600160a01b0390911690633df02124906084015b600060405180830381600087803b158015612d6857600080fd5b505af1158015612d7c573d6000803e3d6000fd5b505086516040516370a0823160e01b81523060048201528493506001600160a01b0390911691506370a082319060240160206040518083038186803b158015612dc457600080fd5b505afa158015612dd8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dfc9190614b1b565b612418919061554b565b60008060008360800151806020019051810190612e239190614c01565b85516040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a082319060240160206040518083038186803b158015612e6e57600080fd5b505afa158015612e82573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ea69190614b1b565b6040860151909150612ec3906001600160a01b0389169088614574565b6040808601519051630b68372160e31b8152600481018590526024810184905260448101889052600060648201526001600160a01b0390911690635b41b90890608401612d4e565b60008060008360800151806020019051810190612f289190614bab565b85516040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a082319060240160206040518083038186803b158015612f7357600080fd5b505afa158015612f87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fab9190614b1b565b6040860151909150612fc8906001600160a01b0389169088614574565b6040808601519051630b68372160e31b81526fffffffffffffffffffffffffffffffff80861660048301528416602482015260448101889052600060648201526001600160a01b0390911690635b41b90890608401612d4e565b604081015160009061303f906001600160a01b0386169085614574565b6040808301519051638dae733360e01b8152600481018590526000602482018190526060604483015260648201526001600160a01b0390911690638dae7333906084016129f3565b600080600083608001518060200190518101906130a49190614b34565b9150915060006040518060c00160405280848152602001600060018111156130ce576130ce61567d565b81526001600160a01b03808a16602083015287511660408201526060810188905260800160006040519080825280601f01601f19166020018201604052801561311e576020820181803683370190505b509052604080516080810182523080825260006020830181905292820152606081019190915290915061315b6001600160a01b0389168489614574565b6040516352bbbe2960e01b81526001600160a01b038416906352bbbe299061319090859085906000906000199060040161520d565b602060405180830381600087803b1580156131aa57600080fd5b505af11580156131be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131e29190614b1b565b98975050505050505050565b60008082608001518060200190518101906132099190614afe565b905082604001516001600160a01b031663c51c902930868460008089608001516040518763ffffffff1660e01b815260040161324a9695949392919061507b565b6040805180830381600087803b15801561326357600080fd5b505af1158015613277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128459190614c01565b600080600083608001518060200190518101906132b89190614e8f565b85516040516370a0823160e01b81523060048201529294509092506000916001600160a01b03909116906370a082319060240160206040518083038186803b15801561330357600080fd5b505afa158015613317573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061333b9190614b1b565b6040860151909150613358906001600160a01b0389169088614574565b60408086015190516348b4aac360e11b815260ff808616600483015284166024820152604481018890526000606482015260001960848201526001600160a01b039091169063916955869060a401612d4e565b60408101516000906133c8906001600160a01b0386169085610a0b565b60408281015183519151634998b10960e11b81526001600160a01b03878116600483015292831660248201523060448201529116906393316212906064016129f3565b60008082604001516001600160a01b031663f887ea406040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561344d57600080fd5b505af1158015613461573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061348591906148a7565b905061349b6001600160a01b0386168286614574565b60408051600280825260608201835260009260208301908036833701905050905085816000815181106134d0576134d0615693565b60200260200101906001600160a01b031690816001600160a01b03168152505083600001518160018151811061350857613508615693565b6001600160a01b0392831660209182029290920101526040516338ed173960e01b8152908316906338ed17399061354e9088906000908690309060001990600401615336565b600060405180830381600087803b15801561356857600080fd5b505af115801561357c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526135a49190810190614a55565b6001815181106135b6576135b6615693565b6020026020010151925050509392505050565b60008082604001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561360957600080fd5b505afa15801561361d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061364191906148a7565b6001600160a01b0316856001600160a01b03161490506000816136785773fffd8963efd1fc6a506488495d951d5263988d2561367f565b6401000276a45b60408581015181516000808252602082019384905263092cc68360e21b909352929350909182916001600160a01b0316906324b31a0c906136cb9030908b908990899060248101614fb0565b6040805180830381600087803b1580156136e457600080fd5b505af11580156136f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061371c9190614c01565b91509150836137335761372e8261564a565b6131e2565b6131e28161564a565b60008082604001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561377c57600080fd5b505afa158015613790573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137b491906148a7565b6001600160a01b0316856001600160a01b03161490506000816137eb5773fffd8963efd1fc6a506488495d951d5263988d256137f2565b6401000276a45b604085810151815160008082526020820193849052630251596160e31b909352929350909182916001600160a01b03169063128acb08906136cb90309088908c90899060248101614f76565b60008082604001516001600160a01b031663fbfa77cf6040518163ffffffff1660e01b815260040160206040518083038186803b15801561387e57600080fd5b505afa158015613892573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138b691906148a7565b90506138cc6001600160a01b0386168286610a0b565b6040838101519051631f2c13e160e31b81526001600160a01b03878116600483015291821660248201529082169063f9609f0890604401602060405180830381600087803b15801561391d57600080fd5b505af1158015613931573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139559190614b1b565b50604080516001600160a01b03878116602083015230828401526002606080840191909152835180840390910181526080830180855287850151600080835260a0860196879052637132bb7f60e01b9096529194939190921691637132bb7f916139c79186918691829160a4016150cc565b6040805180830381600087803b1580156139e057600080fd5b505af11580156139f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613a189190614db3565b60200151979650505050505050565b60008060008360800151806020019051810190613a449190614e8f565b60408601519193509150613a63906001600160a01b0388169087614574565b60408085015190516347b5ef5560e11b815260ff808516600483015283166024820152604481018790526000606482015230608482015260001960a48201526001600160a01b0390911690638f6bdeaa9060c4015b6040805180830381600087803b158015613ad157600080fd5b505af1158015613ae5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b099190614c01565b509695505050505050565b6000808260800151806020019051810190613b2f91906148a7565b90508060006001600160a01b0387811690891614613b4d5786613b50565b60005b90506000886001600160a01b031686600001516001600160a01b031614613b78578551613b7b565b60005b905060606001600160a01b038316613cbd57604051632e1a7d4d60e01b8152600481018990526001600160a01b038b1690632e1a7d4d90602401600060405180830381600087803b158015613bcf57600080fd5b505af1158015613be3573d6000803e3d6000fd5b50505060408089015190516342f3185360e11b81526001600160a01b039182166004820152600060248201819052868316604483015260648201819052600f8c900b608483015285831660a4830152600160c483015260e4820181905261012061010483015261012482015290861691506385e630a6908a90610144016000604051808303818588803b158015613c7957600080fd5b505af1158015613c8d573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052613cb691908101906149b6565b9050613da1565b613cd16001600160a01b038416858a614574565b60408781015190516342f3185360e11b81526001600160a01b039182166004820152600060248201819052858316604483015260648201819052600f8b900b608483015284831660a4830152600160c483015260e48201819052610120610104830152610124820152908516906385e630a69061014401600060405180830381600087803b158015613d6257600080fd5b505af1158015613d76573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613d9e91908101906149b6565b90505b80600181518110613db457613db4615693565b6020026020010151600f0b955060006001600160a01b0316826001600160a01b03161415613e3157896001600160a01b031663d0e30db0876040518263ffffffff1660e01b81526004016000604051808303818588803b158015613e1757600080fd5b505af1158015613e2b573d6000803e3d6000fd5b50505050505b5050505050949350505050565b6000808260800151806020019051810190613e599190614bde565b604080516001600160a01b038816602082015291925060009101604051602081830303815290604052905083600001516001600160a01b0316866001600160a01b03161015613f325783604001516001600160a01b031663857f812f308785856040518563ffffffff1660e01b8152600401613ed89493929190615038565b6040805180830381600087803b158015613ef157600080fd5b505af1158015613f05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f299190614c01565b9350613f689050565b83604001516001600160a01b0316632c481252308785856040518563ffffffff1660e01b8152600401613ab89493929190615038565b50509392505050565b6000808260800151806020019051810190613f8c9190614b1b565b60408085015190516378a051ad60e11b8152600481018790526001600160a01b03888116602483015292935091169063f140a35a9060440160206040518083038186803b158015613fdc57600080fd5b505afa158015613ff0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140149190614b1b565b915081156114f6576040830151614036906001600160a01b0387169086610a0b565b60408301516001600160a01b031663022c0d9f82156140555783614058565b60005b8315614065576000614067565b845b604080516000815260208101918290526001600160e01b031960e086901b1690915261409a9291903090602481016153a7565b600060405180830381600087803b1580156140b457600080fd5b505af11580156140c8573d6000803e3d6000fd5b50505050509392505050565b600081604001516001600160a01b0316846001600160a01b0316141561415d5781604001516001600160a01b0316632e1a7d4d846040518263ffffffff1660e01b815260040161412691815260200190565b600060405180830381600087803b15801561414057600080fd5b505af1158015614154573d6000803e3d6000fd5b505050506141b6565b81604001516001600160a01b031663d0e30db0846040518263ffffffff1660e01b81526004016000604051808303818588803b15801561419c57600080fd5b505af11580156141b0573d6000803e3d6000fd5b50505050505b509092915050565b60008082608001518060200190518101906141d99190614b1b565b83516040516370a0823160e01b815230600482015260019290921492506000916001600160a01b03909116906370a082319060240160206040518083038186803b15801561422657600080fd5b505afa15801561423a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061425e9190614b1b565b604085015190915061427b906001600160a01b0388169087610a0b565b604080850151905163029e02cd60e51b815283151560048201523060248201526001600160a01b03909116906353c059a090604401602060405180830381600087803b1580156142ca57600080fd5b505af11580156142de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906143029190614b1b565b5083516040516370a0823160e01b815230600482015282916001600160a01b0316906370a082319060240161257b565b600080826080015180602001905181019061434d9190614afe565b905060008161436157637fffffff19614367565b637fffffff5b60408051608080820183528882528515156020830152600082840152600384900b606083015287830151908801519251633eece7db60e01b815293945090926001600160a01b0390911691633eece7db916143c9913091869190600401614fea565b6040805180830381600087803b1580156143e257600080fd5b505af11580156143f6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124189190614c01565b600080600083608001518060200190518101906144379190614b64565b9150915060006040518060c00160405280848152602001600060018111156144615761446161567d565b81526001600160a01b03808a166020808401829052895190921660408085019190915260608085018c9052608094850188905281519485018252308086526000948601859052858301528401929092529088015192935090916144c5919089614574565b85604001516001600160a01b03166352bbbe29838360006000196040518563ffffffff1660e01b8152600401613190949392919061520d565b6060831561456a578251614563576001600160a01b0385163b6145635760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610199565b508161230e565b61230e8383614737565b604051636eb1769f60e11b81523060048201526001600160a01b0383811660248301526000919085169063dd62ed3e9060440160206040518083038186803b1580156145bf57600080fd5b505afa1580156145d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145f79190614b1b565b905061062e8463095ea7b360e01b8561461086866154f2565b6040516001600160a01b0390921660248301526044820152606401610a37565b600080600080856001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b15801561466f57600080fd5b505afa158015614683573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146a79190614e0b565b5091509150846146b85780826146bb565b81815b9350935050505b9250929050565b6000806146d88361271061554b565b6146e2908761552c565b905060006147006dffffffffffffffffffffffffffff86168361552c565b90506000826147216127106dffffffffffffffffffffffffffff8a1661552c565b61472b91906154f2565b90506131e2818361550a565b8151156147475781518083602001fd5b8060405162461bcd60e51b81526004016101999190615108565b8051610653816156dd565b60008083601f84011261477e57600080fd5b50813567ffffffffffffffff81111561479657600080fd5b6020830191508360208285010111156146c257600080fd5b600082601f8301126147bf57600080fd5b81356147d26147cd826154ca565b615475565b8181528460208386010111156147e757600080fd5b816020850160208301376000918101602001919091529392505050565b600082601f83011261481557600080fd5b81516148236147cd826154ca565b81815284602083860101111561483857600080fd5b61230e826020830160208701615603565b8051600f81900b811461065357600080fd5b80516dffffffffffffffffffffffffffff8116811461065357600080fd5b805160ff8116811461065357600080fd5b60006020828403121561489c57600080fd5b8135611991816156dd565b6000602082840312156148b957600080fd5b8151611991816156dd565b600080604083850312156148d757600080fd5b82356148e2816156dd565b946020939093013593505050565b6000806000806060858703121561490657600080fd5b8435614911816156dd565b935060208501359250604085013567ffffffffffffffff81111561493457600080fd5b6149408782880161476c565b95989497509550505050565b60008060008060006080868803121561496457600080fd5b853561496f816156dd565b94506020860135935060408601359250606086013567ffffffffffffffff81111561499957600080fd5b6149a58882890161476c565b969995985093965092949392505050565b600060208083850312156149c957600080fd5b825167ffffffffffffffff8111156149e057600080fd5b8301601f810185136149f157600080fd5b80516149ff6147cd826154a6565b80828252848201915084840188868560051b8701011115614a1f57600080fd5b600094505b83851015614a4957614a3581614849565b835260019490940193918501918501614a24565b50979650505050505050565b60006020808385031215614a6857600080fd5b825167ffffffffffffffff811115614a7f57600080fd5b8301601f81018513614a9057600080fd5b8051614a9e6147cd826154a6565b80828252848201915084840188868560051b8701011115614abe57600080fd5b600094505b83851015614a49578051835260019490940193918501918501614ac3565b600060208284031215614af357600080fd5b8135611991816156f2565b600060208284031215614b1057600080fd5b8151611991816156f2565b600060208284031215614b2d57600080fd5b5051919050565b60008060408385031215614b4757600080fd5b825191506020830151614b59816156dd565b809150509250929050565b60008060408385031215614b7757600080fd5b82519150602083015167ffffffffffffffff811115614b9557600080fd5b614ba185828601614804565b9150509250929050565b60008060408385031215614bbe57600080fd5b614bc783614849565b9150614bd560208401614849565b90509250929050565b600060208284031215614bf057600080fd5b81518060020b811461199157600080fd5b60008060408385031215614c1457600080fd5b505080516020909101519092909150565b60008060008060608587031215614c3b57600080fd5b8435935060208501359250604085013567ffffffffffffffff81111561493457600080fd5b600060208284031215614c7257600080fd5b813567ffffffffffffffff811115614c8957600080fd5b820160c0818503121561199157600080fd5b600060208284031215614cad57600080fd5b815167ffffffffffffffff80821115614cc557600080fd5b908301906101a08286031215614cda57600080fd5b614ce261544b565b614ceb83614761565b8152614cf960208401614761565b6020820152614d0a60408401614761565b6040820152614d1b60608401614761565b6060820152614d2c60808401614761565b6080820152614d3d60a08401614761565b60a082015260c0838101519082015260e0808401519082015261010080840151908201526101208084015190820152610140808401519082015261016080840151908201526101808084015183811115614d9657600080fd5b614da288828701614804565b918301919091525095945050505050565b600060408284031215614dc557600080fd5b6040516040810181811067ffffffffffffffff82111715614de857614de86156a9565b6040528251614df6816156dd565b81526020928301519281019290925250919050565b600080600060608486031215614e2057600080fd5b614e298461485b565b9250614e376020850161485b565b9150604084015163ffffffff81168114614e5057600080fd5b809150509250925092565b600060208284031215614e6d57600080fd5b5035919050565b600060208284031215614e8657600080fd5b61199182614879565b60008060408385031215614ea257600080fd5b614eab83614879565b9150614bd560208401614879565b600081518084526020808501945080840160005b83811015614ee957815187529582019590820190600101614ecd565b509495945050505050565b60008151808452614f0c816020860160208601615603565b601f01601f19169290920160200192915050565b60008251614f32818460208701615603565b9190910192915050565b60006001600160a01b038088168352808716602084015285604084015280851660608401525060a0608083015261241860a0830184614ef4565b60006001600160a01b038088168352861515602084015285604084015280851660608401525060a0608083015261241860a0830184614ef4565b60006001600160a01b038088168352866020840152851515604084015280851660608401525060a0608083015261241860a0830184614ef4565b6001600160a01b038416815282516020820152602083015115156040820152604083015115156060820152606083015160030b608082015260c060a0820152600061284560c0830184614ef4565b6001600160a01b03851681526fffffffffffffffffffffffffffffffff841660208201528260020b60408201526080606082015260006125d56080830184614ef4565b6001600160a01b03871681528560208201528415156040820152831515606082015282608082015260c060a082015260006131e260c0830184614ef4565b6020815260006119916020830184614eb9565b6080815260006150df6080830187614ef4565b6001600160a01b0386811660208501528516604084015282810360608401526124188185614ef4565b6020815260006119916020830184614ef4565b602081526151356020820183516001600160a01b03169052565b6000602083015161515160408401826001600160a01b03169052565b5060408301516001600160a01b03811660608401525060608301516001600160a01b03811660808401525060808301516001600160a01b03811660a08401525060a08301516001600160a01b03811660c08401525060c083015160e08381019190915283015161010080840191909152830151610120808401919091528301516101408084019190915283015161016080840191909152830151610180808401919091528301516101a08084015261230e6101c0840182614ef4565b60e08152845160e082015260006020860151615228816156bf565b61010083015260408601516001600160a01b03908116610120840152606087015116610140830152608086015161016083015260a086015160c06101808401526152766101a0840182614ef4565b9150506152b860208301866001600160a01b03808251168352602082015115156020840152806040830151166040840152506060810151151560608301525050565b60a082019390935260c0015292915050565b84815260606020808301829052908201849052600090859060808401835b878110156153165783356152fb816156dd565b6001600160a01b0316825292820192908201906001016152e8565b5084810360408601526153298187614eb9565b9998505050505050505050565b600060a082018783526020878185015260a0604085015281875180845260c086019150828901935060005b818110156153865784516001600160a01b031683529383019391830191600101615361565b50506001600160a01b03969096166060850152505050608001529392505050565b8481528360208201526001600160a01b03831660408201526080606082015260006125d56080830184614ef4565b6000808335601e198436030181126153ec57600080fd5b83018035915067ffffffffffffffff82111561540757600080fd5b6020019150600581901b36038213156146c257600080fd5b60008235605e19833603018112614f3257600080fd5b60008235609e19833603018112614f3257600080fd5b6040516101a0810167ffffffffffffffff8111828210171561546f5761546f6156a9565b60405290565b604051601f8201601f1916810167ffffffffffffffff8111828210171561549e5761549e6156a9565b604052919050565b600067ffffffffffffffff8211156154c0576154c06156a9565b5060051b60200190565b600067ffffffffffffffff8211156154e4576154e46156a9565b50601f01601f191660200190565b6000821982111561550557615505615667565b500190565b60008261552757634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561554657615546615667565b500290565b60008282101561555d5761555d615667565b500390565b600060a0823603121561557457600080fd5b60405160a0810167ffffffffffffffff8282108183111715615598576155986156a9565b81604052843591506155a9826156dd565b81835260208501356020840152604085013591506155c6826156dd565b8160408401526060850135606084015260808501359150808211156155ea57600080fd5b506155f7368286016147ae565b60808301525092915050565b60005b8381101561561e578181015183820152602001615606565b8381111561062e5750506000910152565b600060001982141561564357615643615667565b5060010190565b6000600160ff1b82141561566057615660615667565b5060000390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600281106109ea57634e487b7160e01b600052602160045260246000fd5b6001600160a01b03811681146109ea57600080fd5b80151581146109ea57600080fdfea164736f6c6343000807000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000005555555555555555555555555555555555555555000000000000000000000000bd4a0f12293c54e4e8ad221271cf0d395dd60a71
-----Decoded View---------------
Arg [0] : _weth (address): 0x5555555555555555555555555555555555555555
Arg [1] : _treasury (address): 0xBD4a0F12293C54e4E8ad221271CF0d395dd60a71
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000005555555555555555555555555555555555555555
Arg [1] : 000000000000000000000000bd4a0f12293c54e4e8ad221271cf0d395dd60a71
Deployed Bytecode Sourcemap
2068:16428:8:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;309:1:9;734:11;;:32;726:80;;;;-1:-1:-1;;;726:80:9;;33651:2:41;726:80:9;;;33633:21:41;33690:2;33670:18;;;33663:30;33729:34;33709:18;;;33702:62;-1:-1:-1;;;33780:18:41;;;33773:33;33823:19;;726:80:9;;;;;;;;;4856:12:8::1;4870:19:::0;4891::::1;4912;;4935:76;4992:8;;4935:24;:76::i;:::-;4855:156;;;;;;;;;;5029:7;5021:48;;;::::0;-1:-1:-1;;;5021:48:8;;30192:2:41;5021:48:8::1;::::0;::::1;30174:21:41::0;30231:2;30211:18;;;30204:30;30270;30250:18;;;30243:58;30318:18;;5021:48:8::1;29990:352:41::0;5021:48:8::1;5079:58;5104:12;5118;5132:4;;5079:24;:58::i;:::-;4845:299;;;;;2068:16428:::0;9310:202;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;8289:144;;;;;;;;;;-1:-1:-1;8289:144:8;;;;;:::i;:::-;;:::i;:::-;;7821:221;;;;;;;;;;-1:-1:-1;7821:221:8;;;;;:::i;:::-;;:::i;9088:144::-;;;;;;;;;;-1:-1:-1;9088:144:8;;;;;:::i;:::-;;:::i;6396:108::-;;;;;;;;;;-1:-1:-1;6396:108:8;;;;;:::i;:::-;;:::i;2260:23::-;;;;;;;;;;-1:-1:-1;2260:23:8;;;;-1:-1:-1;;;;;2260:23:8;;;;;;-1:-1:-1;;;;;15672:55:41;;;15654:74;;15642:2;15627:18;2260:23:8;15508:226:41;7238:238:8;;;;;;;;;;-1:-1:-1;7238:238:8;;;;;:::i;:::-;;:::i;1824:101:0:-;;;;;;;;;;;;;:::i;2552:33:8:-;;;;;;;;;;;;;;;;;;;38054:25:41;;;38042:2;38027:18;2552:33:8;37908:177:41;1201:85:0;;;;;;;;;;-1:-1:-1;1247:7:0;1273:6;-1:-1:-1;;;;;1273:6:0;1201:85;;6806:179:8;;;;;;;;;;-1:-1:-1;6806:179:8;;;;;:::i;:::-;;:::i;6116:128::-;;;;;;;;;;-1:-1:-1;6116:128:8;;;;;:::i;:::-;;:::i;2191:17::-;;;;;;;;;;-1:-1:-1;2191:17:8;;;;-1:-1:-1;;;;;2191:17:8;;;2426:37;;;;;;;;;;;;;;;;8680:144;;;;;;;;;;-1:-1:-1;8680:144:8;;;;;:::i;:::-;;:::i;5779:195::-;;;;;;;;;;-1:-1:-1;5779:195:8;;;;;:::i;:::-;;:::i;2074:198:0:-;;;;;;;;;;-1:-1:-1;2074:198:0;;;;;:::i;:::-;;:::i;5436:129:8:-;;;;;;;;;;-1:-1:-1;5436:129:8;;;;;:::i;:::-;;:::i;3472:1537:34:-;3566:4;;;3588:14;3566:4;3783:1;3754:31;;;3741:45;;3857:2;3828:32;;;3815:46;;4182:2;4153:32;;4140:46;4103:84;;4270:22;;;;4103:84;4215:27;;4531:16;;;4565:13;;4561:100;;4636:9;4631:2;:14;4614:13;:32;4598:48;;4561:100;4854:3;4838:19;;4810:48;;4806:129;;4886:5;;;;;4878:42;;;;;;;;;;;;;;;;;;4806:129;-1:-1:-1;4963:4:34;;-1:-1:-1;4969:12:34;;-1:-1:-1;4983:12:34;;-1:-1:-1;4997:4:34;-1:-1:-1;4997:4:34;-1:-1:-1;;3472:1537:34;;;;;;;;;:::o;2735:518::-;2865:1;2850:12;:16;:36;;;;;2885:1;2870:12;:16;2850:36;2846:401;;;2902:91;2959:10;2979:12;2924:10;-1:-1:-1;;;;;2909:33:34;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;2902:56:34;;:91;:56;:91::i;:::-;2846:401;;;3029:1;3014:12;:16;:36;;;;;3049:1;3034:12;:16;3014:36;3010:237;;;3066:91;3123:10;3143:12;3088:10;-1:-1:-1;;;;;3073:33:34;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3010:237;3188:48;;-1:-1:-1;;;3188:48:34;;28256:2:41;3188:48:34;;;28238:21:41;28295:2;28275:18;;;28268:30;28334:34;28314:18;;;28307:62;-1:-1:-1;;;28385:18:41;;;28378:36;28431:19;;3188:48:34;28054:402:41;3010:237:34;2735:518;;;;:::o;9310:202:8:-;9439:27;550:13:9;:11;:13::i;:::-;9491:14:8::1;9497:7;9491:5;:14::i;:::-;9478:27;;584:12:9::0;365:1;1267:11;:35;1227:82;584:12;9310:202:8;;;:::o;8289:144::-;309:1:9;734:11;;:32;726:80;;;;-1:-1:-1;;;726:80:9;;33651:2:41;726:80:9;;;33633:21:41;33690:2;33670:18;;;33663:30;33729:34;33709:18;;;33702:62;-1:-1:-1;;;33780:18:41;;;33773:33;33823:19;;726:80:9;33449:399:41;726:80:9;8395:31:8::1;8418:1;8421:4;;8395:22;:31::i;7821:221::-:0;309:1:9;734:11;;:32;726:80;;;;-1:-1:-1;;;726:80:9;;33651:2:41;726:80:9;;;33633:21:41;33690:2;33670:18;;;33663:30;33729:34;33709:18;;;33702:62;-1:-1:-1;;;33780:18:41;;;33773:33;33823:19;;726:80:9;33449:399:41;726:80:9;7977:58:8::1;8002:12;8016;8030:4;;7977:24;:58::i;9088:144::-:0;9184:41;9206:5;9213;9220:4;;9184:21;:41::i;6396:108::-;1094:13:0;:11;:13::i;:::-;6471:11:8::1;:26:::0;6396:108::o;7238:238::-;309:1:9;734:11;;:32;726:80;;;;-1:-1:-1;;;726:80:9;;33651:2:41;726:80:9;;;33633:21:41;33690:2;33670:18;;;33663:30;33729:34;33709:18;;;33702:62;-1:-1:-1;;;33780:18:41;;;33773:33;33823:19;;726:80:9;33449:399:41;726:80:9;7425:44:8::1;7451:7;7460:8;7425:25;:44::i;:::-;7238:238:::0;;;;;:::o;1824:101:0:-;1094:13;:11;:13::i;:::-;1888:30:::1;1915:1;1888:18;:30::i;:::-;1824:101::o:0;6806:179:8:-;309:1:9;734:11;;:32;726:80;;;;-1:-1:-1;;;726:80:9;;33651:2:41;726:80:9;;;33633:21:41;33690:2;33670:18;;;33663:30;33729:34;33709:18;;;33702:62;-1:-1:-1;;;33780:18:41;;;33773:33;33823:19;;726:80:9;33449:399:41;726:80:9;6923:55:8::1;6949:11;6962:9;6973:4;;6923:25;:55::i;6116:128::-:0;1094:13:0;:11;:13::i;:::-;6201:16:8::1;:36:::0;6116:128::o;8680:144::-;309:1:9;734:11;;:32;726:80;;;;-1:-1:-1;;;726:80:9;;33651:2:41;726:80:9;;;33633:21:41;33690:2;33670:18;;;33663:30;33729:34;33709:18;;;33702:62;-1:-1:-1;;;33780:18:41;;;33773:33;33823:19;;726:80:9;33449:399:41;726:80:9;8786:31:8::1;8809:1;8812:4;;8786:22;:31::i;5779:195::-:0;1094:13:0;:11;:13::i;:::-;5869:8:8::1;::::0;5861:43:::1;::::0;5846:9:::1;::::0;-1:-1:-1;;;;;5869:8:8::1;::::0;5892:6;;5846:9;5861:43;5846:9;5861:43;5892:6;5869:8;5861:43:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5845:59;;;5922:4;5914:53;;;::::0;-1:-1:-1;;;5914:53:8;;32077:2:41;5914:53:8::1;::::0;::::1;32059:21:41::0;32116:2;32096:18;;;32089:30;32155:34;32135:18;;;32128:62;-1:-1:-1;;;32206:18:41;;;32199:34;32250:19;;5914:53:8::1;31875:400:41::0;5914:53:8::1;5835:139;5779:195:::0;:::o;2074:198:0:-;1094:13;:11;:13::i;:::-;-1:-1:-1;;;;;2162:22:0;::::1;2154:73;;;::::0;-1:-1:-1;;;2154:73:0;;28663:2:41;2154:73:0::1;::::0;::::1;28645:21:41::0;28702:2;28682:18;;;28675:30;28741:34;28721:18;;;28714:62;28812:8;28792:18;;;28785:36;28838:19;;2154:73:0::1;28461:402:41::0;2154:73:0::1;2237:28;2256:8;2237:18;:28::i;:::-;2074:198:::0;:::o;5436:129:8:-;1094:13:0;:11;:13::i;:::-;5541:8:8::1;::::0;5514:44:::1;::::0;-1:-1:-1;;;;;5514:26:8;;::::1;::::0;5541:8:::1;5551:6:::0;941:175:3;1050:58;;-1:-1:-1;;;;;22552:55:41;;1050:58:3;;;22534:74:41;22624:18;;;22617:34;;;1023:86:3;;1043:5;;-1:-1:-1;;;1073:23:3;22507:18:41;;1050:58:3;;;;-1:-1:-1;;1050:58:3;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1050:58:3;;;;;;;;;;1023:19;:86::i;:::-;941:175;;;:::o;989:168:9:-;309:1;1038:11;;:32;;1030:79;;;;-1:-1:-1;;;1030:79:9;;26636:2:41;1030:79:9;;;26618:21:41;26675:2;26655:18;;;26648:30;26714:34;26694:18;;;26687:62;-1:-1:-1;;;26765:18:41;;;26758:32;26807:19;;1030:79:9;26434:398:41;1030:79:9;309:1;1119:31;;989:168::o;9563:559:8:-;9630:27;9669:21;9682:7;9669:12;:21::i;:::-;9700:16;9719:22;9733:7;9719:13;:22::i;:::-;9700:41;;9756:9;9751:120;9775:22;;;;:7;:22;:::i;:::-;:29;;9771:1;:33;9751:120;;;9825:35;9834:22;;;;:7;:22;:::i;:::-;9857:1;9834:25;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;9825:8;:35::i;:::-;-1:-1:-1;9806:3:8;;;;:::i;:::-;;;;9751:120;;;;9893:19;9904:7;9893:10;:19::i;:::-;9880:32;-1:-1:-1;10002:1:8;9978:12;;;;:7;:12;:::i;:::-;-1:-1:-1;;;;;9978:26:8;;:57;;10023:12;;;;:7;:12;:::i;:::-;9978:57;;;10015:4;;-1:-1:-1;;;;;10015:4:8;9978:57;-1:-1:-1;;;;;9928:187:8;9954:10;9928:187;10049:8;10071:10;;;;:7;:10;:::i;:::-;10095;9928:187;;;;;;;;;:::i;:::-;;;;;;;;9659:463;9563:559;;;:::o;2739:186:24:-;2819:13;2835:27;;;;2846:4;2835:27;:::i;:::-;2819:43;-1:-1:-1;2872:46:24;-1:-1:-1;;;;;2872:26:24;;2899:10;2911:6;2872:26;:46::i;3436:518:14:-;3566:1;3551:12;:16;:36;;;;;3586:1;3571:12;:16;3551:36;3547:401;;;3603:91;3660:10;3680:12;3625:10;-1:-1:-1;;;;;3610:33:14;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3547:401;3730:1;3715:12;:16;:36;;;;;3750:1;3735:12;:16;3715:36;3711:237;;;3767:91;3824:10;3844:12;3789:10;-1:-1:-1;;;;;3774:33:14;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3711:237;3889:48;;-1:-1:-1;;;3889:48:14;;27039:2:41;3889:48:14;;;27021:21:41;27078:2;27058:18;;;27051:30;27117:34;27097:18;;;27090:62;-1:-1:-1;;;27168:18:41;;;27161:36;27214:19;;3889:48:14;26837:402:41;1929:152:20;2028:46;-1:-1:-1;;;;;2028:26:20;;2055:10;2067:6;2028:26;:46::i;1359:130:0:-;1247:7;1273:6;-1:-1:-1;;;;;1273:6:0;734:10:5;1422:23:0;1414:68;;;;-1:-1:-1;;;1414:68:0;;30549:2:41;1414:68:0;;;30531:21:41;;;30568:18;;;30561:30;30627:34;30607:18;;;30600:62;30679:18;;1414:68:0;30347:356:41;4047:135:28;4125:50;-1:-1:-1;;;;;4125:28:28;;4154:10;4166:8;4125:28;:50::i;2426:187:0:-;2499:16;2518:6;;-1:-1:-1;;;;;2534:17:0;;;;;;;;;;2566:40;;2518:6;;;;;;;2566:40;;2499:16;2566:40;2489:124;2426:187;:::o;2529:400:27:-;2638:13;2654:25;;;;2665:5;2654:25;:::i;:::-;2638:41;;2693:8;2689:234;;;2717:82;2775:10;2787:11;2740:10;-1:-1:-1;;;;;2724:34:27;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2717:82;2689:234;;;2830:82;2888:10;2900:11;2853:10;-1:-1:-1;;;;;2837:34:27;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5196:642:3;5615:23;5641:69;5669:4;5641:69;;;;;;;;;;;;;;;;;5649:5;-1:-1:-1;;;;;5641:27:3;;;:69;;;;;:::i;:::-;5615:95;;5728:10;:17;5749:1;5728:22;:56;;;;5765:10;5754:30;;;;;;;;;;;;:::i;:::-;5720:111;;;;-1:-1:-1;;;5720:111:3;;32482:2:41;5720:111:3;;;32464:21:41;32521:2;32501:18;;;32494:30;32560:34;32540:18;;;32533:62;32631:12;32611:18;;;32604:40;32661:19;;5720:111:3;32280:406:41;17789:705:8;17896:1;17876:10;;;;:7;:10;:::i;:::-;:17;;:21;17868:68;;;;-1:-1:-1;;;17868:68:8;;27853:2:41;17868:68:8;;;27835:21:41;27892:2;27872:18;;;27865:30;27931:34;27911:18;;;27904:62;-1:-1:-1;;;27982:18:41;;;27975:32;28024:19;;17868:68:8;27651:398:41;17868:68:8;17975:25;;;;:7;:25;:::i;:::-;:32;-1:-1:-1;17954:10:8;;;;:7;:10;:::i;:::-;:17;;:53;17946:104;;;;-1:-1:-1;;;17946:104:8;;27446:2:41;17946:104:8;;;27428:21:41;27485:2;27465:18;;;27458:30;27524:34;27504:18;;;27497:62;27595:8;27575:18;;;27568:36;27621:19;;17946:104:8;27244:402:41;17946:104:8;18089:16;;;;:7;:16;:::i;:::-;:23;-1:-1:-1;18068:10:8;;;;:7;:10;:::i;:::-;:17;;:44;18060:86;;;;-1:-1:-1;;;18060:86:8;;29070:2:41;18060:86:8;;;29052:21:41;29109:2;29089:18;;;29082:30;29148:31;29128:18;;;29121:59;29197:18;;18060:86:8;28868:353:41;18060:86:8;18161:9;18156:332;18180:10;;;;:7;:10;:::i;:::-;:17;;18176:1;:21;18156:332;;;18251:1;18226:10;;;;:7;:10;:::i;:::-;18237:1;18226:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;18226:27:8;;;18218:74;;;;-1:-1:-1;;;18218:74:8;;32893:2:41;18218:74:8;;;32875:21:41;32932:2;32912:18;;;32905:30;32971:34;32951:18;;;32944:62;-1:-1:-1;;;33022:18:41;;;33015:32;33064:19;;18218:74:8;32691:398:41;18218:74:8;18345:1;18314:25;;;;:7;:25;:::i;:::-;18340:1;18314:28;;;;;;;:::i;:::-;;;;;;;:32;18306:82;;;;-1:-1:-1;;;18306:82:8;;30910:2:41;18306:82:8;;;30892:21:41;30949:2;30929:18;;;30922:30;30988:34;30968:18;;;30961:62;31059:7;31039:18;;;31032:35;31084:19;;18306:82:8;30708:401:41;18306:82:8;18433:11;;18410:16;;;;:7;:16;:::i;:::-;18427:1;18410:19;;;;;;;:::i;:::-;;;;;;;:34;;18402:75;;;;-1:-1:-1;;;18402:75:8;;29428:2:41;18402:75:8;;;29410:21:41;29467:2;29447:18;;;29440:30;29506;29486:18;;;29479:58;29554:18;;18402:75:8;29226:352:41;18402:75:8;18199:3;;;;:::i;:::-;;;;18156:332;;10278:524;10352:7;10371:16;10413:1;10401:9;:13;:43;;;;-1:-1:-1;10442:1:8;10418:12;;;;:7;:12;:::i;:::-;-1:-1:-1;;;;;10418:26:8;;10401:43;:68;;;;-1:-1:-1;10448:16:8;;;;:21;10401:68;10397:374;;;-1:-1:-1;10519:4:8;;:33;;;-1:-1:-1;;;10519:33:8;;;;10496:9;;-1:-1:-1;;;;;10519:4:8;;:12;;10496:9;;10519:33;;;;;:4;;:33;;;;;;;;10496:9;10519:4;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10397:374;;;10587:16;;;;:20;10583:178;;-1:-1:-1;10638:16:8;;;;;;10672:74;;10710:10;;10730:4;;10638:16;;10679:12;;10638:7;10679:12;:::i;:::-;-1:-1:-1;;;;;10672:37:8;;:74;;:37;:74::i;:::-;10787:8;10278:524;-1:-1:-1;;10278:524:8:o;13448:507::-;13521:7;;13566:18;;;;:13;:18;:::i;:::-;13559:51;;-1:-1:-1;;;13559:51:8;;13604:4;13559:51;;;15654:74:41;-1:-1:-1;;;;;13559:36:8;;;;;;;15627:18:41;;13559:51:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;13540:70;-1:-1:-1;13620:17:8;;13647:276;13671:19;;;;:13;:19;:::i;:::-;:26;;13667:1;:30;13647:276;;;13731:181;13760:18;;;;:13;:18;:::i;:::-;13839:19;;;;13808;;;;13839:13;13808:19;:::i;:::-;13828:1;13808:22;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;13797:38;;13808:27;;;13797:8;:38;:::i;:::-;13796:62;;;;:::i;:::-;13876:19;;;;:13;:19;:::i;:::-;13896:1;13876:22;;;;;;;:::i;:::-;;;;;;;;;;;;:::i;:::-;13731:11;:181::i;:::-;13718:194;;;;:::i;:::-;;-1:-1:-1;13699:3:8;;;;:::i;:::-;;;;13647:276;;;-1:-1:-1;13939:9:8;13448:507;-1:-1:-1;;;13448:507:8:o;10971:1554::-;11042:27;11108:10;;;;:7;:10;:::i;:::-;:17;;11094:32;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;11094:32:8;;11081:45;;11136:17;11163:12;11190:9;11185:1334;11209:10;;;;:7;:10;:::i;:::-;:17;;11205:1;:21;11185:1334;;;11262:10;;;;:7;:10;:::i;:::-;11273:1;11262:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;11247:29;-1:-1:-1;;;;;;11302:69:8;;11328:42;11302:69;:166;;11438:30;;-1:-1:-1;;;11438:30:8;;11462:4;11438:30;;;15654:74:41;-1:-1:-1;;;;;11438:15:8;;;;;15627:18:41;;11438:30:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11302:166;;;11390:4;;:29;;-1:-1:-1;;;11390:29:8;;11413:4;11390:29;;;15654:74:41;-1:-1:-1;;;;;11390:4:8;;;;:14;;15627:18:41;;11390:29:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;11290:178;-1:-1:-1;11483:17:8;11530:25;;;;:7;:25;:::i;:::-;11556:1;11530:28;;;;;;;:::i;:::-;;;;;;;11518:9;:40;11514:742;;;11602:25;;;;:7;:25;:::i;:::-;11628:1;11602:28;;;;;;;:::i;:::-;;;;;;;11590:9;:40;;;;:::i;:::-;11578:52;;11648:20;11704:5;11684:16;;11672:9;:28;;;;:::i;:::-;11671:38;;;;:::i;:::-;11648:61;;11743:12;11731:9;:24;11727:245;;;11791:12;-1:-1:-1;11791:12:8;11841:21;11791:12;11841:9;:21;:::i;:::-;11825:10;11836:1;11825:13;;;;;;;;:::i;:::-;;;;;;:37;;;;;11727:245;;;11925:25;;;;:7;:25;:::i;:::-;11951:1;11925:28;;;;;;;:::i;:::-;;;;;;;11909:10;11920:1;11909:13;;;;;;;;:::i;:::-;;;;;;:44;;;;;11727:245;11560:426;11514:742;;;12117:5;12093:16;;;;:7;:16;:::i;:::-;12110:1;12093:19;;;;;;;:::i;:::-;;;;;;;12085:5;:27;;;;:::i;:::-;12053:25;;;;:7;:25;:::i;:::-;12079:1;12053:28;;;;;;;:::i;:::-;;;;;;;:60;;;;:::i;:::-;12052:70;;;;:::i;:::-;12039:9;:83;;12010:188;;;;-1:-1:-1;;;12010:188:8;;31674:2:41;12010:188:8;;;31656:21:41;31713:2;31693:18;;;31686:30;31752:34;31732:18;;;31725:62;-1:-1:-1;;;31803:18:41;;;31796:32;31845:19;;12010:188:8;31472:398:41;12010:188:8;12232:9;12216:10;12227:1;12216:13;;;;;;;;:::i;:::-;;;;;;:25;;;;;11514:742;-1:-1:-1;;;;;12274:69:8;;12300:42;12274:69;12270:132;;;12363:4;;:24;;-1:-1:-1;;;12363:24:8;;;;;38054:25:41;;;-1:-1:-1;;;;;12363:4:8;;;;:13;;38027:18:41;;12363:24:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12270:132;12432:8;;12416:36;;12425:5;;-1:-1:-1;;;;;12432:8:8;12442:9;12416:8;:36::i;:::-;12466:42;12475:5;12482:10;12494;12505:1;12494:13;;;;;;;;:::i;:::-;;;;;;;12466:8;:42::i;:::-;-1:-1:-1;11228:3:8;;;;:::i;:::-;;;;11185:1334;;;;11071:1454;;10971:1554;;;:::o;4108:223:4:-;4241:12;4272:52;4294:6;4302:4;4308:1;4311:12;4272:21;:52::i;:::-;4265:59;;4108:223;;;;;;:::o;1355:203:3:-;1482:68;;-1:-1:-1;;;;;18113:15:41;;;1482:68:3;;;18095:34:41;18165:15;;18145:18;;;18138:43;18197:18;;;18190:34;;;1455:96:3;;1475:5;;-1:-1:-1;;;1505:27:3;18007:18:41;;1482:68:3;17832:398:41;14202:3432:8;14296:7;14338:10;14319:8;:15;;;:29;14315:3313;;;14371:34;14386:8;14371:34;14396:8;14371:34;:::i;:::-;:14;:34::i;:::-;14364:41;;;;14315:3313;14445:8;14426;:15;;;:27;14422:3206;;;14476:39;14490:4;14496:8;14476:39;14506:8;14476:39;:::i;:::-;:13;:39::i;14422:3206::-;14555:6;14536:8;:15;;;:25;14532:3096;;;14584:37;14596:4;14602:8;14584:37;14612:8;14584:37;:::i;:::-;:11;:37::i;14532:3096::-;14661:5;14642:8;:15;;;:24;14638:2990;;;14689:36;14700:4;14706:8;14689:36;14716:8;14689:36;:::i;:::-;:10;:36::i;14638:2990::-;14765:7;14746:8;:15;;;:26;14742:2886;;;14795:37;14807:4;14813:8;14795:37;14823:8;14795:37;:::i;:::-;:11;:37::i;14742:2886::-;14872:7;14853:8;:15;;;:26;14849:2779;;;14902:37;14914:4;14920:8;14902:37;14930:8;14902:37;:::i;:::-;:11;:37::i;14849:2779::-;14979:5;14960:8;:15;;;:24;14956:2672;;;15007:36;15018:4;15024:8;15007:36;15034:8;15007:36;:::i;:::-;:10;:36::i;14956:2672::-;15083:10;15064:8;:15;;;:29;15060:2568;;;15116:40;15131:4;15137:8;15116:40;15147:8;15116:40;:::i;:::-;:14;:40::i;15060:2568::-;15196:5;15177:8;:15;;;:24;15173:2455;;;15224:36;15235:4;15241:8;15224:36;15251:8;15224:36;:::i;:::-;:10;:36::i;15173:2455::-;15300:15;15281:8;:15;;;:34;15277:2351;;;15338:45;15358:4;15364:8;15338:45;15374:8;15338:45;:::i;:::-;:19;:45::i;15277:2351::-;15423:18;15404:8;:15;;;:37;15400:2228;;;15464:48;15487:4;15493:8;15464:48;15503:8;15464:48;:::i;:::-;:22;:48::i;15400:2228::-;15552:7;15533:8;:15;;;:26;15529:2099;;;15582:37;15594:4;15600:8;15582:37;15610:8;15582:37;:::i;:::-;:11;:37::i;15529:2099::-;15659:11;15640:8;:15;;;:30;15636:1992;;;15693:41;15709:4;15715:8;15693:41;15725:8;15693:41;:::i;:::-;:15;:41::i;15636:1992::-;15774:11;15755:8;:15;;;:30;15751:1877;;;15808:35;15824:8;15808:35;15834:8;15808:35;:::i;:::-;:15;:35::i;15751:1877::-;15883:6;15864:8;:15;;;:25;15860:1768;;;15912:37;15924:4;15930:8;15912:37;15940:8;15912:37;:::i;:::-;:11;:37::i;15860:1768::-;15989:7;15970:8;:15;;;:26;15966:1662;;;16019:38;16032:4;16038:8;16019:38;16048:8;16019:38;:::i;:::-;:12;:38::i;15966:1662::-;16097:17;16078:8;:15;;;:36;16074:1554;;;16137:46;16158:4;16164:8;16137:46;16174:8;16137:46;:::i;:::-;:20;:46::i;16074:1554::-;16223:7;16204:8;:15;;;:26;16200:1428;;;16253:38;16266:4;16272:8;16253:38;16282:8;16253:38;:::i;:::-;:12;:38::i;16200:1428::-;16331:10;16312:8;:15;;;:29;16308:1320;;;16364:40;16379:4;16385:8;16364:40;16395:8;16364:40;:::i;:::-;:14;:40::i;16308:1320::-;16444:12;16425:8;:15;;;:31;16421:1207;;;16479:40;16494:4;16500:8;16479:40;16510:8;16479:40;:::i;16421:1207::-;16559:8;16540;:15;;;:27;16536:1092;;;16590:39;16604:4;16610:8;16590:39;16620:8;16590:39;:::i;:::-;:13;:39::i;16536:1092::-;-1:-1:-1;;;16650:8:8;:15;;;:23;16646:982;;;16696:35;16706:4;16712:8;16696:35;16722:8;16696:35;:::i;:::-;:9;:35::i;16646:982::-;16771:11;16752:8;:15;;;:30;16748:880;;;16829:4;;16805:56;;-1:-1:-1;;;;;16829:4:8;16836;16842:8;16805:56;16852:8;16805:56;:::i;:::-;:15;:56::i;16748:880::-;16901:7;16882:8;:15;;;:26;16878:750;;;16931:38;16944:4;16950:8;16931:38;16960:8;16931:38;:::i;:::-;:12;:38::i;16878:750::-;17009:9;16990:8;:15;;;:28;16986:642;;;17041:40;17056:4;17062:8;17041:40;17072:8;17041:40;:::i;:::-;:14;:40::i;16986:642::-;17121:14;17102:8;:15;;;:33;17098:530;;;17158:44;17177:4;17183:8;17158:44;17193:8;17158:44;:::i;:::-;:18;:44::i;17098:530::-;17242:19;17223:8;:15;;;:38;17219:409;;;17284:48;17307:4;17313:8;17284:48;17323:8;17284:48;:::i;:::-;:22;:48::i;17219:409::-;17372:11;17353:8;:15;;;:30;17349:279;;;17406:35;17422:8;17406:35;17432:8;17406:35;:::i;:::-;:15;:35::i;17349:279::-;17481:8;17462;:15;;;:27;17458:170;;;17512:38;17525:4;17531:8;17512:38;17541:8;17512:38;:::i;:::-;:12;:38::i;17458:170::-;17581:36;;-1:-1:-1;;;17581:36:8;;33296:2:41;17581:36:8;;;33278:21:41;33335:2;33315:18;;;33308:30;33374:28;33354:18;;;33347:56;33420:18;;17581:36:8;33094:350:41;12717:585:8;12854:11;12850:48;;12717:585;;;:::o;12850:48::-;-1:-1:-1;;;;;12911:69:8;;12937:42;12911:69;12907:389;;;13105:9;13128:2;-1:-1:-1;;;;;13120:16:8;13145:6;13120:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13104:53;;;13179:4;13171:53;;;;-1:-1:-1;;;13171:53:8;;32077:2:41;13171:53:8;;;32059:21:41;32116:2;32096:18;;;32089:30;32155:34;32135:18;;;32128:62;-1:-1:-1;;;32206:18:41;;;32199:34;32250:19;;13171:53:8;31875:400:41;12907:389:8;13255:30;-1:-1:-1;;;;;13255:18:8;;13274:2;13278:6;13255:18;:30::i;5165:446:4:-;5330:12;5387:5;5362:21;:30;;5354:81;;;;-1:-1:-1;;;5354:81:4;;29785:2:41;5354:81:4;;;29767:21:41;29824:2;29804:18;;;29797:30;29863:34;29843:18;;;29836:62;29934:8;29914:18;;;29907:36;29960:19;;5354:81:4;29583:402:41;5354:81:4;5446:12;5460:23;5487:6;-1:-1:-1;;;;;5487:11:4;5506:5;5513:4;5487:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5445:73;;;;5535:69;5562:6;5570:7;5579:10;5591:12;5535:26;:69::i;:::-;5528:76;;;;5165:446;;;;;;;:::o;1930:573:34:-;2016:17;2045:15;2074:8;:13;;;2063:33;;;;;;;;;;;;:::i;:::-;2045:51;;2106:25;2134:10;:75;;2160:49;2134:75;;;2147:10;2134:75;2269:13;;;;;2414:12;;2220:14;2414:12;;;;;;;;;;-1:-1:-1;;;2254:182:34;;;2106:103;;-1:-1:-1;2220:14:34;;;;-1:-1:-1;;;;;2254:34:34;;;;:182;;2310:4;;2329:10;;2360:8;;2106:103;;2254:182;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2219:217;;;;2463:10;:32;;2487:8;2488:7;2487:8;:::i;:::-;2463:32;;;2476:8;2477:7;2476:8;:::i;:::-;2446:50;1930:573;-1:-1:-1;;;;;;;1930:573:34:o;3056:732:23:-;3186:17;3215:38;3267:8;:13;;;3256:54;;;;;;;;;;;;:::i;:::-;3427:13;;;;3215:95;;-1:-1:-1;3392:59:23;;-1:-1:-1;;;;;3392:34:23;;;3442:8;3392:34;:59::i;:::-;3476:5;:21;;;3465:8;:32;3461:104;;;3513:30;;;:41;;;3461:104;3605:11;;3598:44;;-1:-1:-1;;;3598:44:23;;3636:4;3598:44;;;15654:74:41;3574:21:23;;-1:-1:-1;;;;;3598:29:23;;;;15627:18:41;;3598:44:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;3574:68;;3668:8;:13;;;-1:-1:-1;;;;;3652:40:23;;3693:5;3652:47;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3728:11:23;;3721:44;;-1:-1:-1;;;3721:44:23;;3759:4;3721:44;;;15654:74:41;3768:13:23;;-1:-1:-1;;;;;;3721:29:23;;;;-1:-1:-1;3721:29:23;;15627:18:41;;3721:44:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:60;;;;:::i;:::-;3709:72;3056:732;-1:-1:-1;;;;;;3056:732:23:o;1519:430:38:-;1713:13;;;;1649:17;;1678:59;;-1:-1:-1;;;;;1678:34:38;;;1728:8;1678:34;:59::i;:::-;1775:13;;;;;1826:11;;1763:179;;-1:-1:-1;;;1763:179:38;;-1:-1:-1;;;;;19254:15:41;;;1763:179:38;;;19236:34:41;19306:15;;;19286:18;;;19279:43;19338:18;;;19331:34;;;1826:11:38;19381:18:41;;;19374:34;1896:4:38;19424:19:41;;;19417:44;-1:-1:-1;;19477:19:41;;;19470:35;1763:31:38;;;;;19147:19:41;;1763:179:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;1747:195:38;1519:430;-1:-1:-1;;;;1519:430:38:o;1197:467:25:-;1382:13;;;;1327:17;;1356:50;;-1:-1:-1;;;;;1356:25:25;;;1397:8;1356:25;:50::i;:::-;1447:11;;1440:44;;-1:-1:-1;;;1440:44:25;;1478:4;1440:44;;;15654:74:41;1416:21:25;;-1:-1:-1;;;;;1440:29:25;;;;15627:18:41;;1440:44:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1505:13;;;;;1531:11;;1562:12;;1531:11;1562:12;;;;;;;;;;-1:-1:-1;;;1494:81:25;;;1416:68;;-1:-1:-1;;;;;;1494:30:25;;;;;;:81;;1525:4;;1531:11;;;1555:4;;1494:81;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1604:11:25;;1597:44;;-1:-1:-1;;;1597:44:25;;1635:4;1597:44;;;15654:74:41;1644:13:25;;-1:-1:-1;;;;;;1597:29:25;;;;-1:-1:-1;1597:29:25;;15627:18:41;;1597:44:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:60;;;;:::i;:::-;1585:72;1197:467;-1:-1:-1;;;;;1197:467:25:o;1317:501:19:-;1502:13;;;;1447:17;;1476:50;;-1:-1:-1;;;;;1476:25:19;;;1517:8;1476:25;:50::i;:::-;1536:15;1565:8;:13;;;1554:34;;;;;;;;;;;;:::i;:::-;1536:52;-1:-1:-1;1603:26:19;;;1599:213;;1669:13;;;;;1657:50;;-1:-1:-1;;;1657:50:19;;1701:4;1657:50;;;15654:74:41;-1:-1:-1;;;;;1657:35:19;;;;;;15627:18:41;;1657:50:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1645:62;;1599:213;;;1762:13;;;;;1750:51;;-1:-1:-1;;;1750:51:19;;1795:4;1750:51;;;15654:74:41;-1:-1:-1;;;;;1750:36:19;;;;;;15627:18:41;;1750:51:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;1475:260:20:-;1653:13;;;;;1699:11;;1641:87;;-1:-1:-1;;;1641:87:20;;1686:4;1641:87;;;16875:34:41;-1:-1:-1;;;;;16945:15:41;;;16925:18;;;16918:43;16997:15;;;16977:18;;;16970:43;17029:18;;;17022:34;;;1605:17:20;17072:19:41;;;17065:35;;;17137:3;17116:19;;;17109:32;17157:19;;;17150:30;;;1605:17:20;1641:36;;;;;;17197:19:41;;1641:87:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;1424:329:39:-;1609:13;;;;1554:17;;1583:50;;-1:-1:-1;;;;;1583:25:39;;;1624:8;1583:25;:50::i;:::-;1666:13;;;;;1692:11;;1655:91;;-1:-1:-1;;;1655:91:39;;-1:-1:-1;;;;;18609:15:41;;;1655:91:39;;;18591:34:41;18661:15;;;18641:18;;;18634:43;18693:18;;;18686:34;;;1692:11:39;18736:18:41;;;18729:34;;;1726:4:39;18779:19:41;;;18772:44;18832:19;;;18825:44;1655:30:39;;;;;18502:19:41;;1655:91:39;18235:640:41;3065:762:33;3250:13;;;;3195:17;;3224:50;;-1:-1:-1;;;;;3224:25:33;;;3265:8;3224:25;:50::i;:::-;3284:11;3309:8;:13;;;3298:36;;;;;;;;;;;;:::i;:::-;3284:50;;3344:15;3404:4;-1:-1:-1;;;;;3362:46:33;3377:8;:13;;;-1:-1:-1;;;;;3362:36:33;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;3362:46:33;;3344:64;;3419:17;3438:18;3460:38;3472:8;:13;;;3487:10;3460:11;:38::i;:::-;3418:80;;;;3520:50;3533:8;3543:9;3554:10;3566:3;3520:12;:50::i;:::-;3508:62;-1:-1:-1;3584:13:33;;3580:241;;3628:8;:13;;;-1:-1:-1;;;;;3613:34:33;;3665:10;:26;;3682:9;3665:26;;;3678:1;3665:26;3709:10;:26;;3734:1;3709:26;;;3722:9;3709:26;3784:12;;;3794:1;3784:12;;;;;;;;;-1:-1:-1;;;;;;3613:197:33;;;;;;;;;;;;3761:4;;3613:197;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3580:241;3214:613;;;;3065:762;;;;;:::o;1164:596:16:-;1294:17;1324:8;1334;1357;:13;;;1346:43;;;;;;;;;;;;:::i;:::-;1430:11;;1423:44;;-1:-1:-1;;;1423:44:16;;1461:4;1423:44;;;15654:74:41;1323:66:16;;-1:-1:-1;1323:66:16;;-1:-1:-1;1399:21:16;;-1:-1:-1;;;;;1423:29:16;;;;;;15627:18:41;;1423:44:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1584:13;;;;1399:68;;-1:-1:-1;1549:59:16;;-1:-1:-1;;;;;1549:34:16;;;1599:8;1549:34;:59::i;:::-;1629:13;;;;;1618:53;;-1:-1:-1;;;1618:53:16;;26042:2:41;26031:22;;;1618:53:16;;;26013:41:41;26090:22;;;26070:18;;;26063:50;26129:18;;;26122:34;;;1669:1:16;26172:18:41;;;26165:34;-1:-1:-1;;;;;1618:34:16;;;;;;25985:19:41;;1618:53:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1700:11:16;;1693:44;;-1:-1:-1;;;1693:44:16;;1731:4;1693:44;;;15654:74:41;1740:13:16;;-1:-1:-1;;;;;;1693:29:16;;;;-1:-1:-1;1693:29:16;;15627:18:41;;1693:44:16;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:60;;;;:::i;1259:610:17:-;1389:17;1419:9;1430;1454:8;:13;;;1443:45;;;;;;;;;;;;:::i;:::-;1529:11;;1522:44;;-1:-1:-1;;;1522:44:17;;1560:4;1522:44;;;15654:74:41;1418:70:17;;-1:-1:-1;1418:70:17;;-1:-1:-1;1498:21:17;;-1:-1:-1;;;;;1522:29:17;;;;;;15627:18:41;;1522:44:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1683:13;;;;1498:68;;-1:-1:-1;1648:59:17;;-1:-1:-1;;;;;1648:34:17;;;1698:8;1648:34;:59::i;:::-;1737:13;;;;;1717:62;;-1:-1:-1;;;1717:62:17;;;;;41564:25:41;;;41605:18;;;41598:34;;;41648:18;;;41641:34;;;1777:1:17;41691:18:41;;;41684:34;-1:-1:-1;;;;;1717:43:17;;;;;;41536:19:41;;1717:62:17;41325:399:41;1321:640:29;1451:17;1481:8;1491;1514;:13;;;1503:43;;;;;;;;;;;;:::i;:::-;1587:11;;1580:44;;-1:-1:-1;;;1580:44:29;;1618:4;1580:44;;;15654:74:41;1480:66:29;;-1:-1:-1;1480:66:29;;-1:-1:-1;1556:21:29;;-1:-1:-1;;;;;1580:29:29;;;;;;15627:18:41;;1580:44:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1741:13;;;;1556:68;;-1:-1:-1;1706:59:29;;-1:-1:-1;;;;;1706:34:29;;;1756:8;1706:34;:59::i;:::-;1794:13;;;;;1775:97;;-1:-1:-1;;;1775:97:29;;1818:19;;;;1775:97;;;41564:25:41;1839:19:29;;41605:18:41;;;41598:34;41648:18;;;41641:34;;;1870:1:29;41691:18:41;;;41684:34;-1:-1:-1;;;;;1775:42:29;;;;;;41536:19:41;;1775:97:29;41325:399:41;1644:376:18;1910:13;;;;1774:17;;1875:59;;-1:-1:-1;;;;;1875:34:18;;;1925:8;1875:34;:59::i;:::-;1968:13;;;;;1956:57;;-1:-1:-1;;;1956:57:18;;;;;40647:25:41;;;2007:1:18;40688:18:41;;;40681:34;;;40751:2;40731:18;;;40724:30;40770:18;;;40763:29;-1:-1:-1;;;;;1956:40:18;;;;;;40809:19:41;;1956:57:18;40400:434:41;3588:1009:15;3718:17;3748:14;3764:20;3799:8;:13;;;3788:45;;;;;;;;;;;;:::i;:::-;3747:86;;;;3844:43;3890:277;;;;;;;;3938:6;3890:277;;;;3964:32;3890:277;;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;3890:277:15;;;;;;;4078:11;;3890:277;;;;;;;;;;;;;-1:-1:-1;4144:12:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4144:12:15;-1:-1:-1;3890:277:15;;4223:201;;;;;;;;4283:4;4223:201;;;4178:42;4223:201;;;;;;;;;;;;;;;;;3844:323;;-1:-1:-1;4435:58:15;-1:-1:-1;;;;;4435:34:15;;4470:12;4484:8;4435:34;:58::i;:::-;4516:74;;-1:-1:-1;;;4516:74:15;;-1:-1:-1;;;;;4516:33:15;;;;;:74;;4550:10;;4562:5;;4569:1;;-1:-1:-1;;4572:17:15;4516:74;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4504:86;3588:1009;-1:-1:-1;;;;;;;;3588:1009:15:o;2044:292:27:-;2130:17;2159:13;2186:8;:13;;;2175:33;;;;;;;;;;;;:::i;:::-;2159:49;;2250:8;:13;;;-1:-1:-1;;;;;2234:35:27;;2278:4;2285:8;2295;2305:5;2312:1;2315:8;:13;;;2234:95;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;1274:656:30:-;1404:17;1434:20;1456:18;1489:8;:13;;;1478:41;;;;;;;;;;;;:::i;:::-;1560:11;;1553:44;;-1:-1:-1;;;1553:44:30;;1591:4;1553:44;;;15654:74:41;1433:86:30;;-1:-1:-1;1433:86:30;;-1:-1:-1;1529:21:30;;-1:-1:-1;;;;;1553:29:30;;;;;;15627:18:41;;1553:44:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1714:13;;;;1529:68;;-1:-1:-1;1679:59:30;;-1:-1:-1;;;;;1679:34:30;;;1729:8;1679:34;:59::i;:::-;1760:13;;;;;1748:93;;-1:-1:-1;;;1748:93:30;;42633:4:41;42621:17;;;1748:93:30;;;42603:36:41;42675:17;;42655:18;;;42648:45;42709:18;;;42702:34;;;1820:1:30;42752:18:41;;;42745:34;-1:-1:-1;;42795:19:41;;;42788:35;-1:-1:-1;;;;;1748:31:30;;;;;;42575:19:41;;1748:93:30;42344:485:41;1139:304:22;1324:13;;;;1269:17;;1298:50;;-1:-1:-1;;;;;1298:25:22;;;1339:8;1298:25;:50::i;:::-;1383:13;;;;;1409:11;;1370:66;;-1:-1:-1;;;1370:66:22;;-1:-1:-1;;;;;16352:15:41;;;1370:66:22;;;16334:34:41;16404:15;;;16384:18;;;16377:43;1430:4:22;16436:18:41;;;16429:43;1370:32:22;;;;;16246:18:41;;1370:66:22;16071:407:41;4167:534:33;4303:17;4332:23;4390:8;:13;;;-1:-1:-1;;;;;4375:36:33;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4332:82;-1:-1:-1;4424:61:33;-1:-1:-1;;;;;4424:34:33;;4332:82;4476:8;4424:34;:61::i;:::-;4519:16;;;4533:1;4519:16;;;;;;;;4495:21;;4519:16;;;;;;;;;;-1:-1:-1;4519:16:33;4495:40;;4555:4;4545;4550:1;4545:7;;;;;;;;:::i;:::-;;;;;;:14;-1:-1:-1;;;;;4545:14:33;;;-1:-1:-1;;;;;4545:14:33;;;;;4579:8;:11;;;4569:4;4574:1;4569:7;;;;;;;;:::i;:::-;-1:-1:-1;;;;;4569:21:33;;;:7;;;;;;;;;:21;4607:84;;-1:-1:-1;;;4607:84:33;;:31;;;;;;:84;;4639:8;;4649:1;;4652:4;;4666;;-1:-1:-1;;4673:17:33;4607:84;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4607:84:33;;;;;;;;;;;;:::i;:::-;4692:1;4607:87;;;;;;;;:::i;:::-;;;;;;;4600:94;;;;4167:534;;;;;:::o;2399:618:21:-;2529:17;2558:13;2595:8;:13;;;-1:-1:-1;;;;;2582:34:21;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;2574:44:21;:4;-1:-1:-1;;;;;2574:44:21;;2558:60;;2628:25;2656:8;:73;;2680:49;2656:73;;;2667:10;2656:73;2787:13;;;;;2930:12;;2740:14;2930:12;;;;;;;;;;-1:-1:-1;;;2774:178:21;;;2628:101;;-1:-1:-1;2740:14:21;;;;-1:-1:-1;;;;;2774:32:21;;;;:178;;2828:4;;2854:8;;2877;;2628:101;;2774:178;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2739:213;;;;2979:8;:30;;3001:8;3002:7;3001:8;:::i;:::-;2979:30;;;2990:8;2991:7;2990:8;:::i;2578:626:14:-;2708:17;2737:14;2777:8;:13;;;-1:-1:-1;;;;;2762:36:14;;:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;;;;2754:46:14;:4;-1:-1:-1;;;;;2754:46:14;;2737:63;;2810:25;2838:9;:74;;2863:49;2838:74;;;2850:10;2838:74;2972:13;;;;;3116:12;;2923:14;3116:12;;;;;;;;;;-1:-1:-1;;;2957:181:14;;;2810:102;;-1:-1:-1;2923:14:14;;;;-1:-1:-1;;;;;2957:34:14;;;;:181;;3013:4;;3032:9;;3062:8;;2810:102;;2957:181;;;;:::i;1935:700:32:-;2065:17;2094:20;2146:8;:13;;;-1:-1:-1;;;;;2132:34:32;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2094:75;-1:-1:-1;2179:51:32;-1:-1:-1;;;;;2179:25:32;;2094:75;2221:8;2179:25;:51::i;:::-;2260:13;;;;;2240:34;;-1:-1:-1;;;2240:34:32;;-1:-1:-1;;;;;15992:15:41;;;2240:34:32;;;15974::41;16044:15;;;16024:18;;;16017:43;2240:13:32;;;;;;15886:18:41;;2240:34:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;2304:41:32;;;-1:-1:-1;;;;;19793:15:41;;;2304:41:32;;;19775:34:41;2329:4:32;19825:18:41;;;19818:43;2342:1:32;19877:18:41;;;;19870:45;;;;2304:41:32;;;;;;;;;;19687:18:41;;;2304:41:32;;;2476:13;;;;-1:-1:-1;2579:12:32;;;;;;;;;;-1:-1:-1;;;2462:139:32;;;2304:41;;-1:-1:-1;2462:33:32;;;;;;;:139;;2304:41;;-1:-1:-1;;;;2462:139:32;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2618:10;;;;1935:700;-1:-1:-1;;;;;;;1935:700:32:o;1544:421:37:-;1674:17;1704:12;1718:10;1743:8;:13;;;1732:41;;;;;;;;;;;;:::i;:::-;1818:13;;;;1703:70;;-1:-1:-1;1703:70:37;-1:-1:-1;1783:59:37;;-1:-1:-1;;;;;1783:34:37;;;1833:8;1783:34;:59::i;:::-;1878:13;;;;;1868:90;;-1:-1:-1;;;1868:90:37;;42050:4:41;42038:17;;;1868:90:37;;;42020:36:41;42092:17;;42072:18;;;42065:45;42126:18;;;42119:34;;;1922:1:37;42169:18:41;;;42162:34;1933:4:37;42212:19:41;;;42205:84;-1:-1:-1;;42305:19:41;;;42298:35;-1:-1:-1;;;;;1868:29:37;;;;;;41992:19:41;;1868:90:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;1852:106:37;1544:421;-1:-1:-1;;;;;;1544:421:37:o;1913:1490:35:-;2079:17;2108:20;2142:8;:13;;;2131:36;;;;;;;;;;;;:::i;:::-;2108:59;-1:-1:-1;2108:59:35;2177:20;-1:-1:-1;;;;;2259:26:35;;;;;;;:48;;2303:4;2259:48;;;1490:3;2259:48;2239:68;;2317:15;2350:18;-1:-1:-1;;;;;2335:33:35;:8;:11;;;-1:-1:-1;;;;;2335:33:35;;:62;;2386:11;;2335:62;;;1490:3;2335:62;2317:80;-1:-1:-1;2407:22:35;-1:-1:-1;;;;;2444:25:35;;2440:789;;2485:44;;-1:-1:-1;;;2485:44:35;;;;;38054:25:41;;;-1:-1:-1;;;;;2485:34:35;;;;;38027:18:41;;2485:44:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2603:13:35;;;;;2552:283;;-1:-1:-1;;;2552:283:35;;-1:-1:-1;;;;;23821:15:41;;;2552:283:35;;;23803:34:41;1379:1:35;23853:18:41;;;23846:45;;;23927:15;;;23907:18;;;23900:43;23959:18;;;23952:45;;;24045:2;24034:22;;;24013:19;;;24006:51;24094:15;;;24073:19;;;24066:44;1443:1:35;24126:19:41;;;24119:46;24181:19;;;24174:51;;;23730:3;24241:19;;;24234:31;24281:18;;;24274:29;2552:14:35;;;;-1:-1:-1;2552:14:35;;2575:8;;24320:19:41;;2552:283:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2552:283:35;;;;;;;;;;;;:::i;:::-;2543:292;;2440:789;;;2866:65;-1:-1:-1;;;;;2866:39:35;;2914:5;2922:8;2866:39;:65::i;:::-;2986:13;;;;;2954:264;;-1:-1:-1;;;2954:264:35;;-1:-1:-1;;;;;23821:15:41;;;2954:264:35;;;23803:34:41;1379:1:35;23853:18:41;;;23846:45;;;23927:15;;;23907:18;;;23900:43;23959:18;;;23952:45;;;24045:2;24034:22;;;24013:19;;;24006:51;24094:15;;;24073:19;;;24066:44;1443:1:35;24126:19:41;;;24119:46;24181:19;;;24174:51;;;23730:3;24241:19;;;24234:31;24281:18;;;24274:29;2954:14:35;;;;;;24320:19:41;;2954:264:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2954:264:35;;;;;;;;;;;;:::i;:::-;2945:273;;2440:789;3266:6;3273:1;3266:9;;;;;;;;:::i;:::-;;;;;;;3259:17;;3239:38;;1490:3;-1:-1:-1;;;;;3292:23:35;:7;-1:-1:-1;;;;;3292:23:35;;3288:109;;;3337:18;-1:-1:-1;;;;;3331:33:35;;3373:9;3331:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3288:109;2098:1305;;;;;1913:1490;;;;;;:::o;2124:609:24:-;2254:17;2283:8;2305;:13;;;2294:34;;;;;;;;;;;;:::i;:::-;2430:16;;;-1:-1:-1;;;;;15672:55:41;;2430:16:24;;;15654:74:41;2283:45:24;;-1:-1:-1;2410:17:24;;15627:18:41;2430:16:24;;;;;;;;;;;;2410:36;;2468:8;:11;;;-1:-1:-1;;;;;2461:18:24;:4;-1:-1:-1;;;;;2461:18:24;;2457:270;;;2524:8;:13;;;-1:-1:-1;;;;;2511:35:24;;2555:4;2570:8;2581:2;2585:4;2511:79;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2495:95;-1:-1:-1;2457:270:24;;-1:-1:-1;2457:270:24;;2650:8;:13;;;-1:-1:-1;;;;;2637:35:24;;2681:4;2696:8;2707:2;2711:4;2637:79;;;;;;;;;;;;;;;;;;:::i;2457:270::-;2273:460;;2124:609;;;;;:::o;1482:624:36:-;1612:17;1641;1672:8;:13;;;1661:36;;;;;;;;;;;;:::i;:::-;1734:13;;;;;1719:58;;-1:-1:-1;;;1719:58:36;;;;;38264:25:41;;;-1:-1:-1;;;;;38325:55:41;;;38305:18;;;38298:83;1641:56:36;;-1:-1:-1;1719:42:36;;;;;38237:18:41;;1719:58:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1707:70;-1:-1:-1;1791:13:36;;1787:313;;1846:13;;;;1820:50;;-1:-1:-1;;;;;1820:25:36;;;1861:8;1820:25;:50::i;:::-;1899:13;;;;-1:-1:-1;;;;;1884:34:36;;1936:14;;:30;;1957:9;1936:30;;;1953:1;1936:30;1984:14;;:30;;2013:1;1984:30;;;2001:9;1984:30;2063:12;;;2073:1;2063:12;;;;;;;;;-1:-1:-1;;;;;;1884:205:36;;;;;;;;;;;;2040:4;;1884:205;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1631:475;1482:624;;;;;:::o;698:366:40:-;828:17;869:8;:13;;;-1:-1:-1;;;;;861:21:40;:4;-1:-1:-1;;;;;861:21:40;;857:171;;;904:8;:13;;;-1:-1:-1;;;;;898:29:40;;928:8;898:39;;;;;;;;;;;;;38054:25:41;;38042:2;38027:18;;37908:177;898:39:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;857:171;;;974:8;:13;;;-1:-1:-1;;;;;968:28:40;;1005:8;968:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;857:171;-1:-1:-1;1049:8:40;;698:366;-1:-1:-1;;698:366:40:o;1929:520:26:-;2059:17;2088:13;2115:8;:13;;;2104:36;;;;;;;;;;;;:::i;:::-;2186:11;;2179:44;;-1:-1:-1;;;2179:44:26;;2217:4;2179:44;;;15654:74:41;2144:1:26;2104:41;;;;;-1:-1:-1;2155:21:26;;-1:-1:-1;;;;;2179:29:26;;;;;;15627:18:41;;2179:44:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2259:13;;;;2155:68;;-1:-1:-1;2233:50:26;;-1:-1:-1;;;;;2233:25:26;;;2274:8;2233:25;:50::i;:::-;2316:13;;;;;2293:67;;-1:-1:-1;;;2293:67:26;;24809:14:41;;24802:22;2293:67:26;;;24784:41:41;2354:4:26;24841:18:41;;;24834:83;-1:-1:-1;;;;;2293:42:26;;;;;;24757:18:41;;2293:67:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;2389:11:26;;2382:44;;-1:-1:-1;;;2382:44:26;;2420:4;2382:44;;;15654:74:41;2429:13:26;;-1:-1:-1;;;;;2382:29:26;;;;15627:18:41;;2382:44:26;15508:226:41;3304:561:28;3390:17;3419:13;3446:8;:13;;;3435:33;;;;;;;;;;;;:::i;:::-;3419:49;;3478:15;3496:8;:44;;-1:-1:-1;;3496:44:28;;;3507:15;3496:44;3593:166;;;;;;;;;;;;;;;;;;;3550:40;3593:166;;;;;;;;;;;;3801:13;;;;3844;;;;3785:73;;-1:-1:-1;;;3785:73:28;;3478:62;;-1:-1:-1;3593:166:28;;-1:-1:-1;;;;;3785:35:28;;;;;;:73;;3829:4;;3593:166;;3844:13;3785:73;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;1511:998:31:-;1641:17;1671:14;1687:21;1723:8;:13;;;1712:43;;;;;;;;;;;;:::i;:::-;1670:85;;;;1766:42;1811:269;;;;;;;;1858:6;1811:269;;;;1884:31;1811:269;;;;;;;;:::i;:::-;;;-1:-1:-1;;;;;1811:269:31;;;;;;;;;;1995:11;;1811:269;;;;;;;;;;;;;;;;;;;;;;;;;2135:200;;;;;;;2194:4;2135:200;;;-1:-1:-1;2135:200:31;;;;;;;;;;;;;;;;2381:13;;;;1766:314;;-1:-1:-1;2135:200:31;;2346:59;;1811:269;2029:8;2346:34;:59::i;:::-;2442:8;:13;;;-1:-1:-1;;;;;2428:33:31;;2462:10;2474:5;2481:1;-1:-1:-1;;2428:74:31;;;;;;;;;;;;;;;;;;:::i;7671:628:4:-;7851:12;7879:7;7875:418;;;7906:17;;7902:286;;-1:-1:-1;;;;;1702:19:4;;;8113:60;;;;-1:-1:-1;;;8113:60:4;;31316:2:41;8113:60:4;;;31298:21:41;31355:2;31335:18;;;31328:30;31394:31;31374:18;;;31367:59;31443:18;;8113:60:4;31114:353:41;8113:60:4;-1:-1:-1;8208:10:4;8201:17;;7875:418;8249:33;8257:10;8269:12;8249:7;:33::i;2582:280:3:-;2701:39;;-1:-1:-1;;;2701:39:3;;2725:4;2701:39;;;15974:34:41;-1:-1:-1;;;;;16044:15:41;;;16024:18;;;16017:43;2678:20:3;;2701:15;;;;;;15886:18:41;;2701:39:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2678:62;-1:-1:-1;2750:105:3;2770:5;-1:-1:-1;;;2824:7:3;2833:20;2848:5;2678:62;2833:20;:::i;:::-;2777:77;;-1:-1:-1;;;;;22552:55:41;;;2777:77:3;;;22534:74:41;22624:18;;;22617:34;22507:18;;2777:77:3;22360:297:41;5094:278:33;5168:17;5187:18;5218:16;5236;5273:4;-1:-1:-1;;;;;5258:32:33;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5217:75;;;;;5309:10;:56;;5346:8;5356;5309:56;;;5323:8;5333;5309:56;5302:63;;;;;;5094:278;;;;;;:::o;5853:428::-;6005:17;;6072:21;6090:3;2672:5;6072:21;:::i;:::-;6060:34;;:8;:34;:::i;:::-;6034:60;-1:-1:-1;6104:17:33;6124:28;;;;6034:60;6124:28;:::i;:::-;6104:48;-1:-1:-1;6162:19:33;6214:15;6184:27;2672:5;6184:27;;;;:::i;:::-;:45;;;;:::i;:::-;6162:67;-1:-1:-1;6251:23:33;6162:67;6251:9;:23;:::i;8821:540:4:-;8980:17;;:21;8976:379;;9208:10;9202:17;9264:15;9251:10;9247:2;9243:19;9236:44;8976:379;9331:12;9324:20;;-1:-1:-1;;;9324:20:4;;;;;;;;:::i;14:138:41:-;93:13;;115:31;93:13;115:31;:::i;157:347::-;208:8;218:6;272:3;265:4;257:6;253:17;249:27;239:55;;290:1;287;280:12;239:55;-1:-1:-1;313:20:41;;356:18;345:30;;342:50;;;388:1;385;378:12;342:50;425:4;417:6;413:17;401:29;;477:3;470:4;461:6;453;449:19;445:30;442:39;439:59;;;494:1;491;484:12;509:462;551:5;604:3;597:4;589:6;585:17;581:27;571:55;;622:1;619;612:12;571:55;658:6;645:20;689:48;705:31;733:2;705:31;:::i;:::-;689:48;:::i;:::-;762:2;753:7;746:19;808:3;801:4;796:2;788:6;784:15;780:26;777:35;774:55;;;825:1;822;815:12;774:55;890:2;883:4;875:6;871:17;864:4;855:7;851:18;838:55;938:1;913:16;;;931:4;909:27;902:38;;;;917:7;509:462;-1:-1:-1;;;509:462:41:o;976:428::-;1029:5;1082:3;1075:4;1067:6;1063:17;1059:27;1049:55;;1100:1;1097;1090:12;1049:55;1129:6;1123:13;1160:48;1176:31;1204:2;1176:31;:::i;1160:48::-;1233:2;1224:7;1217:19;1279:3;1272:4;1267:2;1259:6;1255:15;1251:26;1248:35;1245:55;;;1296:1;1293;1286:12;1245:55;1309:64;1370:2;1363:4;1354:7;1350:18;1343:4;1335:6;1331:17;1309:64;:::i;1409:166::-;1487:13;;1540:2;1529:21;;;1519:32;;1509:60;;1565:1;1562;1555:12;1580:188;1659:13;;1712:30;1701:42;;1691:53;;1681:81;;1758:1;1755;1748:12;1773:160;1850:13;;1903:4;1892:16;;1882:27;;1872:55;;1923:1;1920;1913:12;1938:247;1997:6;2050:2;2038:9;2029:7;2025:23;2021:32;2018:52;;;2066:1;2063;2056:12;2018:52;2105:9;2092:23;2124:31;2149:5;2124:31;:::i;2190:251::-;2260:6;2313:2;2301:9;2292:7;2288:23;2284:32;2281:52;;;2329:1;2326;2319:12;2281:52;2361:9;2355:16;2380:31;2405:5;2380:31;:::i;2970:315::-;3038:6;3046;3099:2;3087:9;3078:7;3074:23;3070:32;3067:52;;;3115:1;3112;3105:12;3067:52;3154:9;3141:23;3173:31;3198:5;3173:31;:::i;:::-;3223:5;3275:2;3260:18;;;;3247:32;;-1:-1:-1;;;2970:315:41:o;3290:612::-;3378:6;3386;3394;3402;3455:2;3443:9;3434:7;3430:23;3426:32;3423:52;;;3471:1;3468;3461:12;3423:52;3510:9;3497:23;3529:31;3554:5;3529:31;:::i;:::-;3579:5;-1:-1:-1;3631:2:41;3616:18;;3603:32;;-1:-1:-1;3686:2:41;3671:18;;3658:32;3713:18;3702:30;;3699:50;;;3745:1;3742;3735:12;3699:50;3784:58;3834:7;3825:6;3814:9;3810:22;3784:58;:::i;:::-;3290:612;;;;-1:-1:-1;3861:8:41;-1:-1:-1;;;;3290:612:41:o;3907:681::-;4004:6;4012;4020;4028;4036;4089:3;4077:9;4068:7;4064:23;4060:33;4057:53;;;4106:1;4103;4096:12;4057:53;4145:9;4132:23;4164:31;4189:5;4164:31;:::i;:::-;4214:5;-1:-1:-1;4266:2:41;4251:18;;4238:32;;-1:-1:-1;4317:2:41;4302:18;;4289:32;;-1:-1:-1;4372:2:41;4357:18;;4344:32;4399:18;4388:30;;4385:50;;;4431:1;4428;4421:12;4385:50;4470:58;4520:7;4511:6;4500:9;4496:22;4470:58;:::i;:::-;3907:681;;;;-1:-1:-1;3907:681:41;;-1:-1:-1;4547:8:41;;4444:84;3907:681;-1:-1:-1;;;3907:681:41:o;4593:913::-;4687:6;4718:2;4761;4749:9;4740:7;4736:23;4732:32;4729:52;;;4777:1;4774;4767:12;4729:52;4810:9;4804:16;4843:18;4835:6;4832:30;4829:50;;;4875:1;4872;4865:12;4829:50;4898:22;;4951:4;4943:13;;4939:27;-1:-1:-1;4929:55:41;;4980:1;4977;4970:12;4929:55;5009:2;5003:9;5032:59;5048:42;5087:2;5048:42;:::i;5032:59::-;5113:3;5137:2;5132:3;5125:15;5165:2;5160:3;5156:12;5149:19;;5196:2;5192;5188:11;5244:7;5239:2;5233;5230:1;5226:10;5222:2;5218:19;5214:28;5211:41;5208:61;;;5265:1;5262;5255:12;5208:61;5287:1;5278:10;;5297:179;5311:2;5308:1;5305:9;5297:179;;;5368:33;5397:3;5368:33;:::i;:::-;5356:46;;5329:1;5322:9;;;;;5422:12;;;;5454;;5297:179;;;-1:-1:-1;5495:5:41;4593:913;-1:-1:-1;;;;;;;4593:913:41:o;5511:891::-;5606:6;5637:2;5680;5668:9;5659:7;5655:23;5651:32;5648:52;;;5696:1;5693;5686:12;5648:52;5729:9;5723:16;5762:18;5754:6;5751:30;5748:50;;;5794:1;5791;5784:12;5748:50;5817:22;;5870:4;5862:13;;5858:27;-1:-1:-1;5848:55:41;;5899:1;5896;5889:12;5848:55;5928:2;5922:9;5951:59;5967:42;6006:2;5967:42;:::i;5951:59::-;6032:3;6056:2;6051:3;6044:15;6084:2;6079:3;6075:12;6068:19;;6115:2;6111;6107:11;6163:7;6158:2;6152;6149:1;6145:10;6141:2;6137:19;6133:28;6130:41;6127:61;;;6184:1;6181;6174:12;6127:61;6206:1;6197:10;;6216:156;6230:2;6227:1;6224:9;6216:156;;;6287:10;;6275:23;;6248:1;6241:9;;;;;6318:12;;;;6350;;6216:156;;6407:241;6463:6;6516:2;6504:9;6495:7;6491:23;6487:32;6484:52;;;6532:1;6529;6522:12;6484:52;6571:9;6558:23;6590:28;6612:5;6590:28;:::i;6653:245::-;6720:6;6773:2;6761:9;6752:7;6748:23;6744:32;6741:52;;;6789:1;6786;6779:12;6741:52;6821:9;6815:16;6840:28;6862:5;6840:28;:::i;6903:184::-;6973:6;7026:2;7014:9;7005:7;7001:23;6997:32;6994:52;;;7042:1;7039;7032:12;6994:52;-1:-1:-1;7065:16:41;;6903:184;-1:-1:-1;6903:184:41:o;7092:320::-;7179:6;7187;7240:2;7228:9;7219:7;7215:23;7211:32;7208:52;;;7256:1;7253;7246:12;7208:52;7285:9;7279:16;7269:26;;7338:2;7327:9;7323:18;7317:25;7351:31;7376:5;7351:31;:::i;:::-;7401:5;7391:15;;;7092:320;;;;;:::o;7417:396::-;7505:6;7513;7566:2;7554:9;7545:7;7541:23;7537:32;7534:52;;;7582:1;7579;7572:12;7534:52;7611:9;7605:16;7595:26;;7665:2;7654:9;7650:18;7644:25;7692:18;7684:6;7681:30;7678:50;;;7724:1;7721;7714:12;7678:50;7747:60;7799:7;7790:6;7779:9;7775:22;7747:60;:::i;:::-;7737:70;;;7417:396;;;;;:::o;7818:289::-;7895:6;7903;7956:2;7944:9;7935:7;7931:23;7927:32;7924:52;;;7972:1;7969;7962:12;7924:52;7995:39;8024:9;7995:39;:::i;:::-;7985:49;;8053:48;8097:2;8086:9;8082:18;8053:48;:::i;:::-;8043:58;;7818:289;;;;;:::o;8112:277::-;8180:6;8233:2;8221:9;8212:7;8208:23;8204:32;8201:52;;;8249:1;8246;8239:12;8201:52;8281:9;8275:16;8334:5;8331:1;8320:20;8313:5;8310:31;8300:59;;8355:1;8352;8345:12;8394:243;8471:6;8479;8532:2;8520:9;8511:7;8507:23;8503:32;8500:52;;;8548:1;8545;8538:12;8500:52;-1:-1:-1;;8571:16:41;;8627:2;8612:18;;;8606:25;8571:16;;8606:25;;-1:-1:-1;8394:243:41:o;8642:543::-;8728:6;8736;8744;8752;8805:2;8793:9;8784:7;8780:23;8776:32;8773:52;;;8821:1;8818;8811:12;8773:52;8857:9;8844:23;8834:33;;8914:2;8903:9;8899:18;8886:32;8876:42;;8969:2;8958:9;8954:18;8941:32;8996:18;8988:6;8985:30;8982:50;;;9028:1;9025;9018:12;9190:395;9284:6;9337:2;9325:9;9316:7;9312:23;9308:32;9305:52;;;9353:1;9350;9343:12;9305:52;9393:9;9380:23;9426:18;9418:6;9415:30;9412:50;;;9458:1;9455;9448:12;9412:50;9481:22;;9537:3;9519:16;;;9515:26;9512:46;;;9554:1;9551;9544:12;9590:1494;9687:6;9740:2;9728:9;9719:7;9715:23;9711:32;9708:52;;;9756:1;9753;9746:12;9708:52;9789:9;9783:16;9818:18;9859:2;9851:6;9848:14;9845:34;;;9875:1;9872;9865:12;9845:34;9898:22;;;;9954:6;9936:16;;;9932:29;9929:49;;;9974:1;9971;9964:12;9929:49;10000:22;;:::i;:::-;10045:33;10075:2;10045:33;:::i;:::-;10038:5;10031:48;10111:42;10149:2;10145;10141:11;10111:42;:::i;:::-;10106:2;10099:5;10095:14;10088:66;10186:42;10224:2;10220;10216:11;10186:42;:::i;:::-;10181:2;10174:5;10170:14;10163:66;10261:42;10299:2;10295;10291:11;10261:42;:::i;:::-;10256:2;10249:5;10245:14;10238:66;10337:43;10375:3;10371:2;10367:12;10337:43;:::i;:::-;10331:3;10324:5;10320:15;10313:68;10414:43;10452:3;10448:2;10444:12;10414:43;:::i;:::-;10408:3;10397:15;;10390:68;10505:3;10497:12;;;10491:19;10474:15;;;10467:44;10558:3;10550:12;;;10544:19;10527:15;;;10520:44;10583:3;10624:11;;;10618:18;10602:14;;;10595:42;10656:3;10697:11;;;10691:18;10675:14;;;10668:42;10729:3;10770:11;;;10764:18;10748:14;;;10741:42;10802:3;10843:11;;;10837:18;10821:14;;;10814:42;10875:3;10909:11;;;10903:18;10933:16;;;10930:36;;;10962:1;10959;10952:12;10930:36;10998:55;11045:7;11034:8;11030:2;11026:17;10998:55;:::i;:::-;10982:14;;;10975:79;;;;-1:-1:-1;10986:5:41;9590:1494;-1:-1:-1;;;;;9590:1494:41:o;11089:572::-;11188:6;11241:2;11229:9;11220:7;11216:23;11212:32;11209:52;;;11257:1;11254;11247:12;11209:52;11290:2;11284:9;11332:2;11324:6;11320:15;11401:6;11389:10;11386:22;11365:18;11353:10;11350:34;11347:62;11344:88;;;11412:18;;:::i;:::-;11448:2;11441:22;11485:16;;11510:31;11485:16;11510:31;:::i;:::-;11550:21;;11625:2;11610:18;;;11604:25;11587:15;;;11580:50;;;;-1:-1:-1;11557:6:41;11089:572;-1:-1:-1;11089:572:41:o;11666:450::-;11753:6;11761;11769;11822:2;11810:9;11801:7;11797:23;11793:32;11790:52;;;11838:1;11835;11828:12;11790:52;11861:40;11891:9;11861:40;:::i;:::-;11851:50;;11920:49;11965:2;11954:9;11950:18;11920:49;:::i;:::-;11910:59;;12012:2;12001:9;11997:18;11991:25;12056:10;12049:5;12045:22;12038:5;12035:33;12025:61;;12082:1;12079;12072:12;12025:61;12105:5;12095:15;;;11666:450;;;;;:::o;12121:180::-;12180:6;12233:2;12221:9;12212:7;12208:23;12204:32;12201:52;;;12249:1;12246;12239:12;12201:52;-1:-1:-1;12272:23:41;;12121:180;-1:-1:-1;12121:180:41:o;13295:204::-;13363:6;13416:2;13404:9;13395:7;13391:23;13387:32;13384:52;;;13432:1;13429;13422:12;13384:52;13455:38;13483:9;13455:38;:::i;13504:285::-;13579:6;13587;13640:2;13628:9;13619:7;13615:23;13611:32;13608:52;;;13656:1;13653;13646:12;13608:52;13679:38;13707:9;13679:38;:::i;:::-;13669:48;;13736:47;13779:2;13768:9;13764:18;13736:47;:::i;13934:435::-;13987:3;14025:5;14019:12;14052:6;14047:3;14040:19;14078:4;14107:2;14102:3;14098:12;14091:19;;14144:2;14137:5;14133:14;14165:1;14175:169;14189:6;14186:1;14183:13;14175:169;;;14250:13;;14238:26;;14284:12;;;;14319:15;;;;14211:1;14204:9;14175:169;;;-1:-1:-1;14360:3:41;;13934:435;-1:-1:-1;;;;;13934:435:41:o;14374:257::-;14415:3;14453:5;14447:12;14480:6;14475:3;14468:19;14496:63;14552:6;14545:4;14540:3;14536:14;14529:4;14522:5;14518:16;14496:63;:::i;:::-;14613:2;14592:15;-1:-1:-1;;14588:29:41;14579:39;;;;14620:4;14575:50;;14374:257;-1:-1:-1;;14374:257:41:o;15019:274::-;15148:3;15186:6;15180:13;15202:53;15248:6;15243:3;15236:4;15228:6;15224:17;15202:53;:::i;:::-;15271:16;;;;;15019:274;-1:-1:-1;;15019:274:41:o;17227:600::-;17457:4;-1:-1:-1;;;;;17567:2:41;17559:6;17555:15;17544:9;17537:34;17619:2;17611:6;17607:15;17602:2;17591:9;17587:18;17580:43;17659:6;17654:2;17643:9;17639:18;17632:34;17714:2;17706:6;17702:15;17697:2;17686:9;17682:18;17675:43;;17755:3;17749;17738:9;17734:19;17727:32;17776:45;17816:3;17805:9;17801:19;17793:6;17776:45;:::i;19926:591::-;20140:4;-1:-1:-1;;;;;20250:2:41;20242:6;20238:15;20227:9;20220:34;20304:6;20297:14;20290:22;20285:2;20274:9;20270:18;20263:50;20349:6;20344:2;20333:9;20329:18;20322:34;20404:2;20396:6;20392:15;20387:2;20376:9;20372:18;20365:43;;20445:3;20439;20428:9;20424:19;20417:32;20466:45;20506:3;20495:9;20491:19;20483:6;20466:45;:::i;20522:591::-;20736:4;-1:-1:-1;;;;;20846:2:41;20838:6;20834:15;20823:9;20816:34;20886:6;20881:2;20870:9;20866:18;20859:34;20943:6;20936:14;20929:22;20924:2;20913:9;20909:18;20902:50;21000:2;20992:6;20988:15;20983:2;20972:9;20968:18;20961:43;;21041:3;21035;21024:9;21020:19;21013:32;21062:45;21102:3;21091:9;21087:19;21079:6;21062:45;:::i;21118:699::-;-1:-1:-1;;;;;21381:6:41;21377:55;21366:9;21359:74;21475:6;21469:13;21464:2;21453:9;21449:18;21442:41;21551:2;21543:6;21539:15;21533:22;21526:30;21519:38;21514:2;21503:9;21499:18;21492:66;21626:2;21618:6;21614:15;21608:22;21601:30;21594:38;21589:2;21578:9;21574:18;21567:66;21702:2;21694:6;21690:15;21684:22;21681:1;21670:37;21664:3;21653:9;21649:19;21642:66;21745:3;21739;21728:9;21724:19;21717:32;21340:4;21766:45;21806:3;21795:9;21791:19;21783:6;21766:45;:::i;21822:533::-;-1:-1:-1;;;;;22053:6:41;22049:55;22038:9;22031:74;22153:34;22145:6;22141:47;22136:2;22125:9;22121:18;22114:75;22239:6;22236:1;22225:21;22220:2;22209:9;22205:18;22198:49;22283:3;22278:2;22267:9;22263:18;22256:31;22012:4;22304:45;22344:3;22333:9;22329:19;22321:6;22304:45;:::i;22662:653::-;-1:-1:-1;;;;;22949:6:41;22945:55;22934:9;22927:74;23037:6;23032:2;23021:9;23017:18;23010:34;23094:6;23087:14;23080:22;23075:2;23064:9;23060:18;23053:50;23153:6;23146:14;23139:22;23134:2;23123:9;23119:18;23112:50;23199:6;23193:3;23182:9;23178:19;23171:35;23243:3;23237;23226:9;23222:19;23215:32;22908:4;23264:45;23304:3;23293:9;23289:19;23281:6;23264:45;:::i;24350:261::-;24529:2;24518:9;24511:21;24492:4;24549:56;24601:2;24590:9;24586:18;24578:6;24549:56;:::i;24928:600::-;25177:3;25166:9;25159:22;25140:4;25204:45;25244:3;25233:9;25229:19;25221:6;25204:45;:::i;:::-;-1:-1:-1;;;;;25346:15:41;;;25341:2;25326:18;;25319:43;25398:15;;25393:2;25378:18;;25371:43;25450:22;;;25445:2;25430:18;;25423:50;25490:32;25454:6;25507;25490:32;:::i;26210:219::-;26359:2;26348:9;26341:21;26322:4;26379:44;26419:2;26408:9;26404:18;26396:6;26379:44;:::i;33853:1648::-;34036:2;34025:9;34018:21;34048:61;34105:2;34094:9;34090:18;34081:6;34075:13;-1:-1:-1;;;;;13868:54:41;13856:67;;13794:135;34048:61;33999:4;34156:2;34148:6;34144:15;34138:22;34169:60;34225:2;34214:9;34210:18;34196:12;-1:-1:-1;;;;;13868:54:41;13856:67;;13794:135;34169:60;-1:-1:-1;34278:2:41;34266:15;;34260:22;-1:-1:-1;;;;;13868:54:41;;34349:2;34334:18;;13856:67;-1:-1:-1;34402:2:41;34390:15;;34384:22;-1:-1:-1;;;;;13868:54:41;;34473:3;34458:19;;13856:67;-1:-1:-1;34527:3:41;34515:16;;34509:23;-1:-1:-1;;;;;13868:54:41;;34599:3;34584:19;;13856:67;-1:-1:-1;34653:3:41;34641:16;;34635:23;-1:-1:-1;;;;;13868:54:41;;34725:3;34710:19;;13856:67;-1:-1:-1;34785:3:41;34773:16;;34767:23;34761:3;34746:19;;;34739:52;;;;34816:16;;34810:23;34852:3;34871:18;;;34864:30;;;;34919:15;;34913:22;34954:3;34973:18;;;34966:30;;;;35021:15;;35015:22;35056:3;35075:18;;;35068:30;;;;35123:15;;35117:22;35158:3;35177:18;;;35170:30;;;;35225:15;;35219:22;35261:3;35280:19;;;35273:31;;;;35341:16;;35335:23;35378:6;35400:19;;;35393:32;35442:53;35490:3;35475:19;;35335:23;35442:53;:::i;35506:1196::-;35847:3;35836:9;35829:22;35894:6;35888:13;35882:3;35871:9;35867:19;35860:42;35810:4;35949;35941:6;35937:17;35931:24;35964:44;35995:12;35964:44;:::i;:::-;36039:3;36024:19;;36017:41;36107:4;36095:17;;36089:24;-1:-1:-1;;;;;36211:23:41;;;36205:3;36190:19;;36183:52;36294:4;36282:17;;36276:24;36272:33;36266:3;36251:19;;36244:62;36361:4;36349:17;;36343:24;36337:3;36322:19;;36315:53;36417:4;36405:17;;36399:24;36460:4;36454:3;36439:19;;36432:33;36482:53;36530:3;36515:19;;36399:24;36482:53;:::i;:::-;36474:61;;;36544:62;36600:4;36589:9;36585:20;36577:6;-1:-1:-1;;;;;14795:2:41;14787:5;14781:12;14777:21;14772:3;14765:34;14862:4;14855:5;14851:16;14845:23;14838:31;14831:39;14824:4;14819:3;14815:14;14808:63;14932:2;14924:4;14917:5;14913:16;14907:23;14903:32;14896:4;14891:3;14887:14;14880:56;;14999:4;14992:5;14988:16;14982:23;14975:31;14968:39;14961:4;14956:3;14952:14;14945:63;14636:378;;;36544:62;36637:4;36622:20;;36615:36;;;;36682:4;36667:20;36660:36;35506:1196;;-1:-1:-1;;35506:1196:41:o;38392:972::-;38710:25;;;38698:2;38754;38772:18;;;38765:30;;;38683:18;;;38830:22;;;38650:4;;38910:6;;38883:3;38868:19;;38650:4;38944:300;38958:6;38955:1;38952:13;38944:300;;;39033:6;39020:20;39053:31;39078:5;39053:31;:::i;:::-;-1:-1:-1;;;;;39109:54:41;39097:67;;39219:15;;;;39184:12;;;;38980:1;38973:9;38944:300;;;38948:3;39289:9;39284:3;39280:19;39275:2;39264:9;39260:18;39253:47;39317:41;39354:3;39346:6;39317:41;:::i;:::-;39309:49;38392:972;-1:-1:-1;;;;;;;;;38392:972:41:o;39369:1026::-;39631:4;39679:3;39668:9;39664:19;39710:6;39699:9;39692:25;39736:2;39774:6;39769:2;39758:9;39754:18;39747:34;39817:3;39812:2;39801:9;39797:18;39790:31;39841:6;39876;39870:13;39907:6;39899;39892:22;39945:3;39934:9;39930:19;39923:26;;39984:2;39976:6;39972:15;39958:29;;40005:1;40015:218;40029:6;40026:1;40023:13;40015:218;;;40094:13;;-1:-1:-1;;;;;40090:62:41;40078:75;;40208:15;;;;40173:12;;;;40051:1;40044:9;40015:218;;;-1:-1:-1;;;;;;;40289:55:41;;;;40284:2;40269:18;;40262:83;-1:-1:-1;;;40376:3:41;40361:19;40354:35;40250:3;39369:1026;-1:-1:-1;;;39369:1026:41:o;40839:481::-;41070:6;41059:9;41052:25;41113:6;41108:2;41097:9;41093:18;41086:34;-1:-1:-1;;;;;41160:6:41;41156:55;41151:2;41140:9;41136:18;41129:83;41248:3;41243:2;41232:9;41228:18;41221:31;41033:4;41269:45;41309:3;41298:9;41294:19;41286:6;41269:45;:::i;42834:545::-;42927:4;42933:6;42993:11;42980:25;43087:2;43083:7;43072:8;43056:14;43052:29;43048:43;43028:18;43024:68;43014:96;;43106:1;43103;43096:12;43014:96;43133:33;;43185:20;;;-1:-1:-1;43228:18:41;43217:30;;43214:50;;;43260:1;43257;43250:12;43214:50;43293:4;43281:17;;-1:-1:-1;43344:1:41;43340:14;;;43324;43320:35;43310:46;;43307:66;;;43369:1;43366;43359:12;45091:330;45190:4;45248:11;45235:25;45342:2;45338:7;45327:8;45311:14;45307:29;45303:43;45283:18;45279:68;45269:96;;45361:1;45358;45351:12;45426:322;45516:4;45574:11;45561:25;45668:3;45664:8;45653;45637:14;45633:29;45629:44;45609:18;45605:69;45595:97;;45688:1;45685;45678:12;45753:255;45825:2;45819:9;45867:6;45855:19;;45904:18;45889:34;;45925:22;;;45886:62;45883:88;;;45951:18;;:::i;:::-;45987:2;45980:22;45753:255;:::o;46013:275::-;46084:2;46078:9;46149:2;46130:13;;-1:-1:-1;;46126:27:41;46114:40;;46184:18;46169:34;;46205:22;;;46166:62;46163:88;;;46231:18;;:::i;:::-;46267:2;46260:22;46013:275;;-1:-1:-1;46013:275:41:o;46293:182::-;46352:4;46385:18;46377:6;46374:30;46371:56;;;46407:18;;:::i;:::-;-1:-1:-1;46452:1:41;46448:14;46464:4;46444:25;;46293:182::o;46480:186::-;46528:4;46561:18;46553:6;46550:30;46547:56;;;46583:18;;:::i;:::-;-1:-1:-1;46649:2:41;46628:15;-1:-1:-1;;46624:29:41;46655:4;46620:40;;46480:186::o;46671:128::-;46711:3;46742:1;46738:6;46735:1;46732:13;46729:39;;;46748:18;;:::i;:::-;-1:-1:-1;46784:9:41;;46671:128::o;46804:217::-;46844:1;46870;46860:132;;46914:10;46909:3;46905:20;46902:1;46895:31;46949:4;46946:1;46939:15;46977:4;46974:1;46967:15;46860:132;-1:-1:-1;47006:9:41;;46804:217::o;47026:168::-;47066:7;47132:1;47128;47124:6;47120:14;47117:1;47114:21;47109:1;47102:9;47095:17;47091:45;47088:71;;;47139:18;;:::i;:::-;-1:-1:-1;47179:9:41;;47026:168::o;47199:125::-;47239:4;47267:1;47264;47261:8;47258:34;;;47272:18;;:::i;:::-;-1:-1:-1;47309:9:41;;47199:125::o;47329:994::-;47425:9;47484:4;47476:5;47460:14;47456:26;47452:37;47449:57;;;47502:1;47499;47492:12;47449:57;47535:2;47529:9;47577:4;47569:6;47565:17;47601:18;47669:6;47657:10;47654:22;47649:2;47637:10;47634:18;47631:46;47628:72;;;47680:18;;:::i;:::-;47720:10;47716:2;47709:22;47768:5;47755:19;47740:34;;47783:33;47808:7;47783:33;:::i;:::-;47840:7;47832:6;47825:23;47905:2;47898:5;47894:14;47881:28;47876:2;47868:6;47864:15;47857:53;47958:2;47951:5;47947:14;47934:28;47919:43;;47971:33;47996:7;47971:33;:::i;:::-;48037:7;48032:2;48024:6;48020:15;48013:32;48102:2;48095:5;48091:14;48078:28;48073:2;48065:6;48061:15;48054:53;48154:3;48147:5;48143:15;48130:29;48116:43;;48182:2;48174:6;48171:14;48168:34;;;48198:1;48195;48188:12;48168:34;;48236:52;48273:14;48264:6;48257:5;48253:18;48236:52;:::i;:::-;48230:3;48218:16;;48211:78;-1:-1:-1;48222:6:41;47329:994;-1:-1:-1;;47329:994:41:o;48328:258::-;48400:1;48410:113;48424:6;48421:1;48418:13;48410:113;;;48500:11;;;48494:18;48481:11;;;48474:39;48446:2;48439:10;48410:113;;;48541:6;48538:1;48535:13;48532:48;;;-1:-1:-1;;48576:1:41;48558:16;;48551:27;48328:258::o;48591:135::-;48630:3;-1:-1:-1;;48651:17:41;;48648:43;;;48671:18;;:::i;:::-;-1:-1:-1;48718:1:41;48707:13;;48591:135::o;48731:136::-;48766:3;-1:-1:-1;;;48787:22:41;;48784:48;;;48812:18;;:::i;:::-;-1:-1:-1;48852:1:41;48848:13;;48731:136::o;48872:127::-;48933:10;48928:3;48924:20;48921:1;48914:31;48964:4;48961:1;48954:15;48988:4;48985:1;48978:15;49136:127;49197:10;49192:3;49188:20;49185:1;49178:31;49228:4;49225:1;49218:15;49252:4;49249:1;49242:15;49268:127;49329:10;49324:3;49320:20;49317:1;49310:31;49360:4;49357:1;49350:15;49384:4;49381:1;49374:15;49400:127;49461:10;49456:3;49452:20;49449:1;49442:31;49492:4;49489:1;49482:15;49516:4;49513:1;49506:15;49532:210;49613:1;49606:5;49603:12;49593:143;;49658:10;49653:3;49649:20;49646:1;49639:31;49693:4;49690:1;49683:15;49721:4;49718:1;49711:15;49747:154;-1:-1:-1;;;;;49826:5:41;49822:54;49815:5;49812:65;49802:93;;49891:1;49888;49881:12;49906:118;49992:5;49985:13;49978:21;49971:5;49968:32;49958:60;;50014:1;50011;50004:12
Swarm Source
none
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in HYPE
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.