false

Contract Address Details

0xf0257Fb3Bc0A6414ab912fd2df56dbB3085b0B29

Contract Name
USDCBridgeService
Creator
0x0fd4b1–b32362 at 0x66f4b9–f66b86
Balance
0 GANG Token
Tokens
Fetching tokens...
Transactions
279 Transactions
Transfers
771 Transfers
Gas Used
33,299,694
Last Balance Update
7439610
Contract name:
USDCBridgeService




Optimization enabled
false
Compiler version
v0.8.19+commit.7dd6d404




EVM Version
default




Verified at
2024-02-07T20:15:49.059010Z

Contract source code

// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

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




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




/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` 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 value) external returns (bool);
}




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




/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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 {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, defaultRevert);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with a
     * `customRevert` function as a fallback when `target` reverts.
     *
     * Requirements:
     *
     * - `customRevert` must be a reverting function.
     */
    function functionCall(
        address target,
        bytes memory data,
        function() internal view customRevert
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, customRevert);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, defaultRevert);
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with a `customRevert` function as a fallback revert reason when `target` reverts.
     *
     * Requirements:
     *
     * - `customRevert` must be a reverting function.
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        function() internal view customRevert
    ) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, customRevert);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, defaultRevert);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, defaultRevert);
    }

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

    /**
     * @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 `customRevert`) in case of unsuccessful call or if target was not a contract.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        function() internal view customRevert
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check if target is a contract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                if (target.code.length == 0) {
                    revert AddressEmptyCode(target);
                }
            }
            return returndata;
        } else {
            _revert(returndata, customRevert);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or with a default revert error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal view returns (bytes memory) {
        return verifyCallResult(success, returndata, defaultRevert);
    }

    /**
     * @dev Same as {xref-Address-verifyCallResult-bool-bytes-}[`verifyCallResult`], but with a
     * `customRevert` function as a fallback when `success` is `false`.
     *
     * Requirements:
     *
     * - `customRevert` must be a reverting function.
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        function() internal view customRevert
    ) internal view returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, customRevert);
        }
    }

    /**
     * @dev Default reverting function when no `customRevert` is provided in a function call.
     */
    function defaultRevert() internal pure {
        revert FailedInnerCall();
    }

    function _revert(bytes memory returndata, function() internal view customRevert) private view {
        // 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 {
            customRevert();
            revert FailedInnerCall();
        }
    }
}




/**
 * @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 An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @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.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (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);
        if (nonceAfter != nonceBefore + 1) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @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(token).code.length > 0;
    }
}




interface IBridgeV2 {
    
    function bridgeEnabled() external view returns (bool);

    function enabledChains(uint256 chainId) external view returns (bool);

    function minTokenForChain(uint256 chainId) external view returns (uint256);

    function stable() external view returns (address);
    
    function cccnft() external view returns (address);

    // called by sending contract
    function sendRequest(address _recipient, uint256 _chain, uint256 _amount, address _source, bytes calldata _data, uint16 confirmations) external returns (uint txId);
    function sendRequestExpress(address _recipient, uint256 _chain, uint256 _amount, address _source, bytes calldata _data, uint16 confirmations) external returns (uint txId);

    // implemented by receiving contract
    function messageProcess(uint txId, uint sourceChainId, address sender, address recipient, uint amount, bytes calldata data) external;

    // returns the source fee in terms of PAPER (takes cccnft discounts into account)
    // (to get the destination gas fee, call the estimateGas from messageProcess on destination chain)
    function getSourceFee(uint _amount) external view returns (uint _fee);
    function getSourceFee(uint _amountInPaper, bool _express, uint _destChainId) external view returns (uint _fee);
}




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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

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

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

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




// Interface for the USDC.pol token
interface IUSDCpol {
    function mint(address recipient, uint amount) external;
    function burn(uint256 amount) external;
}




// Authors: 
//      Atlas (atlas@cryptolink.tech) - https://cryptolink.tech
//      Gauss_Austin (austinm@gaussgang.com) - https://gaussgang.com


/**
 *  This is a Bridge Service Contract Designed to facilitate the minting and burning of the Bridged USDC (Gauss) - USDC.pol stable 
 *  coin for the Gauss Ecosystem. USDC.pol is a Wrapped version of native USDC on the Polygon Chain and this contract handles
 *  the messaging service between Gauss and Polygon
 *      @dev contract desinged to share same contrat address on both Away and Gauss Chains
 */
contract USDCBridgeService is Ownable, ReentrancyGuard {
    address public FeeToken;
    address public USDCpol;
    address public USDC;
    address public WETH;
    address public BRIDGE;

    bool private _isGauss;
    bool private _initialized = false;

    uint256 private _feeAmount = 250000; // FeeToken is in USDC; equal to $0.25
    uint16 private _confirmations = 4;

    uint private constant _gaussChainID = 1777;
    uint private constant _polygonChainID = 137;

    event Recover(address to, address token, uint amount);
    event UpdateBridge(address bridge);
    event UpdateFeeToken(address feeToken);
    event UpdateFeeAmount(uint256 amount);
    event UpdateWETH(address weth);
    event UpdateConfirmations(uint16 amount);
    event MintUSDCpol(address to, uint amount);
    event BurnUSDCpol(address to, uint amount);
    event UnlockUSDCpol(address to, uint amount);
    event LockUSDCpol(address from, uint amount);


    modifier onlyBridge {
        require(msg.sender == BRIDGE, "not authorized");
        _;
    }

    
    // This function allows the contract to receives Native Currency 
    receive() external payable {}


    /**
     * Called after deploy to set contract addresses.
     *
     * @param _bridge Bridge address
     * @param _feeToken Fee token address
     * @param _weth Wrapped Native token address
     * @param _usdcPol USDCpol address on Gauss (On 'Away' Chain, set to address(0))
     * @param _usdc USDC address on Polygon (on gauss this is address(0))
     */
    function init(address _bridge, address _feeToken, address _weth, address _usdcPol, address _usdc) external onlyOwner {
        
        require(_initialized == false, "Contract has previously been initialized");
        
        BRIDGE = _bridge;
        FeeToken = _feeToken;
        WETH = _weth;
        USDCpol = _usdcPol;
        USDC = _usdc;

        // Approve BRIDGE for Fee token transfers
        IERC20(FeeToken).approve(_bridge, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        IERC20(WETH).approve(_bridge, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);

        uint256 currentChainId = block.chainid;

        if (currentChainId == _gaussChainID) {
            _isGauss = true;
        }
        else {
            _isGauss = false;
        }

        _initialized = true;
    }


    /**
     * @param _recipient Address to deliver USDCpol (wallet or contract)
     * @param _amountIn Amount of STABLE to wrap on Away Chain
     * @param _source Address of the referrer of the transaction
     * @param _express Enable express mode
     */
    function transfer(address _recipient, uint _amountIn, address _source, bool _express) external payable nonReentrant returns (uint _txId) {

        require(_recipient != address(0), "recipient unknown");
        require(_amountIn > _feeAmount, "Amount too low to cover Bridge Fee");

        uint _chain;
        uint _adjustedAmountIn;

        // If the 'isGauss' value is false, we know we are on the Away Chain
        if(_isGauss == false) {
            _chain = _gaussChainID;  // sending to Gauss Chain
            _adjustedAmountIn = _amountIn - _feeAmount;
            require(_adjustedAmountIn > 0, "Amount too low to cover Bridge Fee");
            SafeERC20.safeTransferFrom(IERC20(USDC), msg.sender, address(this), _amountIn);
            emit LockUSDCpol(msg.sender, _adjustedAmountIn);
        } 

        // If the 'isGauss' value is true, we know we are on the Gauss Chain
        else if(_isGauss == true) {
            _chain = _polygonChainID;   // sending to Polygon Chain
            _adjustedAmountIn = _amountIn - _feeAmount;
            require(_adjustedAmountIn > 0, "Amount too low to cover Bridge Fee");
            SafeERC20.safeTransferFrom(IERC20(USDCpol), msg.sender, address(this), _amountIn);
            IUSDCpol(USDCpol).burn(_adjustedAmountIn);
            emit BurnUSDCpol(msg.sender, _adjustedAmountIn);
        }

        else {
            revert("invalid configuration");
        }

        bytes memory _packageData = abi.encode(
            _recipient,         // actual recipient
            _adjustedAmountIn,  // amount of tokens wrapped(stable) or burned (USDCpol)
            _source             // address who refered the traffic
        );

        if(_express) {
            _txId = IBridgeV2(BRIDGE).sendRequestExpress(
                address(this),  // recipient is the corresponding destination deploy of this contract, deployed contract addresses must match!
                _chain,         // id of the destination chain
                _feeAmount,     // fee amount, just min so gas/tx fees are paid - desination contract gets the change
                _source,        // "source"
                _packageData,   // encoded data to be processed by this contract on Gauss
                _confirmations  // number of confirmations before validating
            );
        }

        else {
            _txId = IBridgeV2(BRIDGE).sendRequest(
                address(this),  // recipient is the corresponding destination deploy of this contract, deployed contract addresses must match!
                _chain,         // id of the destination chain
                _feeAmount,     // fee amount, just min so gas/tx fees are paid - desination contract gets the change
                _source,        // "source"
                _packageData,   // encoded data to be processed by this contract on Gauss
                _confirmations  // number of confirmations before validating
            );
        }

        return(_txId);
    }


    // BRIDGE ACCESS ONLY
    function messageProcess(uint,uint, address _sender, address _recipient, uint, bytes calldata _packageData) external nonReentrant onlyBridge {
        require(_sender == address(this), "wrong address");     // @dev reminder: contract addresses must match on both Away and Gauss Chains

        /*  Extracts the FINAL recipient and the FINAL data from _packageData,
            which is set on the source chain for the address calling this contract

                @dev _recipient above is "us" so we unwrap and override here with next level _recipient
        */
        address _source;
        uint _amountIn;
        (_recipient, _amountIn, _source) = abi.decode(_packageData, (address, uint, address));

        if(_isGauss == false) {            
            // We are on Polygon Chain
            SafeERC20.safeTransfer(IERC20(USDC), _recipient, _amountIn);
            emit UnlockUSDCpol(msg.sender, _amountIn);
        } 
        
        else if(_isGauss == true) {            
            // We are on Gauss Chain
            IUSDCpol(USDCpol).mint(_recipient, _amountIn);
            emit MintUSDCpol(msg.sender, _amountIn);
        }
        
        else {
            revert("Invalid configuration");
        }
    }


    // Update the Bridge address
    function updateBridge(address _newBridge) external onlyOwner {
        IERC20(FeeToken).approve(BRIDGE, 0);
        IERC20(WETH).approve(BRIDGE, 0);
        BRIDGE = _newBridge;
        IERC20(FeeToken).approve(_newBridge, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        IERC20(WETH).approve(_newBridge, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);        
        emit UpdateBridge(_newBridge);
    }


    // Update the Fee Token and approve the bridge to transfer the new Token
    function updateFeeToken(address _newFeeToken) external onlyOwner {
        IERC20(FeeToken).approve(BRIDGE, 0);
        FeeToken = _newFeeToken;
        IERC20(_newFeeToken).approve(BRIDGE, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        emit UpdateFeeToken(_newFeeToken);
    }


    // Update the Fee amount for minimum gas/tx fee payment
    function updateFeeAmount(uint256 _amount) external onlyOwner {
        _feeAmount = _amount;
        emit UpdateFeeAmount(_amount);
    }


    // Get the current fee amount
    function getFeeAmount() external view returns(uint256) {
        return _feeAmount;
    }

    
    // Update the WETH Token and approve the bridge to transfer the new Token
    function updateWETH(address _newWETH) external onlyOwner {
        IERC20(WETH).approve(BRIDGE, 0);
        WETH = _newWETH;
        IERC20(_newWETH).approve(BRIDGE, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        emit UpdateWETH(_newWETH);
    }


    // Update the number of confirmations required before validating
    function updateConfirmations(uint16 _numConfirmations) external onlyOwner {
        _confirmations = _numConfirmations;
        emit UpdateConfirmations(_numConfirmations);
    }


    /* Withdrawl any ERC20 Token that are accidentally sent to this contract
            WARNING:    Interacting with unsafe tokens or smart contracts can 
                        result in stolen private keys, loss of funds, and drained
                        wallets. Use this function with trusted Tokens/Contracts only
    */
    function withdrawERC20(address tokenAddress, address recoveryWallet) external onlyOwner {
        IERC20 token = IERC20(tokenAddress);
        uint256 balance = token.balanceOf(address(this));
        require(balance > 0, "No tokens to withdraw");

        token.transfer(recoveryWallet, balance);
        emit Recover(recoveryWallet, tokenAddress, balance);  
    }


    /* Withdrawl any ERC20 Token that are accidentally sent to this contract
            WARNING:    Interacting with unsafe tokens or smart contracts can 
                        result in stolen private keys, loss of funds, and drained
                        wallets. Use this function with trusted Tokens/Contracts only
    */
    function withdrawERC20Amount(address tokenAddress, address recoveryWallet, uint256 amount) external onlyOwner {
        IERC20 token = IERC20(tokenAddress);
        uint256 balance = token.balanceOf(address(this));
        require(balance > amount, "Balance too low to transfer amount");

        token.transfer(recoveryWallet, amount);
        emit Recover(recoveryWallet, tokenAddress, amount);  
    }


    // Contract Owner can withdraw any Native sent accidentally
    function nativeRecover(address recoveryWallet) external onlyOwner() {
        payable(recoveryWallet).transfer(address(this).balance);
    }
}
        

Contract ABI

[{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"BRIDGE","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"FeeToken","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"USDC","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"USDCpol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"WETH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getFeeAmount","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"init","inputs":[{"type":"address","name":"_bridge","internalType":"address"},{"type":"address","name":"_feeToken","internalType":"address"},{"type":"address","name":"_weth","internalType":"address"},{"type":"address","name":"_usdcPol","internalType":"address"},{"type":"address","name":"_usdc","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"messageProcess","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"_sender","internalType":"address"},{"type":"address","name":"_recipient","internalType":"address"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"bytes","name":"_packageData","internalType":"bytes"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"nativeRecover","inputs":[{"type":"address","name":"recoveryWallet","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[{"type":"uint256","name":"_txId","internalType":"uint256"}],"name":"transfer","inputs":[{"type":"address","name":"_recipient","internalType":"address"},{"type":"uint256","name":"_amountIn","internalType":"uint256"},{"type":"address","name":"_source","internalType":"address"},{"type":"bool","name":"_express","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateBridge","inputs":[{"type":"address","name":"_newBridge","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateConfirmations","inputs":[{"type":"uint16","name":"_numConfirmations","internalType":"uint16"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateFeeAmount","inputs":[{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateFeeToken","inputs":[{"type":"address","name":"_newFeeToken","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateWETH","inputs":[{"type":"address","name":"_newWETH","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawERC20","inputs":[{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"address","name":"recoveryWallet","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdrawERC20Amount","inputs":[{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"address","name":"recoveryWallet","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"event","name":"BurnUSDCpol","inputs":[{"type":"address","name":"to","indexed":false},{"type":"uint256","name":"amount","indexed":false}],"anonymous":false},{"type":"event","name":"LockUSDCpol","inputs":[{"type":"address","name":"from","indexed":false},{"type":"uint256","name":"amount","indexed":false}],"anonymous":false},{"type":"event","name":"MintUSDCpol","inputs":[{"type":"address","name":"to","indexed":false},{"type":"uint256","name":"amount","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","indexed":true},{"type":"address","name":"newOwner","indexed":true}],"anonymous":false},{"type":"event","name":"Recover","inputs":[{"type":"address","name":"to","indexed":false},{"type":"address","name":"token","indexed":false},{"type":"uint256","name":"amount","indexed":false}],"anonymous":false},{"type":"event","name":"UnlockUSDCpol","inputs":[{"type":"address","name":"to","indexed":false},{"type":"uint256","name":"amount","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateBridge","inputs":[{"type":"address","name":"bridge","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateConfirmations","inputs":[{"type":"uint16","name":"amount","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateFeeAmount","inputs":[{"type":"uint256","name":"amount","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateFeeToken","inputs":[{"type":"address","name":"feeToken","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateWETH","inputs":[{"type":"address","name":"weth","indexed":false}],"anonymous":false},{"type":"error","name":"AddressEmptyCode","inputs":[{"type":"address","name":"target","internalType":"address"}]},{"type":"error","name":"AddressInsufficientBalance","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"error","name":"FailedInnerCall","inputs":[]},{"type":"error","name":"SafeERC20FailedOperation","inputs":[{"type":"address","name":"token","internalType":"address"}]},{"type":"receive"}]
              

Contract Creation Code

0x60806040526000600660156101000a81548160ff0219169083151502179055506203d0906007556004600860006101000a81548161ffff021916908361ffff1602179055503480156200005157600080fd5b5062000072620000666200007f60201b60201c565b6200008760201b60201c565b600180819055506200014b565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613100806200015b6000396000f3fe6080604052600436106101235760003560e01c80639456fbcc116100a0578063c89245d511610064578063c89245d514610397578063ea7a7e98146103c0578063ee9a31a2146103e9578063f2fde38b14610414578063fe9440d71461043d5761012a565b80639456fbcc146102c65780639ea55bb0146102ef578063ac6f1f8a14610318578063ad5c464814610341578063bf5c98221461036c5761012a565b80636eb38212116100e75780636eb3821214610200578063715018a61461022957806389a30271146102405780638da5cb5b1461026b57806393c45535146102965761012a565b80632bb1f2fd1461012f578063359ef75b1461015857806337811e6214610181578063481531e9146101ac5780635f46e740146101d75761012a565b3661012a57005b600080fd5b34801561013b57600080fd5b50610156600480360381019061015191906122e5565b610466565b005b34801561016457600080fd5b5061017f600480360381019061017a9190612338565b6105f4565b005b34801561018d57600080fd5b50610196610986565b6040516101a391906123c2565b60405180910390f35b3480156101b857600080fd5b506101c16109ac565b6040516101ce91906123c2565b60405180910390f35b3480156101e357600080fd5b506101fe60048036038101906101f99190612442565b6109d2565b005b34801561020c57600080fd5b50610227600480360381019061022291906124f1565b610cb3565b005b34801561023557600080fd5b5061023e611040565b005b34801561024c57600080fd5b50610255611054565b60405161026291906123c2565b60405180910390f35b34801561027757600080fd5b5061028061107a565b60405161028d91906123c2565b60405180910390f35b6102b060048036038101906102ab9190612556565b6110a3565b6040516102bd91906125cc565b60405180910390f35b3480156102d257600080fd5b506102ed60048036038101906102e891906125e7565b6115a8565b005b3480156102fb57600080fd5b5061031660048036038101906103119190612627565b611736565b005b34801561032457600080fd5b5061033f600480360381019061033a91906124f1565b61177f565b005b34801561034d57600080fd5b506103566117d1565b60405161036391906123c2565b60405180910390f35b34801561037857600080fd5b506103816117f7565b60405161038e91906125cc565b60405180910390f35b3480156103a357600080fd5b506103be60048036038101906103b991906124f1565b611801565b005b3480156103cc57600080fd5b506103e760048036038101906103e2919061268e565b611a09565b005b3480156103f557600080fd5b506103fe611a68565b60405161040b91906123c2565b60405180910390f35b34801561042057600080fd5b5061043b600480360381019061043691906124f1565b611a8e565b005b34801561044957600080fd5b50610464600480360381019061045f91906124f1565b611b11565b005b61046e611d19565b600083905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104ae91906123c2565b602060405180830381865afa1580156104cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ef91906126d0565b9050828111610533576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052a90612780565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b815260040161056e9291906127a0565b6020604051808303816000875af115801561058d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b191906127de565b507ff6891c84a6c6af32a6d052172a8acc4c631b1d5057ffa2bc1da268b6938ea2da8486856040516105e59392919061280b565b60405180910390a15050505050565b6105fc611d19565b60001515600660159054906101000a900460ff16151514610652576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610649906128b4565b60405180910390fd5b84600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610814929190612919565b6020604051808303816000875af1158015610833573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085791906127de565b50600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b81526004016108d5929190612919565b6020604051808303816000875af11580156108f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091891906127de565b5060004690506106f18103610947576001600660146101000a81548160ff021916908315150217905550610963565b6000600660146101000a81548160ff0219169083151502179055505b6001600660156101000a81548160ff021916908315150217905550505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109da611d97565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a619061298e565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf906129fa565b60405180910390fd5b6000808383810190610aea9190612a58565b80945081935082985050505060001515600660149054906101000a900460ff16151503610b7c57610b3e600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168783611de6565b7fc8d7cc6a06a9d2dfda5e46ec76ddf79e11df0a1a0d67f33c3a8de33a8d3476e63382604051610b6f9291906127a0565b60405180910390a1610ca0565b60011515600660149054906101000a900460ff16151503610c6457600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1987836040518363ffffffff1660e01b8152600401610bf49291906127a0565b600060405180830381600087803b158015610c0e57600080fd5b505af1158015610c22573d6000803e3d6000fd5b505050507fbc30c582de9bdd72576cc1a053c6415b0123a50bd8f34db4f8d58460062405953382604051610c579291906127a0565b60405180910390a1610c9f565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9690612af7565b60405180910390fd5b5b5050610caa611e65565b50505050505050565b610cbb611d19565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006040518363ffffffff1660e01b8152600401610d3b929190612b52565b6020604051808303816000875af1158015610d5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7e91906127de565b50600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006040518363ffffffff1660e01b8152600401610dff929190612b52565b6020604051808303816000875af1158015610e1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4291906127de565b5080600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610f01929190612919565b6020604051808303816000875af1158015610f20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4491906127de565b50600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610fc2929190612919565b6020604051808303816000875af1158015610fe1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100591906127de565b507ff7e059f82bd20d2e2af76029a2174fc736dbbdb71beefa4f382ae40dea52a96d8160405161103591906123c2565b60405180910390a150565b611048611d19565b6110526000611e6e565b565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006110ad611d97565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361111c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111390612bc7565b60405180910390fd5b6007548411611160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115790612c59565b60405180910390fd5b60008060001515600660149054906101000a900460ff16151503611242576106f19150600754866111919190612ca8565b9050600081116111d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cd90612c59565b60405180910390fd5b611204600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16333089611f32565b7f13d5b1b7d7585d2cd475f0110b82c6a11c280913d6ec42cb5380ed6f99b63fcc33826040516112359291906127a0565b60405180910390a16113e9565b60011515600660149054906101000a900460ff161515036113ad57608991506007548661126f9190612ca8565b9050600081116112b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ab90612c59565b60405180910390fd5b6112e2600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16333089611f32565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68826040518263ffffffff1660e01b815260040161133d91906125cc565b600060405180830381600087803b15801561135757600080fd5b505af115801561136b573d6000803e3d6000fd5b505050507f789b1f4b6127b82310ef7cc8516f47807715658c0dbeb0c67f609f4305151a2033826040516113a09291906127a0565b60405180910390a16113e8565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113df90612d28565b60405180910390fd5b5b600087828760405160200161140093929190612d48565b604051602081830303815290604052905084156114d857600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c54e561830856007548a86600860009054906101000a900461ffff166040518763ffffffff1660e01b815260040161148e96959493929190612e1e565b6020604051808303816000875af11580156114ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d191906126d0565b9350611595565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639e1db8df30856007548a86600860009054906101000a900461ffff166040518763ffffffff1660e01b815260040161154f96959493929190612e1e565b6020604051808303816000875af115801561156e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159291906126d0565b93505b5050506115a0611e65565b949350505050565b6115b0611d19565b600082905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016115f091906123c2565b602060405180830381865afa15801561160d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163191906126d0565b905060008111611676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166d90612ed2565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b81526004016116b19291906127a0565b6020604051808303816000875af11580156116d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f491906127de565b507ff6891c84a6c6af32a6d052172a8acc4c631b1d5057ffa2bc1da268b6938ea2da8385836040516117289392919061280b565b60405180910390a150505050565b61173e611d19565b806007819055507fe6a3cf89f060883424c0a2f00894865f6cbb61d347b8e97b41d2f47b095c61198160405161177491906125cc565b60405180910390a150565b611787611d19565b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156117cd573d6000803e3d6000fd5b5050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600754905090565b611809611d19565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006040518363ffffffff1660e01b8152600401611889929190612b52565b6020604051808303816000875af11580156118a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118cc91906127de565b5080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b815260040161198b929190612919565b6020604051808303816000875af11580156119aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ce91906127de565b507faba379270b543cc95d13a917cc25b32e681fbf7975a6be7c1ca7acca52801810816040516119fe91906123c2565b60405180910390a150565b611a11611d19565b80600860006101000a81548161ffff021916908361ffff1602179055507fe4dcfc96e3fd4df9c3f1e4ca7bcff77cff5e30f30f58fff88d07eb049c05cc7981604051611a5d9190612ef2565b60405180910390a150565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a96611d19565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afc90612f7f565b60405180910390fd5b611b0e81611e6e565b50565b611b19611d19565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006040518363ffffffff1660e01b8152600401611b99929190612b52565b6020604051808303816000875af1158015611bb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bdc91906127de565b5080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401611c9b929190612919565b6020604051808303816000875af1158015611cba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cde91906127de565b507f932db81466729f33ade08aae27119b02d0adb58591275056ccf11b8fb3b5eb2881604051611d0e91906123c2565b60405180910390a150565b611d21611fb4565b73ffffffffffffffffffffffffffffffffffffffff16611d3f61107a565b73ffffffffffffffffffffffffffffffffffffffff1614611d95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8c90612feb565b60405180910390fd5b565b600260015403611ddc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd390613057565b60405180910390fd5b6002600181905550565b611e60838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401611e199291906127a0565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611fbc565b505050565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611fae848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401611f679392919061280b565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611fbc565b50505050565b600033905090565b6000611fe7828473ffffffffffffffffffffffffffffffffffffffff1661205390919063ffffffff16565b9050600081511415801561200c57508080602001905181019061200a91906127de565b155b1561204e57826040517f5274afe700000000000000000000000000000000000000000000000000000000815260040161204591906123c2565b60405180910390fd5b505050565b60606120648383600061206c61209e565b905092915050565b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6060824710156120e557306040517fcd7860590000000000000000000000000000000000000000000000000000000081526004016120dc91906123c2565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161210e91906130b3565b60006040518083038185875af1925050503d806000811461214b576040519150601f19603f3d011682016040523d82523d6000602084013e612150565b606091505b50915091506121618783838761216d565b92505050949350505050565b606083156121e35760008351036121db5760008573ffffffffffffffffffffffffffffffffffffffff163b036121da57846040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016121d191906123c2565b60405180910390fd5b5b8290506121ee565b6121ed83836121f6565b5b949350505050565b6000825111156122095781518083602001fd5b6122158163ffffffff16565b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061227c82612251565b9050919050565b61228c81612271565b811461229757600080fd5b50565b6000813590506122a981612283565b92915050565b6000819050919050565b6122c2816122af565b81146122cd57600080fd5b50565b6000813590506122df816122b9565b92915050565b6000806000606084860312156122fe576122fd612247565b5b600061230c8682870161229a565b935050602061231d8682870161229a565b925050604061232e868287016122d0565b9150509250925092565b600080600080600060a0868803121561235457612353612247565b5b60006123628882890161229a565b95505060206123738882890161229a565b94505060406123848882890161229a565b93505060606123958882890161229a565b92505060806123a68882890161229a565b9150509295509295909350565b6123bc81612271565b82525050565b60006020820190506123d760008301846123b3565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612402576124016123dd565b5b8235905067ffffffffffffffff81111561241f5761241e6123e2565b5b60208301915083600182028301111561243b5761243a6123e7565b5b9250929050565b600080600080600080600060c0888a03121561246157612460612247565b5b600061246f8a828b016122d0565b97505060206124808a828b016122d0565b96505060406124918a828b0161229a565b95505060606124a28a828b0161229a565b94505060806124b38a828b016122d0565b93505060a088013567ffffffffffffffff8111156124d4576124d361224c565b5b6124e08a828b016123ec565b925092505092959891949750929550565b60006020828403121561250757612506612247565b5b60006125158482850161229a565b91505092915050565b60008115159050919050565b6125338161251e565b811461253e57600080fd5b50565b6000813590506125508161252a565b92915050565b600080600080608085870312156125705761256f612247565b5b600061257e8782880161229a565b945050602061258f878288016122d0565b93505060406125a08782880161229a565b92505060606125b187828801612541565b91505092959194509250565b6125c6816122af565b82525050565b60006020820190506125e160008301846125bd565b92915050565b600080604083850312156125fe576125fd612247565b5b600061260c8582860161229a565b925050602061261d8582860161229a565b9150509250929050565b60006020828403121561263d5761263c612247565b5b600061264b848285016122d0565b91505092915050565b600061ffff82169050919050565b61266b81612654565b811461267657600080fd5b50565b60008135905061268881612662565b92915050565b6000602082840312156126a4576126a3612247565b5b60006126b284828501612679565b91505092915050565b6000815190506126ca816122b9565b92915050565b6000602082840312156126e6576126e5612247565b5b60006126f4848285016126bb565b91505092915050565b600082825260208201905092915050565b7f42616c616e636520746f6f206c6f7720746f207472616e7366657220616d6f7560008201527f6e74000000000000000000000000000000000000000000000000000000000000602082015250565b600061276a6022836126fd565b91506127758261270e565b604082019050919050565b600060208201905081810360008301526127998161275d565b9050919050565b60006040820190506127b560008301856123b3565b6127c260208301846125bd565b9392505050565b6000815190506127d88161252a565b92915050565b6000602082840312156127f4576127f3612247565b5b6000612802848285016127c9565b91505092915050565b600060608201905061282060008301866123b3565b61282d60208301856123b3565b61283a60408301846125bd565b949350505050565b7f436f6e7472616374206861732070726576696f75736c79206265656e20696e6960008201527f7469616c697a6564000000000000000000000000000000000000000000000000602082015250565b600061289e6028836126fd565b91506128a982612842565b604082019050919050565b600060208201905081810360008301526128cd81612891565b9050919050565b6000819050919050565b6000819050919050565b60006129036128fe6128f9846128d4565b6128de565b6122af565b9050919050565b612913816128e8565b82525050565b600060408201905061292e60008301856123b3565b61293b602083018461290a565b9392505050565b7f6e6f7420617574686f72697a6564000000000000000000000000000000000000600082015250565b6000612978600e836126fd565b915061298382612942565b602082019050919050565b600060208201905081810360008301526129a78161296b565b9050919050565b7f77726f6e67206164647265737300000000000000000000000000000000000000600082015250565b60006129e4600d836126fd565b91506129ef826129ae565b602082019050919050565b60006020820190508181036000830152612a13816129d7565b9050919050565b6000612a2582612251565b9050919050565b612a3581612a1a565b8114612a4057600080fd5b50565b600081359050612a5281612a2c565b92915050565b600080600060608486031215612a7157612a70612247565b5b6000612a7f86828701612a43565b9350506020612a90868287016122d0565b9250506040612aa186828701612a43565b9150509250925092565b7f496e76616c696420636f6e66696775726174696f6e0000000000000000000000600082015250565b6000612ae16015836126fd565b9150612aec82612aab565b602082019050919050565b60006020820190508181036000830152612b1081612ad4565b9050919050565b6000819050919050565b6000612b3c612b37612b3284612b17565b6128de565b6122af565b9050919050565b612b4c81612b21565b82525050565b6000604082019050612b6760008301856123b3565b612b746020830184612b43565b9392505050565b7f726563697069656e7420756e6b6e6f776e000000000000000000000000000000600082015250565b6000612bb16011836126fd565b9150612bbc82612b7b565b602082019050919050565b60006020820190508181036000830152612be081612ba4565b9050919050565b7f416d6f756e7420746f6f206c6f7720746f20636f76657220427269646765204660008201527f6565000000000000000000000000000000000000000000000000000000000000602082015250565b6000612c436022836126fd565b9150612c4e82612be7565b604082019050919050565b60006020820190508181036000830152612c7281612c36565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612cb3826122af565b9150612cbe836122af565b9250828203905081811115612cd657612cd5612c79565b5b92915050565b7f696e76616c696420636f6e66696775726174696f6e0000000000000000000000600082015250565b6000612d126015836126fd565b9150612d1d82612cdc565b602082019050919050565b60006020820190508181036000830152612d4181612d05565b9050919050565b6000606082019050612d5d60008301866123b3565b612d6a60208301856125bd565b612d7760408301846123b3565b949350505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612db9578082015181840152602081019050612d9e565b60008484015250505050565b6000601f19601f8301169050919050565b6000612de182612d7f565b612deb8185612d8a565b9350612dfb818560208601612d9b565b612e0481612dc5565b840191505092915050565b612e1881612654565b82525050565b600060c082019050612e3360008301896123b3565b612e4060208301886125bd565b612e4d60408301876125bd565b612e5a60608301866123b3565b8181036080830152612e6c8185612dd6565b9050612e7b60a0830184612e0f565b979650505050505050565b7f4e6f20746f6b656e7320746f2077697468647261770000000000000000000000600082015250565b6000612ebc6015836126fd565b9150612ec782612e86565b602082019050919050565b60006020820190508181036000830152612eeb81612eaf565b9050919050565b6000602082019050612f076000830184612e0f565b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612f696026836126fd565b9150612f7482612f0d565b604082019050919050565b60006020820190508181036000830152612f9881612f5c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612fd56020836126fd565b9150612fe082612f9f565b602082019050919050565b6000602082019050818103600083015261300481612fc8565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613041601f836126fd565b915061304c8261300b565b602082019050919050565b6000602082019050818103600083015261307081613034565b9050919050565b600081905092915050565b600061308d82612d7f565b6130978185613077565b93506130a7818560208601612d9b565b80840191505092915050565b60006130bf8284613082565b91508190509291505056fea2646970667358221220ee589575f0e8272d53e012662df03f8ca6b706040c55e35076b91b3999195a1064736f6c63430008130033

Deployed ByteCode

0x6080604052600436106101235760003560e01c80639456fbcc116100a0578063c89245d511610064578063c89245d514610397578063ea7a7e98146103c0578063ee9a31a2146103e9578063f2fde38b14610414578063fe9440d71461043d5761012a565b80639456fbcc146102c65780639ea55bb0146102ef578063ac6f1f8a14610318578063ad5c464814610341578063bf5c98221461036c5761012a565b80636eb38212116100e75780636eb3821214610200578063715018a61461022957806389a30271146102405780638da5cb5b1461026b57806393c45535146102965761012a565b80632bb1f2fd1461012f578063359ef75b1461015857806337811e6214610181578063481531e9146101ac5780635f46e740146101d75761012a565b3661012a57005b600080fd5b34801561013b57600080fd5b50610156600480360381019061015191906122e5565b610466565b005b34801561016457600080fd5b5061017f600480360381019061017a9190612338565b6105f4565b005b34801561018d57600080fd5b50610196610986565b6040516101a391906123c2565b60405180910390f35b3480156101b857600080fd5b506101c16109ac565b6040516101ce91906123c2565b60405180910390f35b3480156101e357600080fd5b506101fe60048036038101906101f99190612442565b6109d2565b005b34801561020c57600080fd5b50610227600480360381019061022291906124f1565b610cb3565b005b34801561023557600080fd5b5061023e611040565b005b34801561024c57600080fd5b50610255611054565b60405161026291906123c2565b60405180910390f35b34801561027757600080fd5b5061028061107a565b60405161028d91906123c2565b60405180910390f35b6102b060048036038101906102ab9190612556565b6110a3565b6040516102bd91906125cc565b60405180910390f35b3480156102d257600080fd5b506102ed60048036038101906102e891906125e7565b6115a8565b005b3480156102fb57600080fd5b5061031660048036038101906103119190612627565b611736565b005b34801561032457600080fd5b5061033f600480360381019061033a91906124f1565b61177f565b005b34801561034d57600080fd5b506103566117d1565b60405161036391906123c2565b60405180910390f35b34801561037857600080fd5b506103816117f7565b60405161038e91906125cc565b60405180910390f35b3480156103a357600080fd5b506103be60048036038101906103b991906124f1565b611801565b005b3480156103cc57600080fd5b506103e760048036038101906103e2919061268e565b611a09565b005b3480156103f557600080fd5b506103fe611a68565b60405161040b91906123c2565b60405180910390f35b34801561042057600080fd5b5061043b600480360381019061043691906124f1565b611a8e565b005b34801561044957600080fd5b50610464600480360381019061045f91906124f1565b611b11565b005b61046e611d19565b600083905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016104ae91906123c2565b602060405180830381865afa1580156104cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ef91906126d0565b9050828111610533576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052a90612780565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb85856040518363ffffffff1660e01b815260040161056e9291906127a0565b6020604051808303816000875af115801561058d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b191906127de565b507ff6891c84a6c6af32a6d052172a8acc4c631b1d5057ffa2bc1da268b6938ea2da8486856040516105e59392919061280b565b60405180910390a15050505050565b6105fc611d19565b60001515600660159054906101000a900460ff16151514610652576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610649906128b4565b60405180910390fd5b84600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610814929190612919565b6020604051808303816000875af1158015610833573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085791906127de565b50600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b81526004016108d5929190612919565b6020604051808303816000875af11580156108f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061091891906127de565b5060004690506106f18103610947576001600660146101000a81548160ff021916908315150217905550610963565b6000600660146101000a81548160ff0219169083151502179055505b6001600660156101000a81548160ff021916908315150217905550505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6109da611d97565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610a6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a619061298e565b60405180910390fd5b3073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614610ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610acf906129fa565b60405180910390fd5b6000808383810190610aea9190612a58565b80945081935082985050505060001515600660149054906101000a900460ff16151503610b7c57610b3e600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168783611de6565b7fc8d7cc6a06a9d2dfda5e46ec76ddf79e11df0a1a0d67f33c3a8de33a8d3476e63382604051610b6f9291906127a0565b60405180910390a1610ca0565b60011515600660149054906101000a900460ff16151503610c6457600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1987836040518363ffffffff1660e01b8152600401610bf49291906127a0565b600060405180830381600087803b158015610c0e57600080fd5b505af1158015610c22573d6000803e3d6000fd5b505050507fbc30c582de9bdd72576cc1a053c6415b0123a50bd8f34db4f8d58460062405953382604051610c579291906127a0565b60405180910390a1610c9f565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9690612af7565b60405180910390fd5b5b5050610caa611e65565b50505050505050565b610cbb611d19565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006040518363ffffffff1660e01b8152600401610d3b929190612b52565b6020604051808303816000875af1158015610d5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d7e91906127de565b50600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006040518363ffffffff1660e01b8152600401610dff929190612b52565b6020604051808303816000875af1158015610e1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e4291906127de565b5080600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610f01929190612919565b6020604051808303816000875af1158015610f20573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4491906127de565b50600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401610fc2929190612919565b6020604051808303816000875af1158015610fe1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100591906127de565b507ff7e059f82bd20d2e2af76029a2174fc736dbbdb71beefa4f382ae40dea52a96d8160405161103591906123c2565b60405180910390a150565b611048611d19565b6110526000611e6e565b565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60006110ad611d97565b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff160361111c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111390612bc7565b60405180910390fd5b6007548411611160576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115790612c59565b60405180910390fd5b60008060001515600660149054906101000a900460ff16151503611242576106f19150600754866111919190612ca8565b9050600081116111d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cd90612c59565b60405180910390fd5b611204600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16333089611f32565b7f13d5b1b7d7585d2cd475f0110b82c6a11c280913d6ec42cb5380ed6f99b63fcc33826040516112359291906127a0565b60405180910390a16113e9565b60011515600660149054906101000a900460ff161515036113ad57608991506007548661126f9190612ca8565b9050600081116112b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ab90612c59565b60405180910390fd5b6112e2600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16333089611f32565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68826040518263ffffffff1660e01b815260040161133d91906125cc565b600060405180830381600087803b15801561135757600080fd5b505af115801561136b573d6000803e3d6000fd5b505050507f789b1f4b6127b82310ef7cc8516f47807715658c0dbeb0c67f609f4305151a2033826040516113a09291906127a0565b60405180910390a16113e8565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113df90612d28565b60405180910390fd5b5b600087828760405160200161140093929190612d48565b604051602081830303815290604052905084156114d857600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c54e561830856007548a86600860009054906101000a900461ffff166040518763ffffffff1660e01b815260040161148e96959493929190612e1e565b6020604051808303816000875af11580156114ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d191906126d0565b9350611595565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639e1db8df30856007548a86600860009054906101000a900461ffff166040518763ffffffff1660e01b815260040161154f96959493929190612e1e565b6020604051808303816000875af115801561156e573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159291906126d0565b93505b5050506115a0611e65565b949350505050565b6115b0611d19565b600082905060008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016115f091906123c2565b602060405180830381865afa15801561160d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061163191906126d0565b905060008111611676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161166d90612ed2565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b81526004016116b19291906127a0565b6020604051808303816000875af11580156116d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116f491906127de565b507ff6891c84a6c6af32a6d052172a8acc4c631b1d5057ffa2bc1da268b6938ea2da8385836040516117289392919061280b565b60405180910390a150505050565b61173e611d19565b806007819055507fe6a3cf89f060883424c0a2f00894865f6cbb61d347b8e97b41d2f47b095c61198160405161177491906125cc565b60405180910390a150565b611787611d19565b8073ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f193505050501580156117cd573d6000803e3d6000fd5b5050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600754905090565b611809611d19565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006040518363ffffffff1660e01b8152600401611889929190612b52565b6020604051808303816000875af11580156118a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118cc91906127de565b5080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b815260040161198b929190612919565b6020604051808303816000875af11580156119aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119ce91906127de565b507faba379270b543cc95d13a917cc25b32e681fbf7975a6be7c1ca7acca52801810816040516119fe91906123c2565b60405180910390a150565b611a11611d19565b80600860006101000a81548161ffff021916908361ffff1602179055507fe4dcfc96e3fd4df9c3f1e4ca7bcff77cff5e30f30f58fff88d07eb049c05cc7981604051611a5d9190612ef2565b60405180910390a150565b600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611a96611d19565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611b05576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611afc90612f7f565b60405180910390fd5b611b0e81611e6e565b50565b611b19611d19565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660006040518363ffffffff1660e01b8152600401611b99929190612b52565b6020604051808303816000875af1158015611bb8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bdc91906127de565b5080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6040518363ffffffff1660e01b8152600401611c9b929190612919565b6020604051808303816000875af1158015611cba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cde91906127de565b507f932db81466729f33ade08aae27119b02d0adb58591275056ccf11b8fb3b5eb2881604051611d0e91906123c2565b60405180910390a150565b611d21611fb4565b73ffffffffffffffffffffffffffffffffffffffff16611d3f61107a565b73ffffffffffffffffffffffffffffffffffffffff1614611d95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8c90612feb565b60405180910390fd5b565b600260015403611ddc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dd390613057565b60405180910390fd5b6002600181905550565b611e60838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401611e199291906127a0565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611fbc565b505050565b60018081905550565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611fae848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401611f679392919061280b565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611fbc565b50505050565b600033905090565b6000611fe7828473ffffffffffffffffffffffffffffffffffffffff1661205390919063ffffffff16565b9050600081511415801561200c57508080602001905181019061200a91906127de565b155b1561204e57826040517f5274afe700000000000000000000000000000000000000000000000000000000815260040161204591906123c2565b60405180910390fd5b505050565b60606120648383600061206c61209e565b905092915050565b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6060824710156120e557306040517fcd7860590000000000000000000000000000000000000000000000000000000081526004016120dc91906123c2565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff16858760405161210e91906130b3565b60006040518083038185875af1925050503d806000811461214b576040519150601f19603f3d011682016040523d82523d6000602084013e612150565b606091505b50915091506121618783838761216d565b92505050949350505050565b606083156121e35760008351036121db5760008573ffffffffffffffffffffffffffffffffffffffff163b036121da57846040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016121d191906123c2565b60405180910390fd5b5b8290506121ee565b6121ed83836121f6565b5b949350505050565b6000825111156122095781518083602001fd5b6122158163ffffffff16565b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061227c82612251565b9050919050565b61228c81612271565b811461229757600080fd5b50565b6000813590506122a981612283565b92915050565b6000819050919050565b6122c2816122af565b81146122cd57600080fd5b50565b6000813590506122df816122b9565b92915050565b6000806000606084860312156122fe576122fd612247565b5b600061230c8682870161229a565b935050602061231d8682870161229a565b925050604061232e868287016122d0565b9150509250925092565b600080600080600060a0868803121561235457612353612247565b5b60006123628882890161229a565b95505060206123738882890161229a565b94505060406123848882890161229a565b93505060606123958882890161229a565b92505060806123a68882890161229a565b9150509295509295909350565b6123bc81612271565b82525050565b60006020820190506123d760008301846123b3565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112612402576124016123dd565b5b8235905067ffffffffffffffff81111561241f5761241e6123e2565b5b60208301915083600182028301111561243b5761243a6123e7565b5b9250929050565b600080600080600080600060c0888a03121561246157612460612247565b5b600061246f8a828b016122d0565b97505060206124808a828b016122d0565b96505060406124918a828b0161229a565b95505060606124a28a828b0161229a565b94505060806124b38a828b016122d0565b93505060a088013567ffffffffffffffff8111156124d4576124d361224c565b5b6124e08a828b016123ec565b925092505092959891949750929550565b60006020828403121561250757612506612247565b5b60006125158482850161229a565b91505092915050565b60008115159050919050565b6125338161251e565b811461253e57600080fd5b50565b6000813590506125508161252a565b92915050565b600080600080608085870312156125705761256f612247565b5b600061257e8782880161229a565b945050602061258f878288016122d0565b93505060406125a08782880161229a565b92505060606125b187828801612541565b91505092959194509250565b6125c6816122af565b82525050565b60006020820190506125e160008301846125bd565b92915050565b600080604083850312156125fe576125fd612247565b5b600061260c8582860161229a565b925050602061261d8582860161229a565b9150509250929050565b60006020828403121561263d5761263c612247565b5b600061264b848285016122d0565b91505092915050565b600061ffff82169050919050565b61266b81612654565b811461267657600080fd5b50565b60008135905061268881612662565b92915050565b6000602082840312156126a4576126a3612247565b5b60006126b284828501612679565b91505092915050565b6000815190506126ca816122b9565b92915050565b6000602082840312156126e6576126e5612247565b5b60006126f4848285016126bb565b91505092915050565b600082825260208201905092915050565b7f42616c616e636520746f6f206c6f7720746f207472616e7366657220616d6f7560008201527f6e74000000000000000000000000000000000000000000000000000000000000602082015250565b600061276a6022836126fd565b91506127758261270e565b604082019050919050565b600060208201905081810360008301526127998161275d565b9050919050565b60006040820190506127b560008301856123b3565b6127c260208301846125bd565b9392505050565b6000815190506127d88161252a565b92915050565b6000602082840312156127f4576127f3612247565b5b6000612802848285016127c9565b91505092915050565b600060608201905061282060008301866123b3565b61282d60208301856123b3565b61283a60408301846125bd565b949350505050565b7f436f6e7472616374206861732070726576696f75736c79206265656e20696e6960008201527f7469616c697a6564000000000000000000000000000000000000000000000000602082015250565b600061289e6028836126fd565b91506128a982612842565b604082019050919050565b600060208201905081810360008301526128cd81612891565b9050919050565b6000819050919050565b6000819050919050565b60006129036128fe6128f9846128d4565b6128de565b6122af565b9050919050565b612913816128e8565b82525050565b600060408201905061292e60008301856123b3565b61293b602083018461290a565b9392505050565b7f6e6f7420617574686f72697a6564000000000000000000000000000000000000600082015250565b6000612978600e836126fd565b915061298382612942565b602082019050919050565b600060208201905081810360008301526129a78161296b565b9050919050565b7f77726f6e67206164647265737300000000000000000000000000000000000000600082015250565b60006129e4600d836126fd565b91506129ef826129ae565b602082019050919050565b60006020820190508181036000830152612a13816129d7565b9050919050565b6000612a2582612251565b9050919050565b612a3581612a1a565b8114612a4057600080fd5b50565b600081359050612a5281612a2c565b92915050565b600080600060608486031215612a7157612a70612247565b5b6000612a7f86828701612a43565b9350506020612a90868287016122d0565b9250506040612aa186828701612a43565b9150509250925092565b7f496e76616c696420636f6e66696775726174696f6e0000000000000000000000600082015250565b6000612ae16015836126fd565b9150612aec82612aab565b602082019050919050565b60006020820190508181036000830152612b1081612ad4565b9050919050565b6000819050919050565b6000612b3c612b37612b3284612b17565b6128de565b6122af565b9050919050565b612b4c81612b21565b82525050565b6000604082019050612b6760008301856123b3565b612b746020830184612b43565b9392505050565b7f726563697069656e7420756e6b6e6f776e000000000000000000000000000000600082015250565b6000612bb16011836126fd565b9150612bbc82612b7b565b602082019050919050565b60006020820190508181036000830152612be081612ba4565b9050919050565b7f416d6f756e7420746f6f206c6f7720746f20636f76657220427269646765204660008201527f6565000000000000000000000000000000000000000000000000000000000000602082015250565b6000612c436022836126fd565b9150612c4e82612be7565b604082019050919050565b60006020820190508181036000830152612c7281612c36565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612cb3826122af565b9150612cbe836122af565b9250828203905081811115612cd657612cd5612c79565b5b92915050565b7f696e76616c696420636f6e66696775726174696f6e0000000000000000000000600082015250565b6000612d126015836126fd565b9150612d1d82612cdc565b602082019050919050565b60006020820190508181036000830152612d4181612d05565b9050919050565b6000606082019050612d5d60008301866123b3565b612d6a60208301856125bd565b612d7760408301846123b3565b949350505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612db9578082015181840152602081019050612d9e565b60008484015250505050565b6000601f19601f8301169050919050565b6000612de182612d7f565b612deb8185612d8a565b9350612dfb818560208601612d9b565b612e0481612dc5565b840191505092915050565b612e1881612654565b82525050565b600060c082019050612e3360008301896123b3565b612e4060208301886125bd565b612e4d60408301876125bd565b612e5a60608301866123b3565b8181036080830152612e6c8185612dd6565b9050612e7b60a0830184612e0f565b979650505050505050565b7f4e6f20746f6b656e7320746f2077697468647261770000000000000000000000600082015250565b6000612ebc6015836126fd565b9150612ec782612e86565b602082019050919050565b60006020820190508181036000830152612eeb81612eaf565b9050919050565b6000602082019050612f076000830184612e0f565b92915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612f696026836126fd565b9150612f7482612f0d565b604082019050919050565b60006020820190508181036000830152612f9881612f5c565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612fd56020836126fd565b9150612fe082612f9f565b602082019050919050565b6000602082019050818103600083015261300481612fc8565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613041601f836126fd565b915061304c8261300b565b602082019050919050565b6000602082019050818103600083015261307081613034565b9050919050565b600081905092915050565b600061308d82612d7f565b6130978185613077565b93506130a7818560208601612d9b565b80840191505092915050565b60006130bf8284613082565b91508190509291505056fea2646970667358221220ee589575f0e8272d53e012662df03f8ca6b706040c55e35076b91b3999195a1064736f6c63430008130033