Contract Address Details

0xAC4c6e212A361c968F1725b4d055b47E63F80b75

Contract Name
RedSnwapper
Creator
0x243e94–ff8362 at 0xe937bb–90f46b
Balance
0 TT ( )
Tokens
Fetching tokens...
Transactions
Transfers
Gas Used
Last Balance Update
208674680
Contract name:
RedSnwapper




Optimization enabled
true
Compiler version
v0.8.10+commit.fc410830




Optimization runs
10000000
Verified at
2025-02-07 18:02:52.492654Z

contracts/RedSnwapper.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.10;
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
contract RedSnwapper {
using SafeERC20 for IERC20;
using Utils for IERC20;
SafeExecutor public immutable safeExecutor;
constructor() {
safeExecutor = new SafeExecutor();
}
// @notice Swaps tokens
// @notice 1. Transfers amountIn of tokens tokenIn to executor
// @notice 2. launches executor with executorData and value = msg.value
// @notice 3. Checks that recipient's tokenOut balance was increased at least amountOutMin
function snwap(
IERC20 tokenIn,
uint amountIn, // if amountIn == 0 then amountIn = tokenIn.balance(this) - 1
address recipient,
IERC20 tokenOut,
uint amountOutMin,
address executor,
bytes calldata executorData
) external payable returns (uint amountOut) {
uint initialOutputBalance = tokenOut.universalBalanceOf(recipient);
if (address(tokenIn) != NATIVE_ADDRESS) {
if (amountIn > 0) tokenIn.safeTransferFrom(msg.sender, executor, amountIn);
else tokenIn.safeTransfer(executor, tokenIn.balanceOf(address(this)) - 1); // -1 is slot undrain protection
}
safeExecutor.execute{value: msg.value}(executor, executorData);
amountOut = tokenOut.universalBalanceOf(recipient) - initialOutputBalance;
if (amountOut < amountOutMin)
revert MinimalOutputBalanceViolation(address(tokenOut), amountOut);
}
// @notice Swaps multiple tokens
// @notice 1. Transfers inputTokens to inputTokens[i].transferTo
// @notice 2. launches executors
// @notice 3. Checks that recipient's tokenOut balance was increased at least amountOutMin
function snwapMultiple(
InputToken[] calldata inputTokens,
OutputToken[] calldata outputTokens,
Executor[] calldata executors
) external payable returns (uint[] memory amountOut) {
uint[] memory initialOutputBalance = new uint[](outputTokens.length);
for (uint i = 0; i < outputTokens.length; i++) {
initialOutputBalance[i] = outputTokens[i].token.universalBalanceOf(outputTokens[i].recipient);
}
for (uint i = 0; i < inputTokens.length; i++) {
IERC20 tokenIn = inputTokens[i].token;
if (address(tokenIn) != NATIVE_ADDRESS) {
if (inputTokens[i].amountIn > 0)
tokenIn.safeTransferFrom(msg.sender, inputTokens[i].transferTo, inputTokens[i].amountIn);
else tokenIn.safeTransfer(inputTokens[i].transferTo, tokenIn.balanceOf(address(this)) - 1); // -1 is slot undrain protection
}
}
safeExecutor.executeMultiple{value: msg.value}(executors);
amountOut = new uint[](outputTokens.length);
for (uint i = 0; i < outputTokens.length; i++) {
amountOut[i] = outputTokens[i].token.universalBalanceOf(outputTokens[i].recipient) - initialOutputBalance[i];
if (amountOut[i] < outputTokens[i].amountOutMin)
revert MinimalOutputBalanceViolation(address(outputTokens[i].token), amountOut[i]);
}
}
}
// This contract doesn't have token approves, so can safely call other contracts
contract SafeExecutor {
using Utils for address;
function execute(address executor, bytes calldata executorData) external payable {
executor.callRevertBubbleUp(msg.value, executorData);
}
function executeMultiple(Executor[] calldata executors) external payable {
for (uint i = 0; i < executors.length; i++) {
executors[i].executor.callRevertBubbleUp(executors[i].value, executors[i].data);
}
}
}
error MinimalOutputBalanceViolation(address tokenOut, uint256 amountOut);
address constant NATIVE_ADDRESS = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;
struct InputToken {
IERC20 token;
uint amountIn;
address transferTo;
}
struct OutputToken {
IERC20 token;
address recipient;
uint amountOutMin;
}
struct Executor {
address executor;
uint value;
bytes data;
}
library Utils {
using SafeERC20 for IERC20;
function universalBalanceOf(IERC20 token, address user) internal view returns (uint256) {
if (address(token) == NATIVE_ADDRESS) return address(user).balance;
else return token.balanceOf(user);
}
function callRevertBubbleUp(address contr, uint256 value, bytes memory data) internal {
(bool success, bytes memory returnBytes) = contr.call{value: value}(data);
if (!success) {
assembly {
revert(add(32, returnBytes), mload(returnBytes))
}
}
}
}

