Contract Overview
Balance:
0 FTM
FTM Value:
$0.00
My Name Tag:
Not Available, login to update
Txn Hash | Method |
Block
|
From
|
To
|
Value | [Txn Fee] | |||
---|---|---|---|---|---|---|---|---|---|
0xd61f69d17e2ecae96436098fa3a897efc5ffa9ff1e15257f3344d0c015ce3c9c | Resume Contract | 57921630 | 4 days 5 hrs ago | 0x2c0356a346471a6502ebec941752a7fe43536422 | IN | 0xb604617d0fc443a98f563d630266f8c8c448dbb4 | 0 FTM | 0.001054399032 | |
0x0cad3a12186e16433ef31ad15acb3db64935a0c05e82676f3e3eeb3a5512d1fe | 0x60c06040 | 57914578 | 4 days 8 hrs ago | 0x2c0356a346471a6502ebec941752a7fe43536422 | IN | Create: FlashloanUniswapV2 | 0 FTM | 0.153600685627 |
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0x0cad3a12186e16433ef31ad15acb3db64935a0c05e82676f3e3eeb3a5512d1fe | 57914578 | 4 days 8 hrs ago | 0x2c0356a346471a6502ebec941752a7fe43536422 | Contract Creation | 0 FTM |
[ Download CSV Export ]
Contract Name:
FlashloanUniswapV2
Compiler Version
v0.8.10+commit.fc410830
Contract Source Code (Solidity)
/** *Submitted for verification at FtmScan.com on 2023-03-19 */ // File: @openzeppelin/contracts/utils/introspection/IERC165.sol // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: @openzeppelin/contracts/token/ERC721/IERC721.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes calldata data ) external; /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721 * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must * understand this adds an external call which potentially creates a reentrancy vulnerability. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 tokenId ) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); } // File: @openzeppelin/contracts/utils/Address.sol // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } // File: @openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); } // File: @openzeppelin/contracts/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _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 anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _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); } } // File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } // File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol pragma solidity >=0.6.2; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } // File: @openzeppelin/contracts/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: libs/Withdrawable.sol pragma solidity ^0.8.0; abstract contract Withdrawable is Ownable { constructor() {} function withdrawEther() public onlyOwner() payable { payable(msg.sender).transfer(address(this).balance); } function withdrawERC20( address _contract ) public onlyOwner() { require(_contract != address(0), "Withdrawable: contract address is zero"); IERC20 erc20 = IERC20(_contract); erc20.transfer(msg.sender, erc20.balanceOf(address(this))); } function withdrawERC721( address _contract, uint[] calldata tokenIds ) public onlyOwner() { require(_contract != address(0), "Withdrawable: contract address is zero"); IERC721 erc721 = IERC721(_contract); for(uint8 i; i < tokenIds.length; i++){ erc721.transferFrom(address(this), msg.sender, tokenIds[i]); } } } // File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File: @aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol pragma solidity ^0.8.0; library DataTypes { struct ReserveData { //stores the reserve configuration ReserveConfigurationMap configuration; //the liquidity index. Expressed in ray uint128 liquidityIndex; //the current supply rate. Expressed in ray uint128 currentLiquidityRate; //variable borrow index. Expressed in ray uint128 variableBorrowIndex; //the current variable borrow rate. Expressed in ray uint128 currentVariableBorrowRate; //the current stable borrow rate. Expressed in ray uint128 currentStableBorrowRate; //timestamp of last update uint40 lastUpdateTimestamp; //the id of the reserve. Represents the position in the list of the active reserves uint16 id; //aToken address address aTokenAddress; //stableDebtToken address address stableDebtTokenAddress; //variableDebtToken address address variableDebtTokenAddress; //address of the interest rate strategy address interestRateStrategyAddress; //the current treasury balance, scaled uint128 accruedToTreasury; //the outstanding unbacked aTokens minted through the bridging feature uint128 unbacked; //the outstanding debt borrowed against this asset in isolation mode uint128 isolationModeTotalDebt; } struct ReserveConfigurationMap { //bit 0-15: LTV //bit 16-31: Liq. threshold //bit 32-47: Liq. bonus //bit 48-55: Decimals //bit 56: reserve is active //bit 57: reserve is frozen //bit 58: borrowing is enabled //bit 59: stable rate borrowing enabled //bit 60: asset is paused //bit 61: borrowing in isolation mode is enabled //bit 62-63: reserved //bit 64-79: reserve factor //bit 80-115 borrow cap in whole tokens, borrowCap == 0 => no cap //bit 116-151 supply cap in whole tokens, supplyCap == 0 => no cap //bit 152-167 liquidation protocol fee //bit 168-175 eMode category //bit 176-211 unbacked mint cap in whole tokens, unbackedMintCap == 0 => minting disabled //bit 212-251 debt ceiling for isolation mode with (ReserveConfiguration::DEBT_CEILING_DECIMALS) decimals //bit 252-255 unused uint256 data; } struct UserConfigurationMap { /** * @dev Bitmap of the users collaterals and borrows. It is divided in pairs of bits, one pair per asset. * The first bit indicates if an asset is used as collateral by the user, the second whether an * asset is borrowed by the user. */ uint256 data; } struct EModeCategory { // each eMode category has a custom ltv and liquidation threshold uint16 ltv; uint16 liquidationThreshold; uint16 liquidationBonus; // each eMode category may or may not have a custom oracle to override the individual assets price oracles address priceSource; string label; } enum InterestRateMode { NONE, STABLE, VARIABLE } struct ReserveCache { uint256 currScaledVariableDebt; uint256 nextScaledVariableDebt; uint256 currPrincipalStableDebt; uint256 currAvgStableBorrowRate; uint256 currTotalStableDebt; uint256 nextAvgStableBorrowRate; uint256 nextTotalStableDebt; uint256 currLiquidityIndex; uint256 nextLiquidityIndex; uint256 currVariableBorrowIndex; uint256 nextVariableBorrowIndex; uint256 currLiquidityRate; uint256 currVariableBorrowRate; uint256 reserveFactor; ReserveConfigurationMap reserveConfiguration; address aTokenAddress; address stableDebtTokenAddress; address variableDebtTokenAddress; uint40 reserveLastUpdateTimestamp; uint40 stableDebtLastUpdateTimestamp; } struct ExecuteLiquidationCallParams { uint256 reservesCount; uint256 debtToCover; address collateralAsset; address debtAsset; address user; bool receiveAToken; address priceOracle; uint8 userEModeCategory; address priceOracleSentinel; } struct ExecuteSupplyParams { address asset; uint256 amount; address onBehalfOf; uint16 referralCode; } struct ExecuteBorrowParams { address asset; address user; address onBehalfOf; uint256 amount; InterestRateMode interestRateMode; uint16 referralCode; bool releaseUnderlying; uint256 maxStableRateBorrowSizePercent; uint256 reservesCount; address oracle; uint8 userEModeCategory; address priceOracleSentinel; } struct ExecuteRepayParams { address asset; uint256 amount; InterestRateMode interestRateMode; address onBehalfOf; bool useATokens; } struct ExecuteWithdrawParams { address asset; uint256 amount; address to; uint256 reservesCount; address oracle; uint8 userEModeCategory; } struct ExecuteSetUserEModeParams { uint256 reservesCount; address oracle; uint8 categoryId; } struct FinalizeTransferParams { address asset; address from; address to; uint256 amount; uint256 balanceFromBefore; uint256 balanceToBefore; uint256 reservesCount; address oracle; uint8 fromEModeCategory; } struct FlashloanParams { address receiverAddress; address[] assets; uint256[] amounts; uint256[] interestRateModes; address onBehalfOf; bytes params; uint16 referralCode; uint256 flashLoanPremiumToProtocol; uint256 flashLoanPremiumTotal; uint256 maxStableRateBorrowSizePercent; uint256 reservesCount; address addressesProvider; uint8 userEModeCategory; bool isAuthorizedFlashBorrower; } struct FlashloanSimpleParams { address receiverAddress; address asset; uint256 amount; bytes params; uint16 referralCode; uint256 flashLoanPremiumToProtocol; uint256 flashLoanPremiumTotal; } struct FlashLoanRepaymentParams { uint256 amount; uint256 totalPremium; uint256 flashLoanPremiumToProtocol; address asset; address receiverAddress; uint16 referralCode; } struct CalculateUserAccountDataParams { UserConfigurationMap userConfig; uint256 reservesCount; address user; address oracle; uint8 userEModeCategory; } struct ValidateBorrowParams { ReserveCache reserveCache; UserConfigurationMap userConfig; address asset; address userAddress; uint256 amount; InterestRateMode interestRateMode; uint256 maxStableLoanPercent; uint256 reservesCount; address oracle; uint8 userEModeCategory; address priceOracleSentinel; bool isolationModeActive; address isolationModeCollateralAddress; uint256 isolationModeDebtCeiling; } struct ValidateLiquidationCallParams { ReserveCache debtReserveCache; uint256 totalDebt; uint256 healthFactor; address priceOracleSentinel; } struct CalculateInterestRatesParams { uint256 unbacked; uint256 liquidityAdded; uint256 liquidityTaken; uint256 totalStableDebt; uint256 totalVariableDebt; uint256 averageStableBorrowRate; uint256 reserveFactor; address reserve; address aToken; } struct InitReserveParams { address asset; address aTokenAddress; address stableDebtAddress; address variableDebtAddress; address interestRateStrategyAddress; uint16 reservesCount; uint16 maxNumberReserves; } } // File: @aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol pragma solidity ^0.8.0; /** * @title IPoolAddressesProvider * @author Aave * @notice Defines the basic interface for a Pool Addresses Provider. */ interface IPoolAddressesProvider { /** * @dev Emitted when the market identifier is updated. * @param oldMarketId The old id of the market * @param newMarketId The new id of the market */ event MarketIdSet(string indexed oldMarketId, string indexed newMarketId); /** * @dev Emitted when the pool is updated. * @param oldAddress The old address of the Pool * @param newAddress The new address of the Pool */ event PoolUpdated(address indexed oldAddress, address indexed newAddress); /** * @dev Emitted when the pool configurator is updated. * @param oldAddress The old address of the PoolConfigurator * @param newAddress The new address of the PoolConfigurator */ event PoolConfiguratorUpdated(address indexed oldAddress, address indexed newAddress); /** * @dev Emitted when the price oracle is updated. * @param oldAddress The old address of the PriceOracle * @param newAddress The new address of the PriceOracle */ event PriceOracleUpdated(address indexed oldAddress, address indexed newAddress); /** * @dev Emitted when the ACL manager is updated. * @param oldAddress The old address of the ACLManager * @param newAddress The new address of the ACLManager */ event ACLManagerUpdated(address indexed oldAddress, address indexed newAddress); /** * @dev Emitted when the ACL admin is updated. * @param oldAddress The old address of the ACLAdmin * @param newAddress The new address of the ACLAdmin */ event ACLAdminUpdated(address indexed oldAddress, address indexed newAddress); /** * @dev Emitted when the price oracle sentinel is updated. * @param oldAddress The old address of the PriceOracleSentinel * @param newAddress The new address of the PriceOracleSentinel */ event PriceOracleSentinelUpdated(address indexed oldAddress, address indexed newAddress); /** * @dev Emitted when the pool data provider is updated. * @param oldAddress The old address of the PoolDataProvider * @param newAddress The new address of the PoolDataProvider */ event PoolDataProviderUpdated(address indexed oldAddress, address indexed newAddress); /** * @dev Emitted when a new proxy is created. * @param id The identifier of the proxy * @param proxyAddress The address of the created proxy contract * @param implementationAddress The address of the implementation contract */ event ProxyCreated( bytes32 indexed id, address indexed proxyAddress, address indexed implementationAddress ); /** * @dev Emitted when a new non-proxied contract address is registered. * @param id The identifier of the contract * @param oldAddress The address of the old contract * @param newAddress The address of the new contract */ event AddressSet(bytes32 indexed id, address indexed oldAddress, address indexed newAddress); /** * @dev Emitted when the implementation of the proxy registered with id is updated * @param id The identifier of the contract * @param proxyAddress The address of the proxy contract * @param oldImplementationAddress The address of the old implementation contract * @param newImplementationAddress The address of the new implementation contract */ event AddressSetAsProxy( bytes32 indexed id, address indexed proxyAddress, address oldImplementationAddress, address indexed newImplementationAddress ); /** * @notice Returns the id of the Aave market to which this contract points to. * @return The market id */ function getMarketId() external view returns (string memory); /** * @notice Associates an id with a specific PoolAddressesProvider. * @dev This can be used to create an onchain registry of PoolAddressesProviders to * identify and validate multiple Aave markets. * @param newMarketId The market id */ function setMarketId(string calldata newMarketId) external; /** * @notice Returns an address by its identifier. * @dev The returned address might be an EOA or a contract, potentially proxied * @dev It returns ZERO if there is no registered address with the given id * @param id The id * @return The address of the registered for the specified id */ function getAddress(bytes32 id) external view returns (address); /** * @notice General function to update the implementation of a proxy registered with * certain `id`. If there is no proxy registered, it will instantiate one and * set as implementation the `newImplementationAddress`. * @dev IMPORTANT Use this function carefully, only for ids that don't have an explicit * setter function, in order to avoid unexpected consequences * @param id The id * @param newImplementationAddress The address of the new implementation */ function setAddressAsProxy(bytes32 id, address newImplementationAddress) external; /** * @notice Sets an address for an id replacing the address saved in the addresses map. * @dev IMPORTANT Use this function carefully, as it will do a hard replacement * @param id The id * @param newAddress The address to set */ function setAddress(bytes32 id, address newAddress) external; /** * @notice Returns the address of the Pool proxy. * @return The Pool proxy address */ function getPool() external view returns (address); /** * @notice Updates the implementation of the Pool, or creates a proxy * setting the new `pool` implementation when the function is called for the first time. * @param newPoolImpl The new Pool implementation */ function setPoolImpl(address newPoolImpl) external; /** * @notice Returns the address of the PoolConfigurator proxy. * @return The PoolConfigurator proxy address */ function getPoolConfigurator() external view returns (address); /** * @notice Updates the implementation of the PoolConfigurator, or creates a proxy * setting the new `PoolConfigurator` implementation when the function is called for the first time. * @param newPoolConfiguratorImpl The new PoolConfigurator implementation */ function setPoolConfiguratorImpl(address newPoolConfiguratorImpl) external; /** * @notice Returns the address of the price oracle. * @return The address of the PriceOracle */ function getPriceOracle() external view returns (address); /** * @notice Updates the address of the price oracle. * @param newPriceOracle The address of the new PriceOracle */ function setPriceOracle(address newPriceOracle) external; /** * @notice Returns the address of the ACL manager. * @return The address of the ACLManager */ function getACLManager() external view returns (address); /** * @notice Updates the address of the ACL manager. * @param newAclManager The address of the new ACLManager */ function setACLManager(address newAclManager) external; /** * @notice Returns the address of the ACL admin. * @return The address of the ACL admin */ function getACLAdmin() external view returns (address); /** * @notice Updates the address of the ACL admin. * @param newAclAdmin The address of the new ACL admin */ function setACLAdmin(address newAclAdmin) external; /** * @notice Returns the address of the price oracle sentinel. * @return The address of the PriceOracleSentinel */ function getPriceOracleSentinel() external view returns (address); /** * @notice Updates the address of the price oracle sentinel. * @param newPriceOracleSentinel The address of the new PriceOracleSentinel */ function setPriceOracleSentinel(address newPriceOracleSentinel) external; /** * @notice Returns the address of the data provider. * @return The address of the DataProvider */ function getPoolDataProvider() external view returns (address); /** * @notice Updates the address of the data provider. * @param newDataProvider The address of the new DataProvider */ function setPoolDataProvider(address newDataProvider) external; } // File: @aave/core-v3/contracts/interfaces/IPool.sol pragma solidity ^0.8.0; /** * @title IPool * @author Aave * @notice Defines the basic interface for an Aave Pool. */ interface IPool { /** * @dev Emitted on mintUnbacked() * @param reserve The address of the underlying asset of the reserve * @param user The address initiating the supply * @param onBehalfOf The beneficiary of the supplied assets, receiving the aTokens * @param amount The amount of supplied assets * @param referralCode The referral code used */ event MintUnbacked( address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint16 indexed referralCode ); /** * @dev Emitted on backUnbacked() * @param reserve The address of the underlying asset of the reserve * @param backer The address paying for the backing * @param amount The amount added as backing * @param fee The amount paid in fees */ event BackUnbacked(address indexed reserve, address indexed backer, uint256 amount, uint256 fee); /** * @dev Emitted on supply() * @param reserve The address of the underlying asset of the reserve * @param user The address initiating the supply * @param onBehalfOf The beneficiary of the supply, receiving the aTokens * @param amount The amount supplied * @param referralCode The referral code used */ event Supply( address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint16 indexed referralCode ); /** * @dev Emitted on withdraw() * @param reserve The address of the underlying asset being withdrawn * @param user The address initiating the withdrawal, owner of aTokens * @param to The address that will receive the underlying * @param amount The amount to be withdrawn */ event Withdraw(address indexed reserve, address indexed user, address indexed to, uint256 amount); /** * @dev Emitted on borrow() and flashLoan() when debt needs to be opened * @param reserve The address of the underlying asset being borrowed * @param user The address of the user initiating the borrow(), receiving the funds on borrow() or just * initiator of the transaction on flashLoan() * @param onBehalfOf The address that will be getting the debt * @param amount The amount borrowed out * @param interestRateMode The rate mode: 1 for Stable, 2 for Variable * @param borrowRate The numeric rate at which the user has borrowed, expressed in ray * @param referralCode The referral code used */ event Borrow( address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, DataTypes.InterestRateMode interestRateMode, uint256 borrowRate, uint16 indexed referralCode ); /** * @dev Emitted on repay() * @param reserve The address of the underlying asset of the reserve * @param user The beneficiary of the repayment, getting his debt reduced * @param repayer The address of the user initiating the repay(), providing the funds * @param amount The amount repaid * @param useATokens True if the repayment is done using aTokens, `false` if done with underlying asset directly */ event Repay( address indexed reserve, address indexed user, address indexed repayer, uint256 amount, bool useATokens ); /** * @dev Emitted on swapBorrowRateMode() * @param reserve The address of the underlying asset of the reserve * @param user The address of the user swapping his rate mode * @param interestRateMode The current interest rate mode of the position being swapped: 1 for Stable, 2 for Variable */ event SwapBorrowRateMode( address indexed reserve, address indexed user, DataTypes.InterestRateMode interestRateMode ); /** * @dev Emitted on borrow(), repay() and liquidationCall() when using isolated assets * @param asset The address of the underlying asset of the reserve * @param totalDebt The total isolation mode debt for the reserve */ event IsolationModeTotalDebtUpdated(address indexed asset, uint256 totalDebt); /** * @dev Emitted when the user selects a certain asset category for eMode * @param user The address of the user * @param categoryId The category id */ event UserEModeSet(address indexed user, uint8 categoryId); /** * @dev Emitted on setUserUseReserveAsCollateral() * @param reserve The address of the underlying asset of the reserve * @param user The address of the user enabling the usage as collateral */ event ReserveUsedAsCollateralEnabled(address indexed reserve, address indexed user); /** * @dev Emitted on setUserUseReserveAsCollateral() * @param reserve The address of the underlying asset of the reserve * @param user The address of the user enabling the usage as collateral */ event ReserveUsedAsCollateralDisabled(address indexed reserve, address indexed user); /** * @dev Emitted on rebalanceStableBorrowRate() * @param reserve The address of the underlying asset of the reserve * @param user The address of the user for which the rebalance has been executed */ event RebalanceStableBorrowRate(address indexed reserve, address indexed user); /** * @dev Emitted on flashLoan() * @param target The address of the flash loan receiver contract * @param initiator The address initiating the flash loan * @param asset The address of the asset being flash borrowed * @param amount The amount flash borrowed * @param interestRateMode The flashloan mode: 0 for regular flashloan, 1 for Stable debt, 2 for Variable debt * @param premium The fee flash borrowed * @param referralCode The referral code used */ event FlashLoan( address indexed target, address initiator, address indexed asset, uint256 amount, DataTypes.InterestRateMode interestRateMode, uint256 premium, uint16 indexed referralCode ); /** * @dev Emitted when a borrower is liquidated. * @param collateralAsset The address of the underlying asset used as collateral, to receive as result of the liquidation * @param debtAsset The address of the underlying borrowed asset to be repaid with the liquidation * @param user The address of the borrower getting liquidated * @param debtToCover The debt amount of borrowed `asset` the liquidator wants to cover * @param liquidatedCollateralAmount The amount of collateral received by the liquidator * @param liquidator The address of the liquidator * @param receiveAToken True if the liquidators wants to receive the collateral aTokens, `false` if he wants * to receive the underlying collateral asset directly */ event LiquidationCall( address indexed collateralAsset, address indexed debtAsset, address indexed user, uint256 debtToCover, uint256 liquidatedCollateralAmount, address liquidator, bool receiveAToken ); /** * @dev Emitted when the state of a reserve is updated. * @param reserve The address of the underlying asset of the reserve * @param liquidityRate The next liquidity rate * @param stableBorrowRate The next stable borrow rate * @param variableBorrowRate The next variable borrow rate * @param liquidityIndex The next liquidity index * @param variableBorrowIndex The next variable borrow index */ event ReserveDataUpdated( address indexed reserve, uint256 liquidityRate, uint256 stableBorrowRate, uint256 variableBorrowRate, uint256 liquidityIndex, uint256 variableBorrowIndex ); /** * @dev Emitted when the protocol treasury receives minted aTokens from the accrued interest. * @param reserve The address of the reserve * @param amountMinted The amount minted to the treasury */ event MintedToTreasury(address indexed reserve, uint256 amountMinted); /** * @notice Mints an `amount` of aTokens to the `onBehalfOf` * @param asset The address of the underlying asset to mint * @param amount The amount to mint * @param onBehalfOf The address that will receive the aTokens * @param referralCode Code used to register the integrator originating the operation, for potential rewards. * 0 if the action is executed directly by the user, without any middle-man */ function mintUnbacked( address asset, uint256 amount, address onBehalfOf, uint16 referralCode ) external; /** * @notice Back the current unbacked underlying with `amount` and pay `fee`. * @param asset The address of the underlying asset to back * @param amount The amount to back * @param fee The amount paid in fees * @return The backed amount */ function backUnbacked( address asset, uint256 amount, uint256 fee ) external returns (uint256); /** * @notice Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens. * - E.g. User supplies 100 USDC and gets in return 100 aUSDC * @param asset The address of the underlying asset to supply * @param amount The amount to be supplied * @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user * wants to receive them on his own wallet, or a different address if the beneficiary of aTokens * is a different wallet * @param referralCode Code used to register the integrator originating the operation, for potential rewards. * 0 if the action is executed directly by the user, without any middle-man */ function supply( address asset, uint256 amount, address onBehalfOf, uint16 referralCode ) external; /** * @notice Supply with transfer approval of asset to be supplied done via permit function * see: https://eips.ethereum.org/EIPS/eip-2612 and https://eips.ethereum.org/EIPS/eip-713 * @param asset The address of the underlying asset to supply * @param amount The amount to be supplied * @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user * wants to receive them on his own wallet, or a different address if the beneficiary of aTokens * is a different wallet * @param deadline The deadline timestamp that the permit is valid * @param referralCode Code used to register the integrator originating the operation, for potential rewards. * 0 if the action is executed directly by the user, without any middle-man * @param permitV The V parameter of ERC712 permit sig * @param permitR The R parameter of ERC712 permit sig * @param permitS The S parameter of ERC712 permit sig */ function supplyWithPermit( address asset, uint256 amount, address onBehalfOf, uint16 referralCode, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS ) external; /** * @notice Withdraws an `amount` of underlying asset from the reserve, burning the equivalent aTokens owned * E.g. User has 100 aUSDC, calls withdraw() and receives 100 USDC, burning the 100 aUSDC * @param asset The address of the underlying asset to withdraw * @param amount The underlying amount to be withdrawn * - Send the value type(uint256).max in order to withdraw the whole aToken balance * @param to The address that will receive the underlying, same as msg.sender if the user * wants to receive it on his own wallet, or a different address if the beneficiary is a * different wallet * @return The final amount withdrawn */ function withdraw( address asset, uint256 amount, address to ) external returns (uint256); /** * @notice Allows users to borrow a specific `amount` of the reserve underlying asset, provided that the borrower * already supplied enough collateral, or he was given enough allowance by a credit delegator on the * corresponding debt token (StableDebtToken or VariableDebtToken) * - E.g. User borrows 100 USDC passing as `onBehalfOf` his own address, receiving the 100 USDC in his wallet * and 100 stable/variable debt tokens, depending on the `interestRateMode` * @param asset The address of the underlying asset to borrow * @param amount The amount to be borrowed * @param interestRateMode The interest rate mode at which the user wants to borrow: 1 for Stable, 2 for Variable * @param referralCode The code used to register the integrator originating the operation, for potential rewards. * 0 if the action is executed directly by the user, without any middle-man * @param onBehalfOf The address of the user who will receive the debt. Should be the address of the borrower itself * calling the function if he wants to borrow against his own collateral, or the address of the credit delegator * if he has been given credit delegation allowance */ function borrow( address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf ) external; /** * @notice Repays a borrowed `amount` on a specific reserve, burning the equivalent debt tokens owned * - E.g. User repays 100 USDC, burning 100 variable/stable debt tokens of the `onBehalfOf` address * @param asset The address of the borrowed underlying asset previously borrowed * @param amount The amount to repay * - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode` * @param interestRateMode The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable * @param onBehalfOf The address of the user who will get his debt reduced/removed. Should be the address of the * user calling the function if he wants to reduce/remove his own debt, or the address of any other * other borrower whose debt should be removed * @return The final amount repaid */ function repay( address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf ) external returns (uint256); /** * @notice Repay with transfer approval of asset to be repaid done via permit function * see: https://eips.ethereum.org/EIPS/eip-2612 and https://eips.ethereum.org/EIPS/eip-713 * @param asset The address of the borrowed underlying asset previously borrowed * @param amount The amount to repay * - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode` * @param interestRateMode The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable * @param onBehalfOf Address of the user who will get his debt reduced/removed. Should be the address of the * user calling the function if he wants to reduce/remove his own debt, or the address of any other * other borrower whose debt should be removed * @param deadline The deadline timestamp that the permit is valid * @param permitV The V parameter of ERC712 permit sig * @param permitR The R parameter of ERC712 permit sig * @param permitS The S parameter of ERC712 permit sig * @return The final amount repaid */ function repayWithPermit( address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS ) external returns (uint256); /** * @notice Repays a borrowed `amount` on a specific reserve using the reserve aTokens, burning the * equivalent debt tokens * - E.g. User repays 100 USDC using 100 aUSDC, burning 100 variable/stable debt tokens * @dev Passing uint256.max as amount will clean up any residual aToken dust balance, if the user aToken * balance is not enough to cover the whole debt * @param asset The address of the borrowed underlying asset previously borrowed * @param amount The amount to repay * - Send the value type(uint256).max in order to repay the whole debt for `asset` on the specific `debtMode` * @param interestRateMode The interest rate mode at of the debt the user wants to repay: 1 for Stable, 2 for Variable * @return The final amount repaid */ function repayWithATokens( address asset, uint256 amount, uint256 interestRateMode ) external returns (uint256); /** * @notice Allows a borrower to swap his debt between stable and variable mode, or vice versa * @param asset The address of the underlying asset borrowed * @param interestRateMode The current interest rate mode of the position being swapped: 1 for Stable, 2 for Variable */ function swapBorrowRateMode(address asset, uint256 interestRateMode) external; /** * @notice Rebalances the stable interest rate of a user to the current stable rate defined on the reserve. * - Users can be rebalanced if the following conditions are satisfied: * 1. Usage ratio is above 95% * 2. the current supply APY is below REBALANCE_UP_THRESHOLD * maxVariableBorrowRate, which means that too * much has been borrowed at a stable rate and suppliers are not earning enough * @param asset The address of the underlying asset borrowed * @param user The address of the user to be rebalanced */ function rebalanceStableBorrowRate(address asset, address user) external; /** * @notice Allows suppliers to enable/disable a specific supplied asset as collateral * @param asset The address of the underlying asset supplied * @param useAsCollateral True if the user wants to use the supply as collateral, false otherwise */ function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) external; /** * @notice Function to liquidate a non-healthy position collateral-wise, with Health Factor below 1 * - The caller (liquidator) covers `debtToCover` amount of debt of the user getting liquidated, and receives * a proportionally amount of the `collateralAsset` plus a bonus to cover market risk * @param collateralAsset The address of the underlying asset used as collateral, to receive as result of the liquidation * @param debtAsset The address of the underlying borrowed asset to be repaid with the liquidation * @param user The address of the borrower getting liquidated * @param debtToCover The debt amount of borrowed `asset` the liquidator wants to cover * @param receiveAToken True if the liquidators wants to receive the collateral aTokens, `false` if he wants * to receive the underlying collateral asset directly */ function liquidationCall( address collateralAsset, address debtAsset, address user, uint256 debtToCover, bool receiveAToken ) external; /** * @notice Allows smartcontracts to access the liquidity of the pool within one transaction, * as long as the amount taken plus a fee is returned. * @dev IMPORTANT There are security concerns for developers of flashloan receiver contracts that must be kept * into consideration. For further details please visit https://docs.aave.com/developers/ * @param receiverAddress The address of the contract receiving the funds, implementing IFlashLoanReceiver interface * @param assets The addresses of the assets being flash-borrowed * @param amounts The amounts of the assets being flash-borrowed * @param interestRateModes Types of the debt to open if the flash loan is not returned: * 0 -> Don't open any debt, just revert if funds can't be transferred from the receiver * 1 -> Open debt at stable rate for the value of the amount flash-borrowed to the `onBehalfOf` address * 2 -> Open debt at variable rate for the value of the amount flash-borrowed to the `onBehalfOf` address * @param onBehalfOf The address that will receive the debt in the case of using on `modes` 1 or 2 * @param params Variadic packed params to pass to the receiver as extra information * @param referralCode The code used to register the integrator originating the operation, for potential rewards. * 0 if the action is executed directly by the user, without any middle-man */ function flashLoan( address receiverAddress, address[] calldata assets, uint256[] calldata amounts, uint256[] calldata interestRateModes, address onBehalfOf, bytes calldata params, uint16 referralCode ) external; /** * @notice Allows smartcontracts to access the liquidity of the pool within one transaction, * as long as the amount taken plus a fee is returned. * @dev IMPORTANT There are security concerns for developers of flashloan receiver contracts that must be kept * into consideration. For further details please visit https://docs.aave.com/developers/ * @param receiverAddress The address of the contract receiving the funds, implementing IFlashLoanSimpleReceiver interface * @param asset The address of the asset being flash-borrowed * @param amount The amount of the asset being flash-borrowed * @param params Variadic packed params to pass to the receiver as extra information * @param referralCode The code used to register the integrator originating the operation, for potential rewards. * 0 if the action is executed directly by the user, without any middle-man */ function flashLoanSimple( address receiverAddress, address asset, uint256 amount, bytes calldata params, uint16 referralCode ) external; /** * @notice Returns the user account data across all the reserves * @param user The address of the user * @return totalCollateralBase The total collateral of the user in the base currency used by the price feed * @return totalDebtBase The total debt of the user in the base currency used by the price feed * @return availableBorrowsBase The borrowing power left of the user in the base currency used by the price feed * @return currentLiquidationThreshold The liquidation threshold of the user * @return ltv The loan to value of The user * @return healthFactor The current health factor of the user */ function getUserAccountData(address user) external view returns ( uint256 totalCollateralBase, uint256 totalDebtBase, uint256 availableBorrowsBase, uint256 currentLiquidationThreshold, uint256 ltv, uint256 healthFactor ); /** * @notice Initializes a reserve, activating it, assigning an aToken and debt tokens and an * interest rate strategy * @dev Only callable by the PoolConfigurator contract * @param asset The address of the underlying asset of the reserve * @param aTokenAddress The address of the aToken that will be assigned to the reserve * @param stableDebtAddress The address of the StableDebtToken that will be assigned to the reserve * @param variableDebtAddress The address of the VariableDebtToken that will be assigned to the reserve * @param interestRateStrategyAddress The address of the interest rate strategy contract */ function initReserve( address asset, address aTokenAddress, address stableDebtAddress, address variableDebtAddress, address interestRateStrategyAddress ) external; /** * @notice Drop a reserve * @dev Only callable by the PoolConfigurator contract * @param asset The address of the underlying asset of the reserve */ function dropReserve(address asset) external; /** * @notice Updates the address of the interest rate strategy contract * @dev Only callable by the PoolConfigurator contract * @param asset The address of the underlying asset of the reserve * @param rateStrategyAddress The address of the interest rate strategy contract */ function setReserveInterestRateStrategyAddress(address asset, address rateStrategyAddress) external; /** * @notice Sets the configuration bitmap of the reserve as a whole * @dev Only callable by the PoolConfigurator contract * @param asset The address of the underlying asset of the reserve * @param configuration The new configuration bitmap */ function setConfiguration(address asset, DataTypes.ReserveConfigurationMap calldata configuration) external; /** * @notice Returns the configuration of the reserve * @param asset The address of the underlying asset of the reserve * @return The configuration of the reserve */ function getConfiguration(address asset) external view returns (DataTypes.ReserveConfigurationMap memory); /** * @notice Returns the configuration of the user across all the reserves * @param user The user address * @return The configuration of the user */ function getUserConfiguration(address user) external view returns (DataTypes.UserConfigurationMap memory); /** * @notice Returns the normalized income of the reserve * @param asset The address of the underlying asset of the reserve * @return The reserve's normalized income */ function getReserveNormalizedIncome(address asset) external view returns (uint256); /** * @notice Returns the normalized variable debt per unit of asset * @dev WARNING: This function is intended to be used primarily by the protocol itself to get a * "dynamic" variable index based on time, current stored index and virtual rate at the current * moment (approx. a borrower would get if opening a position). This means that is always used in * combination with variable debt supply/balances. * If using this function externally, consider that is possible to have an increasing normalized * variable debt that is not equivalent to how the variable debt index would be updated in storage * (e.g. only updates with non-zero variable debt supply) * @param asset The address of the underlying asset of the reserve * @return The reserve normalized variable debt */ function getReserveNormalizedVariableDebt(address asset) external view returns (uint256); /** * @notice Returns the state and configuration of the reserve * @param asset The address of the underlying asset of the reserve * @return The state and configuration data of the reserve */ function getReserveData(address asset) external view returns (DataTypes.ReserveData memory); /** * @notice Validates and finalizes an aToken transfer * @dev Only callable by the overlying aToken of the `asset` * @param asset The address of the underlying asset of the aToken * @param from The user from which the aTokens are transferred * @param to The user receiving the aTokens * @param amount The amount being transferred/withdrawn * @param balanceFromBefore The aToken balance of the `from` user before the transfer * @param balanceToBefore The aToken balance of the `to` user before the transfer */ function finalizeTransfer( address asset, address from, address to, uint256 amount, uint256 balanceFromBefore, uint256 balanceToBefore ) external; /** * @notice Returns the list of the underlying assets of all the initialized reserves * @dev It does not include dropped reserves * @return The addresses of the underlying assets of the initialized reserves */ function getReservesList() external view returns (address[] memory); /** * @notice Returns the address of the underlying asset of a reserve by the reserve id as stored in the DataTypes.ReserveData struct * @param id The id of the reserve as stored in the DataTypes.ReserveData struct * @return The address of the reserve associated with id */ function getReserveAddressById(uint16 id) external view returns (address); /** * @notice Returns the PoolAddressesProvider connected to this contract * @return The address of the PoolAddressesProvider */ function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider); /** * @notice Updates the protocol fee on the bridging * @param bridgeProtocolFee The part of the premium sent to the protocol treasury */ function updateBridgeProtocolFee(uint256 bridgeProtocolFee) external; /** * @notice Updates flash loan premiums. Flash loan premium consists of two parts: * - A part is sent to aToken holders as extra, one time accumulated interest * - A part is collected by the protocol treasury * @dev The total premium is calculated on the total borrowed amount * @dev The premium to protocol is calculated on the total premium, being a percentage of `flashLoanPremiumTotal` * @dev Only callable by the PoolConfigurator contract * @param flashLoanPremiumTotal The total premium, expressed in bps * @param flashLoanPremiumToProtocol The part of the premium sent to the protocol treasury, expressed in bps */ function updateFlashloanPremiums( uint128 flashLoanPremiumTotal, uint128 flashLoanPremiumToProtocol ) external; /** * @notice Configures a new category for the eMode. * @dev In eMode, the protocol allows very high borrowing power to borrow assets of the same category. * The category 0 is reserved as it's the default for volatile assets * @param id The id of the category * @param config The configuration of the category */ function configureEModeCategory(uint8 id, DataTypes.EModeCategory memory config) external; /** * @notice Returns the data of an eMode category * @param id The id of the category * @return The configuration data of the category */ function getEModeCategoryData(uint8 id) external view returns (DataTypes.EModeCategory memory); /** * @notice Allows a user to use the protocol in eMode * @param categoryId The id of the category */ function setUserEMode(uint8 categoryId) external; /** * @notice Returns the eMode the user is using * @param user The address of the user * @return The eMode id */ function getUserEMode(address user) external view returns (uint256); /** * @notice Resets the isolation mode total debt of the given asset to zero * @dev It requires the given asset has zero debt ceiling * @param asset The address of the underlying asset to reset the isolationModeTotalDebt */ function resetIsolationModeTotalDebt(address asset) external; /** * @notice Returns the percentage of available liquidity that can be borrowed at once at stable rate * @return The percentage of available liquidity to borrow, expressed in bps */ function MAX_STABLE_RATE_BORROW_SIZE_PERCENT() external view returns (uint256); /** * @notice Returns the total fee on flash loans * @return The total fee on flashloans */ function FLASHLOAN_PREMIUM_TOTAL() external view returns (uint128); /** * @notice Returns the part of the bridge fees sent to protocol * @return The bridge fee sent to the protocol treasury */ function BRIDGE_PROTOCOL_FEE() external view returns (uint256); /** * @notice Returns the part of the flashloan fees sent to protocol * @return The flashloan fee sent to the protocol treasury */ function FLASHLOAN_PREMIUM_TO_PROTOCOL() external view returns (uint128); /** * @notice Returns the maximum number of reserves supported to be listed in this Pool * @return The maximum number of reserves supported */ function MAX_NUMBER_RESERVES() external view returns (uint16); /** * @notice Mints the assets accrued through the reserve factor to the treasury in the form of aTokens * @param assets The list of reserves for which the minting needs to be executed */ function mintToTreasury(address[] calldata assets) external; /** * @notice Rescue and transfer tokens locked in this contract * @param token The address of the token * @param to The address of the recipient * @param amount The amount of token to transfer */ function rescueTokens( address token, address to, uint256 amount ) external; /** * @notice Supplies an `amount` of underlying asset into the reserve, receiving in return overlying aTokens. * - E.g. User supplies 100 USDC and gets in return 100 aUSDC * @dev Deprecated: Use the `supply` function instead * @param asset The address of the underlying asset to supply * @param amount The amount to be supplied * @param onBehalfOf The address that will receive the aTokens, same as msg.sender if the user * wants to receive them on his own wallet, or a different address if the beneficiary of aTokens * is a different wallet * @param referralCode Code used to register the integrator originating the operation, for potential rewards. * 0 if the action is executed directly by the user, without any middle-man */ function deposit( address asset, uint256 amount, address onBehalfOf, uint16 referralCode ) external; } // File: @aave/core-v3/contracts/flashloan/interfaces/IFlashLoanSimpleReceiver.sol pragma solidity ^0.8.0; /** * @title IFlashLoanSimpleReceiver * @author Aave * @notice Defines the basic interface of a flashloan-receiver contract. * @dev Implement this interface to develop a flashloan-compatible flashLoanReceiver contract */ interface IFlashLoanSimpleReceiver { /** * @notice Executes an operation after receiving the flash-borrowed asset * @dev Ensure that the contract can return the debt + premium, e.g., has * enough funds to repay and has approved the Pool to pull the total amount * @param asset The address of the flash-borrowed asset * @param amount The amount of the flash-borrowed asset * @param premium The fee of the flash-borrowed asset * @param initiator The address of the flashloan initiator * @param params The byte-encoded params passed when initiating the flashloan * @return True if the execution of the operation succeeds, false otherwise */ function executeOperation( address asset, uint256 amount, uint256 premium, address initiator, bytes calldata params ) external returns (bool); function ADDRESSES_PROVIDER() external view returns (IPoolAddressesProvider); function POOL() external view returns (IPool); } // File: @aave/core-v3/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol pragma solidity 0.8.10; /** * @title FlashLoanSimpleReceiverBase * @author Aave * @notice Base contract to develop a flashloan-receiver contract. */ abstract contract FlashLoanSimpleReceiverBase is IFlashLoanSimpleReceiver { IPoolAddressesProvider public immutable override ADDRESSES_PROVIDER; IPool public immutable override POOL; constructor(IPoolAddressesProvider provider) { ADDRESSES_PROVIDER = provider; POOL = IPool(provider.getPool()); } } // File: @openzeppelin/contracts/utils/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File: FlashLoanUniswapV2.sol pragma solidity ^0.8.1; /** * @title FlashloanUniswapV2 * @dev This contract demonstrates a multiple-step arbitrage strategy between different DEXs on the EVM-based networks. * It uses flash loans from Aave to borrow funds and then trades them across various decentralized exchanges (DEXs) * to generate profits through price differences. * The main function of the contract is `beginArbitrage`, which initiates the arbitrage process by specifying the DEX * routers to be used, the tokens to be traded, and the initial amount to be borrowed using a flash loan. The function * then calls the `flashLoanSimple` method to initiate the flash loan. * The `executeOperation` function is called by Aave after the funds have been deposited in the contract. It then performs * the multi-step trades across the specified DEXs, using the `multiDexTrade` function, and returns the funds to Aave with * the required premium. **/ contract FlashloanUniswapV2 is FlashLoanSimpleReceiverBase, Withdrawable { using SafeERC20 for IERC20; using SafeMath for uint256; //@dev current amount of steps in arbitrage uint private steps; //@dev max amount of steps in arbitrage uint256 private constant MAX_STEPS = 12; struct TradeStep { address router; address token; } TradeStep[MAX_STEPS] internal tradeSteps; bool public stopped = false; address private _owner; constructor(IPoolAddressesProvider provider) FlashLoanSimpleReceiverBase(provider) { _owner = msg.sender; stopped = true; } modifier stopInEmergency() { require(!stopped, "This contract is currently paused"); _; } /** * @dev Allows the owner to stop the contract */ function stopContract() public onlyOwner { stopped = true; } /** * @dev Allows the owner to resume the contract */ function resumeContract() public onlyOwner { stopped = false; } /** * @dev Executes multiple-step arbitrage trades * @param _routers array of router addresses * @param _tokens array of token addresses to trade * @param _amountIn the amount of the first token to trade */ function beginArbitrage( address[] memory _routers, address[] memory _tokens, uint _amountIn ) public stopInEmergency { require(_routers.length == _tokens.length, "Lengths of routers and tokens arrays do not match"); require(_amountIn > 0, "Amount should be greater than 0"); require(_routers.length <= MAX_STEPS, "Number of steps cannot exceed the maximum allowed"); for (uint i = 0; i < _routers.length; i++) { require(_routers[i] != address(0), "Invalid router address"); require(_tokens[i] != address(0), "Invalid token address"); tradeSteps[i] = TradeStep(_routers[i], _tokens[i]); } steps = _routers.length; flashLoanSimple(_tokens[0], _amountIn); } /** * @dev Initiate a flash loan from Aave pool * @param _asset the address of the asset to borrow * @param _amount the amount of the asset to borrow */ function flashLoanSimple( address _asset, uint256 _amount ) internal stopInEmergency { require(_asset != address(0), "Invalid asset address"); require(_amount > 0, "Amount should be greater than 0"); address receiverAddress = address(this); bytes memory params = ""; uint16 referralCode = 0; POOL.flashLoanSimple( receiverAddress, _asset, _amount, params, referralCode ); } //@dev this method called from aave pool after the funds have been deposited in this account function executeOperation( address asset, uint256 amount, uint256 premium, address initiator, bytes calldata params ) external stopInEmergency override returns (bool) { require(msg.sender == address(POOL), "executeOperation: caller is not Aave Pool"); address[] memory dexRouters = new address[](steps); address[] memory dexTokens = new address[](steps); for (uint256 i = 0; i < steps; i++) { dexRouters[i] = tradeSteps[i].router; dexTokens[i] = tradeSteps[i].token; } multiDexTrade(dexRouters, dexTokens, amount, true); IERC20(asset).approve(address(POOL), amount + premium); return true; } /** * @dev Executes the arbitrage trades on multiple DEXs * @param _routers array of router addresses * @param _tokens array of token addresses to trade * @param _amount the amount of the first token to trade */ function multiDexTrade( address[] memory _routers, address[] memory _tokens, uint256 _amount, bool isFlashLoan ) public stopInEmergency { uint startBalance = IERC20(_tokens[0]).balanceOf(address(this)); uint[] memory tradeableAmounts = new uint[](_tokens.length); for (uint i = 0; i < _tokens.length - 1; i++) { swap(_routers[i], _tokens[i], _tokens[i + 1], i == 0 ? _amount : tradeableAmounts[i - 1]); uint tokenBalance = IERC20(_tokens[i + 1]).balanceOf(address(this)); tradeableAmounts[i] = tokenBalance - (i == 0 ? 0 : IERC20(_tokens[i]).balanceOf(address(this))); } swap(_routers[_tokens.length - 1], _tokens[_tokens.length - 1], _tokens[0], tradeableAmounts[_tokens.length - 2]); if (isFlashLoan) { uint endBalance = IERC20(_tokens[0]).balanceOf(address(this)); require(endBalance > startBalance, string(abi.encodePacked("Trade Reverted, No Profit Made. End balance = ", endBalance))); } } /** * @dev Get the final token amount that can be obtained after executing multi-step trades * @param _routers array of router addresses * @param _tokens array of token addresses to trade * @param _amountIn the amount of the first token to trade * @return _amountOut the final token amount that can be obtained */ function getEstimatedReturn( address[] memory _routers, address[] memory _tokens, uint _amountIn ) public view returns (uint _amountOut) { require(_routers.length == _tokens.length, "Lengths of routers and tokens arrays do not match"); require(_routers.length <= MAX_STEPS, "Number of steps cannot exceed the maximum allowed"); uint amount = _amountIn; try this.getFirstTokenAmount(_routers[0], _tokens[0], _tokens[1], amount) returns (uint tokenAmount) { for (uint i = 1; i < _routers.length; i++) { IUniswapV2Router02 router = IUniswapV2Router02(_routers[i]); address[] memory path = new address[](2); path[0] = _tokens[i]; path[1] = _tokens[i + 1]; // get the amount of tokens out uint[] memory amounts = router.getAmountsOut(tokenAmount, path); tokenAmount = amounts[1]; } _amountOut = tokenAmount; } catch Error(string memory errorMessage) { revert(errorMessage); } catch { revert("An unknown error occurred."); } } /** * @dev Get the amount of the first token to trade * @param _router the router address to use * @param _tokenIn the input token address * @param _tokenOut the output token address * @param _amountOut the desired output token amount * @return _amountIn the required input token amount */ function getFirstTokenAmount( address _router, address _tokenIn, address _tokenOut, uint _amountOut ) external view returns (uint _amountIn) { IUniswapV2Router02 router = IUniswapV2Router02(_router); address[] memory path = new address[](2); path[0] = _tokenIn; path[1] = _tokenOut; uint[] memory amounts = router.getAmountsIn(_amountOut, path); _amountIn = amounts[0]; } function swap( address router, address _tokenIn, address _tokenOut, uint256 _amount ) private stopInEmergency { IERC20(_tokenIn).approve(router, _amount); // check liquidity of tokenIn and tokenOut uint256[] memory amounts = IUniswapV2Router02(router).getAmountsOut(_amount, getPathForToken(_tokenIn, _tokenOut)); require(amounts[amounts.length - 1] > 0, "No liquidity for this token pair"); // check allowance of tokenOut uint256 allowance = IERC20(_tokenOut).allowance(address(this), router); require(allowance >= amounts[amounts.length - 1], "UniswapV2Router: INSUFFICIENT_OUTPUT_AMOUNT"); uint deadline = block.timestamp + 300; IUniswapV2Router02(router).swapExactTokensForTokens( _amount, amounts[amounts.length - 1], getPathForToken(_tokenIn, _tokenOut), address(this), deadline ); } function getPathForToken( address tokenIn, address tokenOut ) private view stopInEmergency returns (address[] memory) { address[] memory path; path = new address[](2); path[0] = tokenIn; path[1] = tokenOut; return path; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IPoolAddressesProvider","name":"provider","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"ADDRESSES_PROVIDER","outputs":[{"internalType":"contract IPoolAddressesProvider","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"POOL","outputs":[{"internalType":"contract IPool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_routers","type":"address[]"},{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256","name":"_amountIn","type":"uint256"}],"name":"beginArbitrage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"premium","type":"uint256"},{"internalType":"address","name":"initiator","type":"address"},{"internalType":"bytes","name":"params","type":"bytes"}],"name":"executeOperation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_routers","type":"address[]"},{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256","name":"_amountIn","type":"uint256"}],"name":"getEstimatedReturn","outputs":[{"internalType":"uint256","name":"_amountOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_tokenIn","type":"address"},{"internalType":"address","name":"_tokenOut","type":"address"},{"internalType":"uint256","name":"_amountOut","type":"uint256"}],"name":"getFirstTokenAmount","outputs":[{"internalType":"uint256","name":"_amountIn","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_routers","type":"address[]"},{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"isFlashLoan","type":"bool"}],"name":"multiDexTrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"resumeContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"withdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEther","outputs":[],"stateMutability":"payable","type":"function"}]
Contract Creation Code
60c06040526000601a60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162003b7338038062003b738339818101604052810190620000529190620002fa565b808073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1663026b1d5f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620000d3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000f991906200035d565b73ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1681525050506200014d62000141620001b060201b60201c565b620001b860201b60201c565b33601a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001601a60006101000a81548160ff021916908315150217905550506200038f565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002ae8262000281565b9050919050565b6000620002c282620002a1565b9050919050565b620002d481620002b5565b8114620002e057600080fd5b50565b600081519050620002f481620002c9565b92915050565b6000602082840312156200031357620003126200027c565b5b60006200032384828501620002e3565b91505092915050565b6200033781620002a1565b81146200034357600080fd5b50565b60008151905062000357816200032c565b92915050565b6000602082840312156200037657620003756200027c565b5b6000620003868482850162000346565b91505092915050565b60805160a0516137a9620003ca600039600081816108e701528181610b6f015281816110930152611b6c0152600061037901526137a96000f3fe6080604052600436106100f35760003560e01c80637535d2461161008a578063c4bc5da511610059578063c4bc5da5146102e5578063da56b6ff146102fc578063f2fde38b14610325578063f4f3b2001461034e576100f3565b80637535d2461461022757806375f12b21146102525780638da5cb5b1461027d5780639ad92581146102a8576100f3565b80631b11d0ff116100c65780631b11d0ff1461018c5780636dd53117146101c9578063715018a6146102065780637362377b1461021d576100f3565b80630542975c146100f857806312253a6c1461012357806313edab811461013a5780631a61ff2f14610163575b600080fd5b34801561010457600080fd5b5061010d610377565b60405161011a919061221d565b60405180910390f35b34801561012f57600080fd5b5061013861039b565b005b34801561014657600080fd5b50610161600480360381019061015c91906122ef565b6103c0565b005b34801561016f57600080fd5b5061018a600480360381019061018591906124d4565b6104f3565b005b34801561019857600080fd5b506101b360048036038101906101ae91906125b5565b610893565b6040516101c0919061266a565b60405180910390f35b3480156101d557600080fd5b506101f060048036038101906101eb91906124d4565b610c0b565b6040516101fd9190612694565b60405180910390f35b34801561021257600080fd5b5061021b61102c565b005b610225611040565b005b34801561023357600080fd5b5061023c611091565b60405161024991906126d0565b60405180910390f35b34801561025e57600080fd5b506102676110b5565b604051610274919061266a565b60405180910390f35b34801561028957600080fd5b506102926110c8565b60405161029f91906126fa565b60405180910390f35b3480156102b457600080fd5b506102cf60048036038101906102ca9190612715565b6110f1565b6040516102dc9190612694565b60405180910390f35b3480156102f157600080fd5b506102fa611291565b005b34801561030857600080fd5b50610323600480360381019061031e91906127a8565b6112b6565b005b34801561033157600080fd5b5061034c60048036038101906103479190612847565b6117d1565b005b34801561035a57600080fd5b5061037560048036038101906103709190612847565b611855565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b6103a36119ce565b6001601a60006101000a81548160ff021916908315150217905550565b6103c86119ce565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610438576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042f906128f7565b60405180910390fd5b600083905060005b838390508160ff1610156104ec578173ffffffffffffffffffffffffffffffffffffffff166323b872dd303387878660ff1681811061048257610481612917565b5b905060200201356040518463ffffffff1660e01b81526004016104a793929190612946565b600060405180830381600087803b1580156104c157600080fd5b505af11580156104d5573d6000803e3d6000fd5b5050505080806104e4906129b9565b915050610440565b5050505050565b601a60009054906101000a900460ff1615610543576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053a90612a55565b60405180910390fd5b8151835114610587576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057e90612ae7565b60405180910390fd5b600081116105ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105c190612b53565b60405180910390fd5b600c8351111561060f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161060690612be5565b60405180910390fd5b60005b835181101561086057600073ffffffffffffffffffffffffffffffffffffffff1684828151811061064657610645612917565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614156106a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161069c90612c51565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168382815181106106d0576106cf612917565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16141561072f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161072690612cbd565b60405180910390fd5b604051806040016040528085838151811061074d5761074c612917565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16815260200184838151811061078357610782612917565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16815250600282600c81106107b8576107b7612917565b5b6002020160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050808061085890612cdd565b915050610612565b50825160018190555061088e826000815181106108805761087f612917565b5b602002602001015182611a4c565b505050565b6000601a60009054906101000a900460ff16156108e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108dc90612a55565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610973576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096a90612d98565b60405180910390fd5b600060015467ffffffffffffffff81111561099157610990612360565b5b6040519080825280602002602001820160405280156109bf5781602001602082028036833780820191505090505b509050600060015467ffffffffffffffff8111156109e0576109df612360565b5b604051908082528060200260200182016040528015610a0e5781602001602082028036833780820191505090505b50905060005b600154811015610b4357600281600c8110610a3257610a31612917565b5b6002020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838281518110610a6d57610a6c612917565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600281600c8110610abb57610aba612917565b5b6002020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828281518110610af657610af5612917565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080610b3b90612cdd565b915050610a14565b50610b5182828a60016112b6565b8873ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000898b610b9a9190612db8565b6040518363ffffffff1660e01b8152600401610bb7929190612e0e565b6020604051808303816000875af1158015610bd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bfa9190612e4c565b506001925050509695505050505050565b60008251845114610c51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4890612ae7565b60405180910390fd5b600c84511115610c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8d90612be5565b60405180910390fd5b60008290503073ffffffffffffffffffffffffffffffffffffffff16639ad9258186600081518110610ccb57610cca612917565b5b602002602001015186600081518110610ce757610ce6612917565b5b602002602001015187600181518110610d0357610d02612917565b5b6020026020010151856040518563ffffffff1660e01b8152600401610d2b9493929190612e79565b602060405180830381865afa925050508015610d6557506040513d601f19601f82011682018060405250810190610d629190612ed3565b60015b610e0b57610d71612f0d565b806308c379a01415610dce5750610d86612f2f565b80610d915750610dd0565b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc5919061303c565b60405180910390fd5b505b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e02906130aa565b60405180910390fd5b6000600190505b865181101561101f576000878281518110610e3057610e2f612917565b5b602002602001015190506000600267ffffffffffffffff811115610e5757610e56612360565b5b604051908082528060200260200182016040528015610e855781602001602082028036833780820191505090505b509050878381518110610e9b57610e9a612917565b5b602002602001015181600081518110610eb757610eb6612917565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505087600184610eff9190612db8565b81518110610f1057610f0f612917565b5b602002602001015181600181518110610f2c57610f2b612917565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060008273ffffffffffffffffffffffffffffffffffffffff1663d06ca61f86846040518363ffffffff1660e01b8152600401610fa3929190613188565b600060405180830381865afa158015610fc0573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610fe9919061327b565b905080600181518110610fff57610ffe612917565b5b60200260200101519450505050808061101790612cdd565b915050610e12565b5080925050509392505050565b6110346119ce565b61103e6000611c04565b565b6110486119ce565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f1935050505015801561108e573d6000803e3d6000fd5b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b601a60009054906101000a900460ff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000808590506000600267ffffffffffffffff81111561111457611113612360565b5b6040519080825280602002602001820160405280156111425781602001602082028036833780820191505090505b509050858160008151811061115a57611159612917565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505084816001815181106111a9576111a8612917565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060008273ffffffffffffffffffffffffffffffffffffffff16631f00ca7486846040518363ffffffff1660e01b8152600401611220929190613188565b600060405180830381865afa15801561123d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611266919061327b565b90508060008151811061127c5761127b612917565b5b60200260200101519350505050949350505050565b6112996119ce565b6000601a60006101000a81548160ff021916908315150217905550565b601a60009054906101000a900460ff1615611306576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fd90612a55565b60405180910390fd5b60008360008151811061131c5761131b612917565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161135c91906126fa565b602060405180830381865afa158015611379573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139d9190612ed3565b90506000845167ffffffffffffffff8111156113bc576113bb612360565b5b6040519080825280602002602001820160405280156113ea5781602001602082028036833780820191505090505b50905060005b600186516113fe91906132c4565b811015611626576114a087828151811061141b5761141a612917565b5b602002602001015187838151811061143657611435612917565b5b60200260200101518860018561144c9190612db8565b8151811061145d5761145c612917565b5b602002602001015160008514611499578560018661147b91906132c4565b8151811061148c5761148b612917565b5b602002602001015161149b565b885b611cc8565b6000866001836114b09190612db8565b815181106114c1576114c0612917565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161150191906126fa565b602060405180830381865afa15801561151e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115429190612ed3565b9050600082146115e55786828151811061155f5761155e612917565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161159f91906126fa565b602060405180830381865afa1580156115bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115e09190612ed3565b6115e8565b60005b816115f391906132c4565b83838151811061160657611605612917565b5b60200260200101818152505050808061161e90612cdd565b9150506113f0565b506116c3866001875161163991906132c4565b8151811061164a57611649612917565b5b6020026020010151866001885161166191906132c4565b8151811061167257611671612917565b5b60200260200101518760008151811061168e5761168d612917565b5b60200260200101518460028a516116a591906132c4565b815181106116b6576116b5612917565b5b6020026020010151611cc8565b82156117c9576000856000815181106116df576116de612917565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161171f91906126fa565b602060405180830381865afa15801561173c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117609190612ed3565b9050828111816040516020016117769190613396565b604051602081830303815290604052906117c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117bd919061303c565b60405180910390fd5b50505b505050505050565b6117d96119ce565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611849576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118409061342e565b60405180910390fd5b61185281611c04565b50565b61185d6119ce565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118c4906128f7565b60405180910390fd5b60008190508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161192891906126fa565b602060405180830381865afa158015611945573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119699190612ed3565b6040518363ffffffff1660e01b8152600401611986929190612e0e565b6020604051808303816000875af11580156119a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119c99190612e4c565b505050565b6119d661204e565b73ffffffffffffffffffffffffffffffffffffffff166119f46110c8565b73ffffffffffffffffffffffffffffffffffffffff1614611a4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a419061349a565b60405180910390fd5b565b601a60009054906101000a900460ff1615611a9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9390612a55565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0390613506565b60405180910390fd5b60008111611b4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4690612b53565b60405180910390fd5b6000309050600060405180602001604052806000815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342b0b77c84878786866040518663ffffffff1660e01b8152600401611bcb959493929190613598565b600060405180830381600087803b158015611be557600080fd5b505af1158015611bf9573d6000803e3d6000fd5b505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b601a60009054906101000a900460ff1615611d18576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0f90612a55565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663095ea7b385836040518363ffffffff1660e01b8152600401611d53929190612e0e565b6020604051808303816000875af1158015611d72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d969190612e4c565b5060008473ffffffffffffffffffffffffffffffffffffffff1663d06ca61f83611dc08787612056565b6040518363ffffffff1660e01b8152600401611ddd929190613188565b600060405180830381865afa158015611dfa573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611e23919061327b565b905060008160018351611e3691906132c4565b81518110611e4757611e46612917565b5b602002602001015111611e8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e869061363e565b60405180910390fd5b60008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30886040518363ffffffff1660e01b8152600401611ecc92919061365e565b602060405180830381865afa158015611ee9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f0d9190612ed3565b90508160018351611f1e91906132c4565b81518110611f2f57611f2e612917565b5b6020026020010151811015611f79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f70906136f9565b60405180910390fd5b600061012c42611f899190612db8565b90508673ffffffffffffffffffffffffffffffffffffffff166338ed1739858560018751611fb791906132c4565b81518110611fc857611fc7612917565b5b6020026020010151611fda8a8a612056565b30866040518663ffffffff1660e01b8152600401611ffc959493929190613719565b6000604051808303816000875af115801561201b573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190612044919061327b565b5050505050505050565b600033905090565b6060601a60009054906101000a900460ff16156120a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209f90612a55565b60405180910390fd5b6060600267ffffffffffffffff8111156120c5576120c4612360565b5b6040519080825280602002602001820160405280156120f35781602001602082028036833780820191505090505b509050838160008151811061210b5761210a612917565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050828160018151811061215a57612159612917565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006121e36121de6121d98461219e565b6121be565b61219e565b9050919050565b60006121f5826121c8565b9050919050565b6000612207826121ea565b9050919050565b612217816121fc565b82525050565b6000602082019050612232600083018461220e565b92915050565b6000604051905090565b600080fd5b600080fd5b60006122578261219e565b9050919050565b6122678161224c565b811461227257600080fd5b50565b6000813590506122848161225e565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126122af576122ae61228a565b5b8235905067ffffffffffffffff8111156122cc576122cb61228f565b5b6020830191508360208202830111156122e8576122e7612294565b5b9250929050565b60008060006040848603121561230857612307612242565b5b600061231686828701612275565b935050602084013567ffffffffffffffff81111561233757612336612247565b5b61234386828701612299565b92509250509250925092565b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6123988261234f565b810181811067ffffffffffffffff821117156123b7576123b6612360565b5b80604052505050565b60006123ca612238565b90506123d6828261238f565b919050565b600067ffffffffffffffff8211156123f6576123f5612360565b5b602082029050602081019050919050565b600061241a612415846123db565b6123c0565b9050808382526020820190506020840283018581111561243d5761243c612294565b5b835b8181101561246657806124528882612275565b84526020840193505060208101905061243f565b5050509392505050565b600082601f8301126124855761248461228a565b5b8135612495848260208601612407565b91505092915050565b6000819050919050565b6124b18161249e565b81146124bc57600080fd5b50565b6000813590506124ce816124a8565b92915050565b6000806000606084860312156124ed576124ec612242565b5b600084013567ffffffffffffffff81111561250b5761250a612247565b5b61251786828701612470565b935050602084013567ffffffffffffffff81111561253857612537612247565b5b61254486828701612470565b9250506040612555868287016124bf565b9150509250925092565b60008083601f8401126125755761257461228a565b5b8235905067ffffffffffffffff8111156125925761259161228f565b5b6020830191508360018202830111156125ae576125ad612294565b5b9250929050565b60008060008060008060a087890312156125d2576125d1612242565b5b60006125e089828a01612275565b96505060206125f189828a016124bf565b955050604061260289828a016124bf565b945050606061261389828a01612275565b935050608087013567ffffffffffffffff81111561263457612633612247565b5b61264089828a0161255f565b92509250509295509295509295565b60008115159050919050565b6126648161264f565b82525050565b600060208201905061267f600083018461265b565b92915050565b61268e8161249e565b82525050565b60006020820190506126a96000830184612685565b92915050565b60006126ba826121ea565b9050919050565b6126ca816126af565b82525050565b60006020820190506126e560008301846126c1565b92915050565b6126f48161224c565b82525050565b600060208201905061270f60008301846126eb565b92915050565b6000806000806080858703121561272f5761272e612242565b5b600061273d87828801612275565b945050602061274e87828801612275565b935050604061275f87828801612275565b9250506060612770878288016124bf565b91505092959194509250565b6127858161264f565b811461279057600080fd5b50565b6000813590506127a28161277c565b92915050565b600080600080608085870312156127c2576127c1612242565b5b600085013567ffffffffffffffff8111156127e0576127df612247565b5b6127ec87828801612470565b945050602085013567ffffffffffffffff81111561280d5761280c612247565b5b61281987828801612470565b935050604061282a878288016124bf565b925050606061283b87828801612793565b91505092959194509250565b60006020828403121561285d5761285c612242565b5b600061286b84828501612275565b91505092915050565b600082825260208201905092915050565b7f576974686472617761626c653a20636f6e74726163742061646472657373206960008201527f73207a65726f0000000000000000000000000000000000000000000000000000602082015250565b60006128e1602683612874565b91506128ec82612885565b604082019050919050565b60006020820190508181036000830152612910816128d4565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060608201905061295b60008301866126eb565b61296860208301856126eb565b6129756040830184612685565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600060ff82169050919050565b60006129c4826129ac565b915060ff8214156129d8576129d761297d565b5b600182019050919050565b7f5468697320636f6e74726163742069732063757272656e746c7920706175736560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000612a3f602183612874565b9150612a4a826129e3565b604082019050919050565b60006020820190508181036000830152612a6e81612a32565b9050919050565b7f4c656e67746873206f6620726f757465727320616e6420746f6b656e7320617260008201527f7261797320646f206e6f74206d61746368000000000000000000000000000000602082015250565b6000612ad1603183612874565b9150612adc82612a75565b604082019050919050565b60006020820190508181036000830152612b0081612ac4565b9050919050565b7f416d6f756e742073686f756c642062652067726561746572207468616e203000600082015250565b6000612b3d601f83612874565b9150612b4882612b07565b602082019050919050565b60006020820190508181036000830152612b6c81612b30565b9050919050565b7f4e756d626572206f662073746570732063616e6e6f742065786365656420746860008201527f65206d6178696d756d20616c6c6f776564000000000000000000000000000000602082015250565b6000612bcf603183612874565b9150612bda82612b73565b604082019050919050565b60006020820190508181036000830152612bfe81612bc2565b9050919050565b7f496e76616c696420726f75746572206164647265737300000000000000000000600082015250565b6000612c3b601683612874565b9150612c4682612c05565b602082019050919050565b60006020820190508181036000830152612c6a81612c2e565b9050919050565b7f496e76616c696420746f6b656e20616464726573730000000000000000000000600082015250565b6000612ca7601583612874565b9150612cb282612c71565b602082019050919050565b60006020820190508181036000830152612cd681612c9a565b9050919050565b6000612ce88261249e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612d1b57612d1a61297d565b5b600182019050919050565b7f657865637574654f7065726174696f6e3a2063616c6c6572206973206e6f742060008201527f4161766520506f6f6c0000000000000000000000000000000000000000000000602082015250565b6000612d82602983612874565b9150612d8d82612d26565b604082019050919050565b60006020820190508181036000830152612db181612d75565b9050919050565b6000612dc38261249e565b9150612dce8361249e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612e0357612e0261297d565b5b828201905092915050565b6000604082019050612e2360008301856126eb565b612e306020830184612685565b9392505050565b600081519050612e468161277c565b92915050565b600060208284031215612e6257612e61612242565b5b6000612e7084828501612e37565b91505092915050565b6000608082019050612e8e60008301876126eb565b612e9b60208301866126eb565b612ea860408301856126eb565b612eb56060830184612685565b95945050505050565b600081519050612ecd816124a8565b92915050565b600060208284031215612ee957612ee8612242565b5b6000612ef784828501612ebe565b91505092915050565b60008160e01c9050919050565b600060033d1115612f2c5760046000803e612f29600051612f00565b90505b90565b600060443d1015612f3f57612fc2565b612f47612238565b60043d036004823e80513d602482011167ffffffffffffffff82111715612f6f575050612fc2565b808201805167ffffffffffffffff811115612f8d5750505050612fc2565b80602083010160043d038501811115612faa575050505050612fc2565b612fb98260200185018661238f565b82955050505050505b90565b600081519050919050565b60005b83811015612fee578082015181840152602081019050612fd3565b83811115612ffd576000848401525b50505050565b600061300e82612fc5565b6130188185612874565b9350613028818560208601612fd0565b6130318161234f565b840191505092915050565b600060208201905081810360008301526130568184613003565b905092915050565b7f416e20756e6b6e6f776e206572726f72206f636375727265642e000000000000600082015250565b6000613094601a83612874565b915061309f8261305e565b602082019050919050565b600060208201905081810360008301526130c381613087565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6130ff8161224c565b82525050565b600061311183836130f6565b60208301905092915050565b6000602082019050919050565b6000613135826130ca565b61313f81856130d5565b935061314a836130e6565b8060005b8381101561317b5781516131628882613105565b975061316d8361311d565b92505060018101905061314e565b5085935050505092915050565b600060408201905061319d6000830185612685565b81810360208301526131af818461312a565b90509392505050565b600067ffffffffffffffff8211156131d3576131d2612360565b5b602082029050602081019050919050565b60006131f76131f2846131b8565b6123c0565b9050808382526020820190506020840283018581111561321a57613219612294565b5b835b81811015613243578061322f8882612ebe565b84526020840193505060208101905061321c565b5050509392505050565b600082601f8301126132625761326161228a565b5b81516132728482602086016131e4565b91505092915050565b60006020828403121561329157613290612242565b5b600082015167ffffffffffffffff8111156132af576132ae612247565b5b6132bb8482850161324d565b91505092915050565b60006132cf8261249e565b91506132da8361249e565b9250828210156132ed576132ec61297d565b5b828203905092915050565b600081905092915050565b7f54726164652052657665727465642c204e6f2050726f666974204d6164652e2060008201527f456e642062616c616e6365203d20000000000000000000000000000000000000602082015250565b600061335f602e836132f8565b915061336a82613303565b602e82019050919050565b6000819050919050565b61339061338b8261249e565b613375565b82525050565b60006133a182613352565b91506133ad828461337f565b60208201915081905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613418602683612874565b9150613423826133bc565b604082019050919050565b600060208201905081810360008301526134478161340b565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613484602083612874565b915061348f8261344e565b602082019050919050565b600060208201905081810360008301526134b381613477565b9050919050565b7f496e76616c696420617373657420616464726573730000000000000000000000600082015250565b60006134f0601583612874565b91506134fb826134ba565b602082019050919050565b6000602082019050818103600083015261351f816134e3565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061354d82613526565b6135578185613531565b9350613567818560208601612fd0565b6135708161234f565b840191505092915050565b600061ffff82169050919050565b6135928161357b565b82525050565b600060a0820190506135ad60008301886126eb565b6135ba60208301876126eb565b6135c76040830186612685565b81810360608301526135d98185613542565b90506135e86080830184613589565b9695505050505050565b7f4e6f206c697175696469747920666f72207468697320746f6b656e2070616972600082015250565b6000613628602083612874565b9150613633826135f2565b602082019050919050565b600060208201905081810360008301526136578161361b565b9050919050565b600060408201905061367360008301856126eb565b61368060208301846126eb565b9392505050565b7f556e69737761705632526f757465723a20494e53554646494349454e545f4f5560008201527f545055545f414d4f554e54000000000000000000000000000000000000000000602082015250565b60006136e3602b83612874565b91506136ee82613687565b604082019050919050565b60006020820190508181036000830152613712816136d6565b9050919050565b600060a08201905061372e6000830188612685565b61373b6020830187612685565b818103604083015261374d818661312a565b905061375c60608301856126eb565b6137696080830184612685565b969550505050505056fea2646970667358221220f2766e2d0b2efdaf20d11bd7d71ab3efe3be4e0a3e7a2bcdbcaf26cd180bd0ad64736f6c634300080a0033000000000000000000000000a97684ead0e402dc232d5a977953df7ecbab3cdb
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000a97684ead0e402dc232d5a977953df7ecbab3cdb
-----Decoded View---------------
Arg [0] : provider (address): 0xa97684ead0e402dc232d5a977953df7ecbab3cdb
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000a97684ead0e402dc232d5a977953df7ecbab3cdb
Deployed ByteCode Sourcemap
108373:8748:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100100:67;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;109245:74;;;;;;;;;;;;;:::i;:::-;;29928:380;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;109723:798;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;111347:748;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;113782:1210;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;20590:103;;;;;;;;;;;;;:::i;:::-;;29505:122;;;:::i;:::-;;100172:36;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;108824:27;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;19942:87;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;115330:473;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;109396:77;;;;;;;;;;;;;:::i;:::-;;112350:1075;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;20848:201;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;29635:285;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;100100:67;;;:::o;109245:74::-;19828:13;:11;:13::i;:::-;109307:4:::1;109297:7;;:14;;;;;;;;;;;;;;;;;;109245:74::o:0;29928:380::-;19828:13;:11;:13::i;:::-;30073:1:::1;30051:24;;:9;:24;;;;30043:75;;;;;;;;;;;;:::i;:::-;;;;;;;;;30131:14;30156:9;30131:35;;30181:7;30177:124;30194:8;;:15;;30190:1;:19;;;30177:124;;;30230:6;:19;;;30258:4;30265:10;30277:8;;30286:1;30277:11;;;;;;;;;:::i;:::-;;;;;;;;30230:59;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;30211:3;;;;;:::i;:::-;;;;30177:124;;;;30032:276;29928:380:::0;;;:::o;109723:798::-;109105:7;;;;;;;;;;;109104:8;109096:54;;;;;;;;;;;;:::i;:::-;;;;;;;;;109911:7:::1;:14;109892:8;:15;:33;109884:95;;;;;;;;;;;;:::i;:::-;;;;;;;;;110010:1;109998:9;:13;109990:57;;;;;;;;;;;;:::i;:::-;;;;;;;;;108679:2;110066:8;:15;:28;;110058:90;;;;;;;;;;;;:::i;:::-;;;;;;;;;110166:6;110161:268;110182:8;:15;110178:1;:19;110161:268;;;110250:1;110227:25;;:8;110236:1;110227:11;;;;;;;;:::i;:::-;;;;;;;;:25;;;;110219:60;;;;;;;;;;;;:::i;:::-;;;;;;;;;110324:1;110302:24;;:7;110310:1;110302:10;;;;;;;;:::i;:::-;;;;;;;;:24;;;;110294:58;;;;;;;;;;;;:::i;:::-;;;;;;;;;110383:34;;;;;;;;110393:8;110402:1;110393:11;;;;;;;;:::i;:::-;;;;;;;;110383:34;;;;;;110406:7;110414:1;110406:10;;;;;;;;:::i;:::-;;;;;;;;110383:34;;;;::::0;110367:10:::1;110378:1;110367:13;;;;;;;:::i;:::-;;;;;:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;110199:3;;;;;:::i;:::-;;;;110161:268;;;;110449:8;:15;110441:5;:23;;;;110475:38;110491:7;110499:1;110491:10;;;;;;;;:::i;:::-;;;;;;;;110503:9;110475:15;:38::i;:::-;109723:798:::0;;;:::o;111347:748::-;111558:4;109105:7;;;;;;;;;;;109104:8;109096:54;;;;;;;;;;;;:::i;:::-;;;;;;;;;111605:4:::1;111583:27;;:10;:27;;;111575:81;;;;;;;;;;;;:::i;:::-;;;;;;;;;111669:27;111713:5;;111699:20;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111669:50;;111730:26;111773:5;;111759:20;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111730:49;;111795:9;111790:148;111814:5;;111810:1;:9;111790:148;;;111857:10;111868:1;111857:13;;;;;;;:::i;:::-;;;;;:20;;;;;;;;;;;;111841:10;111852:1;111841:13;;;;;;;;:::i;:::-;;;;;;;:36;;;;;;;;;::::0;::::1;111907:10;111918:1;111907:13;;;;;;;:::i;:::-;;;;;:19;;;;;;;;;;;;111892:9;111902:1;111892:12;;;;;;;;:::i;:::-;;;;;;;:34;;;;;;;;;::::0;::::1;111821:3;;;;;:::i;:::-;;;;111790:148;;;;111948:50;111962:10;111974:9;111985:6;111993:4;111948:13;:50::i;:::-;112018:5;112011:21;;;112041:4;112057:7;112048:6;:16;;;;:::i;:::-;112011:54;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;112083:4;112076:11;;;;111347:748:::0;;;;;;;;:::o;113782:1210::-;113934:15;113989:7;:14;113970:8;:15;:33;113962:95;;;;;;;;;;;;:::i;:::-;;;;;;;;;108679:2;114076:8;:15;:28;;114068:90;;;;;;;;;;;;:::i;:::-;;;;;;;;;114171:11;114185:9;114171:23;;114211:4;:24;;;114236:8;114245:1;114236:11;;;;;;;;:::i;:::-;;;;;;;;114249:7;114257:1;114249:10;;;;;;;;:::i;:::-;;;;;;;;114261:7;114269:1;114261:10;;;;;;;;:::i;:::-;;;;;;;;114273:6;114211:69;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;114207:778;;;;:::i;:::-;;;;;;;;;;:::i;:::-;;;;;;;;114890:12;114883:20;;;;;;;;;;;:::i;:::-;;;;;;;;114207:778;;;114937:36;;;;;;;;;;:::i;:::-;;;;;;;;114207:778;114328:6;114337:1;114328:10;;114323:454;114344:8;:15;114340:1;:19;114323:454;;;114385:25;114432:8;114441:1;114432:11;;;;;;;;:::i;:::-;;;;;;;;114385:59;;114463:21;114501:1;114487:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;114463:40;;114532:7;114540:1;114532:10;;;;;;;;:::i;:::-;;;;;;;;114522:4;114527:1;114522:7;;;;;;;;:::i;:::-;;;;;;;:20;;;;;;;;;;;114571:7;114583:1;114579;:5;;;;:::i;:::-;114571:14;;;;;;;;:::i;:::-;;;;;;;;114561:4;114566:1;114561:7;;;;;;;;:::i;:::-;;;;;;;:24;;;;;;;;;;;114655:21;114679:6;:20;;;114700:11;114713:4;114679:39;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;114655:63;;114751:7;114759:1;114751:10;;;;;;;;:::i;:::-;;;;;;;;114737:24;;114366:411;;;114361:3;;;;;:::i;:::-;;;;114323:454;;;;114804:11;114791:24;;114281:546;113951:1041;113782:1210;;;;;:::o;20590:103::-;19828:13;:11;:13::i;:::-;20655:30:::1;20682:1;20655:18;:30::i;:::-;20590:103::o:0;29505:122::-;19828:13;:11;:13::i;:::-;29576:10:::1;29568:28;;:51;29597:21;29568:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;29505:122::o:0;100172:36::-;;;:::o;108824:27::-;;;;;;;;;;;;;:::o;19942:87::-;19988:7;20015:6;;;;;;;;;;;20008:13;;19942:87;:::o;115330:473::-;115496:14;115523:25;115570:7;115523:55;;115589:21;115627:1;115613:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;115589:40;;115650:8;115640:4;115645:1;115640:7;;;;;;;;:::i;:::-;;;;;;;:18;;;;;;;;;;;115679:9;115669:4;115674:1;115669:7;;;;;;;;:::i;:::-;;;;;;;:19;;;;;;;;;;;115701:21;115725:6;:19;;;115745:10;115757:4;115725:37;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;115701:61;;115785:7;115793:1;115785:10;;;;;;;;:::i;:::-;;;;;;;;115773:22;;115512:291;;;115330:473;;;;;;:::o;109396:77::-;19828:13;:11;:13::i;:::-;109460:5:::1;109450:7;;:15;;;;;;;;;;;;;;;;;;109396:77::o:0;112350:1075::-;109105:7;;;;;;;;;;;109104:8;109096:54;;;;;;;;;;;;:::i;:::-;;;;;;;;;112538:17:::1;112565:7;112573:1;112565:10;;;;;;;;:::i;:::-;;;;;;;;112558:28;;;112595:4;112558:43;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;112538:63;;112612:30;112656:7;:14;112645:26;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;112612:59;;112689:6;112684:354;112722:1;112705:7;:14;:18;;;;:::i;:::-;112701:1;:22;112684:354;;;112745:89;112750:8;112759:1;112750:11;;;;;;;;:::i;:::-;;;;;;;;112763:7;112771:1;112763:10;;;;;;;;:::i;:::-;;;;;;;;112775:7;112787:1;112783;:5;;;;:::i;:::-;112775:14;;;;;;;;:::i;:::-;;;;;;;;112796:1;112791;:6;:42;;112810:16;112831:1;112827;:5;;;;:::i;:::-;112810:23;;;;;;;;:::i;:::-;;;;;;;;112791:42;;;112800:7;112791:42;112745:4;:89::i;:::-;112849:17;112876:7;112888:1;112884;:5;;;;:::i;:::-;112876:14;;;;;;;;:::i;:::-;;;;;;;;112869:32;;;112910:4;112869:47;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;112849:67;;112974:1;112969;:6;:56;;112989:7;112997:1;112989:10;;;;;;;;:::i;:::-;;;;;;;;112982:28;;;113019:4;112982:43;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;112969:56;;;112978:1;112969:56;112953:12;:73;;;;:::i;:::-;112931:16;112948:1;112931:19;;;;;;;;:::i;:::-;;;;;;;:95;;;::::0;::::1;112730:308;112725:3;;;;;:::i;:::-;;;;112684:354;;;;113050:113;113055:8;113081:1;113064:7;:14;:18;;;;:::i;:::-;113055:28;;;;;;;;:::i;:::-;;;;;;;;113085:7;113110:1;113093:7;:14;:18;;;;:::i;:::-;113085:27;;;;;;;;:::i;:::-;;;;;;;;113114:7;113122:1;113114:10;;;;;;;;:::i;:::-;;;;;;;;113126:16;113160:1;113143:7;:14;:18;;;;:::i;:::-;113126:36;;;;;;;;:::i;:::-;;;;;;;;113050:4;:113::i;:::-;113180:11;113176:242;;;113208:15;113233:7;113241:1;113233:10;;;;;;;;:::i;:::-;;;;;;;;113226:28;;;113263:4;113226:43;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;113208:61;;113305:12;113292:10;:25;113393:10;113326:78;;;;;;;;:::i;:::-;;;;;;;;;;;;;113284:122;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;113193:225;113176:242;112527:898;;112350:1075:::0;;;;:::o;20848:201::-;19828:13;:11;:13::i;:::-;20957:1:::1;20937:22;;:8;:22;;;;20929:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;21013:28;21032:8;21013:18;:28::i;:::-;20848:201:::0;:::o;29635:285::-;19828:13;:11;:13::i;:::-;29753:1:::1;29731:24;;:9;:24;;;;29723:75;;;;;;;;;;;;:::i;:::-;;;;;;;;;29811:12;29833:9;29811:32;;29854:5;:14;;;29869:10;29881:5;:15;;;29905:4;29881:30;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;29854:58;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;29712:208;29635:285:::0;:::o;20107:132::-;20182:12;:10;:12::i;:::-;20171:23;;:7;:5;:7::i;:::-;:23;;;20163:68;;;;;;;;;;;;:::i;:::-;;;;;;;;;20107:132::o;110711:530::-;109105:7;;;;;;;;;;;109104:8;109096:54;;;;;;;;;;;;:::i;:::-;;;;;;;;;110857:1:::1;110839:20;;:6;:20;;;;110831:54;;;;;;;;;;;;:::i;:::-;;;;;;;;;110914:1;110904:7;:11;110896:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;110962:23;110996:4;110962:39;;111012:19;:24;;;;;;;;;;;::::0;::::1;;111047:19;111081:4;:20;;;111116:15;111146:6;111167:7;111189:6;111210:12;111081:152;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;110820:421;;;110711:530:::0;;:::o;21209:191::-;21283:16;21302:6;;;;;;;;;;;21283:25;;21328:8;21319:6;;:17;;;;;;;;;;;;;;;;;;21383:8;21352:40;;21373:8;21352:40;;;;;;;;;;;;21272:128;21209:191;:::o;115811:1004::-;109105:7;;;;;;;;;;;109104:8;109096:54;;;;;;;;;;;;:::i;:::-;;;;;;;;;115980:8:::1;115973:24;;;115998:6;116006:7;115973:41;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;116079:24;116125:6;116106:40;;;116147:7;116156:36;116172:8;116182:9;116156:15;:36::i;:::-;116106:87;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;116079:114;;116242:1;116212:7;116237:1;116220:7;:14;:18;;;;:::i;:::-;116212:27;;;;;;;;:::i;:::-;;;;;;;;:31;116204:76;;;;;;;;;;;;:::i;:::-;;;;;;;;;116341:17;116368:9;116361:27;;;116397:4;116404:6;116361:50;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;116341:70;;116443:7;116468:1;116451:7;:14;:18;;;;:::i;:::-;116443:27;;;;;;;;:::i;:::-;;;;;;;;116430:9;:40;;116422:96;;;;;;;;;;;;:::i;:::-;;;;;;;;;116531:13;116565:3;116547:15;:21;;;;:::i;:::-;116531:37;;116598:6;116579:51;;;116645:7;116667;116692:1;116675:7;:14;:18;;;;:::i;:::-;116667:27;;;;;;;;:::i;:::-;;;;;;;;116709:36;116725:8;116735:9;116709:15;:36::i;:::-;116768:4;116788:8;116579:228;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;115962:853;;;115811:1004:::0;;;;:::o;18493:98::-;18546:7;18573:10;18566:17;;18493:98;:::o;116823:295::-;116947:16;109105:7;;;;;;;;;;;109104:8;109096:54;;;;;;;;;;;;:::i;:::-;;;;;;;;;116976:21:::1;117029:1;117015:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;117008:23;;117052:7;117042:4;117047:1;117042:7;;;;;;;;:::i;:::-;;;;;;;:17;;;;;;;;;::::0;::::1;117080:8;117070:4;117075:1;117070:7;;;;;;;;:::i;:::-;;;;;;;:18;;;;;;;;;::::0;::::1;117106:4;117099:11;;;116823:295:::0;;;;:::o;7:126:1:-;44:7;84:42;77:5;73:54;62:65;;7:126;;;:::o;139:60::-;167:3;188:5;181:12;;139:60;;;:::o;205:142::-;255:9;288:53;306:34;315:24;333:5;315:24;:::i;:::-;306:34;:::i;:::-;288:53;:::i;:::-;275:66;;205:142;;;:::o;353:126::-;403:9;436:37;467:5;436:37;:::i;:::-;423:50;;353:126;;;:::o;485:157::-;566:9;599:37;630:5;599:37;:::i;:::-;586:50;;485:157;;;:::o;648:193::-;766:68;828:5;766:68;:::i;:::-;761:3;754:81;648:193;;:::o;847:284::-;971:4;1009:2;998:9;994:18;986:26;;1022:102;1121:1;1110:9;1106:17;1097:6;1022:102;:::i;:::-;847:284;;;;:::o;1137:75::-;1170:6;1203:2;1197:9;1187:19;;1137:75;:::o;1218:117::-;1327:1;1324;1317:12;1341:117;1450:1;1447;1440:12;1464:96;1501:7;1530:24;1548:5;1530:24;:::i;:::-;1519:35;;1464:96;;;:::o;1566:122::-;1639:24;1657:5;1639:24;:::i;:::-;1632:5;1629:35;1619:63;;1678:1;1675;1668:12;1619:63;1566:122;:::o;1694:139::-;1740:5;1778:6;1765:20;1756:29;;1794:33;1821:5;1794:33;:::i;:::-;1694:139;;;;:::o;1839:117::-;1948:1;1945;1938:12;1962:117;2071:1;2068;2061:12;2085:117;2194:1;2191;2184:12;2225:568;2298:8;2308:6;2358:3;2351:4;2343:6;2339:17;2335:27;2325:122;;2366:79;;:::i;:::-;2325:122;2479:6;2466:20;2456:30;;2509:18;2501:6;2498:30;2495:117;;;2531:79;;:::i;:::-;2495:117;2645:4;2637:6;2633:17;2621:29;;2699:3;2691:4;2683:6;2679:17;2669:8;2665:32;2662:41;2659:128;;;2706:79;;:::i;:::-;2659:128;2225:568;;;;;:::o;2799:704::-;2894:6;2902;2910;2959:2;2947:9;2938:7;2934:23;2930:32;2927:119;;;2965:79;;:::i;:::-;2927:119;3085:1;3110:53;3155:7;3146:6;3135:9;3131:22;3110:53;:::i;:::-;3100:63;;3056:117;3240:2;3229:9;3225:18;3212:32;3271:18;3263:6;3260:30;3257:117;;;3293:79;;:::i;:::-;3257:117;3406:80;3478:7;3469:6;3458:9;3454:22;3406:80;:::i;:::-;3388:98;;;;3183:313;2799:704;;;;;:::o;3509:102::-;3550:6;3601:2;3597:7;3592:2;3585:5;3581:14;3577:28;3567:38;;3509:102;;;:::o;3617:180::-;3665:77;3662:1;3655:88;3762:4;3759:1;3752:15;3786:4;3783:1;3776:15;3803:281;3886:27;3908:4;3886:27;:::i;:::-;3878:6;3874:40;4016:6;4004:10;4001:22;3980:18;3968:10;3965:34;3962:62;3959:88;;;4027:18;;:::i;:::-;3959:88;4067:10;4063:2;4056:22;3846:238;3803:281;;:::o;4090:129::-;4124:6;4151:20;;:::i;:::-;4141:30;;4180:33;4208:4;4200:6;4180:33;:::i;:::-;4090:129;;;:::o;4225:311::-;4302:4;4392:18;4384:6;4381:30;4378:56;;;4414:18;;:::i;:::-;4378:56;4464:4;4456:6;4452:17;4444:25;;4524:4;4518;4514:15;4506:23;;4225:311;;;:::o;4559:710::-;4655:5;4680:81;4696:64;4753:6;4696:64;:::i;:::-;4680:81;:::i;:::-;4671:90;;4781:5;4810:6;4803:5;4796:21;4844:4;4837:5;4833:16;4826:23;;4897:4;4889:6;4885:17;4877:6;4873:30;4926:3;4918:6;4915:15;4912:122;;;4945:79;;:::i;:::-;4912:122;5060:6;5043:220;5077:6;5072:3;5069:15;5043:220;;;5152:3;5181:37;5214:3;5202:10;5181:37;:::i;:::-;5176:3;5169:50;5248:4;5243:3;5239:14;5232:21;;5119:144;5103:4;5098:3;5094:14;5087:21;;5043:220;;;5047:21;4661:608;;4559:710;;;;;:::o;5292:370::-;5363:5;5412:3;5405:4;5397:6;5393:17;5389:27;5379:122;;5420:79;;:::i;:::-;5379:122;5537:6;5524:20;5562:94;5652:3;5644:6;5637:4;5629:6;5625:17;5562:94;:::i;:::-;5553:103;;5369:293;5292:370;;;;:::o;5668:77::-;5705:7;5734:5;5723:16;;5668:77;;;:::o;5751:122::-;5824:24;5842:5;5824:24;:::i;:::-;5817:5;5814:35;5804:63;;5863:1;5860;5853:12;5804:63;5751:122;:::o;5879:139::-;5925:5;5963:6;5950:20;5941:29;;5979:33;6006:5;5979:33;:::i;:::-;5879:139;;;;:::o;6024:1039::-;6151:6;6159;6167;6216:2;6204:9;6195:7;6191:23;6187:32;6184:119;;;6222:79;;:::i;:::-;6184:119;6370:1;6359:9;6355:17;6342:31;6400:18;6392:6;6389:30;6386:117;;;6422:79;;:::i;:::-;6386:117;6527:78;6597:7;6588:6;6577:9;6573:22;6527:78;:::i;:::-;6517:88;;6313:302;6682:2;6671:9;6667:18;6654:32;6713:18;6705:6;6702:30;6699:117;;;6735:79;;:::i;:::-;6699:117;6840:78;6910:7;6901:6;6890:9;6886:22;6840:78;:::i;:::-;6830:88;;6625:303;6967:2;6993:53;7038:7;7029:6;7018:9;7014:22;6993:53;:::i;:::-;6983:63;;6938:118;6024:1039;;;;;:::o;7082:552::-;7139:8;7149:6;7199:3;7192:4;7184:6;7180:17;7176:27;7166:122;;7207:79;;:::i;:::-;7166:122;7320:6;7307:20;7297:30;;7350:18;7342:6;7339:30;7336:117;;;7372:79;;:::i;:::-;7336:117;7486:4;7478:6;7474:17;7462:29;;7540:3;7532:4;7524:6;7520:17;7510:8;7506:32;7503:41;7500:128;;;7547:79;;:::i;:::-;7500:128;7082:552;;;;;:::o;7640:1109::-;7746:6;7754;7762;7770;7778;7786;7835:3;7823:9;7814:7;7810:23;7806:33;7803:120;;;7842:79;;:::i;:::-;7803:120;7962:1;7987:53;8032:7;8023:6;8012:9;8008:22;7987:53;:::i;:::-;7977:63;;7933:117;8089:2;8115:53;8160:7;8151:6;8140:9;8136:22;8115:53;:::i;:::-;8105:63;;8060:118;8217:2;8243:53;8288:7;8279:6;8268:9;8264:22;8243:53;:::i;:::-;8233:63;;8188:118;8345:2;8371:53;8416:7;8407:6;8396:9;8392:22;8371:53;:::i;:::-;8361:63;;8316:118;8501:3;8490:9;8486:19;8473:33;8533:18;8525:6;8522:30;8519:117;;;8555:79;;:::i;:::-;8519:117;8668:64;8724:7;8715:6;8704:9;8700:22;8668:64;:::i;:::-;8650:82;;;;8444:298;7640:1109;;;;;;;;:::o;8755:90::-;8789:7;8832:5;8825:13;8818:21;8807:32;;8755:90;;;:::o;8851:109::-;8932:21;8947:5;8932:21;:::i;:::-;8927:3;8920:34;8851:109;;:::o;8966:210::-;9053:4;9091:2;9080:9;9076:18;9068:26;;9104:65;9166:1;9155:9;9151:17;9142:6;9104:65;:::i;:::-;8966:210;;;;:::o;9182:118::-;9269:24;9287:5;9269:24;:::i;:::-;9264:3;9257:37;9182:118;;:::o;9306:222::-;9399:4;9437:2;9426:9;9422:18;9414:26;;9450:71;9518:1;9507:9;9503:17;9494:6;9450:71;:::i;:::-;9306:222;;;;:::o;9534:140::-;9598:9;9631:37;9662:5;9631:37;:::i;:::-;9618:50;;9534:140;;;:::o;9680:159::-;9781:51;9826:5;9781:51;:::i;:::-;9776:3;9769:64;9680:159;;:::o;9845:250::-;9952:4;9990:2;9979:9;9975:18;9967:26;;10003:85;10085:1;10074:9;10070:17;10061:6;10003:85;:::i;:::-;9845:250;;;;:::o;10101:118::-;10188:24;10206:5;10188:24;:::i;:::-;10183:3;10176:37;10101:118;;:::o;10225:222::-;10318:4;10356:2;10345:9;10341:18;10333:26;;10369:71;10437:1;10426:9;10422:17;10413:6;10369:71;:::i;:::-;10225:222;;;;:::o;10453:765::-;10539:6;10547;10555;10563;10612:3;10600:9;10591:7;10587:23;10583:33;10580:120;;;10619:79;;:::i;:::-;10580:120;10739:1;10764:53;10809:7;10800:6;10789:9;10785:22;10764:53;:::i;:::-;10754:63;;10710:117;10866:2;10892:53;10937:7;10928:6;10917:9;10913:22;10892:53;:::i;:::-;10882:63;;10837:118;10994:2;11020:53;11065:7;11056:6;11045:9;11041:22;11020:53;:::i;:::-;11010:63;;10965:118;11122:2;11148:53;11193:7;11184:6;11173:9;11169:22;11148:53;:::i;:::-;11138:63;;11093:118;10453:765;;;;;;;:::o;11224:116::-;11294:21;11309:5;11294:21;:::i;:::-;11287:5;11284:32;11274:60;;11330:1;11327;11320:12;11274:60;11224:116;:::o;11346:133::-;11389:5;11427:6;11414:20;11405:29;;11443:30;11467:5;11443:30;:::i;:::-;11346:133;;;;:::o;11485:1179::-;11618:6;11626;11634;11642;11691:3;11679:9;11670:7;11666:23;11662:33;11659:120;;;11698:79;;:::i;:::-;11659:120;11846:1;11835:9;11831:17;11818:31;11876:18;11868:6;11865:30;11862:117;;;11898:79;;:::i;:::-;11862:117;12003:78;12073:7;12064:6;12053:9;12049:22;12003:78;:::i;:::-;11993:88;;11789:302;12158:2;12147:9;12143:18;12130:32;12189:18;12181:6;12178:30;12175:117;;;12211:79;;:::i;:::-;12175:117;12316:78;12386:7;12377:6;12366:9;12362:22;12316:78;:::i;:::-;12306:88;;12101:303;12443:2;12469:53;12514:7;12505:6;12494:9;12490:22;12469:53;:::i;:::-;12459:63;;12414:118;12571:2;12597:50;12639:7;12630:6;12619:9;12615:22;12597:50;:::i;:::-;12587:60;;12542:115;11485:1179;;;;;;;:::o;12670:329::-;12729:6;12778:2;12766:9;12757:7;12753:23;12749:32;12746:119;;;12784:79;;:::i;:::-;12746:119;12904:1;12929:53;12974:7;12965:6;12954:9;12950:22;12929:53;:::i;:::-;12919:63;;12875:117;12670:329;;;;:::o;13005:169::-;13089:11;13123:6;13118:3;13111:19;13163:4;13158:3;13154:14;13139:29;;13005:169;;;;:::o;13180:225::-;13320:34;13316:1;13308:6;13304:14;13297:58;13389:8;13384:2;13376:6;13372:15;13365:33;13180:225;:::o;13411:366::-;13553:3;13574:67;13638:2;13633:3;13574:67;:::i;:::-;13567:74;;13650:93;13739:3;13650:93;:::i;:::-;13768:2;13763:3;13759:12;13752:19;;13411:366;;;:::o;13783:419::-;13949:4;13987:2;13976:9;13972:18;13964:26;;14036:9;14030:4;14026:20;14022:1;14011:9;14007:17;14000:47;14064:131;14190:4;14064:131;:::i;:::-;14056:139;;13783:419;;;:::o;14208:180::-;14256:77;14253:1;14246:88;14353:4;14350:1;14343:15;14377:4;14374:1;14367:15;14394:442;14543:4;14581:2;14570:9;14566:18;14558:26;;14594:71;14662:1;14651:9;14647:17;14638:6;14594:71;:::i;:::-;14675:72;14743:2;14732:9;14728:18;14719:6;14675:72;:::i;:::-;14757;14825:2;14814:9;14810:18;14801:6;14757:72;:::i;:::-;14394:442;;;;;;:::o;14842:180::-;14890:77;14887:1;14880:88;14987:4;14984:1;14977:15;15011:4;15008:1;15001:15;15028:86;15063:7;15103:4;15096:5;15092:16;15081:27;;15028:86;;;:::o;15120:167::-;15157:3;15180:22;15196:5;15180:22;:::i;:::-;15171:31;;15224:4;15217:5;15214:15;15211:41;;;15232:18;;:::i;:::-;15211:41;15279:1;15272:5;15268:13;15261:20;;15120:167;;;:::o;15293:220::-;15433:34;15429:1;15421:6;15417:14;15410:58;15502:3;15497:2;15489:6;15485:15;15478:28;15293:220;:::o;15519:366::-;15661:3;15682:67;15746:2;15741:3;15682:67;:::i;:::-;15675:74;;15758:93;15847:3;15758:93;:::i;:::-;15876:2;15871:3;15867:12;15860:19;;15519:366;;;:::o;15891:419::-;16057:4;16095:2;16084:9;16080:18;16072:26;;16144:9;16138:4;16134:20;16130:1;16119:9;16115:17;16108:47;16172:131;16298:4;16172:131;:::i;:::-;16164:139;;15891:419;;;:::o;16316:236::-;16456:34;16452:1;16444:6;16440:14;16433:58;16525:19;16520:2;16512:6;16508:15;16501:44;16316:236;:::o;16558:366::-;16700:3;16721:67;16785:2;16780:3;16721:67;:::i;:::-;16714:74;;16797:93;16886:3;16797:93;:::i;:::-;16915:2;16910:3;16906:12;16899:19;;16558:366;;;:::o;16930:419::-;17096:4;17134:2;17123:9;17119:18;17111:26;;17183:9;17177:4;17173:20;17169:1;17158:9;17154:17;17147:47;17211:131;17337:4;17211:131;:::i;:::-;17203:139;;16930:419;;;:::o;17355:181::-;17495:33;17491:1;17483:6;17479:14;17472:57;17355:181;:::o;17542:366::-;17684:3;17705:67;17769:2;17764:3;17705:67;:::i;:::-;17698:74;;17781:93;17870:3;17781:93;:::i;:::-;17899:2;17894:3;17890:12;17883:19;;17542:366;;;:::o;17914:419::-;18080:4;18118:2;18107:9;18103:18;18095:26;;18167:9;18161:4;18157:20;18153:1;18142:9;18138:17;18131:47;18195:131;18321:4;18195:131;:::i;:::-;18187:139;;17914:419;;;:::o;18339:236::-;18479:34;18475:1;18467:6;18463:14;18456:58;18548:19;18543:2;18535:6;18531:15;18524:44;18339:236;:::o;18581:366::-;18723:3;18744:67;18808:2;18803:3;18744:67;:::i;:::-;18737:74;;18820:93;18909:3;18820:93;:::i;:::-;18938:2;18933:3;18929:12;18922:19;;18581:366;;;:::o;18953:419::-;19119:4;19157:2;19146:9;19142:18;19134:26;;19206:9;19200:4;19196:20;19192:1;19181:9;19177:17;19170:47;19234:131;19360:4;19234:131;:::i;:::-;19226:139;;18953:419;;;:::o;19378:172::-;19518:24;19514:1;19506:6;19502:14;19495:48;19378:172;:::o;19556:366::-;19698:3;19719:67;19783:2;19778:3;19719:67;:::i;:::-;19712:74;;19795:93;19884:3;19795:93;:::i;:::-;19913:2;19908:3;19904:12;19897:19;;19556:366;;;:::o;19928:419::-;20094:4;20132:2;20121:9;20117:18;20109:26;;20181:9;20175:4;20171:20;20167:1;20156:9;20152:17;20145:47;20209:131;20335:4;20209:131;:::i;:::-;20201:139;;19928:419;;;:::o;20353:171::-;20493:23;20489:1;20481:6;20477:14;20470:47;20353:171;:::o;20530:366::-;20672:3;20693:67;20757:2;20752:3;20693:67;:::i;:::-;20686:74;;20769:93;20858:3;20769:93;:::i;:::-;20887:2;20882:3;20878:12;20871:19;;20530:366;;;:::o;20902:419::-;21068:4;21106:2;21095:9;21091:18;21083:26;;21155:9;21149:4;21145:20;21141:1;21130:9;21126:17;21119:47;21183:131;21309:4;21183:131;:::i;:::-;21175:139;;20902:419;;;:::o;21327:233::-;21366:3;21389:24;21407:5;21389:24;:::i;:::-;21380:33;;21435:66;21428:5;21425:77;21422:103;;;21505:18;;:::i;:::-;21422:103;21552:1;21545:5;21541:13;21534:20;;21327:233;;;:::o;21566:228::-;21706:34;21702:1;21694:6;21690:14;21683:58;21775:11;21770:2;21762:6;21758:15;21751:36;21566:228;:::o;21800:366::-;21942:3;21963:67;22027:2;22022:3;21963:67;:::i;:::-;21956:74;;22039:93;22128:3;22039:93;:::i;:::-;22157:2;22152:3;22148:12;22141:19;;21800:366;;;:::o;22172:419::-;22338:4;22376:2;22365:9;22361:18;22353:26;;22425:9;22419:4;22415:20;22411:1;22400:9;22396:17;22389:47;22453:131;22579:4;22453:131;:::i;:::-;22445:139;;22172:419;;;:::o;22597:305::-;22637:3;22656:20;22674:1;22656:20;:::i;:::-;22651:25;;22690:20;22708:1;22690:20;:::i;:::-;22685:25;;22844:1;22776:66;22772:74;22769:1;22766:81;22763:107;;;22850:18;;:::i;:::-;22763:107;22894:1;22891;22887:9;22880:16;;22597:305;;;;:::o;22908:332::-;23029:4;23067:2;23056:9;23052:18;23044:26;;23080:71;23148:1;23137:9;23133:17;23124:6;23080:71;:::i;:::-;23161:72;23229:2;23218:9;23214:18;23205:6;23161:72;:::i;:::-;22908:332;;;;;:::o;23246:137::-;23300:5;23331:6;23325:13;23316:22;;23347:30;23371:5;23347:30;:::i;:::-;23246:137;;;;:::o;23389:345::-;23456:6;23505:2;23493:9;23484:7;23480:23;23476:32;23473:119;;;23511:79;;:::i;:::-;23473:119;23631:1;23656:61;23709:7;23700:6;23689:9;23685:22;23656:61;:::i;:::-;23646:71;;23602:125;23389:345;;;;:::o;23740:553::-;23917:4;23955:3;23944:9;23940:19;23932:27;;23969:71;24037:1;24026:9;24022:17;24013:6;23969:71;:::i;:::-;24050:72;24118:2;24107:9;24103:18;24094:6;24050:72;:::i;:::-;24132;24200:2;24189:9;24185:18;24176:6;24132:72;:::i;:::-;24214;24282:2;24271:9;24267:18;24258:6;24214:72;:::i;:::-;23740:553;;;;;;;:::o;24299:143::-;24356:5;24387:6;24381:13;24372:22;;24403:33;24430:5;24403:33;:::i;:::-;24299:143;;;;:::o;24448:351::-;24518:6;24567:2;24555:9;24546:7;24542:23;24538:32;24535:119;;;24573:79;;:::i;:::-;24535:119;24693:1;24718:64;24774:7;24765:6;24754:9;24750:22;24718:64;:::i;:::-;24708:74;;24664:128;24448:351;;;;:::o;24805:106::-;24849:8;24898:5;24893:3;24889:15;24868:36;;24805:106;;;:::o;24917:183::-;24952:3;24990:1;24972:16;24969:23;24966:128;;;25028:1;25025;25022;25007:23;25050:34;25081:1;25075:8;25050:34;:::i;:::-;25043:41;;24966:128;24917:183;:::o;25106:711::-;25145:3;25183:4;25165:16;25162:26;25159:39;;;25191:5;;25159:39;25220:20;;:::i;:::-;25295:1;25277:16;25273:24;25270:1;25264:4;25249:49;25328:4;25322:11;25427:16;25420:4;25412:6;25408:17;25405:39;25372:18;25364:6;25361:30;25345:113;25342:146;;;25473:5;;;;25342:146;25519:6;25513:4;25509:17;25555:3;25549:10;25582:18;25574:6;25571:30;25568:43;;;25604:5;;;;;;25568:43;25652:6;25645:4;25640:3;25636:14;25632:27;25711:1;25693:16;25689:24;25683:4;25679:35;25674:3;25671:44;25668:57;;;25718:5;;;;;;;25668:57;25735;25783:6;25777:4;25773:17;25765:6;25761:30;25755:4;25735:57;:::i;:::-;25808:3;25801:10;;25149:668;;;;;25106:711;;:::o;25823:99::-;25875:6;25909:5;25903:12;25893:22;;25823:99;;;:::o;25928:307::-;25996:1;26006:113;26020:6;26017:1;26014:13;26006:113;;;26105:1;26100:3;26096:11;26090:18;26086:1;26081:3;26077:11;26070:39;26042:2;26039:1;26035:10;26030:15;;26006:113;;;26137:6;26134:1;26131:13;26128:101;;;26217:1;26208:6;26203:3;26199:16;26192:27;26128:101;25977:258;25928:307;;;:::o;26241:364::-;26329:3;26357:39;26390:5;26357:39;:::i;:::-;26412:71;26476:6;26471:3;26412:71;:::i;:::-;26405:78;;26492:52;26537:6;26532:3;26525:4;26518:5;26514:16;26492:52;:::i;:::-;26569:29;26591:6;26569:29;:::i;:::-;26564:3;26560:39;26553:46;;26333:272;26241:364;;;;:::o;26611:313::-;26724:4;26762:2;26751:9;26747:18;26739:26;;26811:9;26805:4;26801:20;26797:1;26786:9;26782:17;26775:47;26839:78;26912:4;26903:6;26839:78;:::i;:::-;26831:86;;26611:313;;;;:::o;26930:176::-;27070:28;27066:1;27058:6;27054:14;27047:52;26930:176;:::o;27112:366::-;27254:3;27275:67;27339:2;27334:3;27275:67;:::i;:::-;27268:74;;27351:93;27440:3;27351:93;:::i;:::-;27469:2;27464:3;27460:12;27453:19;;27112:366;;;:::o;27484:419::-;27650:4;27688:2;27677:9;27673:18;27665:26;;27737:9;27731:4;27727:20;27723:1;27712:9;27708:17;27701:47;27765:131;27891:4;27765:131;:::i;:::-;27757:139;;27484:419;;;:::o;27909:114::-;27976:6;28010:5;28004:12;27994:22;;27909:114;;;:::o;28029:184::-;28128:11;28162:6;28157:3;28150:19;28202:4;28197:3;28193:14;28178:29;;28029:184;;;;:::o;28219:132::-;28286:4;28309:3;28301:11;;28339:4;28334:3;28330:14;28322:22;;28219:132;;;:::o;28357:108::-;28434:24;28452:5;28434:24;:::i;:::-;28429:3;28422:37;28357:108;;:::o;28471:179::-;28540:10;28561:46;28603:3;28595:6;28561:46;:::i;:::-;28639:4;28634:3;28630:14;28616:28;;28471:179;;;;:::o;28656:113::-;28726:4;28758;28753:3;28749:14;28741:22;;28656:113;;;:::o;28805:732::-;28924:3;28953:54;29001:5;28953:54;:::i;:::-;29023:86;29102:6;29097:3;29023:86;:::i;:::-;29016:93;;29133:56;29183:5;29133:56;:::i;:::-;29212:7;29243:1;29228:284;29253:6;29250:1;29247:13;29228:284;;;29329:6;29323:13;29356:63;29415:3;29400:13;29356:63;:::i;:::-;29349:70;;29442:60;29495:6;29442:60;:::i;:::-;29432:70;;29288:224;29275:1;29272;29268:9;29263:14;;29228:284;;;29232:14;29528:3;29521:10;;28929:608;;;28805:732;;;;:::o;29543:483::-;29714:4;29752:2;29741:9;29737:18;29729:26;;29765:71;29833:1;29822:9;29818:17;29809:6;29765:71;:::i;:::-;29883:9;29877:4;29873:20;29868:2;29857:9;29853:18;29846:48;29911:108;30014:4;30005:6;29911:108;:::i;:::-;29903:116;;29543:483;;;;;:::o;30032:311::-;30109:4;30199:18;30191:6;30188:30;30185:56;;;30221:18;;:::i;:::-;30185:56;30271:4;30263:6;30259:17;30251:25;;30331:4;30325;30321:15;30313:23;;30032:311;;;:::o;30366:732::-;30473:5;30498:81;30514:64;30571:6;30514:64;:::i;:::-;30498:81;:::i;:::-;30489:90;;30599:5;30628:6;30621:5;30614:21;30662:4;30655:5;30651:16;30644:23;;30715:4;30707:6;30703:17;30695:6;30691:30;30744:3;30736:6;30733:15;30730:122;;;30763:79;;:::i;:::-;30730:122;30878:6;30861:231;30895:6;30890:3;30887:15;30861:231;;;30970:3;30999:48;31043:3;31031:10;30999:48;:::i;:::-;30994:3;30987:61;31077:4;31072:3;31068:14;31061:21;;30937:155;30921:4;30916:3;30912:14;30905:21;;30861:231;;;30865:21;30479:619;;30366:732;;;;;:::o;31121:385::-;31203:5;31252:3;31245:4;31237:6;31233:17;31229:27;31219:122;;31260:79;;:::i;:::-;31219:122;31370:6;31364:13;31395:105;31496:3;31488:6;31481:4;31473:6;31469:17;31395:105;:::i;:::-;31386:114;;31209:297;31121:385;;;;:::o;31512:554::-;31607:6;31656:2;31644:9;31635:7;31631:23;31627:32;31624:119;;;31662:79;;:::i;:::-;31624:119;31803:1;31792:9;31788:17;31782:24;31833:18;31825:6;31822:30;31819:117;;;31855:79;;:::i;:::-;31819:117;31960:89;32041:7;32032:6;32021:9;32017:22;31960:89;:::i;:::-;31950:99;;31753:306;31512:554;;;;:::o;32072:191::-;32112:4;32132:20;32150:1;32132:20;:::i;:::-;32127:25;;32166:20;32184:1;32166:20;:::i;:::-;32161:25;;32205:1;32202;32199:8;32196:34;;;32210:18;;:::i;:::-;32196:34;32255:1;32252;32248:9;32240:17;;32072:191;;;;:::o;32269:148::-;32371:11;32408:3;32393:18;;32269:148;;;;:::o;32423:233::-;32563:34;32559:1;32551:6;32547:14;32540:58;32632:16;32627:2;32619:6;32615:15;32608:41;32423:233;:::o;32662:402::-;32822:3;32843:85;32925:2;32920:3;32843:85;:::i;:::-;32836:92;;32937:93;33026:3;32937:93;:::i;:::-;33055:2;33050:3;33046:12;33039:19;;32662:402;;;:::o;33070:79::-;33109:7;33138:5;33127:16;;33070:79;;;:::o;33155:157::-;33260:45;33280:24;33298:5;33280:24;:::i;:::-;33260:45;:::i;:::-;33255:3;33248:58;33155:157;;:::o;33318:522::-;33531:3;33553:148;33697:3;33553:148;:::i;:::-;33546:155;;33711:75;33782:3;33773:6;33711:75;:::i;:::-;33811:2;33806:3;33802:12;33795:19;;33831:3;33824:10;;33318:522;;;;:::o;33846:225::-;33986:34;33982:1;33974:6;33970:14;33963:58;34055:8;34050:2;34042:6;34038:15;34031:33;33846:225;:::o;34077:366::-;34219:3;34240:67;34304:2;34299:3;34240:67;:::i;:::-;34233:74;;34316:93;34405:3;34316:93;:::i;:::-;34434:2;34429:3;34425:12;34418:19;;34077:366;;;:::o;34449:419::-;34615:4;34653:2;34642:9;34638:18;34630:26;;34702:9;34696:4;34692:20;34688:1;34677:9;34673:17;34666:47;34730:131;34856:4;34730:131;:::i;:::-;34722:139;;34449:419;;;:::o;34874:182::-;35014:34;35010:1;35002:6;34998:14;34991:58;34874:182;:::o;35062:366::-;35204:3;35225:67;35289:2;35284:3;35225:67;:::i;:::-;35218:74;;35301:93;35390:3;35301:93;:::i;:::-;35419:2;35414:3;35410:12;35403:19;;35062:366;;;:::o;35434:419::-;35600:4;35638:2;35627:9;35623:18;35615:26;;35687:9;35681:4;35677:20;35673:1;35662:9;35658:17;35651:47;35715:131;35841:4;35715:131;:::i;:::-;35707:139;;35434:419;;;:::o;35859:171::-;35999:23;35995:1;35987:6;35983:14;35976:47;35859:171;:::o;36036:366::-;36178:3;36199:67;36263:2;36258:3;36199:67;:::i;:::-;36192:74;;36275:93;36364:3;36275:93;:::i;:::-;36393:2;36388:3;36384:12;36377:19;;36036:366;;;:::o;36408:419::-;36574:4;36612:2;36601:9;36597:18;36589:26;;36661:9;36655:4;36651:20;36647:1;36636:9;36632:17;36625:47;36689:131;36815:4;36689:131;:::i;:::-;36681:139;;36408:419;;;:::o;36833:98::-;36884:6;36918:5;36912:12;36902:22;;36833:98;;;:::o;36937:168::-;37020:11;37054:6;37049:3;37042:19;37094:4;37089:3;37085:14;37070:29;;36937:168;;;;:::o;37111:360::-;37197:3;37225:38;37257:5;37225:38;:::i;:::-;37279:70;37342:6;37337:3;37279:70;:::i;:::-;37272:77;;37358:52;37403:6;37398:3;37391:4;37384:5;37380:16;37358:52;:::i;:::-;37435:29;37457:6;37435:29;:::i;:::-;37430:3;37426:39;37419:46;;37201:270;37111:360;;;;:::o;37477:89::-;37513:7;37553:6;37546:5;37542:18;37531:29;;37477:89;;;:::o;37572:115::-;37657:23;37674:5;37657:23;:::i;:::-;37652:3;37645:36;37572:115;;:::o;37693:747::-;37914:4;37952:3;37941:9;37937:19;37929:27;;37966:71;38034:1;38023:9;38019:17;38010:6;37966:71;:::i;:::-;38047:72;38115:2;38104:9;38100:18;38091:6;38047:72;:::i;:::-;38129;38197:2;38186:9;38182:18;38173:6;38129:72;:::i;:::-;38248:9;38242:4;38238:20;38233:2;38222:9;38218:18;38211:48;38276:76;38347:4;38338:6;38276:76;:::i;:::-;38268:84;;38362:71;38428:3;38417:9;38413:19;38404:6;38362:71;:::i;:::-;37693:747;;;;;;;;:::o;38446:182::-;38586:34;38582:1;38574:6;38570:14;38563:58;38446:182;:::o;38634:366::-;38776:3;38797:67;38861:2;38856:3;38797:67;:::i;:::-;38790:74;;38873:93;38962:3;38873:93;:::i;:::-;38991:2;38986:3;38982:12;38975:19;;38634:366;;;:::o;39006:419::-;39172:4;39210:2;39199:9;39195:18;39187:26;;39259:9;39253:4;39249:20;39245:1;39234:9;39230:17;39223:47;39287:131;39413:4;39287:131;:::i;:::-;39279:139;;39006:419;;;:::o;39431:332::-;39552:4;39590:2;39579:9;39575:18;39567:26;;39603:71;39671:1;39660:9;39656:17;39647:6;39603:71;:::i;:::-;39684:72;39752:2;39741:9;39737:18;39728:6;39684:72;:::i;:::-;39431:332;;;;;:::o;39769:230::-;39909:34;39905:1;39897:6;39893:14;39886:58;39978:13;39973:2;39965:6;39961:15;39954:38;39769:230;:::o;40005:366::-;40147:3;40168:67;40232:2;40227:3;40168:67;:::i;:::-;40161:74;;40244:93;40333:3;40244:93;:::i;:::-;40362:2;40357:3;40353:12;40346:19;;40005:366;;;:::o;40377:419::-;40543:4;40581:2;40570:9;40566:18;40558:26;;40630:9;40624:4;40620:20;40616:1;40605:9;40601:17;40594:47;40658:131;40784:4;40658:131;:::i;:::-;40650:139;;40377:419;;;:::o;40802:815::-;41057:4;41095:3;41084:9;41080:19;41072:27;;41109:71;41177:1;41166:9;41162:17;41153:6;41109:71;:::i;:::-;41190:72;41258:2;41247:9;41243:18;41234:6;41190:72;:::i;:::-;41309:9;41303:4;41299:20;41294:2;41283:9;41279:18;41272:48;41337:108;41440:4;41431:6;41337:108;:::i;:::-;41329:116;;41455:72;41523:2;41512:9;41508:18;41499:6;41455:72;:::i;:::-;41537:73;41605:3;41594:9;41590:19;41581:6;41537:73;:::i;:::-;40802:815;;;;;;;;:::o
Swarm Source
ipfs://f2766e2d0b2efdaf20d11bd7d71ab3efe3be4e0a3e7a2bcdbcaf26cd180bd0ad
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Validator ID :
0 FTM
Amount Staked
0
Amount Delegated
0
Staking Total
0
Staking Start Epoch
0
Staking Start Time
0
Proof of Importance
0
Origination Score
0
Validation Score
0
Active
0
Online
0
Downtime
0 s
Address | Amount | claimed Rewards | Created On Epoch | Created On |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.