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] | |||
---|---|---|---|---|---|---|---|---|---|
0x90ab6658368d95caa7b0b478e32fe2a1ed62272ec5dcadfeb8ad071055c2a353 | 0x60806040 | 57920556 | 4 days 5 hrs ago | 0x6ba58cd30014a861b11ed429200bd1dd8277dcf7 | IN | Create: PerpetualEscrowTokenExtension | 0 FTM | 0.099617477324 |
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0x90ab6658368d95caa7b0b478e32fe2a1ed62272ec5dcadfeb8ad071055c2a353 | 57920556 | 4 days 5 hrs ago | 0x6ba58cd30014a861b11ed429200bd1dd8277dcf7 | Contract Creation | 0 FTM |
[ Download CSV Export ]
Contract Source Code Verified (Exact Match)
Contract Name:
PerpetualEscrowTokenExtension
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/ContextUpgradeable.sol"; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract OwnableUpgradeable is Initializable, ContextUpgradeable { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ function __Ownable_init() internal onlyInitializing { __Ownable_init_unchained(); } function __Ownable_init_unchained() internal onlyInitializing { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions 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); } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20Upgradeable.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol) pragma solidity ^0.8.2; import "../../utils/AddressUpgradeable.sol"; /** * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect. * * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in * case an upgrade adds a module that needs to be initialized. * * For example: * * [.hljs-theme-light.nopadding] * ``` * contract MyToken is ERC20Upgradeable { * function initialize() initializer public { * __ERC20_init("MyToken", "MTK"); * } * } * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable { * function initializeV2() reinitializer(2) public { * __ERC20Permit_init("MyToken"); * } * } * ``` * * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}. * * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity. * * [CAUTION] * ==== * Avoid leaving a contract uninitialized. * * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed: * * [.hljs-theme-light.nopadding] * ``` * /// @custom:oz-upgrades-unsafe-allow constructor * constructor() { * _disableInitializers(); * } * ``` * ==== */ abstract contract Initializable { /** * @dev Indicates that the contract has been initialized. * @custom:oz-retyped-from bool */ uint8 private _initialized; /** * @dev Indicates that the contract is in the process of being initialized. */ bool private _initializing; /** * @dev Triggered when the contract has been initialized or reinitialized. */ event Initialized(uint8 version); /** * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope, * `onlyInitializing` functions can be used to initialize parent contracts. * * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a * constructor. * * Emits an {Initialized} event. */ modifier initializer() { bool isTopLevelCall = !_initializing; require( (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1), "Initializable: contract is already initialized" ); _initialized = 1; if (isTopLevelCall) { _initializing = true; } _; if (isTopLevelCall) { _initializing = false; emit Initialized(1); } } /** * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be * used to initialize parent contracts. * * A reinitializer may be used after the original initialization step. This is essential to configure modules that * are added through upgrades and that require initialization. * * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer` * cannot be nested. If one is invoked in the context of another, execution will revert. * * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in * a contract, executing them in the right order is up to the developer or operator. * * WARNING: setting the version to 255 will prevent any future reinitialization. * * Emits an {Initialized} event. */ modifier reinitializer(uint8 version) { require(!_initializing && _initialized < version, "Initializable: contract is already initialized"); _initialized = version; _initializing = true; _; _initializing = false; emit Initialized(version); } /** * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the * {initializer} and {reinitializer} modifiers, directly or indirectly. */ modifier onlyInitializing() { require(_initializing, "Initializable: contract is not initializing"); _; } /** * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call. * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized * to any version. It is recommended to use this to lock implementation contracts that are designed to be called * through proxies. * * Emits an {Initialized} event the first time it is successfully executed. */ function _disableInitializers() internal virtual { require(!_initializing, "Initializable: contract is initializing"); if (_initialized < type(uint8).max) { _initialized = type(uint8).max; emit Initialized(type(uint8).max); } } /** * @dev Returns the highest version that has been initialized. See {reinitializer}. */ function _getInitializedVersion() internal view returns (uint8) { return _initialized; } /** * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}. */ function _isInitializing() internal view returns (bool) { return _initializing; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuardUpgradeable is Initializable { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; function __ReentrancyGuard_init() internal onlyInitializing { __ReentrancyGuard_init_unchained(); } function __ReentrancyGuard_init_unchained() internal onlyInitializing { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[49] private __gap; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20PermitUpgradeable { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20Upgradeable { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20Upgradeable.sol"; import "../extensions/draft-IERC20PermitUpgradeable.sol"; import "../../../utils/AddressUpgradeable.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20Upgradeable { using AddressUpgradeable for address; function safeTransfer( IERC20Upgradeable token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20Upgradeable token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IERC20Upgradeable token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20Upgradeable 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( IERC20Upgradeable 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( IERC20PermitUpgradeable token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20Upgradeable token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library AddressUpgradeable { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [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 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); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; import "../proxy/utils/Initializable.sol"; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract ContextUpgradeable is Initializable { function __Context_init() internal onlyInitializing { } function __Context_init_unchained() internal onlyInitializing { } function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } /** * @dev This empty reserved space is put in place to allow future versions to add new * variables without shifting down storage in the inheritance chain. * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps */ uint256[50] private __gap; }
pragma solidity 0.8.17; import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import "@openzeppelin/contracts-upgradeable/interfaces/IERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol"; import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol"; import "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import "../interfaces/IPerpetualEscrowToken.sol"; import "../interfaces/IFeeDistribution.sol"; import "../interfaces/IMirrorGate.sol"; import "../interfaces/IxLQDR.sol"; contract PerpetualEscrowTokenExtension is Initializable, OwnableUpgradeable, ReentrancyGuardUpgradeable { using SafeERC20Upgradeable for IERC20Upgradeable; address public escrowToken; address public distributor; uint256 public tokenCount; address public recipient; address public treasury; address public xLQDR; // chainId => MirrorGate Object mapping(uint256 => MirrorGate) public gates; /// @custom:oz-upgrades-unsafe-allow constructor constructor() { _disableInitializers(); } function initialize( address _escrowToken, address _distributor, uint256 _tokenCount, address _recipient, address _treasury, address _xLQDR ) public initializer { __Ownable_init(); __ReentrancyGuard_init(); escrowToken = _escrowToken; distributor = _distributor; tokenCount = _tokenCount; recipient = _recipient; treasury = _treasury; xLQDR = _xLQDR; } function mirrorLocks( uint256[] memory toChainIds ) external payable nonReentrant { uint256 currentChainId = getChainID(); require( gates[currentChainId].mirrorGate != address(0), "mirrorGate address is ZERO" ); (int128 lockAmount, uint256 lockEnds) = IxLQDR(xLQDR).locked( escrowToken ); for (uint256 i = 0; i < toChainIds.length; i++) { require( gates[toChainIds[i]].mirrorGate != address(0), "mirrorGate address is ZERO" ); require(toChainIds[i] != currentChainId, "invalid chainId"); IPerpetualEscrowToken(escrowToken)._call( gates[currentChainId].mirrorGate, abi.encodeWithSelector( IMirrorGate.mirrorLocks.selector, toChainIds[i], gates[toChainIds[i]].mirrorGate, [currentChainId], [0], [lockAmount], [lockEnds] ) ); } } function collect() external nonReentrant { IPerpetualEscrowToken(escrowToken)._call( distributor, abi.encodeWithSelector(IFeeDistribution.claim.selector) ); for (uint256 _i = 0; _i < tokenCount; _i++) { address _token = IFeeDistribution(distributor).tokens(_i); if (_token == address(0)) break; uint256 _balance = IERC20Upgradeable(_token).balanceOf(escrowToken); if (_balance > 0) { IPerpetualEscrowToken(escrowToken)._call( _token, abi.encodeWithSelector( IERC20Upgradeable.approve.selector, address(this), _balance ) ); IERC20Upgradeable(_token).safeTransferFrom( escrowToken, recipient, _balance ); } } } function setMirrorGate( uint256 chainId, address mirrorGate ) external onlyOwner { gates[chainId] = MirrorGate(chainId, mirrorGate); } function setDistributorAndTokenCount( address _newDistributor, uint256 _newTokenCount ) external onlyOwner { require(_newDistributor != address(0), "invalid address"); address _oldDistributor = distributor; uint256 _oldTokenCount = tokenCount; distributor = _newDistributor; tokenCount = _newTokenCount; emit UpdateDistributor(_oldDistributor, _newDistributor); emit UpdateTokenCount(_oldTokenCount, _newTokenCount); } function setRecipient(address _newRecipient) external onlyOwner { require(_newRecipient != address(0), "invalid address"); address _oldRecipient = recipient; recipient = _newRecipient; emit UpdateRecipient(_oldRecipient, _newRecipient); } function setTreasury(address _newTreasury) external onlyOwner { require(_newTreasury != address(0), "invalid address"); address _oldTreasury = treasury; treasury = _newTreasury; emit UpdateTreasury(_oldTreasury, _newTreasury); } function recoverLostFunds(address _token) external onlyOwner nonReentrant { uint256 _balance = IERC20Upgradeable(_token).balanceOf(address(this)); IERC20Upgradeable(_token).safeTransfer(treasury, _balance); } function getChainID() public view returns (uint256) { uint256 id; assembly { id := chainid() } return id; } struct MirrorGate { uint256 ChainId; address mirrorGate; } event UpdateDistributor(address _oldDistributor, address _newDistributor); event UpdateTokenCount(uint256 _oldTokenCount, uint256 _newTokenCount); event UpdateRecipient(address _oldRecipient, address _newRecipient); event UpdateTreasury(address _oldTreasury, address _newTreasury); }
interface IFeeDistribution { function claim(address) external returns (uint256[] memory); function tokens(uint256 index) external view returns (address); }
interface IMirrorGate { function mirrorLocks( uint256 _toChainId, address _toMirrorGate, uint256[] memory _chainIds, uint256[] memory _escrowIds, int128[] memory _lockAmounts, uint256[] memory _lockEnds ) external; }
interface IPerpetualEscrowToken { function _call( address _target, bytes calldata _calldata ) external payable returns (bool _success, bytes memory _resultdata); }
interface IxLQDR { function locked(address) external view returns (int128, uint256); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldDistributor","type":"address"},{"indexed":false,"internalType":"address","name":"_newDistributor","type":"address"}],"name":"UpdateDistributor","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldRecipient","type":"address"},{"indexed":false,"internalType":"address","name":"_newRecipient","type":"address"}],"name":"UpdateRecipient","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_oldTokenCount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_newTokenCount","type":"uint256"}],"name":"UpdateTokenCount","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_oldTreasury","type":"address"},{"indexed":false,"internalType":"address","name":"_newTreasury","type":"address"}],"name":"UpdateTreasury","type":"event"},{"inputs":[],"name":"collect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"escrowToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"gates","outputs":[{"internalType":"uint256","name":"ChainId","type":"uint256"},{"internalType":"address","name":"mirrorGate","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainID","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_escrowToken","type":"address"},{"internalType":"address","name":"_distributor","type":"address"},{"internalType":"uint256","name":"_tokenCount","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"address","name":"_xLQDR","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"toChainIds","type":"uint256[]"}],"name":"mirrorLocks","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverLostFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newDistributor","type":"address"},{"internalType":"uint256","name":"_newTokenCount","type":"uint256"}],"name":"setDistributorAndTokenCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"mirrorGate","type":"address"}],"name":"setMirrorGate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newRecipient","type":"address"}],"name":"setRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTreasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"xLQDR","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50620000226200002860201b60201c565b620001d3565b600060019054906101000a900460ff16156200007b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000729062000176565b60405180910390fd5b60ff801660008054906101000a900460ff1660ff161015620000ed5760ff6000806101000a81548160ff021916908360ff1602179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860ff604051620000e49190620001b6565b60405180910390a15b565b600082825260208201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320696e69746960008201527f616c697a696e6700000000000000000000000000000000000000000000000000602082015250565b60006200015e602783620000ef565b91506200016b8262000100565b604082019050919050565b6000602082019050818103600083015262000191816200014f565b9050919050565b600060ff82169050919050565b620001b08162000198565b82525050565b6000602082019050620001cd6000830184620001a5565b92915050565b612f6f80620001e36000396000f3fe6080604052600436106101145760003560e01c8063715018a6116100a0578063e522538111610064578063e52253811461035d578063f0f4426014610374578063f2fde38b1461039d578063fbb6f893146103c6578063ff9935cb146103ef57610114565b8063715018a61461029c578063770be784146102b35780638da5cb5b146102dc5780639f181b5e14610307578063bfe109281461033257610114565b80633d783d7b116100e75780633d783d7b146101c157806353bdba79146101ff578063564b81ef1461021b57806361d027b31461024657806366d003ac1461027157610114565b80632edccf5b146101195780632fe319da1461014457806336ab44701461016f5780633bbed4a014610198575b600080fd5b34801561012557600080fd5b5061012e610418565b60405161013b9190611de6565b60405180910390f35b34801561015057600080fd5b5061015961043e565b6040516101669190611de6565b60405180910390f35b34801561017b57600080fd5b5061019660048036038101906101919190611e77565b610464565b005b3480156101a457600080fd5b506101bf60048036038101906101ba9190611eb7565b610502565b005b3480156101cd57600080fd5b506101e860048036038101906101e39190611ee4565b61061e565b6040516101f6929190611f20565b60405180910390f35b610219600480360381019061021491906120a2565b610662565b005b34801561022757600080fd5b50610230610b30565b60405161023d91906120eb565b60405180910390f35b34801561025257600080fd5b5061025b610b3d565b6040516102689190611de6565b60405180910390f35b34801561027d57600080fd5b50610286610b63565b6040516102939190611de6565b60405180910390f35b3480156102a857600080fd5b506102b1610b89565b005b3480156102bf57600080fd5b506102da60048036038101906102d59190611eb7565b610b9d565b005b3480156102e857600080fd5b506102f1610c84565b6040516102fe9190611de6565b60405180910390f35b34801561031357600080fd5b5061031c610cae565b60405161032991906120eb565b60405180910390f35b34801561033e57600080fd5b50610347610cb4565b6040516103549190611de6565b60405180910390f35b34801561036957600080fd5b50610372610cda565b005b34801561038057600080fd5b5061039b60048036038101906103969190611eb7565b611155565b005b3480156103a957600080fd5b506103c460048036038101906103bf9190611eb7565b611271565b005b3480156103d257600080fd5b506103ed60048036038101906103e89190612106565b6112f4565b005b3480156103fb57600080fd5b5061041660048036038101906104119190612146565b611459565b005b609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61046c6116f1565b60405180604001604052808381526020018273ffffffffffffffffffffffffffffffffffffffff16815250609d60008481526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050505050565b61050a6116f1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610579576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057090612230565b60405180910390fd5b6000609a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7e1e96961a397c8aa26162fe259cc837afc95e33aad4945ddc61c18dabb7a6ad8183604051610612929190612250565b60405180910390a15050565b609d6020528060005260406000206000915090508060000154908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905082565b61066a61176f565b6000610674610b30565b9050600073ffffffffffffffffffffffffffffffffffffffff16609d600083815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361071b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610712906122c5565b60405180910390fd5b600080609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cbf9fe5f609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b815260040161079b9190611de6565b6040805180830381865afa1580156107b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107db9190612333565b9150915060005b8451811015610b2157600073ffffffffffffffffffffffffffffffffffffffff16609d600087848151811061081a57610819612373565b5b6020026020010151815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036108aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a1906122c5565b60405180910390fd5b838582815181106108be576108bd612373565b5b602002602001015103610906576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108fd906123ee565b60405180910390fd5b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630f4414c8609d600087815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16635189cdfd60e01b88858151811061099657610995612373565b5b6020026020010151609d60008b88815181106109b5576109b4612373565b5b6020026020010151815260200190815260200160002060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405180602001604052808b8152506040518060200160405280600060ff1681525060405180602001604052808c600f0b600f0b81525060405180602001604052808c815250604051602401610a4a9695949392919061261c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518363ffffffff1660e01b8152600401610ac49291906126fc565b6000604051808303816000875af1158015610ae3573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610b0c919061280a565b50508080610b1990612895565b9150506107e2565b50505050610b2d6117be565b50565b6000804690508091505090565b609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b609a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b916116f1565b610b9b60006117c8565b565b610ba56116f1565b610bad61176f565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610be89190611de6565b602060405180830381865afa158015610c05573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c2991906128dd565b9050610c78609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff1661188e9092919063ffffffff16565b50610c816117be565b50565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60995481565b609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ce261176f565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630f4414c8609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16631e83409a60e01b604051602401604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518363ffffffff1660e01b8152600401610dcb9291906126fc565b6000604051808303816000875af1158015610dea573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610e13919061280a565b505060005b60995481101561114a576000609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634f64b2be836040518263ffffffff1660e01b8152600401610e7f91906120eb565b602060405180830381865afa158015610e9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ec0919061291f565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610efc575061114a565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401610f599190611de6565b602060405180830381865afa158015610f76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9a91906128dd565b9050600081111561113557609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630f4414c88363095ea7b360e01b3085604051602401610fff92919061294c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518363ffffffff1660e01b81526004016110799291906126fc565b6000604051808303816000875af1158015611098573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906110c1919061280a565b5050611134609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16609a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838573ffffffffffffffffffffffffffffffffffffffff16611914909392919063ffffffff16565b5b5050808061114290612895565b915050610e18565b506111536117be565b565b61115d6116f1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111c390612230565b60405180910390fd5b6000609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd101a15f9e9364a1c0a7c4cc8eb4cd9220094e83353915b0c74e09f72ec73edb8183604051611265929190612250565b60405180910390a15050565b6112796116f1565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112df906129e7565b60405180910390fd5b6112f1816117c8565b50565b6112fc6116f1565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361136b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161136290612230565b60405180910390fd5b6000609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000609954905083609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826099819055507f620e5eff4637523fd7bd7adc54e586e40baf65622840df0b3c7d96f502a659388285604051611412929190612250565b60405180910390a17f36bee4c7db9db3bb120674359f55e1f4797e8e8b93ba5b78ddb9c1c4cb8af855818460405161144b929190612a07565b60405180910390a150505050565b60008060019054906101000a900460ff1615905080801561148a5750600160008054906101000a900460ff1660ff16105b806114b757506114993061199d565b1580156114b65750600160008054906101000a900460ff1660ff16145b5b6114f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114ed90612aa2565b60405180910390fd5b60016000806101000a81548160ff021916908360ff1602179055508015611533576001600060016101000a81548160ff0219169083151502179055505b61153b6119c0565b611543611a19565b86609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508460998190555083609a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082609b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081609c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080156116e85760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516116df9190612b07565b60405180910390a15b50505050505050565b6116f9611a72565b73ffffffffffffffffffffffffffffffffffffffff16611717610c84565b73ffffffffffffffffffffffffffffffffffffffff161461176d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176490612b6e565b60405180910390fd5b565b6002606554036117b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ab90612bda565b60405180910390fd5b6002606581905550565b6001606581905550565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61190f8363a9059cbb60e01b84846040516024016118ad92919061294c565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611a7a565b505050565b611997846323b872dd60e01b85858560405160240161193593929190612bfa565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611a7a565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff16611a0f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0690612ca3565b60405180910390fd5b611a17611b41565b565b600060019054906101000a900460ff16611a68576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5f90612ca3565b60405180910390fd5b611a70611ba2565b565b600033905090565b6000611adc826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611bfb9092919063ffffffff16565b9050600081511115611b3c5780806020019051810190611afc9190612cc3565b611b3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b3290612d62565b60405180910390fd5b5b505050565b600060019054906101000a900460ff16611b90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b8790612ca3565b60405180910390fd5b611ba0611b9b611a72565b6117c8565b565b600060019054906101000a900460ff16611bf1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be890612ca3565b60405180910390fd5b6001606581905550565b6060611c0a8484600085611c13565b90509392505050565b606082471015611c58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c4f90612df4565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611c819190612e50565b60006040518083038185875af1925050503d8060008114611cbe576040519150601f19603f3d011682016040523d82523d6000602084013e611cc3565b606091505b5091509150611cd487838387611ce0565b92505050949350505050565b60608315611d42576000835103611d3a57611cfa8561199d565b611d39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3090612eb3565b60405180910390fd5b5b829050611d4d565b611d4c8383611d55565b5b949350505050565b600082511115611d685781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9c9190612f17565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611dd082611da5565b9050919050565b611de081611dc5565b82525050565b6000602082019050611dfb6000830184611dd7565b92915050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b611e2881611e15565b8114611e3357600080fd5b50565b600081359050611e4581611e1f565b92915050565b611e5481611dc5565b8114611e5f57600080fd5b50565b600081359050611e7181611e4b565b92915050565b60008060408385031215611e8e57611e8d611e0b565b5b6000611e9c85828601611e36565b9250506020611ead85828601611e62565b9150509250929050565b600060208284031215611ecd57611ecc611e0b565b5b6000611edb84828501611e62565b91505092915050565b600060208284031215611efa57611ef9611e0b565b5b6000611f0884828501611e36565b91505092915050565b611f1a81611e15565b82525050565b6000604082019050611f356000830185611f11565b611f426020830184611dd7565b9392505050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611f9782611f4e565b810181811067ffffffffffffffff82111715611fb657611fb5611f5f565b5b80604052505050565b6000611fc9611e01565b9050611fd58282611f8e565b919050565b600067ffffffffffffffff821115611ff557611ff4611f5f565b5b602082029050602081019050919050565b600080fd5b600061201e61201984611fda565b611fbf565b9050808382526020820190506020840283018581111561204157612040612006565b5b835b8181101561206a57806120568882611e36565b845260208401935050602081019050612043565b5050509392505050565b600082601f83011261208957612088611f49565b5b813561209984826020860161200b565b91505092915050565b6000602082840312156120b8576120b7611e0b565b5b600082013567ffffffffffffffff8111156120d6576120d5611e10565b5b6120e284828501612074565b91505092915050565b60006020820190506121006000830184611f11565b92915050565b6000806040838503121561211d5761211c611e0b565b5b600061212b85828601611e62565b925050602061213c85828601611e36565b9150509250929050565b60008060008060008060c0878903121561216357612162611e0b565b5b600061217189828a01611e62565b965050602061218289828a01611e62565b955050604061219389828a01611e36565b94505060606121a489828a01611e62565b93505060806121b589828a01611e62565b92505060a06121c689828a01611e62565b9150509295509295509295565b600082825260208201905092915050565b7f696e76616c696420616464726573730000000000000000000000000000000000600082015250565b600061221a600f836121d3565b9150612225826121e4565b602082019050919050565b600060208201905081810360008301526122498161220d565b9050919050565b60006040820190506122656000830185611dd7565b6122726020830184611dd7565b9392505050565b7f6d6972726f72476174652061646472657373206973205a45524f000000000000600082015250565b60006122af601a836121d3565b91506122ba82612279565b602082019050919050565b600060208201905081810360008301526122de816122a2565b9050919050565b600081600f0b9050919050565b6122fb816122e5565b811461230657600080fd5b50565b600081519050612318816122f2565b92915050565b60008151905061232d81611e1f565b92915050565b6000806040838503121561234a57612349611e0b565b5b600061235885828601612309565b92505060206123698582860161231e565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f696e76616c696420636861696e49640000000000000000000000000000000000600082015250565b60006123d8600f836121d3565b91506123e3826123a2565b602082019050919050565b60006020820190508181036000830152612407816123cb565b9050919050565b600060019050919050565b600081905092915050565b6000819050919050565b61243781611e15565b82525050565b6000612449838361242e565b60208301905092915050565b6000602082019050919050565b61246b8161240e565b6124758184612419565b925061248082612424565b8060005b838110156124b1578151612498878261243d565b96506124a383612455565b925050600181019050612484565b505050505050565b600060019050919050565b600081905092915050565b6000819050919050565b600060ff82169050919050565b6124ef816124d9565b82525050565b600061250183836124e6565b60208301905092915050565b6000602082019050919050565b612523816124b9565b61252d81846124c4565b9250612538826124cf565b8060005b8381101561256957815161255087826124f5565b965061255b8361250d565b92505060018101905061253c565b505050505050565b600060019050919050565b600081905092915050565b6000819050919050565b61259a816122e5565b82525050565b60006125ac8383612591565b60208301905092915050565b6000602082019050919050565b6125ce81612571565b6125d8818461257c565b92506125e382612587565b8060005b838110156126145781516125fb87826125a0565b9650612606836125b8565b9250506001810190506125e7565b505050505050565b600060c0820190506126316000830189611f11565b61263e6020830188611dd7565b61264b6040830187612462565b612658606083018661251a565b61266560808301856125c5565b61267260a0830184612462565b979650505050505050565b600081519050919050565b600082825260208201905092915050565b60005b838110156126b757808201518184015260208101905061269c565b60008484015250505050565b60006126ce8261267d565b6126d88185612688565b93506126e8818560208601612699565b6126f181611f4e565b840191505092915050565b60006040820190506127116000830185611dd7565b818103602083015261272381846126c3565b90509392505050565b60008115159050919050565b6127418161272c565b811461274c57600080fd5b50565b60008151905061275e81612738565b92915050565b600080fd5b600067ffffffffffffffff82111561278457612783611f5f565b5b61278d82611f4e565b9050602081019050919050565b60006127ad6127a884612769565b611fbf565b9050828152602081018484840111156127c9576127c8612764565b5b6127d4848285612699565b509392505050565b600082601f8301126127f1576127f0611f49565b5b815161280184826020860161279a565b91505092915050565b6000806040838503121561282157612820611e0b565b5b600061282f8582860161274f565b925050602083015167ffffffffffffffff8111156128505761284f611e10565b5b61285c858286016127dc565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006128a082611e15565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036128d2576128d1612866565b5b600182019050919050565b6000602082840312156128f3576128f2611e0b565b5b60006129018482850161231e565b91505092915050565b60008151905061291981611e4b565b92915050565b60006020828403121561293557612934611e0b565b5b60006129438482850161290a565b91505092915050565b60006040820190506129616000830185611dd7565b61296e6020830184611f11565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006129d16026836121d3565b91506129dc82612975565b604082019050919050565b60006020820190508181036000830152612a00816129c4565b9050919050565b6000604082019050612a1c6000830185611f11565b612a296020830184611f11565b9392505050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000612a8c602e836121d3565b9150612a9782612a30565b604082019050919050565b60006020820190508181036000830152612abb81612a7f565b9050919050565b6000819050919050565b6000819050919050565b6000612af1612aec612ae784612ac2565b612acc565b6124d9565b9050919050565b612b0181612ad6565b82525050565b6000602082019050612b1c6000830184612af8565b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612b586020836121d3565b9150612b6382612b22565b602082019050919050565b60006020820190508181036000830152612b8781612b4b565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612bc4601f836121d3565b9150612bcf82612b8e565b602082019050919050565b60006020820190508181036000830152612bf381612bb7565b9050919050565b6000606082019050612c0f6000830186611dd7565b612c1c6020830185611dd7565b612c296040830184611f11565b949350505050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b6000612c8d602b836121d3565b9150612c9882612c31565b604082019050919050565b60006020820190508181036000830152612cbc81612c80565b9050919050565b600060208284031215612cd957612cd8611e0b565b5b6000612ce78482850161274f565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612d4c602a836121d3565b9150612d5782612cf0565b604082019050919050565b60006020820190508181036000830152612d7b81612d3f565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612dde6026836121d3565b9150612de982612d82565b604082019050919050565b60006020820190508181036000830152612e0d81612dd1565b9050919050565b600081905092915050565b6000612e2a8261267d565b612e348185612e14565b9350612e44818560208601612699565b80840191505092915050565b6000612e5c8284612e1f565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612e9d601d836121d3565b9150612ea882612e67565b602082019050919050565b60006020820190508181036000830152612ecc81612e90565b9050919050565b600081519050919050565b6000612ee982612ed3565b612ef381856121d3565b9350612f03818560208601612699565b612f0c81611f4e565b840191505092915050565b60006020820190508181036000830152612f318184612ede565b90509291505056fea26469706673582212202d56c1ba44ab2231e220be86df4442797583ff5433fe38617a58400b193ea0a964736f6c63430008110033
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.