@openzeppelin/contracts/token/ERC20/IERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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);
}

@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
* https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
*
* Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
* presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
* need to send a transaction, and thus is not required to hold Ether at all.
*/
interface IERC20Permit {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}

@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "../IERC20.sol";
import "../extensions/draft-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;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
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");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}

@openzeppelin/contracts/utils/Address.sol

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return 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);
}
}
}

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[]},{"type":"error","name":"MinimalOutputBalanceViolation","inputs":[{"type":"address","name":"tokenOut","internalType":"address"},{"type":"uint256","name":"amountOut","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract SafeExecutor"}],"name":"safeExecutor","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256","name":"amountOut","internalType":"uint256"}],"name":"snwap","inputs":[{"type":"address","name":"tokenIn","internalType":"contract IERC20"},{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"address","name":"recipient","internalType":"address"},{"type":"address","name":"tokenOut","internalType":"contract IERC20"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"},{"type":"address","name":"executor","internalType":"address"},{"type":"bytes","name":"executorData","internalType":"bytes"}]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256[]","name":"amountOut","internalType":"uint256[]"}],"name":"snwapMultiple","inputs":[{"type":"tuple[]","name":"inputTokens","internalType":"struct InputToken[]","components":[{"type":"address","name":"token","internalType":"contract IERC20"},{"type":"uint256","name":"amountIn","internalType":"uint256"},{"type":"address","name":"transferTo","internalType":"address"}]},{"type":"tuple[]","name":"outputTokens","internalType":"struct OutputToken[]","components":[{"type":"address","name":"token","internalType":"contract IERC20"},{"type":"address","name":"recipient","internalType":"address"},{"type":"uint256","name":"amountOutMin","internalType":"uint256"}]},{"type":"tuple[]","name":"executors","internalType":"struct Executor[]","components":[{"type":"address","name":"executor","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"},{"type":"bytes","name":"data","internalType":"bytes"}]}]}]
            

Deployed ByteCode

