ETH Price: $2,070.31 (-0.09%)

Contract

0x47EA4fE13d1bCA3BeA048c43Fbd563eBfA5a5700
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Migrate All229768122025-07-22 19:30:35231 days ago1753212635IN
0x47EA4fE1...BfA5a5700
0 ETH0.000756573.2911893
Migrate All228888852025-07-10 12:49:23244 days ago1752151763IN
0x47EA4fE1...BfA5a5700
0 ETH0.000423784.35251392
Migrate All228806842025-07-09 9:18:11245 days ago1752052691IN
0x47EA4fE1...BfA5a5700
0 ETH0.000275962.83428947
Migrate All228806732025-07-09 9:15:59245 days ago1752052559IN
0x47EA4fE1...BfA5a5700
0 ETH0.000268562.75828014
Migrate All223763592025-04-29 17:58:59315 days ago1745949539IN
0x47EA4fE1...BfA5a5700
0 ETH0.000085180.87484543
Migrate All223506622025-04-26 3:56:35319 days ago1745639795IN
0x47EA4fE1...BfA5a5700
0 ETH0.000107520.93939562
Withdraw223454692025-04-25 10:34:11320 days ago1745577251IN
0x47EA4fE1...BfA5a5700
0 ETH0.000104841.40758061
Migrate All223392142025-04-24 13:38:23321 days ago1745501903IN
0x47EA4fE1...BfA5a5700
0 ETH0.0015169615.5799919
Migrate All223275562025-04-22 22:32:47322 days ago1745361167IN
0x47EA4fE1...BfA5a5700
0 ETH0.000312153.2059873
Migrate All223251312025-04-22 14:25:59323 days ago1745331959IN
0x47EA4fE1...BfA5a5700
0 ETH0.000616626.33302745
Migrate All223024812025-04-19 10:34:11326 days ago1745058851IN
0x47EA4fE1...BfA5a5700
0 ETH0.000038940.4
Migrate All222997952025-04-19 1:33:59326 days ago1745026439IN
0x47EA4fE1...BfA5a5700
0 ETH0.000080660.82850961
Migrate All222822502025-04-16 14:47:47329 days ago1744814867IN
0x47EA4fE1...BfA5a5700
0 ETH0.000191871.87809083
Migrate All222822412025-04-16 14:45:59329 days ago1744814759IN
0x47EA4fE1...BfA5a5700
0 ETH0.00011311.492038
Migrate All222742932025-04-15 12:09:59330 days ago1744718999IN
0x47EA4fE1...BfA5a5700
0 ETH0.000145351.49282583
Migrate All222632802025-04-13 23:15:59331 days ago1744586159IN
0x47EA4fE1...BfA5a5700
0 ETH0.00008860.90997801
Migrate All222468822025-04-11 16:25:47334 days ago1744388747IN
0x47EA4fE1...BfA5a5700
0 ETH0.00032613.34923909
Migrate All222434632025-04-11 4:59:59334 days ago1744347599IN
0x47EA4fE1...BfA5a5700
0 ETH0.000092940.95457688
Migrate All222391162025-04-10 14:25:59335 days ago1744295159IN
0x47EA4fE1...BfA5a5700
0 ETH0.000965189.91291956
Migrate All222367282025-04-10 6:27:23335 days ago1744266443IN
0x47EA4fE1...BfA5a5700
0 ETH0.000017130.53600224
Migrate All222367272025-04-10 6:27:11335 days ago1744266431IN
0x47EA4fE1...BfA5a5700
0 ETH0.000041950.52273219
Migrate All222330892025-04-09 18:17:47335 days ago1744222667IN
0x47EA4fE1...BfA5a5700
0 ETH0.0052329153.74474536
Migrate All222289182025-04-09 4:20:11336 days ago1744172411IN
0x47EA4fE1...BfA5a5700
0 ETH0.000049290.50626401
Migrate All222252502025-04-08 16:02:23337 days ago1744128143IN
0x47EA4fE1...BfA5a5700
0 ETH0.000214522.20329109
Migrate All222233442025-04-08 9:39:47337 days ago1744105187IN
0x47EA4fE1...BfA5a5700
0 ETH0.000067440.58919321
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PERPSMigration

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2025-04-06
*/

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// 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);
}

