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] | |||
---|---|---|---|---|---|---|---|---|---|
0xdc60c3ac09181b60b18c905687d4c00de1e4227aabdef25bcf2f80a29097b385 | 0x60806040 | 57924106 | 4 days 5 hrs ago | 0x6ba58cd30014a861b11ed429200bd1dd8277dcf7 | IN | Create: PerpetualEscrowTokenExtension | 0 FTM | 9.960908131456 |
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0xdc60c3ac09181b60b18c905687d4c00de1e4227aabdef25bcf2f80a29097b385 | 57924106 | 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 => MirrorGateV2 address mapping(uint256 => address) 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] != 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]] != address(0), "mirrorGate address is ZERO" ); require(toChainIds[i] != currentChainId, "invalid chainId"); IPerpetualEscrowToken(escrowToken)._call( gates[currentChainId], abi.encodeWithSelector( IMirrorGate.mirrorLocks.selector, toChainIds[i], gates[toChainIds[i]], [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; emit SetMirrorGate(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; } event SetMirrorGate(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":"uint256","name":"chainId","type":"uint256"},{"indexed":false,"internalType":"address","name":"mirrorGate","type":"address"}],"name":"SetMirrorGate","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":"address","name":"","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
60806040523480156200001157600080fd5b50620000226200002860201b60201c565b620001d3565b600060019054906101000a900460ff16156200007b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000729062000176565b60405180910390fd5b60ff801660008054906101000a900460ff1660ff161015620000ed5760ff6000806101000a81548160ff021916908360ff1602179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860ff604051620000e49190620001b6565b60405180910390a15b565b600082825260208201905092915050565b7f496e697469616c697a61626c653a20636f6e747261637420697320696e69746960008201527f616c697a696e6700000000000000000000000000000000000000000000000000602082015250565b60006200015e602783620000ef565b91506200016b8262000100565b604082019050919050565b6000602082019050818103600083015262000191816200014f565b9050919050565b600060ff82169050919050565b620001b08162000198565b82525050565b6000602082019050620001cd6000830184620001a5565b92915050565b612f4a80620001e36000396000f3fe6080604052600436106101145760003560e01c8063715018a6116100a0578063e522538111610064578063e52253811461035c578063f0f4426014610373578063f2fde38b1461039c578063fbb6f893146103c5578063ff9935cb146103ee57610114565b8063715018a61461029b578063770be784146102b25780638da5cb5b146102db5780639f181b5e14610306578063bfe109281461033157610114565b80633d783d7b116100e75780633d783d7b146101c157806353bdba79146101fe578063564b81ef1461021a57806361d027b31461024557806366d003ac1461027057610114565b80632edccf5b146101195780632fe319da1461014457806336ab44701461016f5780633bbed4a014610198575b600080fd5b34801561012557600080fd5b5061012e610417565b60405161013b9190611dc1565b60405180910390f35b34801561015057600080fd5b5061015961043d565b6040516101669190611dc1565b60405180910390f35b34801561017b57600080fd5b5061019660048036038101906101919190611e52565b610463565b005b3480156101a457600080fd5b506101bf60048036038101906101ba9190611e92565b6104fa565b005b3480156101cd57600080fd5b506101e860048036038101906101e39190611ebf565b610616565b6040516101f59190611dc1565b60405180910390f35b61021860048036038101906102139190612045565b610649565b005b34801561022657600080fd5b5061022f610b0b565b60405161023c919061209d565b60405180910390f35b34801561025157600080fd5b5061025a610b18565b6040516102679190611dc1565b60405180910390f35b34801561027c57600080fd5b50610285610b3e565b6040516102929190611dc1565b60405180910390f35b3480156102a757600080fd5b506102b0610b64565b005b3480156102be57600080fd5b506102d960048036038101906102d49190611e92565b610b78565b005b3480156102e757600080fd5b506102f0610c5f565b6040516102fd9190611dc1565b60405180910390f35b34801561031257600080fd5b5061031b610c89565b604051610328919061209d565b60405180910390f35b34801561033d57600080fd5b50610346610c8f565b6040516103539190611dc1565b60405180910390f35b34801561036857600080fd5b50610371610cb5565b005b34801561037f57600080fd5b5061039a60048036038101906103959190611e92565b611130565b005b3480156103a857600080fd5b506103c360048036038101906103be9190611e92565b61124c565b005b3480156103d157600080fd5b506103ec60048036038101906103e791906120b8565b6112cf565b005b3480156103fa57600080fd5b50610415600480360381019061041091906120f8565b611434565b005b609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61046b6116cc565b80609d600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f031c4f51a09456894675ebb5c2c8612866e8c61961787948d6d9605108169da882826040516104ee929190612185565b60405180910390a15050565b6105026116cc565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610571576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105689061220b565b60405180910390fd5b6000609a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f7e1e96961a397c8aa26162fe259cc837afc95e33aad4945ddc61c18dabb7a6ad818360405161060a92919061222b565b60405180910390a15050565b609d6020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61065161174a565b600061065b610b0b565b9050600073ffffffffffffffffffffffffffffffffffffffff16609d600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16036106ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106f6906122a0565b60405180910390fd5b600080609c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cbf9fe5f609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b815260040161077f9190611dc1565b6040805180830381865afa15801561079b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107bf919061230e565b9150915060005b8451811015610afc57600073ffffffffffffffffffffffffffffffffffffffff16609d60008784815181106107fe576107fd61234e565b5b6020026020010151815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361088b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610882906122a0565b60405180910390fd5b8385828151811061089f5761089e61234e565b5b6020026020010151036108e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108de906123c9565b60405180910390fd5b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630f4414c8609d600087815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16635189cdfd60e01b8885815181106109745761097361234e565b5b6020026020010151609d60008b88815181106109935761099261234e565b5b6020026020010151815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1660405180602001604052808b8152506040518060200160405280600060ff1681525060405180602001604052808c600f0b600f0b81525060405180602001604052808c815250604051602401610a25969594939291906125f7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518363ffffffff1660e01b8152600401610a9f9291906126d7565b6000604051808303816000875af1158015610abe573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610ae791906127e5565b50508080610af490612870565b9150506107c6565b50505050610b08611799565b50565b6000804690508091505090565b609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b609a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b6c6116cc565b610b7660006117a3565b565b610b806116cc565b610b8861174a565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610bc39190611dc1565b602060405180830381865afa158015610be0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0491906128b8565b9050610c53609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16828473ffffffffffffffffffffffffffffffffffffffff166118699092919063ffffffff16565b50610c5c611799565b50565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60995481565b609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610cbd61174a565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630f4414c8609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16631e83409a60e01b604051602401604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518363ffffffff1660e01b8152600401610da69291906126d7565b6000604051808303816000875af1158015610dc5573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190610dee91906127e5565b505060005b609954811015611125576000609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634f64b2be836040518263ffffffff1660e01b8152600401610e5a919061209d565b602060405180830381865afa158015610e77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e9b91906128fa565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610ed75750611125565b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b8152600401610f349190611dc1565b602060405180830381865afa158015610f51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7591906128b8565b9050600081111561111057609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16630f4414c88363095ea7b360e01b3085604051602401610fda929190612927565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518363ffffffff1660e01b81526004016110549291906126d7565b6000604051808303816000875af1158015611073573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061109c91906127e5565b505061110f609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16609a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838573ffffffffffffffffffffffffffffffffffffffff166118ef909392919063ffffffff16565b5b5050808061111d90612870565b915050610df3565b5061112e611799565b565b6111386116cc565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119e9061220b565b60405180910390fd5b6000609b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081609b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507fd101a15f9e9364a1c0a7c4cc8eb4cd9220094e83353915b0c74e09f72ec73edb818360405161124092919061222b565b60405180910390a15050565b6112546116cc565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036112c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ba906129c2565b60405180910390fd5b6112cc816117a3565b50565b6112d76116cc565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611346576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133d9061220b565b60405180910390fd5b6000609860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000609954905083609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826099819055507f620e5eff4637523fd7bd7adc54e586e40baf65622840df0b3c7d96f502a6593882856040516113ed92919061222b565b60405180910390a17f36bee4c7db9db3bb120674359f55e1f4797e8e8b93ba5b78ddb9c1c4cb8af85581846040516114269291906129e2565b60405180910390a150505050565b60008060019054906101000a900460ff161590508080156114655750600160008054906101000a900460ff1660ff16105b80611492575061147430611978565b1580156114915750600160008054906101000a900460ff1660ff16145b5b6114d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c890612a7d565b60405180910390fd5b60016000806101000a81548160ff021916908360ff160217905550801561150e576001600060016101000a81548160ff0219169083151502179055505b61151661199b565b61151e6119f4565b86609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085609860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508460998190555083609a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082609b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081609c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080156116c35760008060016101000a81548160ff0219169083151502179055507f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb384740249860016040516116ba9190612ae2565b60405180910390a15b50505050505050565b6116d4611a4d565b73ffffffffffffffffffffffffffffffffffffffff166116f2610c5f565b73ffffffffffffffffffffffffffffffffffffffff1614611748576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173f90612b49565b60405180910390fd5b565b60026065540361178f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178690612bb5565b60405180910390fd5b6002606581905550565b6001606581905550565b6000603360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081603360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6118ea8363a9059cbb60e01b8484604051602401611888929190612927565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611a55565b505050565b611972846323b872dd60e01b85858560405160240161191093929190612bd5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611a55565b50505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600060019054906101000a900460ff166119ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119e190612c7e565b60405180910390fd5b6119f2611b1c565b565b600060019054906101000a900460ff16611a43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3a90612c7e565b60405180910390fd5b611a4b611b7d565b565b600033905090565b6000611ab7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611bd69092919063ffffffff16565b9050600081511115611b175780806020019051810190611ad79190612c9e565b611b16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0d90612d3d565b60405180910390fd5b5b505050565b600060019054906101000a900460ff16611b6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6290612c7e565b60405180910390fd5b611b7b611b76611a4d565b6117a3565b565b600060019054906101000a900460ff16611bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc390612c7e565b60405180910390fd5b6001606581905550565b6060611be58484600085611bee565b90509392505050565b606082471015611c33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2a90612dcf565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611c5c9190612e2b565b60006040518083038185875af1925050503d8060008114611c99576040519150601f19603f3d011682016040523d82523d6000602084013e611c9e565b606091505b5091509150611caf87838387611cbb565b92505050949350505050565b60608315611d1d576000835103611d1557611cd585611978565b611d14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0b90612e8e565b60405180910390fd5b5b829050611d28565b611d278383611d30565b5b949350505050565b600082511115611d435781518083602001fd5b806040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d779190612ef2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611dab82611d80565b9050919050565b611dbb81611da0565b82525050565b6000602082019050611dd66000830184611db2565b92915050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b611e0381611df0565b8114611e0e57600080fd5b50565b600081359050611e2081611dfa565b92915050565b611e2f81611da0565b8114611e3a57600080fd5b50565b600081359050611e4c81611e26565b92915050565b60008060408385031215611e6957611e68611de6565b5b6000611e7785828601611e11565b9250506020611e8885828601611e3d565b9150509250929050565b600060208284031215611ea857611ea7611de6565b5b6000611eb684828501611e3d565b91505092915050565b600060208284031215611ed557611ed4611de6565b5b6000611ee384828501611e11565b91505092915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b611f3a82611ef1565b810181811067ffffffffffffffff82111715611f5957611f58611f02565b5b80604052505050565b6000611f6c611ddc565b9050611f788282611f31565b919050565b600067ffffffffffffffff821115611f9857611f97611f02565b5b602082029050602081019050919050565b600080fd5b6000611fc1611fbc84611f7d565b611f62565b90508083825260208201905060208402830185811115611fe457611fe3611fa9565b5b835b8181101561200d5780611ff98882611e11565b845260208401935050602081019050611fe6565b5050509392505050565b600082601f83011261202c5761202b611eec565b5b813561203c848260208601611fae565b91505092915050565b60006020828403121561205b5761205a611de6565b5b600082013567ffffffffffffffff81111561207957612078611deb565b5b61208584828501612017565b91505092915050565b61209781611df0565b82525050565b60006020820190506120b2600083018461208e565b92915050565b600080604083850312156120cf576120ce611de6565b5b60006120dd85828601611e3d565b92505060206120ee85828601611e11565b9150509250929050565b60008060008060008060c0878903121561211557612114611de6565b5b600061212389828a01611e3d565b965050602061213489828a01611e3d565b955050604061214589828a01611e11565b945050606061215689828a01611e3d565b935050608061216789828a01611e3d565b92505060a061217889828a01611e3d565b9150509295509295509295565b600060408201905061219a600083018561208e565b6121a76020830184611db2565b9392505050565b600082825260208201905092915050565b7f696e76616c696420616464726573730000000000000000000000000000000000600082015250565b60006121f5600f836121ae565b9150612200826121bf565b602082019050919050565b60006020820190508181036000830152612224816121e8565b9050919050565b60006040820190506122406000830185611db2565b61224d6020830184611db2565b9392505050565b7f6d6972726f72476174652061646472657373206973205a45524f000000000000600082015250565b600061228a601a836121ae565b915061229582612254565b602082019050919050565b600060208201905081810360008301526122b98161227d565b9050919050565b600081600f0b9050919050565b6122d6816122c0565b81146122e157600080fd5b50565b6000815190506122f3816122cd565b92915050565b60008151905061230881611dfa565b92915050565b6000806040838503121561232557612324611de6565b5b6000612333858286016122e4565b9250506020612344858286016122f9565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f696e76616c696420636861696e49640000000000000000000000000000000000600082015250565b60006123b3600f836121ae565b91506123be8261237d565b602082019050919050565b600060208201905081810360008301526123e2816123a6565b9050919050565b600060019050919050565b600081905092915050565b6000819050919050565b61241281611df0565b82525050565b60006124248383612409565b60208301905092915050565b6000602082019050919050565b612446816123e9565b61245081846123f4565b925061245b826123ff565b8060005b8381101561248c5781516124738782612418565b965061247e83612430565b92505060018101905061245f565b505050505050565b600060019050919050565b600081905092915050565b6000819050919050565b600060ff82169050919050565b6124ca816124b4565b82525050565b60006124dc83836124c1565b60208301905092915050565b6000602082019050919050565b6124fe81612494565b612508818461249f565b9250612513826124aa565b8060005b8381101561254457815161252b87826124d0565b9650612536836124e8565b925050600181019050612517565b505050505050565b600060019050919050565b600081905092915050565b6000819050919050565b612575816122c0565b82525050565b6000612587838361256c565b60208301905092915050565b6000602082019050919050565b6125a98161254c565b6125b38184612557565b92506125be82612562565b8060005b838110156125ef5781516125d6878261257b565b96506125e183612593565b9250506001810190506125c2565b505050505050565b600060c08201905061260c600083018961208e565b6126196020830188611db2565b612626604083018761243d565b61263360608301866124f5565b61264060808301856125a0565b61264d60a083018461243d565b979650505050505050565b600081519050919050565b600082825260208201905092915050565b60005b83811015612692578082015181840152602081019050612677565b60008484015250505050565b60006126a982612658565b6126b38185612663565b93506126c3818560208601612674565b6126cc81611ef1565b840191505092915050565b60006040820190506126ec6000830185611db2565b81810360208301526126fe818461269e565b90509392505050565b60008115159050919050565b61271c81612707565b811461272757600080fd5b50565b60008151905061273981612713565b92915050565b600080fd5b600067ffffffffffffffff82111561275f5761275e611f02565b5b61276882611ef1565b9050602081019050919050565b600061278861278384612744565b611f62565b9050828152602081018484840111156127a4576127a361273f565b5b6127af848285612674565b509392505050565b600082601f8301126127cc576127cb611eec565b5b81516127dc848260208601612775565b91505092915050565b600080604083850312156127fc576127fb611de6565b5b600061280a8582860161272a565b925050602083015167ffffffffffffffff81111561282b5761282a611deb565b5b612837858286016127b7565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061287b82611df0565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036128ad576128ac612841565b5b600182019050919050565b6000602082840312156128ce576128cd611de6565b5b60006128dc848285016122f9565b91505092915050565b6000815190506128f481611e26565b92915050565b6000602082840312156129105761290f611de6565b5b600061291e848285016128e5565b91505092915050565b600060408201905061293c6000830185611db2565b612949602083018461208e565b9392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006129ac6026836121ae565b91506129b782612950565b604082019050919050565b600060208201905081810360008301526129db8161299f565b9050919050565b60006040820190506129f7600083018561208e565b612a04602083018461208e565b9392505050565b7f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160008201527f647920696e697469616c697a6564000000000000000000000000000000000000602082015250565b6000612a67602e836121ae565b9150612a7282612a0b565b604082019050919050565b60006020820190508181036000830152612a9681612a5a565b9050919050565b6000819050919050565b6000819050919050565b6000612acc612ac7612ac284612a9d565b612aa7565b6124b4565b9050919050565b612adc81612ab1565b82525050565b6000602082019050612af76000830184612ad3565b92915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000612b336020836121ae565b9150612b3e82612afd565b602082019050919050565b60006020820190508181036000830152612b6281612b26565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000612b9f601f836121ae565b9150612baa82612b69565b602082019050919050565b60006020820190508181036000830152612bce81612b92565b9050919050565b6000606082019050612bea6000830186611db2565b612bf76020830185611db2565b612c04604083018461208e565b949350505050565b7f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960008201527f6e697469616c697a696e67000000000000000000000000000000000000000000602082015250565b6000612c68602b836121ae565b9150612c7382612c0c565b604082019050919050565b60006020820190508181036000830152612c9781612c5b565b9050919050565b600060208284031215612cb457612cb3611de6565b5b6000612cc28482850161272a565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000612d27602a836121ae565b9150612d3282612ccb565b604082019050919050565b60006020820190508181036000830152612d5681612d1a565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b6000612db96026836121ae565b9150612dc482612d5d565b604082019050919050565b60006020820190508181036000830152612de881612dac565b9050919050565b600081905092915050565b6000612e0582612658565b612e0f8185612def565b9350612e1f818560208601612674565b80840191505092915050565b6000612e378284612dfa565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612e78601d836121ae565b9150612e8382612e42565b602082019050919050565b60006020820190508181036000830152612ea781612e6b565b9050919050565b600081519050919050565b6000612ec482612eae565b612ece81856121ae565b9350612ede818560208601612674565b612ee781611ef1565b840191505092915050565b60006020820190508181036000830152612f0c8184612eb9565b90509291505056fea26469706673582212201870d67b4fdcd5cf3a78e215887d72e241f9bac0ee304463d6bafa0b0792a5a364736f6c63430008110033
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.