Contract
0xa3f4d7ab5b248047e757e9d860a0944989bc6cac
2
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] | |||
---|---|---|---|---|---|---|---|---|---|
0x747226f040e22bf2540923610f8e7d39411c31451e977d2bdfcbff4a6f5cdfc0 | 0x60c06040 | 57913282 | 4 days 9 hrs ago | 0x2c0356a346471a6502ebec941752a7fe43536422 | IN | Create: FlashloanUniswapV2 | 0 FTM | 0.456733206926 |
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0x747226f040e22bf2540923610f8e7d39411c31451e977d2bdfcbff4a6f5cdfc0 | 57913282 | 4 days 9 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; for (uint i = 0; 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(amount, path); _amountOut = amounts[1]; amount = _amountOut; } } 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":"_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
60c06040526000601a60006101000a81548160ff0219169083151502179055503480156200002c57600080fd5b5060405162003639380380620036398339818101604052810190620000529190620002fa565b808073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250508073ffffffffffffffffffffffffffffffffffffffff1663026b1d5f6040518163ffffffff1660e01b8152600401602060405180830381865afa158015620000d3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000f991906200035d565b73ffffffffffffffffffffffffffffffffffffffff1660a08173ffffffffffffffffffffffffffffffffffffffff1681525050506200014d62000141620001b060201b60201c565b620001b860201b60201c565b33601a60016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506001601a60006101000a81548160ff021916908315150217905550506200038f565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002ae8262000281565b9050919050565b6000620002c282620002a1565b9050919050565b620002d481620002b5565b8114620002e057600080fd5b50565b600081519050620002f481620002c9565b92915050565b6000602082840312156200031357620003126200027c565b5b60006200032384828501620002e3565b91505092915050565b6200033781620002a1565b81146200034357600080fd5b50565b60008151905062000357816200032c565b92915050565b6000602082840312156200037657620003756200027c565b5b6000620003868482850162000346565b91505092915050565b60805160a05161326f620003ca6000396000818161089f01528181610b2701528181610ed6015261180f01526000610331015261326f6000f3fe6080604052600436106100e85760003560e01c80637362377b1161008a578063c4bc5da511610059578063c4bc5da51461029d578063da56b6ff146102b4578063f2fde38b146102dd578063f4f3b20014610306576100e8565b80637362377b146102125780637535d2461461021c57806375f12b21146102475780638da5cb5b14610272576100e8565b80631a61ff2f116100c65780631a61ff2f146101585780631b11d0ff146101815780636dd53117146101be578063715018a6146101fb576100e8565b80630542975c146100ed57806312253a6c1461011857806313edab811461012f575b600080fd5b3480156100f957600080fd5b5061010261032f565b60405161010f9190611ec0565b60405180910390f35b34801561012457600080fd5b5061012d610353565b005b34801561013b57600080fd5b5061015660048036038101906101519190611f92565b610378565b005b34801561016457600080fd5b5061017f600480360381019061017a9190612177565b6104ab565b005b34801561018d57600080fd5b506101a860048036038101906101a39190612258565b61084b565b6040516101b5919061230d565b60405180910390f35b3480156101ca57600080fd5b506101e560048036038101906101e09190612177565b610bc3565b6040516101f29190612337565b60405180910390f35b34801561020757600080fd5b50610210610e6f565b005b61021a610e83565b005b34801561022857600080fd5b50610231610ed4565b60405161023e9190612373565b60405180910390f35b34801561025357600080fd5b5061025c610ef8565b604051610269919061230d565b60405180910390f35b34801561027e57600080fd5b50610287610f0b565b604051610294919061239d565b60405180910390f35b3480156102a957600080fd5b506102b2610f34565b005b3480156102c057600080fd5b506102db60048036038101906102d691906123e4565b610f59565b005b3480156102e957600080fd5b5061030460048036038101906102ff9190612483565b611474565b005b34801561031257600080fd5b5061032d60048036038101906103289190612483565b6114f8565b005b7f000000000000000000000000000000000000000000000000000000000000000081565b61035b611671565b6001601a60006101000a81548160ff021916908315150217905550565b610380611671565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156103f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103e790612533565b60405180910390fd5b600083905060005b838390508160ff1610156104a4578173ffffffffffffffffffffffffffffffffffffffff166323b872dd303387878660ff1681811061043a57610439612553565b5b905060200201356040518463ffffffff1660e01b815260040161045f93929190612582565b600060405180830381600087803b15801561047957600080fd5b505af115801561048d573d6000803e3d6000fd5b50505050808061049c906125f5565b9150506103f8565b5050505050565b601a60009054906101000a900460ff16156104fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104f290612691565b60405180910390fd5b815183511461053f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161053690612723565b60405180910390fd5b60008111610582576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105799061278f565b60405180910390fd5b600c835111156105c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105be90612821565b60405180910390fd5b60005b835181101561081857600073ffffffffffffffffffffffffffffffffffffffff168482815181106105fe576105fd612553565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16141561065d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106549061288d565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1683828151811061068857610687612553565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614156106e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106de906128f9565b60405180910390fd5b604051806040016040528085838151811061070557610704612553565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16815260200184838151811061073b5761073a612553565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff16815250600282600c81106107705761076f612553565b5b6002020160008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050808061081090612919565b9150506105ca565b5082516001819055506108468260008151811061083857610837612553565b5b6020026020010151826116ef565b505050565b6000601a60009054906101000a900460ff161561089d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161089490612691565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461092b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610922906129d4565b60405180910390fd5b600060015467ffffffffffffffff81111561094957610948612003565b5b6040519080825280602002602001820160405280156109775781602001602082028036833780820191505090505b509050600060015467ffffffffffffffff81111561099857610997612003565b5b6040519080825280602002602001820160405280156109c65781602001602082028036833780820191505090505b50905060005b600154811015610afb57600281600c81106109ea576109e9612553565b5b6002020160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838281518110610a2557610a24612553565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050600281600c8110610a7357610a72612553565b5b6002020160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828281518110610aae57610aad612553565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508080610af390612919565b9150506109cc565b50610b0982828a6001610f59565b8873ffffffffffffffffffffffffffffffffffffffff1663095ea7b37f0000000000000000000000000000000000000000000000000000000000000000898b610b5291906129f4565b6040518363ffffffff1660e01b8152600401610b6f929190612a4a565b6020604051808303816000875af1158015610b8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bb29190612a88565b506001925050509695505050505050565b60008251845114610c09576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0090612723565b60405180910390fd5b600c84511115610c4e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4590612821565b60405180910390fd5b600082905060005b8551811015610e66576000868281518110610c7457610c73612553565b5b602002602001015190506000600267ffffffffffffffff811115610c9b57610c9a612003565b5b604051908082528060200260200182016040528015610cc95781602001602082028036833780820191505090505b509050868381518110610cdf57610cde612553565b5b602002602001015181600081518110610cfb57610cfa612553565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505086600184610d4391906129f4565b81518110610d5457610d53612553565b5b602002602001015181600181518110610d7057610d6f612553565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505060008273ffffffffffffffffffffffffffffffffffffffff1663d06ca61f86846040518363ffffffff1660e01b8152600401610de7929190612b73565b600060405180830381865afa158015610e04573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610e2d9190612c7b565b905080600181518110610e4357610e42612553565b5b602002602001015195508594505050508080610e5e90612919565b915050610c56565b50509392505050565b610e77611671565b610e8160006118a7565b565b610e8b611671565b3373ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610ed1573d6000803e3d6000fd5b50565b7f000000000000000000000000000000000000000000000000000000000000000081565b601a60009054906101000a900460ff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f3c611671565b6000601a60006101000a81548160ff021916908315150217905550565b601a60009054906101000a900460ff1615610fa9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa090612691565b60405180910390fd5b600083600081518110610fbf57610fbe612553565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610fff919061239d565b602060405180830381865afa15801561101c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110409190612cc4565b90506000845167ffffffffffffffff81111561105f5761105e612003565b5b60405190808252806020026020018201604052801561108d5781602001602082028036833780820191505090505b50905060005b600186516110a19190612cf1565b8110156112c9576111438782815181106110be576110bd612553565b5b60200260200101518783815181106110d9576110d8612553565b5b6020026020010151886001856110ef91906129f4565b81518110611100576110ff612553565b5b60200260200101516000851461113c578560018661111e9190612cf1565b8151811061112f5761112e612553565b5b602002602001015161113e565b885b61196b565b60008660018361115391906129f4565b8151811061116457611163612553565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016111a4919061239d565b602060405180830381865afa1580156111c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e59190612cc4565b9050600082146112885786828151811061120257611201612553565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401611242919061239d565b602060405180830381865afa15801561125f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112839190612cc4565b61128b565b60005b816112969190612cf1565b8383815181106112a9576112a8612553565b5b6020026020010181815250505080806112c190612919565b915050611093565b5061136686600187516112dc9190612cf1565b815181106112ed576112ec612553565b5b602002602001015186600188516113049190612cf1565b8151811061131557611314612553565b5b60200260200101518760008151811061133157611330612553565b5b60200260200101518460028a516113489190612cf1565b8151811061135957611358612553565b5b602002602001015161196b565b821561146c5760008560008151811061138257611381612553565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016113c2919061239d565b602060405180830381865afa1580156113df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114039190612cc4565b9050828111816040516020016114199190612dc3565b60405160208183030381529060405290611469576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114609190612e60565b60405180910390fd5b50505b505050505050565b61147c611671565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156114ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114e390612ef4565b60405180910390fd5b6114f5816118a7565b50565b611500611671565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611570576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156790612533565b60405180910390fd5b60008190508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb338373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016115cb919061239d565b602060405180830381865afa1580156115e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160c9190612cc4565b6040518363ffffffff1660e01b8152600401611629929190612a4a565b6020604051808303816000875af1158015611648573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166c9190612a88565b505050565b611679611cf1565b73ffffffffffffffffffffffffffffffffffffffff16611697610f0b565b73ffffffffffffffffffffffffffffffffffffffff16146116ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e490612f60565b60405180910390fd5b565b601a60009054906101000a900460ff161561173f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173690612691565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a690612fcc565b60405180910390fd5b600081116117f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117e99061278f565b60405180910390fd5b6000309050600060405180602001604052806000815250905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166342b0b77c84878786866040518663ffffffff1660e01b815260040161186e95949392919061305e565b600060405180830381600087803b15801561188857600080fd5b505af115801561189c573d6000803e3d6000fd5b505050505050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b601a60009054906101000a900460ff16156119bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119b290612691565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663095ea7b385836040518363ffffffff1660e01b81526004016119f6929190612a4a565b6020604051808303816000875af1158015611a15573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a399190612a88565b5060008473ffffffffffffffffffffffffffffffffffffffff1663d06ca61f83611a638787611cf9565b6040518363ffffffff1660e01b8152600401611a80929190612b73565b600060405180830381865afa158015611a9d573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611ac69190612c7b565b905060008160018351611ad99190612cf1565b81518110611aea57611ae9612553565b5b602002602001015111611b32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b2990613104565b60405180910390fd5b60008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30886040518363ffffffff1660e01b8152600401611b6f929190613124565b602060405180830381865afa158015611b8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb09190612cc4565b90508160018351611bc19190612cf1565b81518110611bd257611bd1612553565b5b6020026020010151811015611c1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c13906131bf565b60405180910390fd5b600061012c42611c2c91906129f4565b90508673ffffffffffffffffffffffffffffffffffffffff166338ed1739858560018751611c5a9190612cf1565b81518110611c6b57611c6a612553565b5b6020026020010151611c7d8a8a611cf9565b30866040518663ffffffff1660e01b8152600401611c9f9594939291906131df565b6000604051808303816000875af1158015611cbe573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611ce79190612c7b565b5050505050505050565b600033905090565b6060601a60009054906101000a900460ff1615611d4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4290612691565b60405180910390fd5b6060600267ffffffffffffffff811115611d6857611d67612003565b5b604051908082528060200260200182016040528015611d965781602001602082028036833780820191505090505b5090508381600081518110611dae57611dad612553565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508281600181518110611dfd57611dfc612553565b5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508091505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000611e86611e81611e7c84611e41565b611e61565b611e41565b9050919050565b6000611e9882611e6b565b9050919050565b6000611eaa82611e8d565b9050919050565b611eba81611e9f565b82525050565b6000602082019050611ed56000830184611eb1565b92915050565b6000604051905090565b600080fd5b600080fd5b6000611efa82611e41565b9050919050565b611f0a81611eef565b8114611f1557600080fd5b50565b600081359050611f2781611f01565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112611f5257611f51611f2d565b5b8235905067ffffffffffffffff811115611f6f57611f6e611f32565b5b602083019150836020820283011115611f8b57611f8a611f37565b5b9250929050565b600080600060408486031215611fab57611faa611ee5565b5b6000611fb986828701611f18565b935050602084013567ffffffffffffffff811115611fda57611fd9611eea565b5b611fe686828701611f3c565b92509250509250925092565b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61203b82611ff2565b810181811067ffffffffffffffff8211171561205a57612059612003565b5b80604052505050565b600061206d611edb565b90506120798282612032565b919050565b600067ffffffffffffffff82111561209957612098612003565b5b602082029050602081019050919050565b60006120bd6120b88461207e565b612063565b905080838252602082019050602084028301858111156120e0576120df611f37565b5b835b8181101561210957806120f58882611f18565b8452602084019350506020810190506120e2565b5050509392505050565b600082601f83011261212857612127611f2d565b5b81356121388482602086016120aa565b91505092915050565b6000819050919050565b61215481612141565b811461215f57600080fd5b50565b6000813590506121718161214b565b92915050565b6000806000606084860312156121905761218f611ee5565b5b600084013567ffffffffffffffff8111156121ae576121ad611eea565b5b6121ba86828701612113565b935050602084013567ffffffffffffffff8111156121db576121da611eea565b5b6121e786828701612113565b92505060406121f886828701612162565b9150509250925092565b60008083601f84011261221857612217611f2d565b5b8235905067ffffffffffffffff81111561223557612234611f32565b5b60208301915083600182028301111561225157612250611f37565b5b9250929050565b60008060008060008060a0878903121561227557612274611ee5565b5b600061228389828a01611f18565b965050602061229489828a01612162565b95505060406122a589828a01612162565b94505060606122b689828a01611f18565b935050608087013567ffffffffffffffff8111156122d7576122d6611eea565b5b6122e389828a01612202565b92509250509295509295509295565b60008115159050919050565b612307816122f2565b82525050565b600060208201905061232260008301846122fe565b92915050565b61233181612141565b82525050565b600060208201905061234c6000830184612328565b92915050565b600061235d82611e8d565b9050919050565b61236d81612352565b82525050565b60006020820190506123886000830184612364565b92915050565b61239781611eef565b82525050565b60006020820190506123b2600083018461238e565b92915050565b6123c1816122f2565b81146123cc57600080fd5b50565b6000813590506123de816123b8565b92915050565b600080600080608085870312156123fe576123fd611ee5565b5b600085013567ffffffffffffffff81111561241c5761241b611eea565b5b61242887828801612113565b945050602085013567ffffffffffffffff81111561244957612448611eea565b5b61245587828801612113565b935050604061246687828801612162565b9250506060612477878288016123cf565b91505092959194509250565b60006020828403121561249957612498611ee5565b5b60006124a784828501611f18565b91505092915050565b600082825260208201905092915050565b7f576974686472617761626c653a20636f6e74726163742061646472657373206960008201527f73207a65726f0000000000000000000000000000000000000000000000000000602082015250565b600061251d6026836124b0565b9150612528826124c1565b604082019050919050565b6000602082019050818103600083015261254c81612510565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000606082019050612597600083018661238e565b6125a4602083018561238e565b6125b16040830184612328565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600060ff82169050919050565b6000612600826125e8565b915060ff821415612614576126136125b9565b5b600182019050919050565b7f5468697320636f6e74726163742069732063757272656e746c7920706175736560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b600061267b6021836124b0565b91506126868261261f565b604082019050919050565b600060208201905081810360008301526126aa8161266e565b9050919050565b7f4c656e67746873206f6620726f757465727320616e6420746f6b656e7320617260008201527f7261797320646f206e6f74206d61746368000000000000000000000000000000602082015250565b600061270d6031836124b0565b9150612718826126b1565b604082019050919050565b6000602082019050818103600083015261273c81612700565b9050919050565b7f416d6f756e742073686f756c642062652067726561746572207468616e203000600082015250565b6000612779601f836124b0565b915061278482612743565b602082019050919050565b600060208201905081810360008301526127a88161276c565b9050919050565b7f4e756d626572206f662073746570732063616e6e6f742065786365656420746860008201527f65206d6178696d756d20616c6c6f776564000000000000000000000000000000602082015250565b600061280b6031836124b0565b9150612816826127af565b604082019050919050565b6000602082019050818103600083015261283a816127fe565b9050919050565b7f496e76616c696420726f75746572206164647265737300000000000000000000600082015250565b60006128776016836124b0565b915061288282612841565b602082019050919050565b600060208201905081810360008301526128a68161286a565b9050919050565b7f496e76616c696420746f6b656e20616464726573730000000000000000000000600082015250565b60006128e36015836124b0565b91506128ee826128ad565b602082019050919050565b60006020820190508181036000830152612912816128d6565b9050919050565b600061292482612141565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415612957576129566125b9565b5b600182019050919050565b7f657865637574654f7065726174696f6e3a2063616c6c6572206973206e6f742060008201527f4161766520506f6f6c0000000000000000000000000000000000000000000000602082015250565b60006129be6029836124b0565b91506129c982612962565b604082019050919050565b600060208201905081810360008301526129ed816129b1565b9050919050565b60006129ff82612141565b9150612a0a83612141565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115612a3f57612a3e6125b9565b5b828201905092915050565b6000604082019050612a5f600083018561238e565b612a6c6020830184612328565b9392505050565b600081519050612a82816123b8565b92915050565b600060208284031215612a9e57612a9d611ee5565b5b6000612aac84828501612a73565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b612aea81611eef565b82525050565b6000612afc8383612ae1565b60208301905092915050565b6000602082019050919050565b6000612b2082612ab5565b612b2a8185612ac0565b9350612b3583612ad1565b8060005b83811015612b66578151612b4d8882612af0565b9750612b5883612b08565b925050600181019050612b39565b5085935050505092915050565b6000604082019050612b886000830185612328565b8181036020830152612b9a8184612b15565b90509392505050565b600067ffffffffffffffff821115612bbe57612bbd612003565b5b602082029050602081019050919050565b600081519050612bde8161214b565b92915050565b6000612bf7612bf284612ba3565b612063565b90508083825260208201905060208402830185811115612c1a57612c19611f37565b5b835b81811015612c435780612c2f8882612bcf565b845260208401935050602081019050612c1c565b5050509392505050565b600082601f830112612c6257612c61611f2d565b5b8151612c72848260208601612be4565b91505092915050565b600060208284031215612c9157612c90611ee5565b5b600082015167ffffffffffffffff811115612caf57612cae611eea565b5b612cbb84828501612c4d565b91505092915050565b600060208284031215612cda57612cd9611ee5565b5b6000612ce884828501612bcf565b91505092915050565b6000612cfc82612141565b9150612d0783612141565b925082821015612d1a57612d196125b9565b5b828203905092915050565b600081905092915050565b7f54726164652052657665727465642c204e6f2050726f666974204d6164652e2060008201527f456e642062616c616e6365203d20000000000000000000000000000000000000602082015250565b6000612d8c602e83612d25565b9150612d9782612d30565b602e82019050919050565b6000819050919050565b612dbd612db882612141565b612da2565b82525050565b6000612dce82612d7f565b9150612dda8284612dac565b60208201915081905092915050565b600081519050919050565b60005b83811015612e12578082015181840152602081019050612df7565b83811115612e21576000848401525b50505050565b6000612e3282612de9565b612e3c81856124b0565b9350612e4c818560208601612df4565b612e5581611ff2565b840191505092915050565b60006020820190508181036000830152612e7a8184612e27565b905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000612ede6026836124b0565b9150612ee982612e82565b604082019050919050565b60006020820190508181036000830152612f0d81612ed1565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612f4a6020836124b0565b9150612f5582612f14565b602082019050919050565b60006020820190508181036000830152612f7981612f3d565b9050919050565b7f496e76616c696420617373657420616464726573730000000000000000000000600082015250565b6000612fb66015836124b0565b9150612fc182612f80565b602082019050919050565b60006020820190508181036000830152612fe581612fa9565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061301382612fec565b61301d8185612ff7565b935061302d818560208601612df4565b61303681611ff2565b840191505092915050565b600061ffff82169050919050565b61305881613041565b82525050565b600060a082019050613073600083018861238e565b613080602083018761238e565b61308d6040830186612328565b818103606083015261309f8185613008565b90506130ae608083018461304f565b9695505050505050565b7f4e6f206c697175696469747920666f72207468697320746f6b656e2070616972600082015250565b60006130ee6020836124b0565b91506130f9826130b8565b602082019050919050565b6000602082019050818103600083015261311d816130e1565b9050919050565b6000604082019050613139600083018561238e565b613146602083018461238e565b9392505050565b7f556e69737761705632526f757465723a20494e53554646494349454e545f4f5560008201527f545055545f414d4f554e54000000000000000000000000000000000000000000602082015250565b60006131a9602b836124b0565b91506131b48261314d565b604082019050919050565b600060208201905081810360008301526131d88161319c565b9050919050565b600060a0820190506131f46000830188612328565b6132016020830187612328565b81810360408301526132138186612b15565b9050613222606083018561238e565b61322f6080830184612328565b969550505050505056fea26469706673582212204a044101ecd5f2b8767a4e5e8a0850e716be701ee4a70732045e32d312bbbfe464736f6c634300080a0033000000000000000000000000a97684ead0e402dc232d5a977953df7ecbab3cdb
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:7609:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100100:67;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;109245:74;;;;;;;;;;;;;:::i;:::-;;29928:380;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;109723:798;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;111347:748;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;113782:882;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;20590:103;;;;;;;;;;;;;:::i;:::-;;29505:122;;;:::i;:::-;;100172:36;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;108824:27;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;19942:87;;;;;;;;;;;;;:::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:882::-;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;;114212:6;114207:450;114228:8;:15;114224:1;:19;114207:450;;;114265:25;114312:8;114321:1;114312:11;;;;;;;;:::i;:::-;;;;;;;;114265:59;;114339:21;114377:1;114363:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;114339:40;;114404:7;114412:1;114404:10;;;;;;;;:::i;:::-;;;;;;;;114394:4;114399:1;114394:7;;;;;;;;:::i;:::-;;;;;;;:20;;;;;;;;;;;114439:7;114451:1;114447;:5;;;;:::i;:::-;114439:14;;;;;;;;:::i;:::-;;;;;;;;114429:4;114434:1;114429:7;;;;;;;;:::i;:::-;;;;;;;:24;;;;;;;;;;;114515:21;114539:6;:20;;;114560:6;114568:4;114539:34;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;114515:58;;114601:7;114609:1;114601:10;;;;;;;;:::i;:::-;;;;;;;;114588:23;;114635:10;114626:19;;114250:407;;;114245:3;;;;;:::i;:::-;;;;114207:450;;;;113951:713;113782:882;;;;;:::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;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;114672:1004::-;109105:7;;;;;;;;;;;109104:8;109096:54;;;;;;;;;;;;:::i;:::-;;;;;;;;;114841:8:::1;114834:24;;;114859:6;114867:7;114834:41;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;114940:24;114986:6;114967:40;;;115008:7;115017:36;115033:8;115043:9;115017:15;:36::i;:::-;114967:87;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;114940:114;;115103:1;115073:7;115098:1;115081:7;:14;:18;;;;:::i;:::-;115073:27;;;;;;;;:::i;:::-;;;;;;;;:31;115065:76;;;;;;;;;;;;:::i;:::-;;;;;;;;;115202:17;115229:9;115222:27;;;115258:4;115265:6;115222:50;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;115202:70;;115304:7;115329:1;115312:7;:14;:18;;;;:::i;:::-;115304:27;;;;;;;;:::i;:::-;;;;;;;;115291:9;:40;;115283:96;;;;;;;;;;;;:::i;:::-;;;;;;;;;115392:13;115426:3;115408:15;:21;;;;:::i;:::-;115392:37;;115459:6;115440:51;;;115506:7;115528;115553:1;115536:7;:14;:18;;;;:::i;:::-;115528:27;;;;;;;;:::i;:::-;;;;;;;;115570:36;115586:8;115596:9;115570:15;:36::i;:::-;115629:4;115649:8;115440:228;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;114823:853;;;114672:1004:::0;;;;:::o;18493:98::-;18546:7;18573:10;18566:17;;18493:98;:::o;115684:295::-;115808:16;109105:7;;;;;;;;;;;109104:8;109096:54;;;;;;;;;;;;:::i;:::-;;;;;;;;;115837:21:::1;115890:1;115876:16;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;115869:23;;115913:7;115903:4;115908:1;115903:7;;;;;;;;:::i;:::-;;;;;;;:17;;;;;;;;;::::0;::::1;115941:8;115931:4;115936:1;115931:7;;;;;;;;:::i;:::-;;;;;;;:18;;;;;;;;;::::0;::::1;115967:4;115960:11;;;115684: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:116::-;10523:21;10538:5;10523:21;:::i;:::-;10516:5;10513:32;10503:60;;10559:1;10556;10549:12;10503:60;10453:116;:::o;10575:133::-;10618:5;10656:6;10643:20;10634:29;;10672:30;10696:5;10672:30;:::i;:::-;10575:133;;;;:::o;10714:1179::-;10847:6;10855;10863;10871;10920:3;10908:9;10899:7;10895:23;10891:33;10888:120;;;10927:79;;:::i;:::-;10888:120;11075:1;11064:9;11060:17;11047:31;11105:18;11097:6;11094:30;11091:117;;;11127:79;;:::i;:::-;11091:117;11232:78;11302:7;11293:6;11282:9;11278:22;11232:78;:::i;:::-;11222:88;;11018:302;11387:2;11376:9;11372:18;11359:32;11418:18;11410:6;11407:30;11404:117;;;11440:79;;:::i;:::-;11404:117;11545:78;11615:7;11606:6;11595:9;11591:22;11545:78;:::i;:::-;11535:88;;11330:303;11672:2;11698:53;11743:7;11734:6;11723:9;11719:22;11698:53;:::i;:::-;11688:63;;11643:118;11800:2;11826:50;11868:7;11859:6;11848:9;11844:22;11826:50;:::i;:::-;11816:60;;11771:115;10714:1179;;;;;;;:::o;11899:329::-;11958:6;12007:2;11995:9;11986:7;11982:23;11978:32;11975:119;;;12013:79;;:::i;:::-;11975:119;12133:1;12158:53;12203:7;12194:6;12183:9;12179:22;12158:53;:::i;:::-;12148:63;;12104:117;11899:329;;;;:::o;12234:169::-;12318:11;12352:6;12347:3;12340:19;12392:4;12387:3;12383:14;12368:29;;12234:169;;;;:::o;12409:225::-;12549:34;12545:1;12537:6;12533:14;12526:58;12618:8;12613:2;12605:6;12601:15;12594:33;12409:225;:::o;12640:366::-;12782:3;12803:67;12867:2;12862:3;12803:67;:::i;:::-;12796:74;;12879:93;12968:3;12879:93;:::i;:::-;12997:2;12992:3;12988:12;12981:19;;12640:366;;;:::o;13012:419::-;13178:4;13216:2;13205:9;13201:18;13193:26;;13265:9;13259:4;13255:20;13251:1;13240:9;13236:17;13229:47;13293:131;13419:4;13293:131;:::i;:::-;13285:139;;13012:419;;;:::o;13437:180::-;13485:77;13482:1;13475:88;13582:4;13579:1;13572:15;13606:4;13603:1;13596:15;13623:442;13772:4;13810:2;13799:9;13795:18;13787:26;;13823:71;13891:1;13880:9;13876:17;13867:6;13823:71;:::i;:::-;13904:72;13972:2;13961:9;13957:18;13948:6;13904:72;:::i;:::-;13986;14054:2;14043:9;14039:18;14030:6;13986:72;:::i;:::-;13623:442;;;;;;:::o;14071:180::-;14119:77;14116:1;14109:88;14216:4;14213:1;14206:15;14240:4;14237:1;14230:15;14257:86;14292:7;14332:4;14325:5;14321:16;14310:27;;14257:86;;;:::o;14349:167::-;14386:3;14409:22;14425:5;14409:22;:::i;:::-;14400:31;;14453:4;14446:5;14443:15;14440:41;;;14461:18;;:::i;:::-;14440:41;14508:1;14501:5;14497:13;14490:20;;14349:167;;;:::o;14522:220::-;14662:34;14658:1;14650:6;14646:14;14639:58;14731:3;14726:2;14718:6;14714:15;14707:28;14522:220;:::o;14748:366::-;14890:3;14911:67;14975:2;14970:3;14911:67;:::i;:::-;14904:74;;14987:93;15076:3;14987:93;:::i;:::-;15105:2;15100:3;15096:12;15089:19;;14748:366;;;:::o;15120:419::-;15286:4;15324:2;15313:9;15309:18;15301:26;;15373:9;15367:4;15363:20;15359:1;15348:9;15344:17;15337:47;15401:131;15527:4;15401:131;:::i;:::-;15393:139;;15120:419;;;:::o;15545:236::-;15685:34;15681:1;15673:6;15669:14;15662:58;15754:19;15749:2;15741:6;15737:15;15730:44;15545:236;:::o;15787:366::-;15929:3;15950:67;16014:2;16009:3;15950:67;:::i;:::-;15943:74;;16026:93;16115:3;16026:93;:::i;:::-;16144:2;16139:3;16135:12;16128:19;;15787:366;;;:::o;16159:419::-;16325:4;16363:2;16352:9;16348:18;16340:26;;16412:9;16406:4;16402:20;16398:1;16387:9;16383:17;16376:47;16440:131;16566:4;16440:131;:::i;:::-;16432:139;;16159:419;;;:::o;16584:181::-;16724:33;16720:1;16712:6;16708:14;16701:57;16584:181;:::o;16771:366::-;16913:3;16934:67;16998:2;16993:3;16934:67;:::i;:::-;16927:74;;17010:93;17099:3;17010:93;:::i;:::-;17128:2;17123:3;17119:12;17112:19;;16771:366;;;:::o;17143:419::-;17309:4;17347:2;17336:9;17332:18;17324:26;;17396:9;17390:4;17386:20;17382:1;17371:9;17367:17;17360:47;17424:131;17550:4;17424:131;:::i;:::-;17416:139;;17143:419;;;:::o;17568:236::-;17708:34;17704:1;17696:6;17692:14;17685:58;17777:19;17772:2;17764:6;17760:15;17753:44;17568:236;:::o;17810:366::-;17952:3;17973:67;18037:2;18032:3;17973:67;:::i;:::-;17966:74;;18049:93;18138:3;18049:93;:::i;:::-;18167:2;18162:3;18158:12;18151:19;;17810:366;;;:::o;18182:419::-;18348:4;18386:2;18375:9;18371:18;18363:26;;18435:9;18429:4;18425:20;18421:1;18410:9;18406:17;18399:47;18463:131;18589:4;18463:131;:::i;:::-;18455:139;;18182:419;;;:::o;18607:172::-;18747:24;18743:1;18735:6;18731:14;18724:48;18607:172;:::o;18785:366::-;18927:3;18948:67;19012:2;19007:3;18948:67;:::i;:::-;18941:74;;19024:93;19113:3;19024:93;:::i;:::-;19142:2;19137:3;19133:12;19126:19;;18785:366;;;:::o;19157:419::-;19323:4;19361:2;19350:9;19346:18;19338:26;;19410:9;19404:4;19400:20;19396:1;19385:9;19381:17;19374:47;19438:131;19564:4;19438:131;:::i;:::-;19430:139;;19157:419;;;:::o;19582:171::-;19722:23;19718:1;19710:6;19706:14;19699:47;19582:171;:::o;19759:366::-;19901:3;19922:67;19986:2;19981:3;19922:67;:::i;:::-;19915:74;;19998:93;20087:3;19998:93;:::i;:::-;20116:2;20111:3;20107:12;20100:19;;19759:366;;;:::o;20131:419::-;20297:4;20335:2;20324:9;20320:18;20312:26;;20384:9;20378:4;20374:20;20370:1;20359:9;20355:17;20348:47;20412:131;20538:4;20412:131;:::i;:::-;20404:139;;20131:419;;;:::o;20556:233::-;20595:3;20618:24;20636:5;20618:24;:::i;:::-;20609:33;;20664:66;20657:5;20654:77;20651:103;;;20734:18;;:::i;:::-;20651:103;20781:1;20774:5;20770:13;20763:20;;20556:233;;;:::o;20795:228::-;20935:34;20931:1;20923:6;20919:14;20912:58;21004:11;20999:2;20991:6;20987:15;20980:36;20795:228;:::o;21029:366::-;21171:3;21192:67;21256:2;21251:3;21192:67;:::i;:::-;21185:74;;21268:93;21357:3;21268:93;:::i;:::-;21386:2;21381:3;21377:12;21370:19;;21029:366;;;:::o;21401:419::-;21567:4;21605:2;21594:9;21590:18;21582:26;;21654:9;21648:4;21644:20;21640:1;21629:9;21625:17;21618:47;21682:131;21808:4;21682:131;:::i;:::-;21674:139;;21401:419;;;:::o;21826:305::-;21866:3;21885:20;21903:1;21885:20;:::i;:::-;21880:25;;21919:20;21937:1;21919:20;:::i;:::-;21914:25;;22073:1;22005:66;22001:74;21998:1;21995:81;21992:107;;;22079:18;;:::i;:::-;21992:107;22123:1;22120;22116:9;22109:16;;21826:305;;;;:::o;22137:332::-;22258:4;22296:2;22285:9;22281:18;22273:26;;22309:71;22377:1;22366:9;22362:17;22353:6;22309:71;:::i;:::-;22390:72;22458:2;22447:9;22443:18;22434:6;22390:72;:::i;:::-;22137:332;;;;;:::o;22475:137::-;22529:5;22560:6;22554:13;22545:22;;22576:30;22600:5;22576:30;:::i;:::-;22475:137;;;;:::o;22618:345::-;22685:6;22734:2;22722:9;22713:7;22709:23;22705:32;22702:119;;;22740:79;;:::i;:::-;22702:119;22860:1;22885:61;22938:7;22929:6;22918:9;22914:22;22885:61;:::i;:::-;22875:71;;22831:125;22618:345;;;;:::o;22969:114::-;23036:6;23070:5;23064:12;23054:22;;22969:114;;;:::o;23089:184::-;23188:11;23222:6;23217:3;23210:19;23262:4;23257:3;23253:14;23238:29;;23089:184;;;;:::o;23279:132::-;23346:4;23369:3;23361:11;;23399:4;23394:3;23390:14;23382:22;;23279:132;;;:::o;23417:108::-;23494:24;23512:5;23494:24;:::i;:::-;23489:3;23482:37;23417:108;;:::o;23531:179::-;23600:10;23621:46;23663:3;23655:6;23621:46;:::i;:::-;23699:4;23694:3;23690:14;23676:28;;23531:179;;;;:::o;23716:113::-;23786:4;23818;23813:3;23809:14;23801:22;;23716:113;;;:::o;23865:732::-;23984:3;24013:54;24061:5;24013:54;:::i;:::-;24083:86;24162:6;24157:3;24083:86;:::i;:::-;24076:93;;24193:56;24243:5;24193:56;:::i;:::-;24272:7;24303:1;24288:284;24313:6;24310:1;24307:13;24288:284;;;24389:6;24383:13;24416:63;24475:3;24460:13;24416:63;:::i;:::-;24409:70;;24502:60;24555:6;24502:60;:::i;:::-;24492:70;;24348:224;24335:1;24332;24328:9;24323:14;;24288:284;;;24292:14;24588:3;24581:10;;23989:608;;;23865:732;;;;:::o;24603:483::-;24774:4;24812:2;24801:9;24797:18;24789:26;;24825:71;24893:1;24882:9;24878:17;24869:6;24825:71;:::i;:::-;24943:9;24937:4;24933:20;24928:2;24917:9;24913:18;24906:48;24971:108;25074:4;25065:6;24971:108;:::i;:::-;24963:116;;24603:483;;;;;:::o;25092:311::-;25169:4;25259:18;25251:6;25248:30;25245:56;;;25281:18;;:::i;:::-;25245:56;25331:4;25323:6;25319:17;25311:25;;25391:4;25385;25381:15;25373:23;;25092:311;;;:::o;25409:143::-;25466:5;25497:6;25491:13;25482:22;;25513:33;25540:5;25513:33;:::i;:::-;25409:143;;;;:::o;25575:732::-;25682:5;25707:81;25723:64;25780:6;25723:64;:::i;:::-;25707:81;:::i;:::-;25698:90;;25808:5;25837:6;25830:5;25823:21;25871:4;25864:5;25860:16;25853:23;;25924:4;25916:6;25912:17;25904:6;25900:30;25953:3;25945:6;25942:15;25939:122;;;25972:79;;:::i;:::-;25939:122;26087:6;26070:231;26104:6;26099:3;26096:15;26070:231;;;26179:3;26208:48;26252:3;26240:10;26208:48;:::i;:::-;26203:3;26196:61;26286:4;26281:3;26277:14;26270:21;;26146:155;26130:4;26125:3;26121:14;26114:21;;26070:231;;;26074:21;25688:619;;25575:732;;;;;:::o;26330:385::-;26412:5;26461:3;26454:4;26446:6;26442:17;26438:27;26428:122;;26469:79;;:::i;:::-;26428:122;26579:6;26573:13;26604:105;26705:3;26697:6;26690:4;26682:6;26678:17;26604:105;:::i;:::-;26595:114;;26418:297;26330:385;;;;:::o;26721:554::-;26816:6;26865:2;26853:9;26844:7;26840:23;26836:32;26833:119;;;26871:79;;:::i;:::-;26833:119;27012:1;27001:9;26997:17;26991:24;27042:18;27034:6;27031:30;27028:117;;;27064:79;;:::i;:::-;27028:117;27169:89;27250:7;27241:6;27230:9;27226:22;27169:89;:::i;:::-;27159:99;;26962:306;26721:554;;;;:::o;27281:351::-;27351:6;27400:2;27388:9;27379:7;27375:23;27371:32;27368:119;;;27406:79;;:::i;:::-;27368:119;27526:1;27551:64;27607:7;27598:6;27587:9;27583:22;27551:64;:::i;:::-;27541:74;;27497:128;27281:351;;;;:::o;27638:191::-;27678:4;27698:20;27716:1;27698:20;:::i;:::-;27693:25;;27732:20;27750:1;27732:20;:::i;:::-;27727:25;;27771:1;27768;27765:8;27762:34;;;27776:18;;:::i;:::-;27762:34;27821:1;27818;27814:9;27806:17;;27638:191;;;;:::o;27835:148::-;27937:11;27974:3;27959:18;;27835:148;;;;:::o;27989:233::-;28129:34;28125:1;28117:6;28113:14;28106:58;28198:16;28193:2;28185:6;28181:15;28174:41;27989:233;:::o;28228:402::-;28388:3;28409:85;28491:2;28486:3;28409:85;:::i;:::-;28402:92;;28503:93;28592:3;28503:93;:::i;:::-;28621:2;28616:3;28612:12;28605:19;;28228:402;;;:::o;28636:79::-;28675:7;28704:5;28693:16;;28636:79;;;:::o;28721:157::-;28826:45;28846:24;28864:5;28846:24;:::i;:::-;28826:45;:::i;:::-;28821:3;28814:58;28721:157;;:::o;28884:522::-;29097:3;29119:148;29263:3;29119:148;:::i;:::-;29112:155;;29277:75;29348:3;29339:6;29277:75;:::i;:::-;29377:2;29372:3;29368:12;29361:19;;29397:3;29390:10;;28884:522;;;;:::o;29412:99::-;29464:6;29498:5;29492:12;29482:22;;29412:99;;;:::o;29517:307::-;29585:1;29595:113;29609:6;29606:1;29603:13;29595:113;;;29694:1;29689:3;29685:11;29679:18;29675:1;29670:3;29666:11;29659:39;29631:2;29628:1;29624:10;29619:15;;29595:113;;;29726:6;29723:1;29720:13;29717:101;;;29806:1;29797:6;29792:3;29788:16;29781:27;29717:101;29566:258;29517:307;;;:::o;29830:364::-;29918:3;29946:39;29979:5;29946:39;:::i;:::-;30001:71;30065:6;30060:3;30001:71;:::i;:::-;29994:78;;30081:52;30126:6;30121:3;30114:4;30107:5;30103:16;30081:52;:::i;:::-;30158:29;30180:6;30158:29;:::i;:::-;30153:3;30149:39;30142:46;;29922:272;29830:364;;;;:::o;30200:313::-;30313:4;30351:2;30340:9;30336:18;30328:26;;30400:9;30394:4;30390:20;30386:1;30375:9;30371:17;30364:47;30428:78;30501:4;30492:6;30428:78;:::i;:::-;30420:86;;30200:313;;;;:::o;30519:225::-;30659:34;30655:1;30647:6;30643:14;30636:58;30728:8;30723:2;30715:6;30711:15;30704:33;30519:225;:::o;30750:366::-;30892:3;30913:67;30977:2;30972:3;30913:67;:::i;:::-;30906:74;;30989:93;31078:3;30989:93;:::i;:::-;31107:2;31102:3;31098:12;31091:19;;30750:366;;;:::o;31122:419::-;31288:4;31326:2;31315:9;31311:18;31303:26;;31375:9;31369:4;31365:20;31361:1;31350:9;31346:17;31339:47;31403:131;31529:4;31403:131;:::i;:::-;31395:139;;31122:419;;;:::o;31547:182::-;31687:34;31683:1;31675:6;31671:14;31664:58;31547:182;:::o;31735:366::-;31877:3;31898:67;31962:2;31957:3;31898:67;:::i;:::-;31891:74;;31974:93;32063:3;31974:93;:::i;:::-;32092:2;32087:3;32083:12;32076:19;;31735:366;;;:::o;32107:419::-;32273:4;32311:2;32300:9;32296:18;32288:26;;32360:9;32354:4;32350:20;32346:1;32335:9;32331:17;32324:47;32388:131;32514:4;32388:131;:::i;:::-;32380:139;;32107:419;;;:::o;32532:171::-;32672:23;32668:1;32660:6;32656:14;32649:47;32532:171;:::o;32709:366::-;32851:3;32872:67;32936:2;32931:3;32872:67;:::i;:::-;32865:74;;32948:93;33037:3;32948:93;:::i;:::-;33066:2;33061:3;33057:12;33050:19;;32709:366;;;:::o;33081:419::-;33247:4;33285:2;33274:9;33270:18;33262:26;;33334:9;33328:4;33324:20;33320:1;33309:9;33305:17;33298:47;33362:131;33488:4;33362:131;:::i;:::-;33354:139;;33081:419;;;:::o;33506:98::-;33557:6;33591:5;33585:12;33575:22;;33506:98;;;:::o;33610:168::-;33693:11;33727:6;33722:3;33715:19;33767:4;33762:3;33758:14;33743:29;;33610:168;;;;:::o;33784:360::-;33870:3;33898:38;33930:5;33898:38;:::i;:::-;33952:70;34015:6;34010:3;33952:70;:::i;:::-;33945:77;;34031:52;34076:6;34071:3;34064:4;34057:5;34053:16;34031:52;:::i;:::-;34108:29;34130:6;34108:29;:::i;:::-;34103:3;34099:39;34092:46;;33874:270;33784:360;;;;:::o;34150:89::-;34186:7;34226:6;34219:5;34215:18;34204:29;;34150:89;;;:::o;34245:115::-;34330:23;34347:5;34330:23;:::i;:::-;34325:3;34318:36;34245:115;;:::o;34366:747::-;34587:4;34625:3;34614:9;34610:19;34602:27;;34639:71;34707:1;34696:9;34692:17;34683:6;34639:71;:::i;:::-;34720:72;34788:2;34777:9;34773:18;34764:6;34720:72;:::i;:::-;34802;34870:2;34859:9;34855:18;34846:6;34802:72;:::i;:::-;34921:9;34915:4;34911:20;34906:2;34895:9;34891:18;34884:48;34949:76;35020:4;35011:6;34949:76;:::i;:::-;34941:84;;35035:71;35101:3;35090:9;35086:19;35077:6;35035:71;:::i;:::-;34366:747;;;;;;;;:::o;35119:182::-;35259:34;35255:1;35247:6;35243:14;35236:58;35119:182;:::o;35307:366::-;35449:3;35470:67;35534:2;35529:3;35470:67;:::i;:::-;35463:74;;35546:93;35635:3;35546:93;:::i;:::-;35664:2;35659:3;35655:12;35648:19;;35307:366;;;:::o;35679:419::-;35845:4;35883:2;35872:9;35868:18;35860:26;;35932:9;35926:4;35922:20;35918:1;35907:9;35903:17;35896:47;35960:131;36086:4;35960:131;:::i;:::-;35952:139;;35679:419;;;:::o;36104:332::-;36225:4;36263:2;36252:9;36248:18;36240:26;;36276:71;36344:1;36333:9;36329:17;36320:6;36276:71;:::i;:::-;36357:72;36425:2;36414:9;36410:18;36401:6;36357:72;:::i;:::-;36104:332;;;;;:::o;36442:230::-;36582:34;36578:1;36570:6;36566:14;36559:58;36651:13;36646:2;36638:6;36634:15;36627:38;36442:230;:::o;36678:366::-;36820:3;36841:67;36905:2;36900:3;36841:67;:::i;:::-;36834:74;;36917:93;37006:3;36917:93;:::i;:::-;37035:2;37030:3;37026:12;37019:19;;36678:366;;;:::o;37050:419::-;37216:4;37254:2;37243:9;37239:18;37231:26;;37303:9;37297:4;37293:20;37289:1;37278:9;37274:17;37267:47;37331:131;37457:4;37331:131;:::i;:::-;37323:139;;37050:419;;;:::o;37475:815::-;37730:4;37768:3;37757:9;37753:19;37745:27;;37782:71;37850:1;37839:9;37835:17;37826:6;37782:71;:::i;:::-;37863:72;37931:2;37920:9;37916:18;37907:6;37863:72;:::i;:::-;37982:9;37976:4;37972:20;37967:2;37956:9;37952:18;37945:48;38010:108;38113:4;38104:6;38010:108;:::i;:::-;38002:116;;38128:72;38196:2;38185:9;38181:18;38172:6;38128:72;:::i;:::-;38210:73;38278:3;38267:9;38263:19;38254:6;38210:73;:::i;:::-;37475:815;;;;;;;;:::o
Swarm Source
ipfs://4a044101ecd5f2b8767a4e5e8a0850e716be701ee4a70732045e32d312bbbfe4
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.