// File: @openzeppelin/contracts/interfaces/IERC20.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;


// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// 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);
}

// File: @openzeppelin/contracts/interfaces/IERC165.sol


// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;


// File: @openzeppelin/contracts/interfaces/IERC1363.sol


// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;



/**
 * @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);
}

// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts (last updated v5.2.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;



/**
 * @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 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);
    }
}

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// 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;
    }
}

// File: contracts/migrate.sol


pragma solidity ^0.8.0;




contract PERPSMigration is ReentrancyGuard {
    using SafeERC20 for IERC20;

    address public constant PERPS_ADDRESS = 0xD3D0cFF8d48846042f17583ADd5B795cfd81A0d2;
    IERC20 public immutable token = IERC20(PERPS_ADDRESS);

    address public constant APPROVED_ADDRESS = 0x34A49bD2f3dB4dFe07857A0c049BF291D6A594A6;

    mapping(address => uint256) public migratedAmounts;
    uint256 public totalMigrated;

    event Migrate(address indexed user, uint256 amount);
    event Withdraw(address indexed to, uint256 amount);

    modifier onlyApproved() {
        require(msg.sender == APPROVED_ADDRESS, "Not authorized");
        _;
    }

    constructor() {}

    /**
     * @dev Allows any user to migrate their PERPS tokens to this contract
     * User must first approve this contract to spend their tokens using the ERC20 approve function
     * @param amount The amount of tokens to migrate
     */
    function migrate(uint256 amount) external nonReentrant {
        require(amount > 0, "Amount must be greater than zero");
        
        // Transfer tokens from user to this contract
        // This will fail if user hasn't approved this contract to spend their tokens
        token.safeTransferFrom(msg.sender, address(this), amount);
        
        // Update records
        migratedAmounts[msg.sender] += amount;
        totalMigrated += amount;
        
        emit Migrate(msg.sender, amount);
    }

    /**
     * @dev Function to migrate all available tokens in one transaction
     * User must first approve this contract to spend their tokens
     */
    function migrateAll() external nonReentrant {
        uint256 balance = token.balanceOf(msg.sender);
        require(balance > 0, "No tokens available to migrate");
        
        // Transfer all tokens from user to this contract
        token.safeTransferFrom(msg.sender, address(this), balance);
        
        // Update records
        migratedAmounts[msg.sender] += balance;
        totalMigrated += balance;
        
        emit Migrate(msg.sender, balance);
    }

    /**
     * @dev Allows the approved address to withdraw all migrated tokens
     */
    function withdraw() external nonReentrant onlyApproved {
        uint256 balance = token.balanceOf(address(this));
        require(balance > 0, "No tokens available for withdrawal");
        
        token.safeTransfer(APPROVED_ADDRESS, balance);
        emit Withdraw(APPROVED_ADDRESS, balance);
    }

    /**
     * @dev Emergency function to rescue accidentally sent ERC20 tokens
     * @param tokenAddress The address of the token to rescue
     */
    function rescueERC20(address tokenAddress) external onlyApproved {
        require(tokenAddress != PERPS_ADDRESS, "Cannot rescue migration token");
        
        IERC20 tokenToRescue = IERC20(tokenAddress);
        uint256 balance = tokenToRescue.balanceOf(address(this));
        require(balance > 0, "No tokens to rescue");
        
        tokenToRescue.safeTransfer(APPROVED_ADDRESS, balance);
    }

    receive() external payable {
        revert("ETH not accepted");
    }

    fallback() external payable {
        revert("Fallback: ETH not accepted");
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Migrate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"APPROVED_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERPS_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrateAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"migratedAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"rescueERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMigrated","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a060405273d3d0cff8d48846042f17583add5b795cfd81a0d2608052348015610027575f80fd5b5060015f55608051610a896100675f395f8181610248015281816102dd015281816103b7015281816104ac0152818161056f015261063e0152610a895ff3fe608060405260043610610089575f3560e01c806395a0f5eb1161005857806395a0f5eb146101a3578063c59371c5146101c6578063ccec3716146101ed578063d88848f81461020c578063fc0c546a14610237576100ce565b80633ccfd60b14610116578063454b06081461012c5780634a77f8701461014b5780635c72a2bc1461015f576100ce565b366100ce5760405162461bcd60e51b815260206004820152601060248201526f115512081b9bdd081858d8d95c1d195960821b60448201526064015b60405180910390fd5b60405162461bcd60e51b815260206004820152601a60248201527f46616c6c6261636b3a20455448206e6f7420616363657074656400000000000060448201526064016100c5565b348015610121575f80fd5b5061012a61026a565b005b348015610137575f80fd5b5061012a6101463660046109d3565b610448565b348015610156575f80fd5b5061012a610550565b34801561016a575f80fd5b506101867334a49bd2f3db4dfe07857a0c049bf291d6a594a681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101ae575f80fd5b506101b860025481565b60405190815260200161019a565b3480156101d1575f80fd5b5061018673d3d0cff8d48846042f17583add5b795cfd81a0d281565b3480156101f8575f80fd5b5061012a6102073660046109ea565b6106d3565b348015610217575f80fd5b506101b86102263660046109ea565b60016020525f908152604090205481565b348015610242575f80fd5b506101867f000000000000000000000000000000000000000000000000000000000000000081565b610272610872565b337334a49bd2f3db4dfe07857a0c049bf291d6a594a6146102c65760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016100c5565b6040516370a0823160e01b81523060048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561032a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061034e9190610a17565b90505f81116103aa5760405162461bcd60e51b815260206004820152602260248201527f4e6f20746f6b656e7320617661696c61626c6520666f72207769746864726177604482015261185b60f21b60648201526084016100c5565b6103f26001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167334a49bd2f3db4dfe07857a0c049bf291d6a594a6836108c9565b6040518181527334a49bd2f3db4dfe07857a0c049bf291d6a594a6907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a25061044660015f55565b565b610450610872565b5f811161049f5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f60448201526064016100c5565b6104d46001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084610928565b335f90815260016020526040812080548392906104f2908490610a2e565b925050819055508060025f82825461050a9190610a2e565b909155505060405181815233907fa59785389b00cbd19745afbe8d59b28e3161395c6b1e3525861a2b0dede0b90d9060200160405180910390a261054d60015f55565b50565b610558610872565b6040516370a0823160e01b81523360048201525f907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156105bc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105e09190610a17565b90505f81116106315760405162461bcd60e51b815260206004820152601e60248201527f4e6f20746f6b656e7320617661696c61626c6520746f206d696772617465000060448201526064016100c5565b6106666001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084610928565b335f9081526001602052604081208054839290610684908490610a2e565b925050819055508060025f82825461069c9190610a2e565b909155505060405181815233907fa59785389b00cbd19745afbe8d59b28e3161395c6b1e3525861a2b0dede0b90d90602001610434565b337334a49bd2f3db4dfe07857a0c049bf291d6a594a6146107275760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016100c5565b73d3d0cff8d48846042f17583add5b795cfd81a0d1196001600160a01b038216016107945760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f7420726573637565206d6967726174696f6e20746f6b656e00000060448201526064016100c5565b6040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107da573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107fe9190610a17565b90505f81116108455760405162461bcd60e51b81526020600482015260136024820152724e6f20746f6b656e7320746f2072657363756560681b60448201526064016100c5565b61086d6001600160a01b0383167334a49bd2f3db4dfe07857a0c049bf291d6a594a6836108c9565b505050565b60025f54036108c35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016100c5565b60025f55565b6040516001600160a01b0383811660248301526044820183905261086d91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610967565b6040516001600160a01b0384811660248301528381166044830152606482018390526109619186918216906323b872dd906084016108f6565b50505050565b5f8060205f8451602086015f885af180610986576040513d5f823e3d81fd5b50505f513d9150811561099d5780600114156109aa565b6001600160a01b0384163b155b1561096157604051635274afe760e01b81526001600160a01b03851660048201526024016100c5565b5f602082840312156109e3575f80fd5b5035919050565b5f602082840312156109fa575f80fd5b81356001600160a01b0381168114610a10575f80fd5b9392505050565b5f60208284031215610a27575f80fd5b5051919050565b80820180821115610a4d57634e487b7160e01b5f52601160045260245ffd5b9291505056fea2646970667358221220a71b78676ed007dd80afdff6ee047f9c85b07aab6ce23420849883efb0fce89a64736f6c63430008140033

Deployed Bytecode

0x608060405260043610610089575f3560e01c806395a0f5eb1161005857806395a0f5eb146101a3578063c59371c5146101c6578063ccec3716146101ed578063d88848f81461020c578063fc0c546a14610237576100ce565b80633ccfd60b14610116578063454b06081461012c5780634a77f8701461014b5780635c72a2bc1461015f576100ce565b366100ce5760405162461bcd60e51b815260206004820152601060248201526f115512081b9bdd081858d8d95c1d195960821b60448201526064015b60405180910390fd5b60405162461bcd60e51b815260206004820152601a60248201527f46616c6c6261636b3a20455448206e6f7420616363657074656400000000000060448201526064016100c5565b348015610121575f80fd5b5061012a61026a565b005b348015610137575f80fd5b5061012a6101463660046109d3565b610448565b348015610156575f80fd5b5061012a610550565b34801561016a575f80fd5b506101867334a49bd2f3db4dfe07857a0c049bf291d6a594a681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156101ae575f80fd5b506101b860025481565b60405190815260200161019a565b3480156101d1575f80fd5b5061018673d3d0cff8d48846042f17583add5b795cfd81a0d281565b3480156101f8575f80fd5b5061012a6102073660046109ea565b6106d3565b348015610217575f80fd5b506101b86102263660046109ea565b60016020525f908152604090205481565b348015610242575f80fd5b506101867f000000000000000000000000d3d0cff8d48846042f17583add5b795cfd81a0d281565b610272610872565b337334a49bd2f3db4dfe07857a0c049bf291d6a594a6146102c65760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016100c5565b6040516370a0823160e01b81523060048201525f907f000000000000000000000000d3d0cff8d48846042f17583add5b795cfd81a0d26001600160a01b0316906370a0823190602401602060405180830381865afa15801561032a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061034e9190610a17565b90505f81116103aa5760405162461bcd60e51b815260206004820152602260248201527f4e6f20746f6b656e7320617661696c61626c6520666f72207769746864726177604482015261185b60f21b60648201526084016100c5565b6103f26001600160a01b037f000000000000000000000000d3d0cff8d48846042f17583add5b795cfd81a0d2167334a49bd2f3db4dfe07857a0c049bf291d6a594a6836108c9565b6040518181527334a49bd2f3db4dfe07857a0c049bf291d6a594a6907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364906020015b60405180910390a25061044660015f55565b565b610450610872565b5f811161049f5760405162461bcd60e51b815260206004820181905260248201527f416d6f756e74206d7573742062652067726561746572207468616e207a65726f60448201526064016100c5565b6104d46001600160a01b037f000000000000000000000000d3d0cff8d48846042f17583add5b795cfd81a0d216333084610928565b335f90815260016020526040812080548392906104f2908490610a2e565b925050819055508060025f82825461050a9190610a2e565b909155505060405181815233907fa59785389b00cbd19745afbe8d59b28e3161395c6b1e3525861a2b0dede0b90d9060200160405180910390a261054d60015f55565b50565b610558610872565b6040516370a0823160e01b81523360048201525f907f000000000000000000000000d3d0cff8d48846042f17583add5b795cfd81a0d26001600160a01b0316906370a0823190602401602060405180830381865afa1580156105bc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906105e09190610a17565b90505f81116106315760405162461bcd60e51b815260206004820152601e60248201527f4e6f20746f6b656e7320617661696c61626c6520746f206d696772617465000060448201526064016100c5565b6106666001600160a01b037f000000000000000000000000d3d0cff8d48846042f17583add5b795cfd81a0d216333084610928565b335f9081526001602052604081208054839290610684908490610a2e565b925050819055508060025f82825461069c9190610a2e565b909155505060405181815233907fa59785389b00cbd19745afbe8d59b28e3161395c6b1e3525861a2b0dede0b90d90602001610434565b337334a49bd2f3db4dfe07857a0c049bf291d6a594a6146107275760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016100c5565b73d3d0cff8d48846042f17583add5b795cfd81a0d1196001600160a01b038216016107945760405162461bcd60e51b815260206004820152601d60248201527f43616e6e6f7420726573637565206d6967726174696f6e20746f6b656e00000060448201526064016100c5565b6040516370a0823160e01b815230600482015281905f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156107da573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906107fe9190610a17565b90505f81116108455760405162461bcd60e51b81526020600482015260136024820152724e6f20746f6b656e7320746f2072657363756560681b60448201526064016100c5565b61086d6001600160a01b0383167334a49bd2f3db4dfe07857a0c049bf291d6a594a6836108c9565b505050565b60025f54036108c35760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016100c5565b60025f55565b6040516001600160a01b0383811660248301526044820183905261086d91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610967565b6040516001600160a01b0384811660248301528381166044830152606482018390526109619186918216906323b872dd906084016108f6565b50505050565b5f8060205f8451602086015f885af180610986576040513d5f823e3d81fd5b50505f513d9150811561099d5780600114156109aa565b6001600160a01b0384163b155b1561096157604051635274afe760e01b81526001600160a01b03851660048201526024016100c5565b5f602082840312156109e3575f80fd5b5035919050565b5f602082840312156109fa575f80fd5b81356001600160a01b0381168114610a10575f80fd5b9392505050565b5f60208284031215610a27575f80fd5b5051919050565b80820180821115610a4d57634e487b7160e01b5f52601160045260245ffd5b9291505056fea2646970667358221220a71b78676ed007dd80afdff6ee047f9c85b07aab6ce23420849883efb0fce89a64736f6c63430008140033

Deployed Bytecode Sourcemap

21490:3265:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24627:26;;-1:-1:-1;;;24627:26:0;;216:2:1;24627:26:0;;;198:21:1;255:2;235:18;;;228:30;-1:-1:-1;;;274:18:1;;;267:46;330:18;;24627:26:0;;;;;;;;21490:3265;24708:36;;-1:-1:-1;;;24708:36:0;;561:2:1;24708:36:0;;;543:21:1;600:2;580:18;;;573:30;639:28;619:18;;;612:56;685:18;;24708:36:0;359:350:1;23697:308:0;;;;;;;;;;;;;:::i;:::-;;22424:521;;;;;;;;;;-1:-1:-1;22424:521:0;;;;;:::i;:::-;;:::i;23112:486::-;;;;;;;;;;;;;:::i;21726:85::-;;;;;;;;;;;;21769:42;21726:85;;;;;-1:-1:-1;;;;;1063:32:1;;;1045:51;;1033:2;1018:18;21726:85:0;;;;;;;;21877:28;;;;;;;;;;;;;;;;;;;1253:25:1;;;1241:2;1226:18;21877:28:0;1107:177:1;21575:82:0;;;;;;;;;;;;21615:42;21575:82;;24167:414;;;;;;;;;;-1:-1:-1;24167:414:0;;;;;:::i;:::-;;:::i;21820:50::-;;;;;;;;;;-1:-1:-1;21820:50:0;;;;;:::i;:::-;;;;;;;;;;;;;;21664:53;;;;;;;;;;;;;;;23697:308;20526:21;:19;:21::i;:::-;22074:10:::1;21769:42;22074:30;22066:57;;;::::0;-1:-1:-1;;;22066:57:0;;2003:2:1;22066:57:0::1;::::0;::::1;1985:21:1::0;2042:2;2022:18;;;2015:30;-1:-1:-1;;;2061:18:1;;;2054:44;2115:18;;22066:57:0::1;1801:338:1::0;22066:57:0::1;23781:30:::2;::::0;-1:-1:-1;;;23781:30:0;;23805:4:::2;23781:30;::::0;::::2;1045:51:1::0;23763:15:0::2;::::0;23781:5:::2;-1:-1:-1::0;;;;;23781:15:0::2;::::0;::::2;::::0;1018:18:1;;23781:30:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;23763:48;;23840:1;23830:7;:11;23822:58;;;::::0;-1:-1:-1;;;23822:58:0;;2535:2:1;23822:58:0::2;::::0;::::2;2517:21:1::0;2574:2;2554:18;;;2547:30;2613:34;2593:18;;;2586:62;-1:-1:-1;;;2664:18:1;;;2657:32;2706:19;;23822:58:0::2;2333:398:1::0;23822:58:0::2;23901:45;-1:-1:-1::0;;;;;23901:5:0::2;:18;21769:42;23938:7:::0;23901:18:::2;:45::i;:::-;23962:35;::::0;1253:25:1;;;21769:42:0::2;::::0;23962:35:::2;::::0;1241:2:1;1226:18;23962:35:0::2;;;;;;;;23752:253;20570:20:::0;19964:1;21090:7;:22;20907:213;20570:20;23697:308::o;22424:521::-;20526:21;:19;:21::i;:::-;22507:1:::1;22498:6;:10;22490:55;;;::::0;-1:-1:-1;;;22490:55:0;;2938:2:1;22490:55:0::1;::::0;::::1;2920:21:1::0;;;2957:18;;;2950:30;3016:34;2996:18;;;2989:62;3068:18;;22490:55:0::1;2736:356:1::0;22490:55:0::1;22708:57;-1:-1:-1::0;;;;;22708:5:0::1;:22;22731:10;22751:4;22758:6:::0;22708:22:::1;:57::i;:::-;22829:10;22813:27;::::0;;;:15:::1;:27;::::0;;;;:37;;22844:6;;22813:27;:37:::1;::::0;22844:6;;22813:37:::1;:::i;:::-;;;;;;;;22878:6;22861:13;;:23;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;22910:27:0::1;::::0;1253:25:1;;;22918:10:0::1;::::0;22910:27:::1;::::0;1241:2:1;1226:18;22910:27:0::1;;;;;;;20570:20:::0;19964:1;21090:7;:22;20907:213;20570:20;22424:521;:::o;23112:486::-;20526:21;:19;:21::i;:::-;23185:27:::1;::::0;-1:-1:-1;;;23185:27:0;;23201:10:::1;23185:27;::::0;::::1;1045:51:1::0;23167:15:0::1;::::0;23185:5:::1;-1:-1:-1::0;;;;;23185:15:0::1;::::0;::::1;::::0;1018:18:1;;23185:27:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;23167:45;;23241:1;23231:7;:11;23223:54;;;::::0;-1:-1:-1;;;23223:54:0;;3526:2:1;23223:54:0::1;::::0;::::1;3508:21:1::0;3565:2;3545:18;;;3538:30;3604:32;3584:18;;;3577:60;3654:18;;23223:54:0::1;3324:354:1::0;23223:54:0::1;23357:58;-1:-1:-1::0;;;;;23357:5:0::1;:22;23380:10;23400:4;23407:7:::0;23357:22:::1;:58::i;:::-;23479:10;23463:27;::::0;;;:15:::1;:27;::::0;;;;:38;;23494:7;;23463:27;:38:::1;::::0;23494:7;;23463:38:::1;:::i;:::-;;;;;;;;23529:7;23512:13;;:24;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;23562:28:0::1;::::0;1253:25:1;;;23570:10:0::1;::::0;23562:28:::1;::::0;1241:2:1;1226:18;23562:28:0::1;1107:177:1::0;24167:414:0;22074:10;21769:42;22074:30;22066:57;;;;-1:-1:-1;;;22066:57:0;;2003:2:1;22066:57:0;;;1985:21:1;2042:2;2022:18;;;2015:30;-1:-1:-1;;;2061:18:1;;;2054:44;2115:18;;22066:57:0;1801:338:1;22066:57:0;-1:-1:-1;;;;;;;24251:29:0;::::1;::::0;24243:71:::1;;;::::0;-1:-1:-1;;;24243:71:0;;3885:2:1;24243:71:0::1;::::0;::::1;3867:21:1::0;3924:2;3904:18;;;3897:30;3963:31;3943:18;;;3936:59;4012:18;;24243:71:0::1;3683:353:1::0;24243:71:0::1;24407:38;::::0;-1:-1:-1;;;24407:38:0;;24439:4:::1;24407:38;::::0;::::1;1045:51:1::0;24365:12:0;;24335:20:::1;::::0;-1:-1:-1;;;;;24407:23:0;::::1;::::0;::::1;::::0;1018:18:1;;24407:38:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;24389:56;;24474:1;24464:7;:11;24456:43;;;::::0;-1:-1:-1;;;24456:43:0;;4243:2:1;24456:43:0::1;::::0;::::1;4225:21:1::0;4282:2;4262:18;;;4255:30;-1:-1:-1;;;4301:18:1;;;4294:49;4360:18;;24456:43:0::1;4041:343:1::0;24456:43:0::1;24520:53;-1:-1:-1::0;;;;;24520:26:0;::::1;21769:42;24565:7:::0;24520:26:::1;:53::i;:::-;24232:349;;24167:414:::0;:::o;20606:293::-;20008:1;20740:7;;:19;20732:63;;;;-1:-1:-1;;;20732:63:0;;4591:2:1;20732:63:0;;;4573:21:1;4630:2;4610:18;;;4603:30;4669:33;4649:18;;;4642:61;4720:18;;20732:63:0;4389:355:1;20732:63:0;20008:1;20873:7;:18;20606:293::o;9841:162::-;9951:43;;-1:-1:-1;;;;;4941:32:1;;;9951:43:0;;;4923:51:1;4990:18;;;4983:34;;;9924:71:0;;9944:5;;9966:14;;;;;4896:18:1;;9951:43:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;9951:43:0;;;;;;;;;;;9924:19;:71::i;10248:190::-;10376:53;;-1:-1:-1;;;;;5286:15:1;;;10376:53:0;;;5268:34:1;5338:15;;;5318:18;;;5311:43;5370:18;;;5363:34;;;10349:81:0;;10369:5;;10391:18;;;;;5203::1;;10376:53:0;5028:375:1;10349:81:0;10248:190;;;;:::o;16434:738::-;16515:18;16544:19;16684:4;16681:1;16674:4;16668:11;16661:4;16655;16651:15;16648:1;16641:5;16634;16629:60;16743:7;16733:180;;16788:4;16782:11;16834:16;16831:1;16826:3;16811:40;16881:16;16876:3;16869:29;16733:180;-1:-1:-1;;16992:1:0;16986:8;16941:16;;-1:-1:-1;17021:15:0;;:68;;17073:11;17088:1;17073:16;;17021:68;;;-1:-1:-1;;;;;17039:26:0;;;:31;17021:68;17017:148;;;17113:40;;-1:-1:-1;;;17113:40:0;;-1:-1:-1;;;;;1063:32:1;;17113:40:0;;;1045:51:1;1018:18;;17113:40:0;899:203:1;714:180;773:6;826:2;814:9;805:7;801:23;797:32;794:52;;;842:1;839;832:12;794:52;-1:-1:-1;865:23:1;;714:180;-1:-1:-1;714:180:1:o;1289:286::-;1348:6;1401:2;1389:9;1380:7;1376:23;1372:32;1369:52;;;1417:1;1414;1407:12;1369:52;1443:23;;-1:-1:-1;;;;;1495:31:1;;1485:42;;1475:70;;1541:1;1538;1531:12;1475:70;1564:5;1289:286;-1:-1:-1;;;1289:286:1:o;2144:184::-;2214:6;2267:2;2255:9;2246:7;2242:23;2238:32;2235:52;;;2283:1;2280;2273:12;2235:52;-1:-1:-1;2306:16:1;;2144:184;-1:-1:-1;2144:184:1:o;3097:222::-;3162:9;;;3183:10;;;3180:133;;;3235:10;3230:3;3226:20;3223:1;3216:31;3270:4;3267:1;3260:15;3298:4;3295:1;3288:15;3180:133;3097:222;;;;:::o

Swarm Source

ipfs://a71b78676ed007dd80afdff6ee047f9c85b07aab6ce23420849883efb0fce89a

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.