0x6080604052600436106100345760003560e01c80635f3bd1c814610039578063d33721a51461005f578063e8382b011461007f575b600080fd5b61004c610047366004610e25565b6100d8565b6040519081526020015b60405180910390f35b61007261006d366004610f41565b610365565b604051610056919061100a565b34801561008b57600080fd5b506100b37f000000000000000000000000ad27827c312cd5e71311d68e180a9872d42de23d81565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610056565b6000806100fb73ffffffffffffffffffffffffffffffffffffffff8816896108c0565b905073ffffffffffffffffffffffffffffffffffffffff8a1673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461021a57881561015b5761015673ffffffffffffffffffffffffffffffffffffffff8b1633878c6109ab565b61021a565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015261021a90869060019073ffffffffffffffffffffffffffffffffffffffff8e16906370a0823190602401602060405180830381865afa1580156101ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101f2919061104e565b6101fc9190611096565b73ffffffffffffffffffffffffffffffffffffffff8d169190610a8d565b6040517f1cff79cd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ad27827c312cd5e71311d68e180a9872d42de23d1690631cff79cd903490610292908990899089906004016110f6565b6000604051808303818588803b1580156102ab57600080fd5b505af11580156102bf573d6000803e3d6000fd5b5050505050806102ee898973ffffffffffffffffffffffffffffffffffffffff166108c090919063ffffffff16565b6102f89190611096565b915085821015610358576040517f63ecb9f600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88166004820152602481018390526044015b60405180910390fd5b5098975050505050505050565b606060008467ffffffffffffffff8111156103825761038261112f565b6040519080825280602002602001820160405280156103ab578160200160208202803683370190505b50905060005b858110156104595761042a8787838181106103ce576103ce61115e565b90506060020160200160208101906103e6919061118d565b8888848181106103f8576103f861115e565b61040e926020606090920201908101915061118d565b73ffffffffffffffffffffffffffffffffffffffff16906108c0565b82828151811061043c5761043c61115e565b602090810291909101015280610451816111b1565b9150506103b1565b5060005b878110156106555760008989838181106104795761047961115e565b61048f926020606090920201908101915061118d565b905073ffffffffffffffffffffffffffffffffffffffff811673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee146106425760008a8a848181106104d6576104d661115e565b90506060020160200135111561055c57610557338b8b858181106104fc576104fc61115e565b9050606002016040016020810190610514919061118d565b8c8c868181106105265761052661115e565b905060600201602001358473ffffffffffffffffffffffffffffffffffffffff166109ab909392919063ffffffff16565b610642565b6106428a8a848181106105715761057161115e565b9050606002016040016020810190610589919061118d565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260019073ffffffffffffffffffffffffffffffffffffffff8516906370a0823190602401602060405180830381865afa1580156105f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061061a919061104e565b6106249190611096565b73ffffffffffffffffffffffffffffffffffffffff84169190610a8d565b508061064d816111b1565b91505061045d565b506040517fe8ff45ca00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000ad27827c312cd5e71311d68e180a9872d42de23d169063e8ff45ca9034906106cc90889088906004016111ea565b6000604051808303818588803b1580156106e557600080fd5b505af11580156106f9573d6000803e3d6000fd5b50889350505067ffffffffffffffff82111590506107195761071961112f565b604051908082528060200260200182016040528015610742578160200160208202803683370190505b50915060005b858110156108b4578181815181106107625761076261115e565b60200260200101516107a988888481811061077f5761077f61115e565b9050606002016020016020810190610797919061118d565b8989858181106103f8576103f861115e565b6107b39190611096565b8382815181106107c5576107c561115e565b6020026020010181815250508686828181106107e3576107e361115e565b905060600201604001358382815181106107ff576107ff61115e565b602002602001015110156108a25786868281811061081f5761081f61115e565b610835926020606090920201908101915061118d565b8382815181106108475761084761115e565b60209081029190910101516040517f63ecb9f600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9092166004830152602482015260440161034f565b806108ac816111b1565b915050610748565b50509695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1415610912575073ffffffffffffffffffffffffffffffffffffffff8116316109a5565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301528416906370a0823190602401602060405180830381865afa15801561097e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109a2919061104e565b90505b92915050565b60405173ffffffffffffffffffffffffffffffffffffffff80851660248301528316604482015260648101829052610a879085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610ae8565b50505050565b60405173ffffffffffffffffffffffffffffffffffffffff8316602482015260448101829052610ae39084907fa9059cbb0000000000000000000000000000000000000000000000000000000090606401610a05565b505050565b6000610b4a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610bf49092919063ffffffff16565b805190915015610ae35780806020019051810190610b68919061132e565b610ae3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161034f565b6060610c038484600085610c0b565b949350505050565b606082471015610c9d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c0000000000000000000000000000000000000000000000000000606482015260840161034f565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610cc6919061137c565b60006040518083038185875af1925050503d8060008114610d03576040519150601f19603f3d011682016040523d82523d6000602084013e610d08565b606091505b5091509150610d1987838387610d24565b979650505050505050565b60608315610db7578251610db05773ffffffffffffffffffffffffffffffffffffffff85163b610db0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161034f565b5081610c03565b610c038383815115610dcc5781518083602001fd5b806040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161034f9190611398565b73ffffffffffffffffffffffffffffffffffffffff81168114610e2257600080fd5b50565b60008060008060008060008060e0898b031215610e4157600080fd5b8835610e4c81610e00565b9750602089013596506040890135610e6381610e00565b95506060890135610e7381610e00565b94506080890135935060a0890135610e8a81610e00565b925060c089013567ffffffffffffffff80821115610ea757600080fd5b818b0191508b601f830112610ebb57600080fd5b813581811115610eca57600080fd5b8c6020828501011115610edc57600080fd5b6020830194508093505050509295985092959890939650565b60008083601f840112610f0757600080fd5b50813567ffffffffffffffff811115610f1f57600080fd5b602083019150836020606083028501011115610f3a57600080fd5b9250929050565b60008060008060008060608789031215610f5a57600080fd5b863567ffffffffffffffff80821115610f7257600080fd5b610f7e8a838b01610ef5565b90985096506020890135915080821115610f9757600080fd5b610fa38a838b01610ef5565b90965094506040890135915080821115610fbc57600080fd5b818901915089601f830112610fd057600080fd5b813581811115610fdf57600080fd5b8a60208260051b8501011115610ff457600080fd5b6020830194508093505050509295509295509295565b6020808252825182820181905260009190848201906040850190845b8181101561104257835183529284019291840191600101611026565b50909695505050505050565b60006020828403121561106057600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000828210156110a8576110a8611067565b500390565b8183528181602085013750600060208284010152600060207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116840101905092915050565b73ffffffffffffffffffffffffffffffffffffffff841681526040602082015260006111266040830184866110ad565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561119f57600080fd5b81356111aa81610e00565b9392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156111e3576111e3611067565b5060010190565b60208082528181018390526000906040808401600586901b8501820187855b88811015611320577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088840301845281357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa18b360301811261126a57600080fd5b8a016060813561127981610e00565b73ffffffffffffffffffffffffffffffffffffffff168552818801358886015286820135368390037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe10181126112ce57600080fd5b8201803567ffffffffffffffff8111156112e757600080fd5b8036038413156112f657600080fd5b828988015261130a838801828c85016110ad565b978a019796505050928701925050600101611209565b509098975050505050505050565b60006020828403121561134057600080fd5b815180151581146111aa57600080fd5b60005b8381101561136b578181015183820152602001611353565b83811115610a875750506000910152565b6000825161138e818460208701611350565b9190910192915050565b60208152600082518060208401526113b7816040850160208701611350565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220292b4bc06579abf79f4513b017ab8a0266be0b7efc7c73c00005d1d332897c2664736f6c634300080a0033