Source Code
EVM
Overview
ETH Balance
0 ETH
ETH Value
$0.00Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 26042791 | 75 days ago | Contract Creation | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MLPLineClaimer
Compiler Version
v0.8.30+commit.73712a01
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.8.30;
import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
contract MLPLineClaimer is Ownable2Step, ReentrancyGuard {
using SafeERC20 for IERC20;
IERC20 public immutable MLP;
address public claimant;
event Deposited(uint256 amount);
event ClaimantSet(address indexed claimant);
event ClaimantUnset(address indexed previousClaimant);
event Claimed(address indexed user, uint256 amount);
event FundsRecovered(address indexed token, uint256 amount);
event ETHRecovered(uint256 amount);
constructor(address initialOwner) Ownable(initialOwner) {
MLP = IERC20(0x98bAD5e69167A329bc274B37f127EDe8196Fe37e);
}
/**
* @notice Allows the owner to deposit MLP tokens into the contract.
* @param amount The amount of MLP to deposit.
*/
function deposit(uint256 amount) external onlyOwner {
require(amount > 0, "Amount must be greater than zero");
MLP.safeTransferFrom(msg.sender, address(this), amount);
emit Deposited(amount);
}
/**
* @notice Sets the address that can claim the entire MLP balance.
* @param _claimant The address of the claimant.
*/
function setClaimant(address _claimant) external onlyOwner {
require(_claimant != address(0), "Invalid claimant address");
claimant = _claimant;
emit ClaimantSet(_claimant);
}
/**
* @notice Unsets the current claimant, allowing recovery of MLP if needed.
*/
function unsetClaimant() external onlyOwner {
address previous = claimant;
require(previous != address(0), "No claimant set");
claimant = address(0);
emit ClaimantUnset(previous);
}
/**
* @notice Allows the authorized claimant to claim the entire MLP balance.
*/
function claim() external nonReentrant {
require(msg.sender == claimant, "Not the authorized claimant");
uint256 balance = MLP.balanceOf(address(this));
require(balance > 0, "No MLP to claim");
claimant = address(0);
MLP.safeTransfer(msg.sender, balance);
emit Claimed(msg.sender, balance);
}
/**
* @notice Returns the claimable amount for the caller.
* @return The amount of MLP that can be claimed if authorized.
*/
function getClaimableAmount() external view returns (uint256) {
if (msg.sender != claimant) {
return 0;
}
return MLP.balanceOf(address(this));
}
/**
* @notice Recovers lost ERC-20 tokens sent to the contract by mistake.
* @param token The ERC-20 token to recover.
* @param amount The amount to recover.
*/
function recoverLostFunds(IERC20 token, uint256 amount) external onlyOwner nonReentrant {
require(amount > 0, "Amount must be greater than zero");
uint256 balance = token.balanceOf(address(this));
require(balance >= amount, "Insufficient balance");
if (address(token) == address(MLP)) {
require(claimant == address(0), "Cannot recover MLP while claimant is set");
}
token.safeTransfer(owner(), amount);
emit FundsRecovered(address(token), amount);
}
/**
* @notice Recovers ETH sent to the contract by mistake.
*/
function recoverETH() external onlyOwner nonReentrant {
uint256 balance = address(this).balance;
require(balance > 0, "No ETH to recover");
payable(owner()).transfer(balance);
emit ETHRecovered(balance);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
/**
* @dev Returns the value of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the value of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the
* allowance mechanism. `value` 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 value) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.3.0) (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.20;
import {IERC20} from "../IERC20.sol";
import {IERC1363} from "../../../interfaces/IERC1363.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC-20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
/**
* @dev An operation with an ERC-20 token failed.
*/
error SafeERC20FailedOperation(address token);
/**
* @dev Indicates a failed `decreaseAllowance` request.
*/
error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);
/**
* @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*/
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
* calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
*/
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Variant of {safeTransfer} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransfer(IERC20 token, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transfer, (to, value)));
}
/**
* @dev Variant of {safeTransferFrom} that returns a bool instead of reverting if the operation is not successful.
*/
function trySafeTransferFrom(IERC20 token, address from, address to, uint256 value) internal returns (bool) {
return _callOptionalReturnBool(token, abi.encodeCall(token.transferFrom, (from, to, value)));
}
/**
* @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
uint256 oldAllowance = token.allowance(address(this), spender);
forceApprove(token, spender, oldAllowance + value);
}
/**
* @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
* value, non-reverting calls are assumed to be successful.
*
* IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client"
* smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using
* this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract
* that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior.
*/
function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
unchecked {
uint256 currentAllowance = token.allowance(address(this), spender);
if (currentAllowance < requestedDecrease) {
revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
}
forceApprove(token, spender, currentAllowance - requestedDecrease);
}
}
/**
* @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
* non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
* to be set to zero before setting it to a non-zero value, such as USDT.
*
* NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function
* only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being
* set here.
*/
function forceApprove(IERC20 token, address spender, uint256 value) internal {
bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));
if (!_callOptionalReturnBool(token, approvalCall)) {
_callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
_callOptionalReturn(token, approvalCall);
}
}
/**
* @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
safeTransfer(token, to, value);
} else if (!token.transferAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target
* has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* Reverts if the returned value is other than `true`.
*/
function transferFromAndCallRelaxed(
IERC1363 token,
address from,
address to,
uint256 value,
bytes memory data
) internal {
if (to.code.length == 0) {
safeTransferFrom(token, from, to, value);
} else if (!token.transferFromAndCall(from, to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no
* code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when
* targeting contracts.
*
* NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}.
* Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall}
* once without retrying, and relies on the returned value to be true.
*
* Reverts if the returned value is other than `true`.
*/
function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal {
if (to.code.length == 0) {
forceApprove(token, to, value);
} else if (!token.approveAndCall(to, value, data)) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements.
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
// bubble errors
if iszero(success) {
let ptr := mload(0x40)
returndatacopy(ptr, 0, returndatasize())
revert(ptr, returndatasize())
}
returnSize := returndatasize()
returnValue := mload(0)
}
if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) {
revert SafeERC20FailedOperation(address(token));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*
* This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead.
*/
function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
bool success;
uint256 returnSize;
uint256 returnValue;
assembly ("memory-safe") {
success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20)
returnSize := returndatasize()
returnValue := mload(0)
}
return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @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 ReentrancyGuard {
// 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;
constructor() {
_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 Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
* `nonReentrant` function in the call stack.
*/
function _reentrancyGuardEntered() internal view returns (bool) {
return _status == _ENTERED;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)
pragma solidity ^0.8.20;
import {Ownable} from "./Ownable.sol";
/**
* @dev Contract module which provides access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* This extension of the {Ownable} contract includes a two-step mechanism to transfer
* ownership, where the new owner must call {acceptOwnership} in order to replace the
* old one. This can help prevent common mistakes, such as transfers of ownership to
* incorrect accounts, or to contracts that are unable to interact with the
* permission system.
*
* The initial owner is specified at deployment time in the constructor for `Ownable`. This
* can later be changed with {transferOwnership} and {acceptOwnership}.
*
* This module is used through inheritance. It will make available all functions
* from parent (Ownable).
*/
abstract contract Ownable2Step is Ownable {
address private _pendingOwner;
event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
/**
* @dev Returns the address of the pending owner.
*/
function pendingOwner() public view virtual returns (address) {
return _pendingOwner;
}
/**
* @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.
* Can only be called by the current owner.
*
* Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.
*/
function transferOwnership(address newOwner) public virtual override onlyOwner {
_pendingOwner = newOwner;
emit OwnershipTransferStarted(owner(), newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual override {
delete _pendingOwner;
super._transferOwnership(newOwner);
}
/**
* @dev The new owner accepts the ownership transfer.
*/
function acceptOwnership() public virtual {
address sender = _msgSender();
if (pendingOwner() != sender) {
revert OwnableUnauthorizedAccount(sender);
}
_transferOwnership(sender);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC1363.sol)
pragma solidity >=0.6.2;
import {IERC20} from "./IERC20.sol";
import {IERC165} from "./IERC165.sol";
/**
* @title IERC1363
* @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363].
*
* Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract
* after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction.
*/
interface IERC1363 is IERC20, IERC165 {
/*
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
* 0xb0202a11 ===
* bytes4(keccak256('transferAndCall(address,uint256)')) ^
* bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^
* bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^
* bytes4(keccak256('approveAndCall(address,uint256)')) ^
* bytes4(keccak256('approveAndCall(address,uint256,bytes)'))
*/
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from the caller's account to `to`
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
/**
* @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism
* and then calls {IERC1363Receiver-onTransferReceived} on `to`.
* @param from The address which you want to send tokens from.
* @param to The address which you want to transfer to.
* @param value The amount of tokens to be transferred.
* @param data Additional data with no specified format, sent in call to `to`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
* @dev Sets a `value` amount of tokens as the allowance of `spender` over the
* caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
* @param data Additional data with no specified format, sent in call to `spender`.
* @return A boolean value indicating whether the operation succeeded unless throwing.
*/
function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool);
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.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.
*
* The initial owner is set to the address provided by the deployer. This can
* later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @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 {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_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);
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC165.sol)
pragma solidity >=0.4.16;
import {IERC165} from "../utils/introspection/IERC165.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.4.0) (interfaces/IERC20.sol)
pragma solidity >=0.4.16;
import {IERC20} from "../token/ERC20/IERC20.sol";// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}{
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"remappings": []
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"claimant","type":"address"}],"name":"ClaimantSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousClaimant","type":"address"}],"name":"ClaimantUnset","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ETHRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FundsRecovered","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","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"},{"inputs":[],"name":"MLP","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimant","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getClaimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"recoverLostFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_claimant","type":"address"}],"name":"setClaimant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unsetClaimant","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60a060405234801561000f575f5ffd5b50604051611add380380611add8339818101604052810190610031919061025d565b805f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a2575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016100999190610297565b60405180910390fd5b6100b18161010860201b60201c565b5060016002819055507398bad5e69167a329bc274b37f127ede8196fe37e73ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050506102b0565b60015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905561013b8161013e60201b60201c565b50565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61022c82610203565b9050919050565b61023c81610222565b8114610246575f5ffd5b50565b5f8151905061025781610233565b92915050565b5f60208284031215610272576102716101ff565b5b5f61027f84828501610249565b91505092915050565b61029181610222565b82525050565b5f6020820190506102aa5f830184610288565b92915050565b6080516117f26102eb5f395f8181610405015281816104c1015281816105e20152818161097a01528181610b3a0152610c1801526117f25ff3fe608060405234801561000f575f5ffd5b50600436106100e8575f3560e01c80638da5cb5b1161008a578063c354bd6e11610064578063c354bd6e146101ae578063d28720af146101cc578063e30c3978146101ea578063f2fde38b14610208576100e8565b80638da5cb5b146101585780638f63458c14610176578063b6b55f2514610192576100e8565b80634e71d92d116100c65780634e71d92d14610130578063715018a61461013a57806379ba5097146101445780637e68761e1461014e576100e8565b80630614117a146100ec57806309978854146100f65780633d6f9b3914610112575b5f5ffd5b6100f4610224565b005b610110600480360381019061010b919061117d565b610307565b005b61011a610403565b6040516101279190611203565b60405180910390f35b610138610427565b005b61014261067f565b005b61014c610692565b005b610156610720565b005b610160610841565b60405161016d919061122b565b60405180910390f35b610190600480360381019061018b91906112b2565b610868565b005b6101ac60048036038101906101a791906112f0565b610ae8565b005b6101b6610bb9565b6040516101c3919061132a565b60405180910390f35b6101d4610cb4565b6040516101e1919061122b565b60405180910390f35b6101f2610cd9565b6040516101ff919061122b565b60405180910390f35b610222600480360381019061021d919061117d565b610d01565b005b61022c610dad565b610234610e34565b5f4790505f811161027a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102719061139d565b60405180910390fd5b610282610841565b73ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f193505050501580156102c4573d5f5f3e3d5ffd5b507f0296f2c4dbc8c0e53c0ffab63f84aeebd5c28aa143475a37346bf15ac003f327816040516102f4919061132a565b60405180910390a150610305610e81565b565b61030f610dad565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361037d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037490611405565b60405180910390fd5b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f5dee3aaa168dcb3270bab51a9eb03d7ef8a5e625b5d080d7ad0360df3fcbb47560405160405180910390a250565b7f000000000000000000000000000000000000000000000000000000000000000081565b61042f610e34565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104b59061146d565b60405180910390fd5b5f7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610518919061122b565b602060405180830381865afa158015610533573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610557919061149f565b90505f811161059b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059290611514565b60405180910390fd5b5f60035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061062633827f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610e8b9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a8260405161066c919061132a565b60405180910390a25061067d610e81565b565b610687610dad565b6106905f610f0a565b565b5f61069b610f3a565b90508073ffffffffffffffffffffffffffffffffffffffff166106bc610cd9565b73ffffffffffffffffffffffffffffffffffffffff161461071457806040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161070b919061122b565b60405180910390fd5b61071d81610f0a565b50565b610728610dad565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036107bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b29061157c565b60405180910390fd5b5f60035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fc49a1d570673ae265f3b15777169f27191cdedf053b0bfd86cb2de25e201d5ed60405160405180910390a250565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610870610dad565b610878610e34565b5f81116108ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b1906115e4565b60405180910390fd5b5f8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108f4919061122b565b602060405180830381865afa15801561090f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610933919061149f565b905081811015610978576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096f9061164c565b60405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a5b575f73ffffffffffffffffffffffffffffffffffffffff1660035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a51906116da565b60405180910390fd5b5b610a8d610a66610841565b838573ffffffffffffffffffffffffffffffffffffffff16610e8b9092919063ffffffff16565b8273ffffffffffffffffffffffffffffffffffffffff167f59bfc682b673f8cbf945f1e454df9334834abf7dfe7f92237ca29ecb9b43660083604051610ad3919061132a565b60405180910390a250610ae4610e81565b5050565b610af0610dad565b5f8111610b32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b29906115e4565b60405180910390fd5b610b7f3330837f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610f41909392919063ffffffff16565b7f2a89b2e3d580398d6dc2db5e0f336b52602bbaa51afa9bb5cdf59239cf0d2bea81604051610bae919061132a565b60405180910390a150565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c16575f9050610cb1565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c6f919061122b565b602060405180830381865afa158015610c8a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cae919061149f565b90505b90565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610d09610dad565b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16610d68610841565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b610db5610f3a565b73ffffffffffffffffffffffffffffffffffffffff16610dd3610841565b73ffffffffffffffffffffffffffffffffffffffff1614610e3257610df6610f3a565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610e29919061122b565b60405180910390fd5b565b6002805403610e78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6f90611742565b60405180910390fd5b60028081905550565b6001600281905550565b610f05838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401610ebe929190611760565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610fc3565b505050565b60015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055610f378161105e565b50565b5f33905090565b610fbd848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401610f7693929190611787565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610fc3565b50505050565b5f5f60205f8451602086015f885af180610fe2576040513d5f823e3d81fd5b3d92505f519150505f8214610ffb576001811415611016565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b1561105857836040517f5274afe700000000000000000000000000000000000000000000000000000000815260040161104f919061122b565b60405180910390fd5b50505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61114c82611123565b9050919050565b61115c81611142565b8114611166575f5ffd5b50565b5f8135905061117781611153565b92915050565b5f602082840312156111925761119161111f565b5b5f61119f84828501611169565b91505092915050565b5f819050919050565b5f6111cb6111c66111c184611123565b6111a8565b611123565b9050919050565b5f6111dc826111b1565b9050919050565b5f6111ed826111d2565b9050919050565b6111fd816111e3565b82525050565b5f6020820190506112165f8301846111f4565b92915050565b61122581611142565b82525050565b5f60208201905061123e5f83018461121c565b92915050565b5f61124e82611142565b9050919050565b61125e81611244565b8114611268575f5ffd5b50565b5f8135905061127981611255565b92915050565b5f819050919050565b6112918161127f565b811461129b575f5ffd5b50565b5f813590506112ac81611288565b92915050565b5f5f604083850312156112c8576112c761111f565b5b5f6112d58582860161126b565b92505060206112e68582860161129e565b9150509250929050565b5f602082840312156113055761130461111f565b5b5f6113128482850161129e565b91505092915050565b6113248161127f565b82525050565b5f60208201905061133d5f83018461131b565b92915050565b5f82825260208201905092915050565b7f4e6f2045544820746f207265636f7665720000000000000000000000000000005f82015250565b5f611387601183611343565b915061139282611353565b602082019050919050565b5f6020820190508181035f8301526113b48161137b565b9050919050565b7f496e76616c696420636c61696d616e74206164647265737300000000000000005f82015250565b5f6113ef601883611343565b91506113fa826113bb565b602082019050919050565b5f6020820190508181035f83015261141c816113e3565b9050919050565b7f4e6f742074686520617574686f72697a656420636c61696d616e7400000000005f82015250565b5f611457601b83611343565b915061146282611423565b602082019050919050565b5f6020820190508181035f8301526114848161144b565b9050919050565b5f8151905061149981611288565b92915050565b5f602082840312156114b4576114b361111f565b5b5f6114c18482850161148b565b91505092915050565b7f4e6f204d4c5020746f20636c61696d00000000000000000000000000000000005f82015250565b5f6114fe600f83611343565b9150611509826114ca565b602082019050919050565b5f6020820190508181035f83015261152b816114f2565b9050919050565b7f4e6f20636c61696d616e742073657400000000000000000000000000000000005f82015250565b5f611566600f83611343565b915061157182611532565b602082019050919050565b5f6020820190508181035f8301526115938161155a565b9050919050565b7f416d6f756e74206d7573742062652067726561746572207468616e207a65726f5f82015250565b5f6115ce602083611343565b91506115d98261159a565b602082019050919050565b5f6020820190508181035f8301526115fb816115c2565b9050919050565b7f496e73756666696369656e742062616c616e63650000000000000000000000005f82015250565b5f611636601483611343565b915061164182611602565b602082019050919050565b5f6020820190508181035f8301526116638161162a565b9050919050565b7f43616e6e6f74207265636f766572204d4c50207768696c6520636c61696d616e5f8201527f7420697320736574000000000000000000000000000000000000000000000000602082015250565b5f6116c4602883611343565b91506116cf8261166a565b604082019050919050565b5f6020820190508181035f8301526116f1816116b8565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f61172c601f83611343565b9150611737826116f8565b602082019050919050565b5f6020820190508181035f83015261175981611720565b9050919050565b5f6040820190506117735f83018561121c565b611780602083018461131b565b9392505050565b5f60608201905061179a5f83018661121c565b6117a7602083018561121c565b6117b4604083018461131b565b94935050505056fea26469706673582212208f43512680b3b26c466476835baa2293747373580e5c207d9e2dcec5a1095daa64736f6c634300081e003300000000000000000000000070bb6d116a6dca26d601c8b749b8ec81a1009e99
Deployed Bytecode
0x608060405234801561000f575f5ffd5b50600436106100e8575f3560e01c80638da5cb5b1161008a578063c354bd6e11610064578063c354bd6e146101ae578063d28720af146101cc578063e30c3978146101ea578063f2fde38b14610208576100e8565b80638da5cb5b146101585780638f63458c14610176578063b6b55f2514610192576100e8565b80634e71d92d116100c65780634e71d92d14610130578063715018a61461013a57806379ba5097146101445780637e68761e1461014e576100e8565b80630614117a146100ec57806309978854146100f65780633d6f9b3914610112575b5f5ffd5b6100f4610224565b005b610110600480360381019061010b919061117d565b610307565b005b61011a610403565b6040516101279190611203565b60405180910390f35b610138610427565b005b61014261067f565b005b61014c610692565b005b610156610720565b005b610160610841565b60405161016d919061122b565b60405180910390f35b610190600480360381019061018b91906112b2565b610868565b005b6101ac60048036038101906101a791906112f0565b610ae8565b005b6101b6610bb9565b6040516101c3919061132a565b60405180910390f35b6101d4610cb4565b6040516101e1919061122b565b60405180910390f35b6101f2610cd9565b6040516101ff919061122b565b60405180910390f35b610222600480360381019061021d919061117d565b610d01565b005b61022c610dad565b610234610e34565b5f4790505f811161027a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102719061139d565b60405180910390fd5b610282610841565b73ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f193505050501580156102c4573d5f5f3e3d5ffd5b507f0296f2c4dbc8c0e53c0ffab63f84aeebd5c28aa143475a37346bf15ac003f327816040516102f4919061132a565b60405180910390a150610305610e81565b565b61030f610dad565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361037d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161037490611405565b60405180910390fd5b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f5dee3aaa168dcb3270bab51a9eb03d7ef8a5e625b5d080d7ad0360df3fcbb47560405160405180910390a250565b7f00000000000000000000000098bad5e69167a329bc274b37f127ede8196fe37e81565b61042f610e34565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146104be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104b59061146d565b60405180910390fd5b5f7f00000000000000000000000098bad5e69167a329bc274b37f127ede8196fe37e73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610518919061122b565b602060405180830381865afa158015610533573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610557919061149f565b90505f811161059b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161059290611514565b60405180910390fd5b5f60035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061062633827f00000000000000000000000098bad5e69167a329bc274b37f127ede8196fe37e73ffffffffffffffffffffffffffffffffffffffff16610e8b9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a8260405161066c919061132a565b60405180910390a25061067d610e81565b565b610687610dad565b6106905f610f0a565b565b5f61069b610f3a565b90508073ffffffffffffffffffffffffffffffffffffffff166106bc610cd9565b73ffffffffffffffffffffffffffffffffffffffff161461071457806040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161070b919061122b565b60405180910390fd5b61071d81610f0a565b50565b610728610dad565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036107bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107b29061157c565b60405180910390fd5b5f60035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167fc49a1d570673ae265f3b15777169f27191cdedf053b0bfd86cb2de25e201d5ed60405160405180910390a250565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610870610dad565b610878610e34565b5f81116108ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108b1906115e4565b60405180910390fd5b5f8273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108f4919061122b565b602060405180830381865afa15801561090f573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610933919061149f565b905081811015610978576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096f9061164c565b60405180910390fd5b7f00000000000000000000000098bad5e69167a329bc274b37f127ede8196fe37e73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610a5b575f73ffffffffffffffffffffffffffffffffffffffff1660035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610a5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a51906116da565b60405180910390fd5b5b610a8d610a66610841565b838573ffffffffffffffffffffffffffffffffffffffff16610e8b9092919063ffffffff16565b8273ffffffffffffffffffffffffffffffffffffffff167f59bfc682b673f8cbf945f1e454df9334834abf7dfe7f92237ca29ecb9b43660083604051610ad3919061132a565b60405180910390a250610ae4610e81565b5050565b610af0610dad565b5f8111610b32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b29906115e4565b60405180910390fd5b610b7f3330837f00000000000000000000000098bad5e69167a329bc274b37f127ede8196fe37e73ffffffffffffffffffffffffffffffffffffffff16610f41909392919063ffffffff16565b7f2a89b2e3d580398d6dc2db5e0f336b52602bbaa51afa9bb5cdf59239cf0d2bea81604051610bae919061132a565b60405180910390a150565b5f60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610c16575f9050610cb1565b7f00000000000000000000000098bad5e69167a329bc274b37f127ede8196fe37e73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610c6f919061122b565b602060405180830381865afa158015610c8a573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cae919061149f565b90505b90565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610d09610dad565b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16610d68610841565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b610db5610f3a565b73ffffffffffffffffffffffffffffffffffffffff16610dd3610841565b73ffffffffffffffffffffffffffffffffffffffff1614610e3257610df6610f3a565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610e29919061122b565b60405180910390fd5b565b6002805403610e78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e6f90611742565b60405180910390fd5b60028081905550565b6001600281905550565b610f05838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8585604051602401610ebe929190611760565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610fc3565b505050565b60015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055610f378161105e565b50565b5f33905090565b610fbd848573ffffffffffffffffffffffffffffffffffffffff166323b872dd868686604051602401610f7693929190611787565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610fc3565b50505050565b5f5f60205f8451602086015f885af180610fe2576040513d5f823e3d81fd5b3d92505f519150505f8214610ffb576001811415611016565b5f8473ffffffffffffffffffffffffffffffffffffffff163b145b1561105857836040517f5274afe700000000000000000000000000000000000000000000000000000000815260040161104f919061122b565b60405180910390fd5b50505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61114c82611123565b9050919050565b61115c81611142565b8114611166575f5ffd5b50565b5f8135905061117781611153565b92915050565b5f602082840312156111925761119161111f565b5b5f61119f84828501611169565b91505092915050565b5f819050919050565b5f6111cb6111c66111c184611123565b6111a8565b611123565b9050919050565b5f6111dc826111b1565b9050919050565b5f6111ed826111d2565b9050919050565b6111fd816111e3565b82525050565b5f6020820190506112165f8301846111f4565b92915050565b61122581611142565b82525050565b5f60208201905061123e5f83018461121c565b92915050565b5f61124e82611142565b9050919050565b61125e81611244565b8114611268575f5ffd5b50565b5f8135905061127981611255565b92915050565b5f819050919050565b6112918161127f565b811461129b575f5ffd5b50565b5f813590506112ac81611288565b92915050565b5f5f604083850312156112c8576112c761111f565b5b5f6112d58582860161126b565b92505060206112e68582860161129e565b9150509250929050565b5f602082840312156113055761130461111f565b5b5f6113128482850161129e565b91505092915050565b6113248161127f565b82525050565b5f60208201905061133d5f83018461131b565b92915050565b5f82825260208201905092915050565b7f4e6f2045544820746f207265636f7665720000000000000000000000000000005f82015250565b5f611387601183611343565b915061139282611353565b602082019050919050565b5f6020820190508181035f8301526113b48161137b565b9050919050565b7f496e76616c696420636c61696d616e74206164647265737300000000000000005f82015250565b5f6113ef601883611343565b91506113fa826113bb565b602082019050919050565b5f6020820190508181035f83015261141c816113e3565b9050919050565b7f4e6f742074686520617574686f72697a656420636c61696d616e7400000000005f82015250565b5f611457601b83611343565b915061146282611423565b602082019050919050565b5f6020820190508181035f8301526114848161144b565b9050919050565b5f8151905061149981611288565b92915050565b5f602082840312156114b4576114b361111f565b5b5f6114c18482850161148b565b91505092915050565b7f4e6f204d4c5020746f20636c61696d00000000000000000000000000000000005f82015250565b5f6114fe600f83611343565b9150611509826114ca565b602082019050919050565b5f6020820190508181035f83015261152b816114f2565b9050919050565b7f4e6f20636c61696d616e742073657400000000000000000000000000000000005f82015250565b5f611566600f83611343565b915061157182611532565b602082019050919050565b5f6020820190508181035f8301526115938161155a565b9050919050565b7f416d6f756e74206d7573742062652067726561746572207468616e207a65726f5f82015250565b5f6115ce602083611343565b91506115d98261159a565b602082019050919050565b5f6020820190508181035f8301526115fb816115c2565b9050919050565b7f496e73756666696369656e742062616c616e63650000000000000000000000005f82015250565b5f611636601483611343565b915061164182611602565b602082019050919050565b5f6020820190508181035f8301526116638161162a565b9050919050565b7f43616e6e6f74207265636f766572204d4c50207768696c6520636c61696d616e5f8201527f7420697320736574000000000000000000000000000000000000000000000000602082015250565b5f6116c4602883611343565b91506116cf8261166a565b604082019050919050565b5f6020820190508181035f8301526116f1816116b8565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c005f82015250565b5f61172c601f83611343565b9150611737826116f8565b602082019050919050565b5f6020820190508181035f83015261175981611720565b9050919050565b5f6040820190506117735f83018561121c565b611780602083018461131b565b9392505050565b5f60608201905061179a5f83018661121c565b6117a7602083018561121c565b6117b4604083018461131b565b94935050505056fea26469706673582212208f43512680b3b26c466476835baa2293747373580e5c207d9e2dcec5a1095daa64736f6c634300081e0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000070bb6d116a6dca26d601c8b749b8ec81a1009e99
-----Decoded View---------------
Arg [0] : initialOwner (address): 0x70Bb6d116A6dcA26d601C8B749B8ec81A1009e99
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000070bb6d116a6dca26d601c8b749b8ec81a1009e99
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.