Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
L1Escrow
Compiler Version
v0.8.17+commit.8df45f5f
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2023-11-16
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/utils/SafeERC20.sol)
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20Upgradeable {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `from` to `to` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address from, address to, uint256 amount) external returns (bool);
}
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/extensions/IERC20Permit.sol)
/**
* @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 IERC20PermitUpgradeable {
/**
* @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
* given ``owner``'s signed approval.
*
* IMPORTANT: The same issues {IERC20-approve} has related to transaction
* ordering also apply here.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `deadline` must be a timestamp in the future.
* - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
* over the EIP712-formatted function arguments.
* - the signature must use ``owner``'s current nonce (see {nonces}).
*
* For more information on the signature format, see the
* https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
* section].
*/
function permit(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) external;
/**
* @dev Returns the current nonce for `owner`. This value must be
* included whenever a signature is generated for {permit}.
*
* Every successful call to {permit} increases ``owner``'s nonce by one. This
* prevents a signature from being used multiple times.
*/
function nonces(address owner) external view returns (uint256);
/**
* @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
*/
// solhint-disable-next-line func-name-mixedcase
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)
/**
* @dev Collection of functions related to the address type
*/
library AddressUpgradeable {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
*
* Furthermore, `isContract` will also return true if the target contract within
* the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
* which only has an effect at the end of a transaction.
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata, errorMessage);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
* the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
*
* _Available since v4.8._
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata,
string memory errorMessage
) internal view returns (bytes memory) {
if (success) {
if (returndata.length == 0) {
// only check isContract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
require(isContract(target), "Address: call to non-contract");
}
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
/**
* @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason or using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
_revert(returndata, errorMessage);
}
}
function _revert(bytes memory returndata, string memory errorMessage) private pure {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
/**
* @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 SafeERC20Upgradeable {
using AddressUpgradeable for address;
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20Upgradeable token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20Upgradeable token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20Upgradeable token, address spender, uint256 value) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeIncreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeDecreaseAllowance(IERC20Upgradeable token, address spender, uint256 value) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Compatible with tokens that require the approval to be set to
* 0 before setting it to a non-zero value.
*/
function forceApprove(IERC20Upgradeable token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
* Revert on invalid signature.
*/
function safePermit(
IERC20PermitUpgradeable token,
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) internal {
uint256 nonceBefore = token.nonces(owner);
token.permit(owner, spender, value, deadline, v, r, s);
uint256 nonceAfter = token.nonces(owner);
require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20Upgradeable 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))) && AddressUpgradeable.isContract(address(token));
}
}
/**
* @dev Define interface for PolygonZkEVM Bridge message receiver
*/
interface IBridgeMessageReceiver {
function onMessageReceived(
address originAddress,
uint32 originNetwork,
bytes memory data
) external payable;
}
interface IPolygonZkEVMBridge {
/**
* @dev Thrown when sender is not the PolygonZkEVM address
*/
error OnlyPolygonZkEVM();
/**
* @dev Thrown when the destination network is invalid
*/
error DestinationNetworkInvalid();
/**
* @dev Thrown when the amount does not match msg.value
*/
error AmountDoesNotMatchMsgValue();
/**
* @dev Thrown when user is bridging tokens and is also sending a value
*/
error MsgValueNotZero();
/**
* @dev Thrown when the Ether transfer on claimAsset fails
*/
error EtherTransferFailed();
/**
* @dev Thrown when the message transaction on claimMessage fails
*/
error MessageFailed();
/**
* @dev Thrown when the global exit root does not exist
*/
error GlobalExitRootInvalid();
/**
* @dev Thrown when the smt proof does not match
*/
error InvalidSmtProof();
/**
* @dev Thrown when an index is already claimed
*/
error AlreadyClaimed();
/**
* @dev Thrown when the owner of permit does not match the sender
*/
error NotValidOwner();
/**
* @dev Thrown when the spender of the permit does not match this contract address
*/
error NotValidSpender();
/**
* @dev Thrown when the amount of the permit does not match
*/
error NotValidAmount();
/**
* @dev Thrown when the permit data contains an invalid signature
*/
error NotValidSignature();
function bridgeAsset(
uint32 destinationNetwork,
address destinationAddress,
uint256 amount,
address token,
bool forceUpdateGlobalExitRoot,
bytes calldata permitData
) external payable;
function bridgeMessage(
uint32 destinationNetwork,
address destinationAddress,
bool forceUpdateGlobalExitRoot,
bytes calldata metadata
) external payable;
function claimAsset(
bytes32[32] calldata smtProof,
uint32 index,
bytes32 mainnetExitRoot,
bytes32 rollupExitRoot,
uint32 originNetwork,
address originTokenAddress,
uint32 destinationNetwork,
address destinationAddress,
uint256 amount,
bytes calldata metadata
) external;
function claimMessage(
bytes32[32] calldata smtProof,
uint32 index,
bytes32 mainnetExitRoot,
bytes32 rollupExitRoot,
uint32 originNetwork,
address originAddress,
uint32 destinationNetwork,
address destinationAddress,
uint256 amount,
bytes calldata metadata
) external;
function updateGlobalExitRoot() external;
function activateEmergencyState() external;
function deactivateEmergencyState() external;
}
// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/Initializable.sol)
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
* external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
* function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
*
* The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
* reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
* case an upgrade adds a module that needs to be initialized.
*
* For example:
*
* [.hljs-theme-light.nopadding]
* ```solidity
* contract MyToken is ERC20Upgradeable {
* function initialize() initializer public {
* __ERC20_init("MyToken", "MTK");
* }
* }
*
* contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
* function initializeV2() reinitializer(2) public {
* __ERC20Permit_init("MyToken");
* }
* }
* ```
*
* TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
* possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
*
* CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
* that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
*
* [CAUTION]
* ====
* Avoid leaving a contract uninitialized.
*
* An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
* contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
* the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
*
* [.hljs-theme-light.nopadding]
* ```
* /// @custom:oz-upgrades-unsafe-allow constructor
* constructor() {
* _disableInitializers();
* }
* ```
* ====
*/
abstract contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
* @custom:oz-retyped-from bool
*/
uint8 private _initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private _initializing;
/**
* @dev Triggered when the contract has been initialized or reinitialized.
*/
event Initialized(uint8 version);
/**
* @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
* `onlyInitializing` functions can be used to initialize parent contracts.
*
* Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a
* constructor.
*
* Emits an {Initialized} event.
*/
modifier initializer() {
bool isTopLevelCall = !_initializing;
require(
(isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
"Initializable: contract is already initialized"
);
_initialized = 1;
if (isTopLevelCall) {
_initializing = true;
}
_;
if (isTopLevelCall) {
_initializing = false;
emit Initialized(1);
}
}
/**
* @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
* contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
* used to initialize parent contracts.
*
* A reinitializer may be used after the original initialization step. This is essential to configure modules that
* are added through upgrades and that require initialization.
*
* When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`
* cannot be nested. If one is invoked in the context of another, execution will revert.
*
* Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
* a contract, executing them in the right order is up to the developer or operator.
*
* WARNING: setting the version to 255 will prevent any future reinitialization.
*
* Emits an {Initialized} event.
*/
modifier reinitializer(uint8 version) {
require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
_initialized = version;
_initializing = true;
_;
_initializing = false;
emit Initialized(version);
}
/**
* @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
* {initializer} and {reinitializer} modifiers, directly or indirectly.
*/
modifier onlyInitializing() {
require(_initializing, "Initializable: contract is not initializing");
_;
}
/**
* @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
* Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
* to any version. It is recommended to use this to lock implementation contracts that are designed to be called
* through proxies.
*
* Emits an {Initialized} event the first time it is successfully executed.
*/
function _disableInitializers() internal virtual {
require(!_initializing, "Initializable: contract is initializing");
if (_initialized != type(uint8).max) {
_initialized = type(uint8).max;
emit Initialized(type(uint8).max);
}
}
/**
* @dev Returns the highest version that has been initialized. See {reinitializer}.
*/
function _getInitializedVersion() internal view returns (uint8) {
return _initialized;
}
/**
* @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.
*/
function _isInitializing() internal view returns (bool) {
return _initializing;
}
}
/**
* @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 ContextUpgradeable is Initializable {
function __Context_init() internal onlyInitializing {
}
function __Context_init_unchained() internal onlyInitializing {
}
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}
/**
* @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 OwnableUpgradeable is Initializable, ContextUpgradeable {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal onlyInitializing {
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal onlyInitializing {
_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 This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/utils/UUPSUpgradeable.sol)
// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)
/**
* @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
* proxy whose upgrades are fully controlled by the current implementation.
*/
interface IERC1822ProxiableUpgradeable {
/**
* @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation
* address.
*
* IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
* bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
* function revert if invoked through a proxy.
*/
function proxiableUUID() external view returns (bytes32);
}
// OpenZeppelin Contracts (last updated v4.9.0) (proxy/ERC1967/ERC1967Upgrade.sol)
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)
/**
* @dev This is the interface that {BeaconProxy} expects of its beacon.
*/
interface IBeaconUpgradeable {
/**
* @dev Must return an address that can be used as a delegate call target.
*
* {BeaconProxy} will check that this address is a contract.
*/
function implementation() external view returns (address);
}
// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC1967.sol)
/**
* @dev ERC-1967: Proxy Storage Slots. This interface contains the events defined in the ERC.
*
* _Available since v4.8.3._
*/
interface IERC1967Upgradeable {
/**
* @dev Emitted when the implementation is upgraded.
*/
event Upgraded(address indexed implementation);
/**
* @dev Emitted when the admin account has changed.
*/
event AdminChanged(address previousAdmin, address newAdmin);
/**
* @dev Emitted when the beacon is changed.
*/
event BeaconUpgraded(address indexed beacon);
}
// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```solidity
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract");
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*
* _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._
* _Available since v4.9 for `string`, `bytes`._
*/
library StorageSlotUpgradeable {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
/**
* @dev Returns an `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
}
/**
* @dev This abstract contract provides getters and event emitting update functions for
* https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.
*
* _Available since v4.1._
*/
abstract contract ERC1967UpgradeUpgradeable is Initializable, IERC1967Upgradeable {
function __ERC1967Upgrade_init() internal onlyInitializing {
}
function __ERC1967Upgrade_init_unchained() internal onlyInitializing {
}
// This is the keccak-256 hash of "eip1967.proxy.rollback" subtracted by 1
bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;
/**
* @dev Storage slot with the address of the current implementation.
* This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
/**
* @dev Returns the current implementation address.
*/
function _getImplementation() internal view returns (address) {
return StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 implementation slot.
*/
function _setImplementation(address newImplementation) private {
require(AddressUpgradeable.isContract(newImplementation), "ERC1967: new implementation is not a contract");
StorageSlotUpgradeable.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
}
/**
* @dev Perform implementation upgrade
*
* Emits an {Upgraded} event.
*/
function _upgradeTo(address newImplementation) internal {
_setImplementation(newImplementation);
emit Upgraded(newImplementation);
}
/**
* @dev Perform implementation upgrade with additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCall(address newImplementation, bytes memory data, bool forceCall) internal {
_upgradeTo(newImplementation);
if (data.length > 0 || forceCall) {
AddressUpgradeable.functionDelegateCall(newImplementation, data);
}
}
/**
* @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.
*
* Emits an {Upgraded} event.
*/
function _upgradeToAndCallUUPS(address newImplementation, bytes memory data, bool forceCall) internal {
// Upgrades from old implementations will perform a rollback test. This test requires the new
// implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing
// this special case will break upgrade paths from old UUPS implementation to new ones.
if (StorageSlotUpgradeable.getBooleanSlot(_ROLLBACK_SLOT).value) {
_setImplementation(newImplementation);
} else {
try IERC1822ProxiableUpgradeable(newImplementation).proxiableUUID() returns (bytes32 slot) {
require(slot == _IMPLEMENTATION_SLOT, "ERC1967Upgrade: unsupported proxiableUUID");
} catch {
revert("ERC1967Upgrade: new implementation is not UUPS");
}
_upgradeToAndCall(newImplementation, data, forceCall);
}
}
/**
* @dev Storage slot with the admin of the contract.
* This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
* validated in the constructor.
*/
bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
/**
* @dev Returns the current admin.
*/
function _getAdmin() internal view returns (address) {
return StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value;
}
/**
* @dev Stores a new address in the EIP1967 admin slot.
*/
function _setAdmin(address newAdmin) private {
require(newAdmin != address(0), "ERC1967: new admin is the zero address");
StorageSlotUpgradeable.getAddressSlot(_ADMIN_SLOT).value = newAdmin;
}
/**
* @dev Changes the admin of the proxy.
*
* Emits an {AdminChanged} event.
*/
function _changeAdmin(address newAdmin) internal {
emit AdminChanged(_getAdmin(), newAdmin);
_setAdmin(newAdmin);
}
/**
* @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.
* This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.
*/
bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;
/**
* @dev Returns the current beacon.
*/
function _getBeacon() internal view returns (address) {
return StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value;
}
/**
* @dev Stores a new beacon in the EIP1967 beacon slot.
*/
function _setBeacon(address newBeacon) private {
require(AddressUpgradeable.isContract(newBeacon), "ERC1967: new beacon is not a contract");
require(
AddressUpgradeable.isContract(IBeaconUpgradeable(newBeacon).implementation()),
"ERC1967: beacon implementation is not a contract"
);
StorageSlotUpgradeable.getAddressSlot(_BEACON_SLOT).value = newBeacon;
}
/**
* @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does
* not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).
*
* Emits a {BeaconUpgraded} event.
*/
function _upgradeBeaconToAndCall(address newBeacon, bytes memory data, bool forceCall) internal {
_setBeacon(newBeacon);
emit BeaconUpgraded(newBeacon);
if (data.length > 0 || forceCall) {
AddressUpgradeable.functionDelegateCall(IBeaconUpgradeable(newBeacon).implementation(), data);
}
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}
/**
* @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an
* {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.
*
* A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is
* reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing
* `UUPSUpgradeable` with a custom implementation of upgrades.
*
* The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.
*
* _Available since v4.1._
*/
abstract contract UUPSUpgradeable is Initializable, IERC1822ProxiableUpgradeable, ERC1967UpgradeUpgradeable {
function __UUPSUpgradeable_init() internal onlyInitializing {
}
function __UUPSUpgradeable_init_unchained() internal onlyInitializing {
}
/// @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment
address private immutable __self = address(this);
/**
* @dev Check that the execution is being performed through a delegatecall call and that the execution context is
* a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case
* for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a
* function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to
* fail.
*/
modifier onlyProxy() {
require(address(this) != __self, "Function must be called through delegatecall");
require(_getImplementation() == __self, "Function must be called through active proxy");
_;
}
/**
* @dev Check that the execution is not being performed through a delegate call. This allows a function to be
* callable on the implementing contract but not through proxies.
*/
modifier notDelegated() {
require(address(this) == __self, "UUPSUpgradeable: must not be called through delegatecall");
_;
}
/**
* @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the
* implementation. It is used to validate the implementation's compatibility when performing an upgrade.
*
* IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
* bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
* function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.
*/
function proxiableUUID() external view virtual override notDelegated returns (bytes32) {
return _IMPLEMENTATION_SLOT;
}
/**
* @dev Upgrade the implementation of the proxy to `newImplementation`.
*
* Calls {_authorizeUpgrade}.
*
* Emits an {Upgraded} event.
*
* @custom:oz-upgrades-unsafe-allow-reachable delegatecall
*/
function upgradeTo(address newImplementation) public virtual onlyProxy {
_authorizeUpgrade(newImplementation);
_upgradeToAndCallUUPS(newImplementation, new bytes(0), false);
}
/**
* @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call
* encoded in `data`.
*
* Calls {_authorizeUpgrade}.
*
* Emits an {Upgraded} event.
*
* @custom:oz-upgrades-unsafe-allow-reachable delegatecall
*/
function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {
_authorizeUpgrade(newImplementation);
_upgradeToAndCallUUPS(newImplementation, data, true);
}
/**
* @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by
* {upgradeTo} and {upgradeToAndCall}.
*
* Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.
*
* ```solidity
* function _authorizeUpgrade(address) internal override onlyOwner {}
* ```
*/
function _authorizeUpgrade(address newImplementation) internal virtual;
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[50] private __gap;
}
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)
/**
* @dev Contract module which allows children to implement an emergency stop
* mechanism that can be triggered by an authorized account.
*
* This module is used through inheritance. It will make available the
* modifiers `whenNotPaused` and `whenPaused`, which can be applied to
* the functions of your contract. Note that they will not be pausable by
* simply including this module, only once the modifiers are put in place.
*/
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
/**
* @dev Emitted when the pause is triggered by `account`.
*/
event Paused(address account);
/**
* @dev Emitted when the pause is lifted by `account`.
*/
event Unpaused(address account);
bool private _paused;
/**
* @dev Initializes the contract in unpaused state.
*/
function __Pausable_init() internal onlyInitializing {
__Pausable_init_unchained();
}
function __Pausable_init_unchained() internal onlyInitializing {
_paused = false;
}
/**
* @dev Modifier to make a function callable only when the contract is not paused.
*
* Requirements:
*
* - The contract must not be paused.
*/
modifier whenNotPaused() {
_requireNotPaused();
_;
}
/**
* @dev Modifier to make a function callable only when the contract is paused.
*
* Requirements:
*
* - The contract must be paused.
*/
modifier whenPaused() {
_requirePaused();
_;
}
/**
* @dev Returns true if the contract is paused, and false otherwise.
*/
function paused() public view virtual returns (bool) {
return _paused;
}
/**
* @dev Throws if the contract is paused.
*/
function _requireNotPaused() internal view virtual {
require(!paused(), "Pausable: paused");
}
/**
* @dev Throws if the contract is not paused.
*/
function _requirePaused() internal view virtual {
require(paused(), "Pausable: not paused");
}
/**
* @dev Triggers stopped state.
*
* Requirements:
*
* - The contract must not be paused.
*/
function _pause() internal virtual whenNotPaused {
_paused = true;
emit Paused(_msgSender());
}
/**
* @dev Returns to normal state.
*
* Requirements:
*
* - The contract must be paused.
*/
function _unpause() internal virtual whenPaused {
_paused = false;
emit Unpaused(_msgSender());
}
/**
* @dev This empty reserved space is put in place to allow future versions to add new
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[49] private __gap;
}
/// @title CommonAdminOwner
/// @notice An upgradeable contract that, when inherited from, provides 4 functionalities:
/// 1. The ability to pause and unpause functions with the `whenNotPaused` modifier
/// 2. The ability to transfer ownership (which controls who can pause/unpause)
/// 3. UUPS upgradeability, and the admin role which is allowed to upgrade
/// the implementation contract
/// 4. The ability to change the admin (which controls upgradeability)
contract CommonAdminOwner is
Initializable,
OwnableUpgradeable,
PausableUpgradeable,
UUPSUpgradeable
{
/// @notice The initializer, which must be used instead of the constructor
/// because this is a UUPS contract
function __CommonAdminOwner_init() internal onlyInitializing {
__Ownable_init();
__Pausable_init();
__UUPSUpgradeable_init();
}
modifier onlyAdmin() {
require(msg.sender == _getAdmin(), "NOT_ADMIN");
_;
}
function _authorizeUpgrade(
address newImplementation
) internal override onlyAdmin {
// NOOP, we just need the onlyAdmin modifier to execute
}
function changeAdmin(address newAdmin) external onlyAdmin {
require(newAdmin != _getAdmin(), "SAME_ADMIN");
_changeAdmin(newAdmin);
}
/**
* @dev called by the owner to pause, triggers stopped state
*/
function pause() external onlyOwner {
_pause();
}
/**
* @dev called by the owner to unpause, returns to normal state
*/
function unpause() external onlyOwner {
_unpause();
}
}
interface IUSDC is IERC20Upgradeable {
function burn(uint256 _amount) external;
function mint(address _to, uint256 _amount) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
}
/// @title LibPermit
/// @notice Library to call the EIP-2612 permit method on a token
library LibPermit {
error NotValidSelector();
error NotValidOwner();
error NotValidSpender();
error NotValidAmount();
/// @dev bytes4(keccak256(bytes("permit(address,address,uint256,uint256,uint8,bytes32,bytes32)")));
bytes4 private constant _PERMIT_SIGNATURE = 0xd505accf;
/// @notice Function to call token the EIP-2612 permit method on a token
/// @dev Adapted from PolygonZKEVMBridge.sol's `_permit`
/// @param token ERC20 token address
/// @param amount Quantity that is expected to be allowed
/// @param permitData Raw data of the call `permit` of the token
function permit(
address token,
uint256 amount,
bytes calldata permitData
) internal {
if (bytes4(permitData[:4]) != _PERMIT_SIGNATURE)
revert NotValidSelector();
(
address owner,
address spender,
uint256 value,
uint256 deadline,
uint8 v,
bytes32 r,
bytes32 s
) = abi.decode(
permitData[4:],
(address, address, uint256, uint256, uint8, bytes32, bytes32)
);
if (owner != msg.sender) {
revert NotValidOwner();
}
if (spender != address(this)) {
revert NotValidSpender();
}
if (value != amount) {
revert NotValidAmount();
}
// we call without checking the result, in case it fails and they don't have enough balance
// the following transferFrom should be fail. This prevents DoS attacks from using a signature
// before the smartcontract call
/* solhint-disable avoid-low-level-calls */
address(token).call(
abi.encodeWithSelector(
_PERMIT_SIGNATURE,
owner,
spender,
value,
deadline,
v,
r,
s
)
);
}
}
/// @title L1Escrow
/// @notice This upgradeable contract receives USDC from users on L1 and uses the PolygonZkEVMBridge
/// to send a message to the ZkMinterBurner contract on the L2 (zkEVM) which
/// then mints USDC-e for users
/// @notice This contract is upgradeable using UUPS, and can have its important functions
/// paused and unpaused
contract L1Escrow is IBridgeMessageReceiver, CommonAdminOwner {
using SafeERC20Upgradeable for IUSDC;
event Deposit(address indexed from, address indexed to, uint256 amount);
/// @notice The singleton bridge contract on both L1 and L2 (zkEVM) that faciliates
/// bridging messages between L1 and L2. It also stores all of the L1 USDC
/// backing the L2 BridgeWrappedUSDC
IPolygonZkEVMBridge public bridge;
/// @notice The ID used internally by the bridge to identify zkEVM messages. Initially
/// set to be `1`
uint32 public zkNetworkId;
/// @notice Address of the L2 ZkMinterBurner, which receives messages from the L1Escrow
address public zkMinterBurner;
/// @notice Address of the L1 USDC token
IUSDC public l1USDC;
constructor() {
// override default OZ behaviour that sets msg.sender as the owner
// set the owner of the implementation to an address that can not change anything
_transferOwnership(address(1));
}
/// @notice Setup the state variables of the upgradeable L1Escrow contract
/// @notice The owner is the address that is able to pause and unpause function calls
/// @param owner_ the address that will be able to pause and unpause the contract,
/// as well as transfer the ownership of the contract
/// @param bridge_ the address of the PolygonZkEVMBridge deployed on the zkEVM
/// @param zkNetworkId_ the ID used internally by the bridge to identify zkEVM messages
/// @param zkMinterBurnerProxy_ the address of the ZkMinterBurnerProxy deployed on the L2
/// @param l1Usdc_ the address of the L1 USDC deployed on the L1
function initialize(
address owner_,
address admin_,
address bridge_,
uint32 zkNetworkId_,
address zkMinterBurnerProxy_,
address l1Usdc_
) external onlyProxy onlyAdmin initializer {
require(bridge_ != address(0), "INVALID_BRIDGE");
require(zkMinterBurnerProxy_ != address(0), "INVALID_MB");
require(l1Usdc_ != address(0), "INVALID_L1_USDC");
require(owner_ != address(0), "INVALID_OWNER");
require(admin_ != address(0), "INVALID_ADMIN");
__CommonAdminOwner_init();
_transferOwnership(owner_);
_changeAdmin(admin_);
bridge = IPolygonZkEVMBridge(bridge_);
zkNetworkId = zkNetworkId_;
zkMinterBurner = zkMinterBurnerProxy_;
l1USDC = IUSDC(l1Usdc_);
}
/// @notice Bridges L1 USDC to L2 USDC-e
/// @dev The L1Escrow transfers L1 USDC from the caller to itself and
/// calls `bridge.bridgeMessage, which ultimately results in a message
/// received on the L2 ZkMinterBurner which mints USDC-e for the destination
/// address
/// @dev Can be paused
/// @param destinationAddress address that will receive USDC-e on the L2
/// @param amount amount of L1 USDC to bridge
/// @param forceUpdateGlobalExitRoot whether or not to force the bridge to update.
function bridgeToken(
address destinationAddress,
uint256 amount,
bool forceUpdateGlobalExitRoot
) public whenNotPaused {
// User calls `bridgeToken` on L1Escrow, L1_USDC is transferred to L1Escrow
// message sent to PolygonZkEvmBridge targeted to L2's zkMinterBurner.
require(destinationAddress != address(0), "INVALID_RECEIVER");
require(amount > 0, "INVALID_AMOUNT");
// move L1-USDC from the user to the escrow
l1USDC.safeTransferFrom(msg.sender, address(this), amount);
// tell our zkMinterBurner to mint zkUSDCe to the receiver
bytes memory data = abi.encode(destinationAddress, amount);
bridge.bridgeMessage(
zkNetworkId,
zkMinterBurner,
forceUpdateGlobalExitRoot,
data
);
emit Deposit(msg.sender, destinationAddress, amount);
}
/// @notice Similar to other `bridgeToken` function, but saves an ERC20.approve call
/// by using the EIP-2612 permit function
function bridgeToken(
address destinationAddress,
uint256 amount,
bool forceUpdateGlobalExitRoot,
bytes calldata permitData
) external whenNotPaused {
if (permitData.length > 0)
LibPermit.permit(address(l1USDC), amount, permitData);
bridgeToken(destinationAddress, amount, forceUpdateGlobalExitRoot);
}
/// @dev This function is triggered by the bridge to faciliate the L1 USDC withdrawal process.
/// This function is called by the bridge when a message is sent by the L2
/// ZkMinterBurner communicating that it has burned USDC-e and wants to withdraw the L1 USDC
/// that backs it.
/// @dev This function can only be called by the bridge contract
/// @dev Can be paused
/// @param originAddress address that initiated the message on the L2
/// @param originNetwork network that initiated the message on the L2
/// @param data data that was sent with the message on the L2, includes the
/// `l1Receiver` and `amount` of L1 USDC to send to the `l1Receiver`
function onMessageReceived(
address originAddress,
uint32 originNetwork,
bytes memory data
) external payable whenNotPaused {
require(msg.sender == address(bridge), "NOT_BRIDGE");
require(zkMinterBurner == originAddress, "NOT_MINTER_BURNER");
require(zkNetworkId == originNetwork, "NOT_ZK_CHAIN");
// decode message data and call transfer
(address l1Receiver, uint256 amount) = abi.decode(
data,
(address, uint256)
);
// kinda redundant - these checks are being done by the caller
require(l1Receiver != address(0), "INVALID_RECEIVER");
require(amount > 0, "INVALID_AMOUNT");
// send the locked L1_USDC to the receiver
l1USDC.safeTransfer(l1Receiver, amount);
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"NotValidAmount","type":"error"},{"inputs":[],"name":"NotValidOwner","type":"error"},{"inputs":[],"name":"NotValidSelector","type":"error"},{"inputs":[],"name":"NotValidSpender","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"implementation","type":"address"}],"name":"Upgraded","type":"event"},{"inputs":[],"name":"bridge","outputs":[{"internalType":"contract IPolygonZkEVMBridge","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"destinationAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"forceUpdateGlobalExitRoot","type":"bool"}],"name":"bridgeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"destinationAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"forceUpdateGlobalExitRoot","type":"bool"},{"internalType":"bytes","name":"permitData","type":"bytes"}],"name":"bridgeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"address","name":"admin_","type":"address"},{"internalType":"address","name":"bridge_","type":"address"},{"internalType":"uint32","name":"zkNetworkId_","type":"uint32"},{"internalType":"address","name":"zkMinterBurnerProxy_","type":"address"},{"internalType":"address","name":"l1Usdc_","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"l1USDC","outputs":[{"internalType":"contract IUSDC","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"originAddress","type":"address"},{"internalType":"uint32","name":"originNetwork","type":"uint32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onMessageReceived","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxiableUUID","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"}],"name":"upgradeTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newImplementation","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"upgradeToAndCall","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"zkMinterBurner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"zkNetworkId","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60a06040523060805234801561001457600080fd5b5061001f6001610024565b610076565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6080516120976100bb600039600081816104e40152818161052401528181610a4e01528181610a8e01528181610b2801528181610b680152610be401526120976000f3fe6080604052600436106101095760003560e01c8063726dc60b11610095578063988d389811610064578063988d389814610292578063a282c46e146102b2578063a6f73669146102eb578063e78cea921461030b578063f2fde38b1461032b57600080fd5b8063726dc60b1461020b5780638456cb591461022b5780638da5cb5b146102405780638f2839701461027257600080fd5b80633f4ba83a116100dc5780633f4ba83a146101835780634f1ef2861461019857806352d1902d146101ab5780635c975abb146101d3578063715018a6146101f657600080fd5b806303bdcfc91461010e578063073aec9a146101305780631806b5f2146101505780633659cfe614610163575b600080fd5b34801561011a57600080fd5b5061012e610129366004611a3e565b61034b565b005b34801561013c57600080fd5b5061012e61014b366004611a99565b6104da565b61012e61015e366004611bbc565b610890565b34801561016f57600080fd5b5061012e61017e366004611c1c565b610a44565b34801561018f57600080fd5b5061012e610b0c565b61012e6101a6366004611c39565b610b1e565b3480156101b757600080fd5b506101c0610bd7565b6040519081526020015b60405180910390f35b3480156101df57600080fd5b5060655460ff1660405190151581526020016101ca565b34801561020257600080fd5b5061012e610c8a565b34801561021757600080fd5b5061012e610226366004611c89565b610c9c565b34801561023757600080fd5b5061012e610ccd565b34801561024c57600080fd5b506033546001600160a01b03165b6040516001600160a01b0390911681526020016101ca565b34801561027e57600080fd5b5061012e61028d366004611c1c565b610cdd565b34801561029e57600080fd5b5060fc5461025a906001600160a01b031681565b3480156102be57600080fd5b5060fb546102d690600160a01b900463ffffffff1681565b60405163ffffffff90911681526020016101ca565b3480156102f757600080fd5b5060fd5461025a906001600160a01b031681565b34801561031757600080fd5b5060fb5461025a906001600160a01b031681565b34801561033757600080fd5b5061012e610346366004611c1c565b610d73565b610353610de9565b6001600160a01b0383166103a15760405162461bcd60e51b815260206004820152601060248201526f24a72b20a624a22fa922a1a2a4ab22a960811b60448201526064015b60405180910390fd5b600082116103e25760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b6044820152606401610398565b60fd546103fa906001600160a01b0316333085610e2f565b604080516001600160a01b038581166020830152818301859052825180830384018152606083019384905260fb5460fc54630481fe6f60e31b90955290938183169363240ff3789361046293600160a01b900463ffffffff1692169087908790606401611d78565b600060405180830381600087803b15801561047c57600080fd5b505af1158015610490573d6000803e3d6000fd5b50506040518581526001600160a01b03871692503391507f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a350505050565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036105225760405162461bcd60e51b815260040161039890611db0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610554610ea0565b6001600160a01b03161461057a5760405162461bcd60e51b815260040161039890611dfc565b610582610ec1565b6001600160a01b0316336001600160a01b0316146105b25760405162461bcd60e51b815260040161039890611e48565b600054610100900460ff16158080156105d25750600054600160ff909116105b806105ec5750303b1580156105ec575060005460ff166001145b61064f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610398565b6000805460ff191660011790558015610672576000805461ff0019166101001790555b6001600160a01b0385166106b95760405162461bcd60e51b815260206004820152600e60248201526d494e56414c49445f42524944474560901b6044820152606401610398565b6001600160a01b0383166106fc5760405162461bcd60e51b815260206004820152600a60248201526924a72b20a624a22fa6a160b11b6044820152606401610398565b6001600160a01b0382166107445760405162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4c315f5553444360881b6044820152606401610398565b6001600160a01b03871661078a5760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22fa7aba722a960991b6044820152606401610398565b6001600160a01b0386166107d05760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22fa0a226a4a760991b6044820152606401610398565b6107d8610ee9565b6107e187610f28565b6107ea86610f7a565b60fb80546001600160a01b038781166001600160c01b031990921691909117600160a01b63ffffffff8816021790915560fc80546001600160a01b03199081168684161790915560fd80549091169184169190911790558015610887576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b610898610de9565b60fb546001600160a01b031633146108df5760405162461bcd60e51b815260206004820152600a6024820152694e4f545f42524944474560b01b6044820152606401610398565b60fc546001600160a01b038481169116146109305760405162461bcd60e51b81526020600482015260116024820152702727aa2fa6a4a72a22a92fa12aa92722a960791b6044820152606401610398565b60fb5463ffffffff838116600160a01b90920416146109805760405162461bcd60e51b815260206004820152600c60248201526b2727aa2fad25afa1a420a4a760a11b6044820152606401610398565b600080828060200190518101906109979190611e6b565b90925090506001600160a01b0382166109e55760405162461bcd60e51b815260206004820152601060248201526f24a72b20a624a22fa922a1a2a4ab22a960811b6044820152606401610398565b60008111610a265760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b6044820152606401610398565b60fd54610a3d906001600160a01b03168383610fce565b5050505050565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610a8c5760405162461bcd60e51b815260040161039890611db0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610abe610ea0565b6001600160a01b031614610ae45760405162461bcd60e51b815260040161039890611dfc565b610aed81611003565b60408051600080825260208201909252610b099183919061103b565b50565b610b146111a6565b610b1c611200565b565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163003610b665760405162461bcd60e51b815260040161039890611db0565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610b98610ea0565b6001600160a01b031614610bbe5760405162461bcd60e51b815260040161039890611dfc565b610bc782611003565b610bd38282600161103b565b5050565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610c775760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610398565b5060008051602061201b83398151915290565b610c926111a6565b610b1c6000610f28565b610ca4610de9565b8015610cc25760fd54610cc2906001600160a01b0316858484611252565b610a3d85858561034b565b610cd56111a6565b610b1c611414565b610ce5610ec1565b6001600160a01b0316336001600160a01b031614610d155760405162461bcd60e51b815260040161039890611e48565b610d1d610ec1565b6001600160a01b0316816001600160a01b031603610d6a5760405162461bcd60e51b815260206004820152600a60248201526929a0a6a2afa0a226a4a760b11b6044820152606401610398565b610b0981610f7a565b610d7b6111a6565b6001600160a01b038116610de05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610398565b610b0981610f28565b60655460ff1615610b1c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610398565b6040516001600160a01b0380851660248301528316604482015260648101829052610e9a9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611451565b50505050565b600060008051602061201b8339815191525b546001600160a01b0316919050565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103610eb2565b600054610100900460ff16610f105760405162461bcd60e51b815260040161039890611e99565b610f18611526565b610f20611555565b610b1c611584565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f610fa3610ec1565b604080516001600160a01b03928316815291841660208301520160405180910390a1610b09816115ab565b6040516001600160a01b038316602482015260448101829052610ffe90849063a9059cbb60e01b90606401610e63565b505050565b61100b610ec1565b6001600160a01b0316336001600160a01b031614610b095760405162461bcd60e51b815260040161039890611e48565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561106e57610ffe83611654565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156110c8575060408051601f3d908101601f191682019092526110c591810190611ee4565b60015b61112b5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610398565b60008051602061201b833981519152811461119a5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610398565b50610ffe8383836116d6565b6033546001600160a01b03163314610b1c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b6112086116fb565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b63d505accf60e01b611268600460008486611efd565b61127191611f27565b6001600160e01b0319161461129957604051637eb349ff60e11b815260040160405180910390fd5b60008080808080806112ae886004818c611efd565b8101906112bb9190611f57565b9650965096509650965096509650336001600160a01b0316876001600160a01b0316146112fb5760405163912ecce760e01b815260040160405180910390fd5b6001600160a01b03861630146113245760405163750643af60e01b815260040160405180910390fd5b898514611344576040516303fffc4b60e01b815260040160405180910390fd5b604080516001600160a01b0389811660248301528881166044830152606482018890526084820187905260ff861660a483015260c4820185905260e48083018590528351808403909101815261010490920183526020820180516001600160e01b031663d505accf60e01b1790529151918d16916113c29190611fce565b6000604051808303816000865af19150503d80600081146113ff576040519150601f19603f3d011682016040523d82523d6000602084013e611404565b606091505b5050505050505050505050505050565b61141c610de9565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112353390565b60006114a6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117449092919063ffffffff16565b90508051600014806114c75750808060200190518101906114c79190611fea565b610ffe5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610398565b600054610100900460ff1661154d5760405162461bcd60e51b815260040161039890611e99565b610b1c61175b565b600054610100900460ff1661157c5760405162461bcd60e51b815260040161039890611e99565b610b1c61178b565b600054610100900460ff16610b1c5760405162461bcd60e51b815260040161039890611e99565b6001600160a01b0381166116105760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b6064820152608401610398565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b0381163b6116c15760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610398565b8060008051602061201b833981519152611633565b6116df836117be565b6000825111806116ec5750805b15610ffe57610e9a83836117fe565b60655460ff16610b1c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610398565b6060611753848460008561182a565b949350505050565b600054610100900460ff166117825760405162461bcd60e51b815260040161039890611e99565b610b1c33610f28565b600054610100900460ff166117b25760405162461bcd60e51b815260040161039890611e99565b6065805460ff19169055565b6117c781611654565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060611823838360405180606001604052806027815260200161203b60279139611905565b9392505050565b60608247101561188b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610398565b600080866001600160a01b031685876040516118a79190611fce565b60006040518083038185875af1925050503d80600081146118e4576040519150601f19603f3d011682016040523d82523d6000602084013e6118e9565b606091505b50915091506118fa8783838761197d565b979650505050505050565b6060600080856001600160a01b0316856040516119229190611fce565b600060405180830381855af49150503d806000811461195d576040519150601f19603f3d011682016040523d82523d6000602084013e611962565b606091505b50915091506119738683838761197d565b9695505050505050565b606083156119ec5782516000036119e5576001600160a01b0385163b6119e55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610398565b5081611753565b6117538383815115611a015781518083602001fd5b8060405162461bcd60e51b81526004016103989190612007565b6001600160a01b0381168114610b0957600080fd5b8015158114610b0957600080fd5b600080600060608486031215611a5357600080fd5b8335611a5e81611a1b565b9250602084013591506040840135611a7581611a30565b809150509250925092565b803563ffffffff81168114611a9457600080fd5b919050565b60008060008060008060c08789031215611ab257600080fd5b8635611abd81611a1b565b95506020870135611acd81611a1b565b94506040870135611add81611a1b565b9350611aeb60608801611a80565b92506080870135611afb81611a1b565b915060a0870135611b0b81611a1b565b809150509295509295509295565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611b4057600080fd5b813567ffffffffffffffff80821115611b5b57611b5b611b19565b604051601f8301601f19908116603f01168101908282118183101715611b8357611b83611b19565b81604052838152866020858801011115611b9c57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215611bd157600080fd5b8335611bdc81611a1b565b9250611bea60208501611a80565b9150604084013567ffffffffffffffff811115611c0657600080fd5b611c1286828701611b2f565b9150509250925092565b600060208284031215611c2e57600080fd5b813561182381611a1b565b60008060408385031215611c4c57600080fd5b8235611c5781611a1b565b9150602083013567ffffffffffffffff811115611c7357600080fd5b611c7f85828601611b2f565b9150509250929050565b600080600080600060808688031215611ca157600080fd5b8535611cac81611a1b565b9450602086013593506040860135611cc381611a30565b9250606086013567ffffffffffffffff80821115611ce057600080fd5b818801915088601f830112611cf457600080fd5b813581811115611d0357600080fd5b896020828501011115611d1557600080fd5b9699959850939650602001949392505050565b60005b83811015611d43578181015183820152602001611d2b565b50506000910152565b60008151808452611d64816020860160208601611d28565b601f01601f19169290920160200192915050565b63ffffffff851681526001600160a01b0384166020820152821515604082015260806060820181905260009061197390830184611d4c565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252600990820152682727aa2fa0a226a4a760b91b604082015260600190565b60008060408385031215611e7e57600080fd5b8251611e8981611a1b565b6020939093015192949293505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600060208284031215611ef657600080fd5b5051919050565b60008085851115611f0d57600080fd5b83861115611f1a57600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015611f4f5780818660040360031b1b83161692505b505092915050565b600080600080600080600060e0888a031215611f7257600080fd5b8735611f7d81611a1b565b96506020880135611f8d81611a1b565b95506040880135945060608801359350608088013560ff81168114611fb157600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008251611fe0818460208701611d28565b9190910192915050565b600060208284031215611ffc57600080fd5b815161182381611a30565b6020815260006118236020830184611d4c56fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122068edc83d020906e23ece484191940ed07f17dca09a403911f5d2eedc310df4ea64736f6c63430008110033
Deployed Bytecode
0x6080604052600436106101095760003560e01c8063726dc60b11610095578063988d389811610064578063988d389814610292578063a282c46e146102b2578063a6f73669146102eb578063e78cea921461030b578063f2fde38b1461032b57600080fd5b8063726dc60b1461020b5780638456cb591461022b5780638da5cb5b146102405780638f2839701461027257600080fd5b80633f4ba83a116100dc5780633f4ba83a146101835780634f1ef2861461019857806352d1902d146101ab5780635c975abb146101d3578063715018a6146101f657600080fd5b806303bdcfc91461010e578063073aec9a146101305780631806b5f2146101505780633659cfe614610163575b600080fd5b34801561011a57600080fd5b5061012e610129366004611a3e565b61034b565b005b34801561013c57600080fd5b5061012e61014b366004611a99565b6104da565b61012e61015e366004611bbc565b610890565b34801561016f57600080fd5b5061012e61017e366004611c1c565b610a44565b34801561018f57600080fd5b5061012e610b0c565b61012e6101a6366004611c39565b610b1e565b3480156101b757600080fd5b506101c0610bd7565b6040519081526020015b60405180910390f35b3480156101df57600080fd5b5060655460ff1660405190151581526020016101ca565b34801561020257600080fd5b5061012e610c8a565b34801561021757600080fd5b5061012e610226366004611c89565b610c9c565b34801561023757600080fd5b5061012e610ccd565b34801561024c57600080fd5b506033546001600160a01b03165b6040516001600160a01b0390911681526020016101ca565b34801561027e57600080fd5b5061012e61028d366004611c1c565b610cdd565b34801561029e57600080fd5b5060fc5461025a906001600160a01b031681565b3480156102be57600080fd5b5060fb546102d690600160a01b900463ffffffff1681565b60405163ffffffff90911681526020016101ca565b3480156102f757600080fd5b5060fd5461025a906001600160a01b031681565b34801561031757600080fd5b5060fb5461025a906001600160a01b031681565b34801561033757600080fd5b5061012e610346366004611c1c565b610d73565b610353610de9565b6001600160a01b0383166103a15760405162461bcd60e51b815260206004820152601060248201526f24a72b20a624a22fa922a1a2a4ab22a960811b60448201526064015b60405180910390fd5b600082116103e25760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b6044820152606401610398565b60fd546103fa906001600160a01b0316333085610e2f565b604080516001600160a01b038581166020830152818301859052825180830384018152606083019384905260fb5460fc54630481fe6f60e31b90955290938183169363240ff3789361046293600160a01b900463ffffffff1692169087908790606401611d78565b600060405180830381600087803b15801561047c57600080fd5b505af1158015610490573d6000803e3d6000fd5b50506040518581526001600160a01b03871692503391507f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a350505050565b6001600160a01b037f000000000000000000000000a4e6762eaaf259da74696f46faaf79ba9dde14e61630036105225760405162461bcd60e51b815260040161039890611db0565b7f000000000000000000000000a4e6762eaaf259da74696f46faaf79ba9dde14e66001600160a01b0316610554610ea0565b6001600160a01b03161461057a5760405162461bcd60e51b815260040161039890611dfc565b610582610ec1565b6001600160a01b0316336001600160a01b0316146105b25760405162461bcd60e51b815260040161039890611e48565b600054610100900460ff16158080156105d25750600054600160ff909116105b806105ec5750303b1580156105ec575060005460ff166001145b61064f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610398565b6000805460ff191660011790558015610672576000805461ff0019166101001790555b6001600160a01b0385166106b95760405162461bcd60e51b815260206004820152600e60248201526d494e56414c49445f42524944474560901b6044820152606401610398565b6001600160a01b0383166106fc5760405162461bcd60e51b815260206004820152600a60248201526924a72b20a624a22fa6a160b11b6044820152606401610398565b6001600160a01b0382166107445760405162461bcd60e51b815260206004820152600f60248201526e494e56414c49445f4c315f5553444360881b6044820152606401610398565b6001600160a01b03871661078a5760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22fa7aba722a960991b6044820152606401610398565b6001600160a01b0386166107d05760405162461bcd60e51b815260206004820152600d60248201526c24a72b20a624a22fa0a226a4a760991b6044820152606401610398565b6107d8610ee9565b6107e187610f28565b6107ea86610f7a565b60fb80546001600160a01b038781166001600160c01b031990921691909117600160a01b63ffffffff8816021790915560fc80546001600160a01b03199081168684161790915560fd80549091169184169190911790558015610887576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050505050565b610898610de9565b60fb546001600160a01b031633146108df5760405162461bcd60e51b815260206004820152600a6024820152694e4f545f42524944474560b01b6044820152606401610398565b60fc546001600160a01b038481169116146109305760405162461bcd60e51b81526020600482015260116024820152702727aa2fa6a4a72a22a92fa12aa92722a960791b6044820152606401610398565b60fb5463ffffffff838116600160a01b90920416146109805760405162461bcd60e51b815260206004820152600c60248201526b2727aa2fad25afa1a420a4a760a11b6044820152606401610398565b600080828060200190518101906109979190611e6b565b90925090506001600160a01b0382166109e55760405162461bcd60e51b815260206004820152601060248201526f24a72b20a624a22fa922a1a2a4ab22a960811b6044820152606401610398565b60008111610a265760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d05353d5539560921b6044820152606401610398565b60fd54610a3d906001600160a01b03168383610fce565b5050505050565b6001600160a01b037f000000000000000000000000a4e6762eaaf259da74696f46faaf79ba9dde14e6163003610a8c5760405162461bcd60e51b815260040161039890611db0565b7f000000000000000000000000a4e6762eaaf259da74696f46faaf79ba9dde14e66001600160a01b0316610abe610ea0565b6001600160a01b031614610ae45760405162461bcd60e51b815260040161039890611dfc565b610aed81611003565b60408051600080825260208201909252610b099183919061103b565b50565b610b146111a6565b610b1c611200565b565b6001600160a01b037f000000000000000000000000a4e6762eaaf259da74696f46faaf79ba9dde14e6163003610b665760405162461bcd60e51b815260040161039890611db0565b7f000000000000000000000000a4e6762eaaf259da74696f46faaf79ba9dde14e66001600160a01b0316610b98610ea0565b6001600160a01b031614610bbe5760405162461bcd60e51b815260040161039890611dfc565b610bc782611003565b610bd38282600161103b565b5050565b6000306001600160a01b037f000000000000000000000000a4e6762eaaf259da74696f46faaf79ba9dde14e61614610c775760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c60448201527f6c6564207468726f7567682064656c656761746563616c6c00000000000000006064820152608401610398565b5060008051602061201b83398151915290565b610c926111a6565b610b1c6000610f28565b610ca4610de9565b8015610cc25760fd54610cc2906001600160a01b0316858484611252565b610a3d85858561034b565b610cd56111a6565b610b1c611414565b610ce5610ec1565b6001600160a01b0316336001600160a01b031614610d155760405162461bcd60e51b815260040161039890611e48565b610d1d610ec1565b6001600160a01b0316816001600160a01b031603610d6a5760405162461bcd60e51b815260206004820152600a60248201526929a0a6a2afa0a226a4a760b11b6044820152606401610398565b610b0981610f7a565b610d7b6111a6565b6001600160a01b038116610de05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610398565b610b0981610f28565b60655460ff1615610b1c5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610398565b6040516001600160a01b0380851660248301528316604482015260648101829052610e9a9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611451565b50505050565b600060008051602061201b8339815191525b546001600160a01b0316919050565b60007fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103610eb2565b600054610100900460ff16610f105760405162461bcd60e51b815260040161039890611e99565b610f18611526565b610f20611555565b610b1c611584565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f610fa3610ec1565b604080516001600160a01b03928316815291841660208301520160405180910390a1610b09816115ab565b6040516001600160a01b038316602482015260448101829052610ffe90849063a9059cbb60e01b90606401610e63565b505050565b61100b610ec1565b6001600160a01b0316336001600160a01b031614610b095760405162461bcd60e51b815260040161039890611e48565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff161561106e57610ffe83611654565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156110c8575060408051601f3d908101601f191682019092526110c591810190611ee4565b60015b61112b5760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610398565b60008051602061201b833981519152811461119a5760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610398565b50610ffe8383836116d6565b6033546001600160a01b03163314610b1c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610398565b6112086116fb565b6065805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b63d505accf60e01b611268600460008486611efd565b61127191611f27565b6001600160e01b0319161461129957604051637eb349ff60e11b815260040160405180910390fd5b60008080808080806112ae886004818c611efd565b8101906112bb9190611f57565b9650965096509650965096509650336001600160a01b0316876001600160a01b0316146112fb5760405163912ecce760e01b815260040160405180910390fd5b6001600160a01b03861630146113245760405163750643af60e01b815260040160405180910390fd5b898514611344576040516303fffc4b60e01b815260040160405180910390fd5b604080516001600160a01b0389811660248301528881166044830152606482018890526084820187905260ff861660a483015260c4820185905260e48083018590528351808403909101815261010490920183526020820180516001600160e01b031663d505accf60e01b1790529151918d16916113c29190611fce565b6000604051808303816000865af19150503d80600081146113ff576040519150601f19603f3d011682016040523d82523d6000602084013e611404565b606091505b5050505050505050505050505050565b61141c610de9565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112353390565b60006114a6826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166117449092919063ffffffff16565b90508051600014806114c75750808060200190518101906114c79190611fea565b610ffe5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610398565b600054610100900460ff1661154d5760405162461bcd60e51b815260040161039890611e99565b610b1c61175b565b600054610100900460ff1661157c5760405162461bcd60e51b815260040161039890611e99565b610b1c61178b565b600054610100900460ff16610b1c5760405162461bcd60e51b815260040161039890611e99565b6001600160a01b0381166116105760405162461bcd60e51b815260206004820152602660248201527f455243313936373a206e65772061646d696e20697320746865207a65726f206160448201526564647265737360d01b6064820152608401610398565b807fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d61035b80546001600160a01b0319166001600160a01b039290921691909117905550565b6001600160a01b0381163b6116c15760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610398565b8060008051602061201b833981519152611633565b6116df836117be565b6000825111806116ec5750805b15610ffe57610e9a83836117fe565b60655460ff16610b1c5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610398565b6060611753848460008561182a565b949350505050565b600054610100900460ff166117825760405162461bcd60e51b815260040161039890611e99565b610b1c33610f28565b600054610100900460ff166117b25760405162461bcd60e51b815260040161039890611e99565b6065805460ff19169055565b6117c781611654565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6060611823838360405180606001604052806027815260200161203b60279139611905565b9392505050565b60608247101561188b5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610398565b600080866001600160a01b031685876040516118a79190611fce565b60006040518083038185875af1925050503d80600081146118e4576040519150601f19603f3d011682016040523d82523d6000602084013e6118e9565b606091505b50915091506118fa8783838761197d565b979650505050505050565b6060600080856001600160a01b0316856040516119229190611fce565b600060405180830381855af49150503d806000811461195d576040519150601f19603f3d011682016040523d82523d6000602084013e611962565b606091505b50915091506119738683838761197d565b9695505050505050565b606083156119ec5782516000036119e5576001600160a01b0385163b6119e55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610398565b5081611753565b6117538383815115611a015781518083602001fd5b8060405162461bcd60e51b81526004016103989190612007565b6001600160a01b0381168114610b0957600080fd5b8015158114610b0957600080fd5b600080600060608486031215611a5357600080fd5b8335611a5e81611a1b565b9250602084013591506040840135611a7581611a30565b809150509250925092565b803563ffffffff81168114611a9457600080fd5b919050565b60008060008060008060c08789031215611ab257600080fd5b8635611abd81611a1b565b95506020870135611acd81611a1b565b94506040870135611add81611a1b565b9350611aeb60608801611a80565b92506080870135611afb81611a1b565b915060a0870135611b0b81611a1b565b809150509295509295509295565b634e487b7160e01b600052604160045260246000fd5b600082601f830112611b4057600080fd5b813567ffffffffffffffff80821115611b5b57611b5b611b19565b604051601f8301601f19908116603f01168101908282118183101715611b8357611b83611b19565b81604052838152866020858801011115611b9c57600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215611bd157600080fd5b8335611bdc81611a1b565b9250611bea60208501611a80565b9150604084013567ffffffffffffffff811115611c0657600080fd5b611c1286828701611b2f565b9150509250925092565b600060208284031215611c2e57600080fd5b813561182381611a1b565b60008060408385031215611c4c57600080fd5b8235611c5781611a1b565b9150602083013567ffffffffffffffff811115611c7357600080fd5b611c7f85828601611b2f565b9150509250929050565b600080600080600060808688031215611ca157600080fd5b8535611cac81611a1b565b9450602086013593506040860135611cc381611a30565b9250606086013567ffffffffffffffff80821115611ce057600080fd5b818801915088601f830112611cf457600080fd5b813581811115611d0357600080fd5b896020828501011115611d1557600080fd5b9699959850939650602001949392505050565b60005b83811015611d43578181015183820152602001611d2b565b50506000910152565b60008151808452611d64816020860160208601611d28565b601f01601f19169290920160200192915050565b63ffffffff851681526001600160a01b0384166020820152821515604082015260806060820181905260009061197390830184611d4c565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060408201526b6163746976652070726f787960a01b606082015260800190565b6020808252600990820152682727aa2fa0a226a4a760b91b604082015260600190565b60008060408385031215611e7e57600080fd5b8251611e8981611a1b565b6020939093015192949293505050565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b600060208284031215611ef657600080fd5b5051919050565b60008085851115611f0d57600080fd5b83861115611f1a57600080fd5b5050820193919092039150565b6001600160e01b03198135818116916004851015611f4f5780818660040360031b1b83161692505b505092915050565b600080600080600080600060e0888a031215611f7257600080fd5b8735611f7d81611a1b565b96506020880135611f8d81611a1b565b95506040880135945060608801359350608088013560ff81168114611fb157600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008251611fe0818460208701611d28565b9190910192915050565b600060208284031215611ffc57600080fd5b815161182381611a30565b6020815260006118236020830184611d4c56fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122068edc83d020906e23ece484191940ed07f17dca09a403911f5d2eedc310df4ea64736f6c63430008110033
Deployed Bytecode Sourcemap
60923:6072:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63996:929;;;;;;;;;;-1:-1:-1;63996:929:0;;;;;:::i;:::-;;:::i;:::-;;62622:825;;;;;;;;;;-1:-1:-1;62622:825:0;;;;;:::i;:::-;;:::i;66164:828::-;;;;;;:::i;:::-;;:::i;51931:198::-;;;;;;;;;;-1:-1:-1;51931:198:0;;;;;:::i;:::-;;:::i;58113:67::-;;;;;;;;;;;;;:::i;52460:223::-;;;;;;:::i;:::-;;:::i;51537:133::-;;;;;;;;;;;;;:::i;:::-;;;4032:25:1;;;4020:2;4005:18;51537:133:0;;;;;;;;55256:86;;;;;;;;;;-1:-1:-1;55327:7:0;;;;55256:86;;4233:14:1;;4226:22;4208:41;;4196:2;4181:18;55256:86:0;4068:187:1;34841:103:0;;;;;;;;;;;;;:::i;65070:381::-;;;;;;;;;;-1:-1:-1;65070:381:0;;;;;:::i;:::-;;:::i;57955:63::-;;;;;;;;;;;;;:::i;34200:87::-;;;;;;;;;;-1:-1:-1;34273:6:0;;-1:-1:-1;;;;;34273:6:0;34200:87;;;-1:-1:-1;;;;;5359:32:1;;;5341:51;;5329:2;5314:18;34200:87:0;5195:203:1;57707:156:0;;;;;;;;;;-1:-1:-1;57707:156:0;;;;;:::i;:::-;;:::i;61612:29::-;;;;;;;;;;-1:-1:-1;61612:29:0;;;;-1:-1:-1;;;;;61612:29:0;;;61485:25;;;;;;;;;;-1:-1:-1;61485:25:0;;;;-1:-1:-1;;;61485:25:0;;;;;;;;;5577:10:1;5565:23;;;5547:42;;5535:2;5520:18;61485:25:0;5403:192:1;61696:19:0;;;;;;;;;;-1:-1:-1;61696:19:0;;;;-1:-1:-1;;;;;61696:19:0;;;61328:33;;;;;;;;;;-1:-1:-1;61328:33:0;;;;-1:-1:-1;;;;;61328:33:0;;;35099:201;;;;;;;;;;-1:-1:-1;35099:201:0;;;;;:::i;:::-;;:::i;63996:929::-;54861:19;:17;:19::i;:::-;-1:-1:-1;;;;;64334:32:0;::::1;64326:61;;;::::0;-1:-1:-1;;;64326:61:0;;6259:2:1;64326:61:0::1;::::0;::::1;6241:21:1::0;6298:2;6278:18;;;6271:30;-1:-1:-1;;;6317:18:1;;;6310:46;6373:18;;64326:61:0::1;;;;;;;;;64415:1;64406:6;:10;64398:37;;;::::0;-1:-1:-1;;;64398:37:0;;6604:2:1;64398:37:0::1;::::0;::::1;6586:21:1::0;6643:2;6623:18;;;6616:30;-1:-1:-1;;;6662:18:1;;;6655:44;6716:18;;64398:37:0::1;6402:338:1::0;64398:37:0::1;64501:6;::::0;:58:::1;::::0;-1:-1:-1;;;;;64501:6:0::1;64525:10;64545:4;64552:6:::0;64501:23:::1;:58::i;:::-;64658:38;::::0;;-1:-1:-1;;;;;6937:32:1;;;64658:38:0::1;::::0;::::1;6919:51:1::0;6986:18;;;6979:34;;;64658:38:0;;;;;;;;;6892:18:1;;;64658:38:0;;;;64707:6:::1;::::0;64768:14:::1;::::0;-1:-1:-1;;;64707:145:0;;;64658:38;;64707:6;;::::1;::::0;:20:::1;::::0;:145:::1;::::0;-1:-1:-1;;;64742:11:0;::::1;;;::::0;64768:14:::1;::::0;64797:25;;64658:38;;64707:145;;::::1;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;64870:47:0::1;::::0;4032:25:1;;;-1:-1:-1;;;;;64870:47:0;::::1;::::0;-1:-1:-1;64878:10:0::1;::::0;-1:-1:-1;64870:47:0::1;::::0;4020:2:1;4005:18;64870:47:0::1;;;;;;;64148:777;63996:929:::0;;;:::o;62622:825::-;-1:-1:-1;;;;;50407:6:0;50390:23;50398:4;50390:23;50382:80;;;;-1:-1:-1;;;50382:80:0;;;;;;;:::i;:::-;50505:6;-1:-1:-1;;;;;50481:30:0;:20;:18;:20::i;:::-;-1:-1:-1;;;;;50481:30:0;;50473:87;;;;-1:-1:-1;;;50473:87:0;;;;;;;:::i;:::-;57475:11:::1;:9;:11::i;:::-;-1:-1:-1::0;;;;;57461:25:0::1;:10;-1:-1:-1::0;;;;;57461:25:0::1;;57453:47;;;;-1:-1:-1::0;;;57453:47:0::1;;;;;;;:::i;:::-;28263:19:::2;28286:13:::0;::::2;::::0;::::2;;;28285:14;::::0;28333:34;::::2;;;-1:-1:-1::0;28351:12:0::2;::::0;28366:1:::2;28351:12;::::0;;::::2;:16;28333:34;28332:108;;;-1:-1:-1::0;28412:4:0::2;6885:19:::0;:23;;;28373:66:::2;;-1:-1:-1::0;28422:12:0::2;::::0;::::2;;::::0;:17:::2;28373:66;28310:204;;;::::0;-1:-1:-1;;;28310:204:0;;9589:2:1;28310:204:0::2;::::0;::::2;9571:21:1::0;9628:2;9608:18;;;9601:30;9667:34;9647:18;;;9640:62;-1:-1:-1;;;9718:18:1;;;9711:44;9772:19;;28310:204:0::2;9387:410:1::0;28310:204:0::2;28525:12;:16:::0;;-1:-1:-1;;28525:16:0::2;28540:1;28525:16;::::0;;28552:67;::::2;;;28587:13;:20:::0;;-1:-1:-1;;28587:20:0::2;;;::::0;;28552:67:::2;-1:-1:-1::0;;;;;62880:21:0;::::3;62872:48;;;::::0;-1:-1:-1;;;62872:48:0;;10004:2:1;62872:48:0::3;::::0;::::3;9986:21:1::0;10043:2;10023:18;;;10016:30;-1:-1:-1;;;10062:18:1;;;10055:44;10116:18;;62872:48:0::3;9802:338:1::0;62872:48:0::3;-1:-1:-1::0;;;;;62939:34:0;::::3;62931:57;;;::::0;-1:-1:-1;;;62931:57:0;;10347:2:1;62931:57:0::3;::::0;::::3;10329:21:1::0;10386:2;10366:18;;;10359:30;-1:-1:-1;;;10405:18:1;;;10398:40;10455:18;;62931:57:0::3;10145:334:1::0;62931:57:0::3;-1:-1:-1::0;;;;;63007:21:0;::::3;62999:49;;;::::0;-1:-1:-1;;;62999:49:0;;10686:2:1;62999:49:0::3;::::0;::::3;10668:21:1::0;10725:2;10705:18;;;10698:30;-1:-1:-1;;;10744:18:1;;;10737:45;10799:18;;62999:49:0::3;10484:339:1::0;62999:49:0::3;-1:-1:-1::0;;;;;63067:20:0;::::3;63059:46;;;::::0;-1:-1:-1;;;63059:46:0;;11030:2:1;63059:46:0::3;::::0;::::3;11012:21:1::0;11069:2;11049:18;;;11042:30;-1:-1:-1;;;11088:18:1;;;11081:43;11141:18;;63059:46:0::3;10828:337:1::0;63059:46:0::3;-1:-1:-1::0;;;;;63124:20:0;::::3;63116:46;;;::::0;-1:-1:-1;;;63116:46:0;;11372:2:1;63116:46:0::3;::::0;::::3;11354:21:1::0;11411:2;11391:18;;;11384:30;-1:-1:-1;;;11430:18:1;;;11423:43;11483:18;;63116:46:0::3;11170:337:1::0;63116:46:0::3;63175:25;:23;:25::i;:::-;63213:26;63232:6;63213:18;:26::i;:::-;63250:20;63263:6;63250:12;:20::i;:::-;63283:6;:37:::0;;-1:-1:-1;;;;;63283:37:0;;::::3;-1:-1:-1::0;;;;;;63331:26:0;;;;;;;-1:-1:-1;;;63331:26:0::3;::::0;::::3;;;::::0;;;63368:14:::3;:37:::0;;-1:-1:-1;;;;;;63368:37:0;;::::3;::::0;;::::3;;::::0;;;63416:6:::3;:23:::0;;;;::::3;::::0;;::::3;::::0;;;::::3;::::0;;28641:102;::::2;;;28692:5;28676:21:::0;;-1:-1:-1;;28676:21:0::2;::::0;;28717:14:::2;::::0;-1:-1:-1;11664:36:1;;28717:14:0::2;::::0;11652:2:1;11637:18;28717:14:0::2;;;;;;;28641:102;28252:498;62622:825:::0;;;;;;:::o;66164:828::-;54861:19;:17;:19::i;:::-;66361:6:::1;::::0;-1:-1:-1;;;;;66361:6:0::1;66339:10;:29;66331:52;;;::::0;-1:-1:-1;;;66331:52:0;;11913:2:1;66331:52:0::1;::::0;::::1;11895:21:1::0;11952:2;11932:18;;;11925:30;-1:-1:-1;;;11971:18:1;;;11964:40;12021:18;;66331:52:0::1;11711:334:1::0;66331:52:0::1;66402:14;::::0;-1:-1:-1;;;;;66402:31:0;;::::1;:14:::0;::::1;:31;66394:61;;;::::0;-1:-1:-1;;;66394:61:0;;12252:2:1;66394:61:0::1;::::0;::::1;12234:21:1::0;12291:2;12271:18;;;12264:30;-1:-1:-1;;;12310:18:1;;;12303:47;12367:18;;66394:61:0::1;12050:341:1::0;66394:61:0::1;66474:11;::::0;:28:::1;::::0;;::::1;-1:-1:-1::0;;;66474:11:0;;::::1;;:28;66466:53;;;::::0;-1:-1:-1;;;66466:53:0;;12598:2:1;66466:53:0::1;::::0;::::1;12580:21:1::0;12637:2;12617:18;;;12610:30;-1:-1:-1;;;12656:18:1;;;12649:42;12708:18;;66466:53:0::1;12396:336:1::0;66466:53:0::1;66583:18;66603:14:::0;66646:4:::1;66621:73;;;;;;;;;;;;:::i;:::-;66582:112:::0;;-1:-1:-1;66582:112:0;-1:-1:-1;;;;;;66787:24:0;::::1;66779:53;;;::::0;-1:-1:-1;;;66779:53:0;;6259:2:1;66779:53:0::1;::::0;::::1;6241:21:1::0;6298:2;6278:18;;;6271:30;-1:-1:-1;;;6317:18:1;;;6310:46;6373:18;;66779:53:0::1;6057:340:1::0;66779:53:0::1;66860:1;66851:6;:10;66843:37;;;::::0;-1:-1:-1;;;66843:37:0;;6604:2:1;66843:37:0::1;::::0;::::1;6586:21:1::0;6643:2;6623:18;;;6616:30;-1:-1:-1;;;6662:18:1;;;6655:44;6716:18;;66843:37:0::1;6402:338:1::0;66843:37:0::1;66945:6;::::0;:39:::1;::::0;-1:-1:-1;;;;;66945:6:0::1;66965:10:::0;66977:6;66945:19:::1;:39::i;:::-;66320:672;;66164:828:::0;;;:::o;51931:198::-;-1:-1:-1;;;;;50407:6:0;50390:23;50398:4;50390:23;50382:80;;;;-1:-1:-1;;;50382:80:0;;;;;;;:::i;:::-;50505:6;-1:-1:-1;;;;;50481:30:0;:20;:18;:20::i;:::-;-1:-1:-1;;;;;50481:30:0;;50473:87;;;;-1:-1:-1;;;50473:87:0;;;;;;;:::i;:::-;52013:36:::1;52031:17;52013;:36::i;:::-;52101:12;::::0;;52111:1:::1;52101:12:::0;;;::::1;::::0;::::1;::::0;;;52060:61:::1;::::0;52082:17;;52101:12;52060:21:::1;:61::i;:::-;51931:198:::0;:::o;58113:67::-;34086:13;:11;:13::i;:::-;58162:10:::1;:8;:10::i;:::-;58113:67::o:0;52460:223::-;-1:-1:-1;;;;;50407:6:0;50390:23;50398:4;50390:23;50382:80;;;;-1:-1:-1;;;50382:80:0;;;;;;;:::i;:::-;50505:6;-1:-1:-1;;;;;50481:30:0;:20;:18;:20::i;:::-;-1:-1:-1;;;;;50481:30:0;;50473:87;;;;-1:-1:-1;;;50473:87:0;;;;;;;:::i;:::-;52576:36:::1;52594:17;52576;:36::i;:::-;52623:52;52645:17;52664:4;52670;52623:21;:52::i;:::-;52460:223:::0;;:::o;51537:133::-;51615:7;50843:4;-1:-1:-1;;;;;50852:6:0;50835:23;;50827:92;;;;-1:-1:-1;;;50827:92:0;;13264:2:1;50827:92:0;;;13246:21:1;13303:2;13283:18;;;13276:30;13342:34;13322:18;;;13315:62;13413:26;13393:18;;;13386:54;13457:19;;50827:92:0;13062:420:1;50827:92:0;-1:-1:-1;;;;;;;;;;;;51537:133:0;:::o;34841:103::-;34086:13;:11;:13::i;:::-;34906:30:::1;34933:1;34906:18;:30::i;65070:381::-:0;54861:19;:17;:19::i;:::-;65275:21;;65271:93:::1;;65336:6;::::0;65311:53:::1;::::0;-1:-1:-1;;;;;65336:6:0::1;65345::::0;65353:10;;65311:16:::1;:53::i;:::-;65377:66;65389:18;65409:6;65417:25;65377:11;:66::i;57955:63::-:0;34086:13;:11;:13::i;:::-;58002:8:::1;:6;:8::i;57707:156::-:0;57475:11;:9;:11::i;:::-;-1:-1:-1;;;;;57461:25:0;:10;-1:-1:-1;;;;;57461:25:0;;57453:47;;;;-1:-1:-1;;;57453:47:0;;;;;;;:::i;:::-;57796:11:::1;:9;:11::i;:::-;-1:-1:-1::0;;;;;57784:23:0::1;:8;-1:-1:-1::0;;;;;57784:23:0::1;::::0;57776:46:::1;;;::::0;-1:-1:-1;;;57776:46:0;;13689:2:1;57776:46:0::1;::::0;::::1;13671:21:1::0;13728:2;13708:18;;;13701:30;-1:-1:-1;;;13747:18:1;;;13740:40;13797:18;;57776:46:0::1;13487:334:1::0;57776:46:0::1;57833:22;57846:8;57833:12;:22::i;35099:201::-:0;34086:13;:11;:13::i;:::-;-1:-1:-1;;;;;35188:22:0;::::1;35180:73;;;::::0;-1:-1:-1;;;35180:73:0;;14028:2:1;35180:73:0::1;::::0;::::1;14010:21:1::0;14067:2;14047:18;;;14040:30;14106:34;14086:18;;;14079:62;-1:-1:-1;;;14157:18:1;;;14150:36;14203:19;;35180:73:0::1;13826:402:1::0;35180:73:0::1;35264:28;35283:8;35264:18;:28::i;55415:108::-:0;55327:7;;;;55485:9;55477:38;;;;-1:-1:-1;;;55477:38:0;;14435:2:1;55477:38:0;;;14417:21:1;14474:2;14454:18;;;14447:30;-1:-1:-1;;;14493:18:1;;;14486:46;14549:18;;55477:38:0;14233:340:1;15918:216:0;16057:68;;-1:-1:-1;;;;;14836:15:1;;;16057:68:0;;;14818:34:1;14888:15;;14868:18;;;14861:43;14920:18;;;14913:34;;;16030:96:0;;16050:5;;-1:-1:-1;;;16080:27:0;14753:18:1;;16057:68:0;;;;-1:-1:-1;;16057:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;16057:68:0;-1:-1:-1;;;;;;16057:68:0;;;;;;;;;;16030:19;:96::i;:::-;15918:216;;;;:::o;43299:153::-;43352:7;-1:-1:-1;;;;;;;;;;;43379:59:0;:65;-1:-1:-1;;;;;43379:65:0;;43299:153;-1:-1:-1;43299:153:0:o;46039:135::-;46083:7;45906:66;46110:50;39915:195;57254:159;30406:13;;;;;;;30398:69;;;;-1:-1:-1;;;30398:69:0;;;;;;;:::i;:::-;57326:16:::1;:14;:16::i;:::-;57353:17;:15;:17::i;:::-;57381:24;:22;:24::i;35460:191::-:0;35553:6;;;-1:-1:-1;;;;;35570:17:0;;;-1:-1:-1;;;;;;35570:17:0;;;;;;;35603:40;;35553:6;;;35570:17;35553:6;;35603:40;;35534:16;;35603:40;35523:128;35460:191;:::o;46594:138::-;46659:35;46672:11;:9;:11::i;:::-;46659:35;;;-1:-1:-1;;;;;15600:15:1;;;15582:34;;15652:15;;;15647:2;15632:18;;15625:43;15517:18;46659:35:0;;;;;;;46705:19;46715:8;46705:9;:19::i;15485:188::-;15606:58;;-1:-1:-1;;;;;6937:32:1;;15606:58:0;;;6919:51:1;6986:18;;;6979:34;;;15579:86:0;;15599:5;;-1:-1:-1;;;15629:23:0;6892:18:1;;15606:58:0;6745:274:1;15579:86:0;15485:188;;;:::o;57528:171::-;57475:11;:9;:11::i;:::-;-1:-1:-1;;;;;57461:25:0;:10;-1:-1:-1;;;;;57461:25:0;;57453:47;;;;-1:-1:-1;;;57453:47:0;;;;;;;:::i;44701:958::-;42801:66;45121:59;;;45117:535;;;45197:37;45216:17;45197:18;:37::i;45117:535::-;45300:17;-1:-1:-1;;;;;45271:61:0;;:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45271:63:0;;;;;;;;-1:-1:-1;;45271:63:0;;;;;;;;;;;;:::i;:::-;;;45267:306;;45501:56;;-1:-1:-1;;;45501:56:0;;16070:2:1;45501:56:0;;;16052:21:1;16109:2;16089:18;;;16082:30;16148:34;16128:18;;;16121:62;-1:-1:-1;;;16199:18:1;;;16192:44;16253:19;;45501:56:0;15868:410:1;45267:306:0;-1:-1:-1;;;;;;;;;;;45385:28:0;;45377:82;;;;-1:-1:-1;;;45377:82:0;;16485:2:1;45377:82:0;;;16467:21:1;16524:2;16504:18;;;16497:30;16563:34;16543:18;;;16536:62;-1:-1:-1;;;16614:18:1;;;16607:39;16663:19;;45377:82:0;16283:405:1;45377:82:0;45335:140;45587:53;45605:17;45624:4;45630:9;45587:17;:53::i;34365:132::-;34273:6;;-1:-1:-1;;;;;34273:6:0;32501:10;34429:23;34421:68;;;;-1:-1:-1;;;34421:68:0;;16895:2:1;34421:68:0;;;16877:21:1;;;16914:18;;;16907:30;16973:34;16953:18;;;16946:62;17025:18;;34421:68:0;16693:356:1;56111:120:0;55120:16;:14;:16::i;:::-;56170:7:::1;:15:::0;;-1:-1:-1;;56170:15:0::1;::::0;;56201:22:::1;32501:10:::0;56210:12:::1;56201:22;::::0;-1:-1:-1;;;;;5359:32:1;;;5341:51;;5329:2;5314:18;56201:22:0::1;;;;;;;56111:120::o:0;59139:1427::-;-1:-1:-1;;;59278:14:0;59290:1;59278:14;:10;;:14;:::i;:::-;59271:22;;;:::i;:::-;-1:-1:-1;;;;;;59271:43:0;;59267:87;;59336:18;;-1:-1:-1;;;59336:18:0;;;;;;;;;;;59267:87;59382:13;;;;;;;59597:14;:10;59608:1;59597:10;;:14;:::i;:::-;59568:138;;;;;;;:::i;:::-;59367:339;;;;;;;;;;;;;;59732:10;-1:-1:-1;;;;;59723:19:0;:5;-1:-1:-1;;;;;59723:19:0;;59719:74;;59766:15;;-1:-1:-1;;;59766:15:0;;;;;;;;;;;59719:74;-1:-1:-1;;;;;59807:24:0;;59826:4;59807:24;59803:81;;59855:17;;-1:-1:-1;;;59855:17:0;;;;;;;;;;;59803:81;59909:6;59900:5;:15;59896:71;;59939:16;;-1:-1:-1;;;59939:16:0;;;;;;;;;;;59896:71;60313:234;;;-1:-1:-1;;;;;18935:15:1;;;60313:234:0;;;18917:34:1;18987:15;;;18967:18;;;18960:43;19019:18;;;19012:34;;;19062:18;;;19055:34;;;19138:4;19126:17;;19105:19;;;19098:46;19160:19;;;19153:35;;;19204:19;;;;19197:35;;;60313:234:0;;;;;;;;;;18851:19:1;;;;60313:234:0;;;;;;;-1:-1:-1;;;;;60313:234:0;-1:-1:-1;;;60313:234:0;;;60279:279;;:19;;;;:279;;60313:234;60279:279;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59256:1310;;;;;;;59139:1427;;;;:::o;55852:118::-;54861:19;:17;:19::i;:::-;55912:7:::1;:14:::0;;-1:-1:-1;;55912:14:0::1;55922:4;55912:14;::::0;;55942:20:::1;55949:12;32501:10:::0;;32421:98;19885:660;20320:23;20346:69;20374:4;20346:69;;;;;;;;;;;;;;;;;20354:5;-1:-1:-1;;;;;20346:27:0;;;:69;;;;;:::i;:::-;20320:95;;20434:10;:17;20455:1;20434:22;:56;;;;20471:10;20460:30;;;;;;;;;;;;:::i;:::-;20426:111;;;;-1:-1:-1;;;20426:111:0;;19987:2:1;20426:111:0;;;19969:21:1;20026:2;20006:18;;;19999:30;20065:34;20045:18;;;20038:62;-1:-1:-1;;;20116:18:1;;;20109:40;20166:19;;20426:111:0;19785:406:1;33743:97:0;30406:13;;;;;;;30398:69;;;;-1:-1:-1;;;30398:69:0;;;;;;;:::i;:::-;33806:26:::1;:24;:26::i;54426:99::-:0;30406:13;;;;;;;30398:69;;;;-1:-1:-1;;;30398:69:0;;;;;;;:::i;:::-;54490:27:::1;:25;:27::i;49535:68::-:0;30406:13;;;;;;;30398:69;;;;-1:-1:-1;;;30398:69:0;;;;;;;:::i;46261:215::-;-1:-1:-1;;;;;46325:22:0;;46317:73;;;;-1:-1:-1;;;46317:73:0;;20398:2:1;46317:73:0;;;20380:21:1;20437:2;20417:18;;;20410:30;20476:34;20456:18;;;20449:62;-1:-1:-1;;;20527:18:1;;;20520:36;20573:19;;46317:73:0;20196:402:1;46317:73:0;46460:8;45906:66;46401:50;:67;;-1:-1:-1;;;;;;46401:67:0;-1:-1:-1;;;;;46401:67:0;;;;;;;;;;-1:-1:-1;46261:215:0:o;43548:284::-;-1:-1:-1;;;;;6885:19:0;;;43622:106;;;;-1:-1:-1;;;43622:106:0;;20805:2:1;43622:106:0;;;20787:21:1;20844:2;20824:18;;;20817:30;20883:34;20863:18;;;20856:62;-1:-1:-1;;;20934:18:1;;;20927:43;20987:19;;43622:106:0;20603:409:1;43622:106:0;43807:17;-1:-1:-1;;;;;;;;;;;43739:59:0;39915:195;44241:281;44350:29;44361:17;44350:10;:29::i;:::-;44408:1;44394:4;:11;:15;:28;;;;44413:9;44394:28;44390:125;;;44439:64;44479:17;44498:4;44439:39;:64::i;55600:108::-;55327:7;;;;55659:41;;;;-1:-1:-1;;;55659:41:0;;21219:2:1;55659:41:0;;;21201:21:1;21258:2;21238:18;;;21231:30;-1:-1:-1;;;21277:18:1;;;21270:50;21337:18;;55659:41:0;21017:344:1;9345:229:0;9482:12;9514:52;9536:6;9544:4;9550:1;9553:12;9514:21;:52::i;:::-;9507:59;9345:229;-1:-1:-1;;;;9345:229:0:o;33848:113::-;30406:13;;;;;;;30398:69;;;;-1:-1:-1;;;30398:69:0;;;;;;;:::i;:::-;33921:32:::1;32501:10:::0;33921:18:::1;:32::i;54533:97::-:0;30406:13;;;;;;;30398:69;;;;-1:-1:-1;;;30398:69:0;;;;;;;:::i;:::-;54607:7:::1;:15:::0;;-1:-1:-1;;54607:15:0::1;::::0;;54533:97::o;43945:155::-;44012:37;44031:17;44012:18;:37::i;:::-;44065:27;;-1:-1:-1;;;;;44065:27:0;;;;;;;;43945:155;:::o;11982:200::-;12065:12;12097:77;12118:6;12126:4;12097:77;;;;;;;;;;;;;;;;;:20;:77::i;:::-;12090:84;11982:200;-1:-1:-1;;;11982:200:0:o;10431:455::-;10601:12;10659:5;10634:21;:30;;10626:81;;;;-1:-1:-1;;;10626:81:0;;21568:2:1;10626:81:0;;;21550:21:1;21607:2;21587:18;;;21580:30;21646:34;21626:18;;;21619:62;-1:-1:-1;;;21697:18:1;;;21690:36;21743:19;;10626:81:0;21366:402:1;10626:81:0;10719:12;10733:23;10760:6;-1:-1:-1;;;;;10760:11:0;10779:5;10786:4;10760:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10718:73;;;;10809:69;10836:6;10844:7;10853:10;10865:12;10809:26;:69::i;:::-;10802:76;10431:455;-1:-1:-1;;;;;;;10431:455:0:o;12376:332::-;12521:12;12547;12561:23;12588:6;-1:-1:-1;;;;;12588:19:0;12608:4;12588:25;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12546:67;;;;12631:69;12658:6;12666:7;12675:10;12687:12;12631:26;:69::i;:::-;12624:76;12376:332;-1:-1:-1;;;;;;12376:332:0:o;13004:644::-;13189:12;13218:7;13214:427;;;13246:10;:17;13267:1;13246:22;13242:290;;-1:-1:-1;;;;;6885:19:0;;;13456:60;;;;-1:-1:-1;;;13456:60:0;;21975:2:1;13456:60:0;;;21957:21:1;22014:2;21994:18;;;21987:30;22053:31;22033:18;;;22026:59;22102:18;;13456:60:0;21773:353:1;13456:60:0;-1:-1:-1;13553:10:0;13546:17;;13214:427;13596:33;13604:10;13616:12;14351:17;;:21;14347:388;;14583:10;14577:17;14640:15;14627:10;14623:2;14619:19;14612:44;14347:388;14710:12;14703:20;;-1:-1:-1;;;14703:20:0;;;;;;;;:::i;14:131:1:-;-1:-1:-1;;;;;89:31:1;;79:42;;69:70;;135:1;132;125:12;150:118;236:5;229:13;222:21;215:5;212:32;202:60;;258:1;255;248:12;273:450;347:6;355;363;416:2;404:9;395:7;391:23;387:32;384:52;;;432:1;429;422:12;384:52;471:9;458:23;490:31;515:5;490:31;:::i;:::-;540:5;-1:-1:-1;592:2:1;577:18;;564:32;;-1:-1:-1;648:2:1;633:18;;620:32;661:30;620:32;661:30;:::i;:::-;710:7;700:17;;;273:450;;;;;:::o;728:163::-;795:20;;855:10;844:22;;834:33;;824:61;;881:1;878;871:12;824:61;728:163;;;:::o;896:886::-;999:6;1007;1015;1023;1031;1039;1092:3;1080:9;1071:7;1067:23;1063:33;1060:53;;;1109:1;1106;1099:12;1060:53;1148:9;1135:23;1167:31;1192:5;1167:31;:::i;:::-;1217:5;-1:-1:-1;1274:2:1;1259:18;;1246:32;1287:33;1246:32;1287:33;:::i;:::-;1339:7;-1:-1:-1;1398:2:1;1383:18;;1370:32;1411:33;1370:32;1411:33;:::i;:::-;1463:7;-1:-1:-1;1489:37:1;1522:2;1507:18;;1489:37;:::i;:::-;1479:47;;1578:3;1567:9;1563:19;1550:33;1592;1617:7;1592:33;:::i;:::-;1644:7;-1:-1:-1;1703:3:1;1688:19;;1675:33;1717;1675;1717;:::i;:::-;1769:7;1759:17;;;896:886;;;;;;;;:::o;1787:127::-;1848:10;1843:3;1839:20;1836:1;1829:31;1879:4;1876:1;1869:15;1903:4;1900:1;1893:15;1919:718;1961:5;2014:3;2007:4;1999:6;1995:17;1991:27;1981:55;;2032:1;2029;2022:12;1981:55;2068:6;2055:20;2094:18;2131:2;2127;2124:10;2121:36;;;2137:18;;:::i;:::-;2212:2;2206:9;2180:2;2266:13;;-1:-1:-1;;2262:22:1;;;2286:2;2258:31;2254:40;2242:53;;;2310:18;;;2330:22;;;2307:46;2304:72;;;2356:18;;:::i;:::-;2396:10;2392:2;2385:22;2431:2;2423:6;2416:18;2477:3;2470:4;2465:2;2457:6;2453:15;2449:26;2446:35;2443:55;;;2494:1;2491;2484:12;2443:55;2558:2;2551:4;2543:6;2539:17;2532:4;2524:6;2520:17;2507:54;2605:1;2598:4;2593:2;2585:6;2581:15;2577:26;2570:37;2625:6;2616:15;;;;;;1919:718;;;;:::o;2642:527::-;2727:6;2735;2743;2796:2;2784:9;2775:7;2771:23;2767:32;2764:52;;;2812:1;2809;2802:12;2764:52;2851:9;2838:23;2870:31;2895:5;2870:31;:::i;:::-;2920:5;-1:-1:-1;2944:37:1;2977:2;2962:18;;2944:37;:::i;:::-;2934:47;;3032:2;3021:9;3017:18;3004:32;3059:18;3051:6;3048:30;3045:50;;;3091:1;3088;3081:12;3045:50;3114:49;3155:7;3146:6;3135:9;3131:22;3114:49;:::i;:::-;3104:59;;;2642:527;;;;;:::o;3174:247::-;3233:6;3286:2;3274:9;3265:7;3261:23;3257:32;3254:52;;;3302:1;3299;3292:12;3254:52;3341:9;3328:23;3360:31;3385:5;3360:31;:::i;3426:455::-;3503:6;3511;3564:2;3552:9;3543:7;3539:23;3535:32;3532:52;;;3580:1;3577;3570:12;3532:52;3619:9;3606:23;3638:31;3663:5;3638:31;:::i;:::-;3688:5;-1:-1:-1;3744:2:1;3729:18;;3716:32;3771:18;3760:30;;3757:50;;;3803:1;3800;3793:12;3757:50;3826:49;3867:7;3858:6;3847:9;3843:22;3826:49;:::i;:::-;3816:59;;;3426:455;;;;;:::o;4260:930::-;4354:6;4362;4370;4378;4386;4439:3;4427:9;4418:7;4414:23;4410:33;4407:53;;;4456:1;4453;4446:12;4407:53;4495:9;4482:23;4514:31;4539:5;4514:31;:::i;:::-;4564:5;-1:-1:-1;4616:2:1;4601:18;;4588:32;;-1:-1:-1;4672:2:1;4657:18;;4644:32;4685:30;4644:32;4685:30;:::i;:::-;4734:7;-1:-1:-1;4792:2:1;4777:18;;4764:32;4815:18;4845:14;;;4842:34;;;4872:1;4869;4862:12;4842:34;4910:6;4899:9;4895:22;4885:32;;4955:7;4948:4;4944:2;4940:13;4936:27;4926:55;;4977:1;4974;4967:12;4926:55;5017:2;5004:16;5043:2;5035:6;5032:14;5029:34;;;5059:1;5056;5049:12;5029:34;5104:7;5099:2;5090:6;5086:2;5082:15;5078:24;5075:37;5072:57;;;5125:1;5122;5115:12;5072:57;4260:930;;;;-1:-1:-1;4260:930:1;;-1:-1:-1;5156:2:1;5148:11;;5178:6;4260:930;-1:-1:-1;;;4260:930:1:o;7024:250::-;7109:1;7119:113;7133:6;7130:1;7127:13;7119:113;;;7209:11;;;7203:18;7190:11;;;7183:39;7155:2;7148:10;7119:113;;;-1:-1:-1;;7266:1:1;7248:16;;7241:27;7024:250::o;7279:270::-;7320:3;7358:5;7352:12;7385:6;7380:3;7373:19;7401:76;7470:6;7463:4;7458:3;7454:14;7447:4;7440:5;7436:16;7401:76;:::i;:::-;7531:2;7510:15;-1:-1:-1;;7506:29:1;7497:39;;;;7538:4;7493:50;;7279:270;-1:-1:-1;;7279:270:1:o;7554:483::-;7789:10;7777:23;;7759:42;;-1:-1:-1;;;;;7837:32:1;;7832:2;7817:18;;7810:60;7913:14;;7906:22;7901:2;7886:18;;7879:50;7965:3;7960:2;7945:18;;7938:31;;;-1:-1:-1;;7986:45:1;;8011:19;;8003:6;7986:45;:::i;8224:408::-;8426:2;8408:21;;;8465:2;8445:18;;;8438:30;8504:34;8499:2;8484:18;;8477:62;-1:-1:-1;;;8570:2:1;8555:18;;8548:42;8622:3;8607:19;;8224:408::o;8637:::-;8839:2;8821:21;;;8878:2;8858:18;;;8851:30;8917:34;8912:2;8897:18;;8890:62;-1:-1:-1;;;8983:2:1;8968:18;;8961:42;9035:3;9020:19;;8637:408::o;9050:332::-;9252:2;9234:21;;;9291:1;9271:18;;;9264:29;-1:-1:-1;;;9324:2:1;9309:18;;9302:39;9373:2;9358:18;;9050:332::o;12737:320::-;12824:6;12832;12885:2;12873:9;12864:7;12860:23;12856:32;12853:52;;;12901:1;12898;12891:12;12853:52;12933:9;12927:16;12952:31;12977:5;12952:31;:::i;:::-;13047:2;13032:18;;;;13026:25;13002:5;;13026:25;;-1:-1:-1;;;12737:320:1:o;14958:407::-;15160:2;15142:21;;;15199:2;15179:18;;;15172:30;15238:34;15233:2;15218:18;;15211:62;-1:-1:-1;;;15304:2:1;15289:18;;15282:41;15355:3;15340:19;;14958:407::o;15679:184::-;15749:6;15802:2;15790:9;15781:7;15777:23;15773:32;15770:52;;;15818:1;15815;15808:12;15770:52;-1:-1:-1;15841:16:1;;15679:184;-1:-1:-1;15679:184:1:o;17054:331::-;17159:9;17170;17212:8;17200:10;17197:24;17194:44;;;17234:1;17231;17224:12;17194:44;17263:6;17253:8;17250:20;17247:40;;;17283:1;17280;17273:12;17247:40;-1:-1:-1;;17309:23:1;;;17354:25;;;;;-1:-1:-1;17054:331:1:o;17390:323::-;-1:-1:-1;;;;;;17510:19:1;;17586:11;;;;17617:1;17609:10;;17606:101;;;17694:2;17688;17681:3;17678:1;17674:11;17671:1;17667:19;17663:28;17659:2;17655:37;17651:46;17642:55;;17606:101;;;17390:323;;;;:::o;17718:845::-;17845:6;17853;17861;17869;17877;17885;17893;17946:3;17934:9;17925:7;17921:23;17917:33;17914:53;;;17963:1;17960;17953:12;17914:53;18002:9;17989:23;18021:31;18046:5;18021:31;:::i;:::-;18071:5;-1:-1:-1;18128:2:1;18113:18;;18100:32;18141:33;18100:32;18141:33;:::i;:::-;18193:7;-1:-1:-1;18247:2:1;18232:18;;18219:32;;-1:-1:-1;18298:2:1;18283:18;;18270:32;;-1:-1:-1;18354:3:1;18339:19;;18326:33;18403:4;18390:18;;18378:31;;18368:59;;18423:1;18420;18413:12;18368:59;17718:845;;;;-1:-1:-1;17718:845:1;;;;18446:7;18500:3;18485:19;;18472:33;;-1:-1:-1;18552:3:1;18537:19;;;18524:33;;17718:845;-1:-1:-1;;17718:845:1:o;19243:287::-;19372:3;19410:6;19404:13;19426:66;19485:6;19480:3;19473:4;19465:6;19461:17;19426:66;:::i;:::-;19508:16;;;;;19243:287;-1:-1:-1;;19243:287:1:o;19535:245::-;19602:6;19655:2;19643:9;19634:7;19630:23;19626:32;19623:52;;;19671:1;19668;19661:12;19623:52;19703:9;19697:16;19722:28;19744:5;19722:28;:::i;22131:219::-;22280:2;22269:9;22262:21;22243:4;22300:44;22340:2;22329:9;22325:18;22317:6;22300:44;:::i
Swarm Source
ipfs://68edc83d020906e23ece484191940ed07f17dca09a403911f5d2eedc310df4ea
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.