ETH Price: $1,955.63 (-6.21%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Purchase237614442025-11-09 11:36:4798 days ago1762688207IN
0xD1EA97B0...7155AED6B
0 ETH0.000014940.15364475
Purchase237614412025-11-09 11:36:1198 days ago1762688171IN
0xD1EA97B0...7155AED6B
0 ETH0.000015940.16386784
Purchase237614382025-11-09 11:35:3598 days ago1762688135IN
0xD1EA97B0...7155AED6B
0 ETH0.000015810.1625953
Purchase237614362025-11-09 11:35:1198 days ago1762688111IN
0xD1EA97B0...7155AED6B
0 ETH0.000014990.15411932
Purchase237614342025-11-09 11:34:3598 days ago1762688075IN
0xD1EA97B0...7155AED6B
0 ETH0.000015730.16176988
Purchase237614322025-11-09 11:34:1198 days ago1762688051IN
0xD1EA97B0...7155AED6B
0 ETH0.000016050.16499128
Purchase237614302025-11-09 11:33:4798 days ago1762688027IN
0xD1EA97B0...7155AED6B
0 ETH0.000019040.16653473
Purchase237614272025-11-09 11:33:1198 days ago1762687991IN
0xD1EA97B0...7155AED6B
0 ETH0.000016570.17034245
Purchase237614242025-11-09 11:32:3598 days ago1762687955IN
0xD1EA97B0...7155AED6B
0 ETH0.000015470.15910256
Purchase237614222025-11-09 11:32:1198 days ago1762687931IN
0xD1EA97B0...7155AED6B
0 ETH0.00001930.16872471
Purchase237614182025-11-09 11:31:2398 days ago1762687883IN
0xD1EA97B0...7155AED6B
0 ETH0.000016960.17440764
Purchase237614132025-11-09 11:30:2398 days ago1762687823IN
0xD1EA97B0...7155AED6B
0 ETH0.000016260.16717438
Purchase237614102025-11-09 11:29:4798 days ago1762687787IN
0xD1EA97B0...7155AED6B
0 ETH0.000018680.1633849
Purchase237613432025-11-09 11:16:1198 days ago1762686971IN
0xD1EA97B0...7155AED6B
0 ETH0.000016170.16585532
Purchase237613402025-11-09 11:15:3598 days ago1762686935IN
0xD1EA97B0...7155AED6B
0 ETH0.000018720.16337589
Purchase237583202025-11-09 1:07:4798 days ago1762650467IN
0xD1EA97B0...7155AED6B
0 ETH0.000020350.17796002
Purchase237582282025-11-09 0:49:2398 days ago1762649363IN
0xD1EA97B0...7155AED6B
0 ETH0.000018810.16447131
Purchase237581972025-11-09 0:43:1198 days ago1762648991IN
0xD1EA97B0...7155AED6B
0 ETH0.000019950.17441799
Purchase237576012025-11-08 22:43:5998 days ago1762641839IN
0xD1EA97B0...7155AED6B
0 ETH0.00000870.07613935
Purchase237575942025-11-08 22:42:3598 days ago1762641755IN
0xD1EA97B0...7155AED6B
0 ETH0.000008990.0786246
Purchase237575852025-11-08 22:40:4798 days ago1762641647IN
0xD1EA97B0...7155AED6B
0 ETH0.000008670.07584177
Purchase237575542025-11-08 22:34:2398 days ago1762641263IN
0xD1EA97B0...7155AED6B
0 ETH0.000010110.10398099
Purchase237575472025-11-08 22:32:5998 days ago1762641179IN
0xD1EA97B0...7155AED6B
0 ETH0.000010680.09343387
Purchase237575322025-11-08 22:29:5998 days ago1762640999IN
0xD1EA97B0...7155AED6B
0 ETH0.000008270.08484314
Purchase237575242025-11-08 22:28:2398 days ago1762640903IN
0xD1EA97B0...7155AED6B
0 ETH0.000007970.06972217
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:
HashlinkMarketplace

Compiler Version
v0.8.27+commit.40a35a09

Optimization Enabled:
Yes with 200 runs

Other Settings:
cancun EvmVersion
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.27;

import {IERC20, SafeERC20} from "lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol";

interface HashlinkTokens {
    function mint(address to, uint256 tokenId, uint256 amount) external;
}

/// @title Hashlink Marketplace
/// @author PinLink
/// @notice Users can purchase hash-rate futures with BTC, and will receive BTC in the provided BTC address.
contract HashlinkMarketplace {
    using SafeERC20 for IERC20;

    // Address of the USDC token
    address public immutable USDC_ADDRESS;

    // Address of the Hashlink tokens contract (non-transferable receipts of the hashlink futures)
    address public immutable HASHLINK_TOKENS_ADDRESS;

    // admin addresses
    mapping(address => bool) public isAdmin;

    struct ListingDetails {
        // 6 decimal USDC price
        uint256 USDCprice;
        // in seconds
        uint256 duration;
        // in H/s
        uint256 hashRate;
        // in $/kWh with 8 decimals (0.08 $/kWh would be 0.08e8, so 8000000)
        uint256 electricityPrice;
        // amount available of this package
        uint256 listedAmount;
        // amount sold of this package
        uint256 soldSupply;
        // address that receives USDC payments for this listing
        address usdcReceiver;
    }

    // Mapping from tokenId to listing details
    mapping(uint256 => ListingDetails) public listings;

    ////////////////// Events //////////////////

    event HashlinkFutureListed(
        uint256 indexed tokenId,
        // 6 decimal USDC price
        uint256 usdcPrice,
        // seconds
        uint256 duration,
        // H/s
        uint256 hashRate,
        // $/kWh with 8 decimals (0.08 $/kWh would be 0.08e8, so 8000000)
        uint256 electricityPrice,
        // amount available units of this package (tokenId)
        uint256 listedAmount,
        // address that receives USDC payments for this listing
        address usdcReceiver
    );

    event Purchased(uint256 indexed tokenId, address indexed buyer, string btcAddress);
    event ListingSupplyIncreased(uint256 indexed tokenId, uint256 extraSupply);
    event ListingSupplyDecreased(uint256 indexed tokenId, uint256 amount);
    event ListingPriceUpdated(uint256 indexed tokenId, uint256 newPrice);
    event AdminAdded(address account);
    event AdminRemoved(address account);

    modifier onlyAdmin() {
        require(isAdmin[msg.sender], "Not an admin");
        _;
    }

    constructor(address usdcAddress, address hashlinkFuturesTokenAddress) {
        USDC_ADDRESS = usdcAddress;
        HASHLINK_TOKENS_ADDRESS = hashlinkFuturesTokenAddress;

        // deployer is a default sender
        isAdmin[msg.sender] = true;
    }

    //////////////////////////////////////////////////////////////////////////////
    // externals

    /// @notice Allows any account to purchase a non-transferrable ERC1155 token representing Hashrate futures.
    /// @dev This ERC1155 token holds no value besides being a receipt.
    /// @dev The user will receive BTC yield in its BTC wallet directly, on the BTC network
    /// @dev Admins configure the listing, and configure therefore the receiver of the payment who should receive it instantly.
    function purchase(uint256 tokenId, string memory BTCaddress) external {
        require(_exists(tokenId), "Hashlink future not listed");
        require(_availableSupply(tokenId) > 0, "Hashlink future sold out");

        ListingDetails storage listing = listings[tokenId];
        uint256 usdcPrice = listing.USDCprice;

        listing.soldSupply += 1;

        // This event should carry the info tolink the buyer to its BTC address for offchain indexers
        emit Purchased(tokenId, msg.sender, BTCaddress);

        // transfer to receiver of the USDC funds
        IERC20(USDC_ADDRESS).safeTransferFrom(msg.sender, listing.usdcReceiver, usdcPrice);

        HashlinkTokens(HASHLINK_TOKENS_ADDRESS).mint(msg.sender, tokenId, 1);
    }

    //////////////////////////////////////////////////////////////////////////////
    // only admins

    function createListing(
        uint256 tokenId,
        uint256 listedAmount, // amount available of this package
        uint256 usdcPrice, // 6 decimal USDC price
        uint256 duration, // in seconds
        uint256 hashRate, // in H/s
        uint256 electricityPrice, // in $/kWh
        address usdcReceiver // address that receives USDC payments for this listing
    ) external onlyAdmin {
        require(tokenId > 0, "Token ID must be greater than zero");
        require(usdcPrice > 0, "USDC price must be greater than zero");
        require(usdcReceiver != address(0), "USDC receiver cannot be zero address");
        // make sure there is no existing listing for this tokenId
        require(!_exists(tokenId), "Hashlink future already listed");

        // some of this info is not really required onchain, but makes life easier for offchain integrations
        listings[tokenId] = ListingDetails({
            USDCprice: usdcPrice,
            listedAmount: listedAmount,
            duration: duration,
            hashRate: hashRate,
            electricityPrice: electricityPrice,
            soldSupply: 0,
            usdcReceiver: usdcReceiver
        });

        emit HashlinkFutureListed(tokenId, usdcPrice, duration, hashRate, electricityPrice, listedAmount, usdcReceiver);
    }

    /// @notice Allows admin to increase the available supply for purchases
    function increaseListingSupply(uint256 tokenId, uint256 extraSupply) external onlyAdmin {
        require(_exists(tokenId), "Hashlink future not listed");
        listings[tokenId].listedAmount += extraSupply;

        emit ListingSupplyIncreased(tokenId, extraSupply);
    }

    /// @notice Delists items from a certain tokenId
    /// @dev Only possible to delist what hasn't been sold yet
    function delist(uint256 tokenId, uint256 amount) external onlyAdmin {
        uint256 availableSupply = _availableSupply(tokenId);
        if (amount == type(uint256).max) {
            amount = availableSupply;
        }

        require(availableSupply >= amount, "Not enough supply to delist");
        require(amount > 0, "Nothing to delist");

        listings[tokenId].listedAmount -= amount;

        emit ListingSupplyDecreased(tokenId, amount);
    }

    /// @dev This contract is not expected to hold any assets, so all tokens should be recoverable
    function rescueTokens(address token, address to, uint256 amount) external onlyAdmin {
        IERC20(token).safeTransfer(to, amount);
    }

    /// @notice Updates the listing price of a Hashlink Future
    /// @dev only affecting new buyers obviously
    function updateListingPrice(uint256 tokenId, uint256 newPrice) external onlyAdmin {
        require(_exists(tokenId), "Hashlink future not listed");
        require(newPrice > 0, "USDC price must be greater than zero");

        listings[tokenId].USDCprice = newPrice;

        emit ListingPriceUpdated(tokenId, newPrice);
    }

    /// @notice allows an admin to add another admin
    function addAdmin(address account) external onlyAdmin {
        require(!isAdmin[account], "Already an admin");
        isAdmin[account] = true;
        emit AdminAdded(account);
    }

    /// @notice allows an admin to remove an admin
    /// @dev the case of adversarial admins is accepted. Admins are considered trusted
    function removeAdmin(address account) external onlyAdmin {
        require(isAdmin[account], "Not an admin");
        isAdmin[account] = false;
        emit AdminRemoved(account);
    }

    //////////////////////////////////////////////////////////////////////////////
    // internals

    function _exists(uint256 tokenId) internal view returns (bool) {
        return listings[tokenId].USDCprice > 0;
    }

    function _availableSupply(uint256 tokenId) internal view returns (uint256) {
        return listings[tokenId].listedAmount - listings[tokenId].soldSupply;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.2.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 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.1.0) (interfaces/IERC1363.sol)

pragma solidity ^0.8.20;

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

File 5 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../token/ERC20/IERC20.sol";

File 6 of 7 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

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

Settings
{
  "remappings": [
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-std/=lib/forge-std/src/",
    "halmos-cheatcodes/=lib/openzeppelin-contracts/lib/halmos-cheatcodes/src/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "cancun",
  "viaIR": false
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"usdcAddress","type":"address"},{"internalType":"address","name":"hashlinkFuturesTokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"AdminAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"AdminRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"usdcPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"duration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"hashRate","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"electricityPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"listedAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"usdcReceiver","type":"address"}],"name":"HashlinkFutureListed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"ListingPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ListingSupplyDecreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"extraSupply","type":"uint256"}],"name":"ListingSupplyIncreased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"string","name":"btcAddress","type":"string"}],"name":"Purchased","type":"event"},{"inputs":[],"name":"HASHLINK_TOKENS_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"listedAmount","type":"uint256"},{"internalType":"uint256","name":"usdcPrice","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"hashRate","type":"uint256"},{"internalType":"uint256","name":"electricityPrice","type":"uint256"},{"internalType":"address","name":"usdcReceiver","type":"address"}],"name":"createListing","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"delist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"extraSupply","type":"uint256"}],"name":"increaseListingSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"listings","outputs":[{"internalType":"uint256","name":"USDCprice","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"hashRate","type":"uint256"},{"internalType":"uint256","name":"electricityPrice","type":"uint256"},{"internalType":"uint256","name":"listedAmount","type":"uint256"},{"internalType":"uint256","name":"soldSupply","type":"uint256"},{"internalType":"address","name":"usdcReceiver","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"BTCaddress","type":"string"}],"name":"purchase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"updateListingPrice","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c060405234801561000f575f5ffd5b5060405161107238038061107283398101604081905261002e91610079565b6001600160a01b039182166080521660a052335f908152602081905260409020805460ff191660011790556100aa565b80516001600160a01b0381168114610074575f5ffd5b919050565b5f5f6040838503121561008a575f5ffd5b6100938361005e565b91506100a16020840161005e565b90509250929050565b60805160a051610f996100d95f395f8181610106015261071f01525f818161016b01526106d10152610f995ff3fe608060405234801561000f575f5ffd5b50600436106100b1575f3560e01c8063c46049431161006e578063c46049431461018d578063cea9d26f146101a0578063da9581b6146101b3578063de74e57b146101c6578063f302924614610256578063f8c265be14610269575f5ffd5b80631785f53c146100b557806324d7806c146100ca5780634585efe41461010157806366338baa146101405780637048027514610153578063bb09d9b714610166575b5f5ffd5b6100c86100c3366004610c9a565b61027c565b005b6100ec6100d8366004610c9a565b5f6020819052908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6101287f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100f8565b6100c861014e366004610cba565b61033f565b6100c8610161366004610c9a565b6103f6565b6101287f000000000000000000000000000000000000000000000000000000000000000081565b6100c861019b366004610cba565b6104d0565b6100c86101ae366004610cda565b61058b565b6100c86101c1366004610d28565b6105d2565b6102186101d4366004610de5565b600160208190525f9182526040909120805491810154600282015460038301546004840154600585015460069095015493949293919290916001600160a01b031687565b604080519788526020880196909652948601939093526060850191909152608084015260a08301526001600160a01b031660c082015260e0016100f8565b6100c8610264366004610dfc565b610784565b6100c8610277366004610cba565b610a15565b335f9081526020819052604090205460ff166102b35760405162461bcd60e51b81526004016102aa90610e53565b60405180910390fd5b6001600160a01b0381165f9081526020819052604090205460ff166102ea5760405162461bcd60e51b81526004016102aa90610e53565b6001600160a01b0381165f8181526020818152604091829020805460ff1916905590519182527fa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f91015b60405180910390a150565b335f9081526020819052604090205460ff1661036d5760405162461bcd60e51b81526004016102aa90610e53565b5f828152600160205260409020546103975760405162461bcd60e51b81526004016102aa90610e79565b5f82815260016020526040812060040180548392906103b7908490610ec4565b909155505060405181815282907fc1fb3cb5a3e830e8044224dd88f636a3ae1b5a7843ee4fda6d20ba71b1cf0be0906020015b60405180910390a25050565b335f9081526020819052604090205460ff166104245760405162461bcd60e51b81526004016102aa90610e53565b6001600160a01b0381165f9081526020819052604090205460ff161561047f5760405162461bcd60e51b815260206004820152601060248201526f20b63932b0b23c9030b71030b236b4b760811b60448201526064016102aa565b6001600160a01b0381165f8181526020818152604091829020805460ff1916600117905590519182527f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e3399101610334565b335f9081526020819052604090205460ff166104fe5760405162461bcd60e51b81526004016102aa90610e53565b5f828152600160205260409020546105285760405162461bcd60e51b81526004016102aa90610e79565b5f81116105475760405162461bcd60e51b81526004016102aa90610ed7565b5f82815260016020526040908190208290555182907f522acc74fb3f21f3b09a9a4667b5faba86eb39c7f6b916a64f9114e68765abb4906103ea9084815260200190565b335f9081526020819052604090205460ff166105b95760405162461bcd60e51b81526004016102aa90610e53565b6105cd6001600160a01b0384168383610b4d565b505050565b5f828152600160205260409020546105fc5760405162461bcd60e51b81526004016102aa90610e79565b5f61060683610bac565b116106535760405162461bcd60e51b815260206004820152601860248201527f486173686c696e6b2066757475726520736f6c64206f7574000000000000000060448201526064016102aa565b5f82815260016020819052604082208054600582018054929491939290919061067d908490610ec4565b9091555050604051339085907ffb127ea18e5248bbf72238b4fc09cadede447dade567eb60af7dfb2ccba22577906106b6908790610f1b565b60405180910390a360068201546106fc906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081169133911684610bd4565b604051630ab714fb60e11b815233600482015260248101859052600160448201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063156e29f6906064015f604051808303815f87803b158015610768575f5ffd5b505af115801561077a573d5f5f3e3d5ffd5b5050505050505050565b335f9081526020819052604090205460ff166107b25760405162461bcd60e51b81526004016102aa90610e53565b5f871161080c5760405162461bcd60e51b815260206004820152602260248201527f546f6b656e204944206d7573742062652067726561746572207468616e207a65604482015261726f60f01b60648201526084016102aa565b5f851161082b5760405162461bcd60e51b81526004016102aa90610ed7565b6001600160a01b03811661088d5760405162461bcd60e51b8152602060048201526024808201527f555344432072656365697665722063616e6e6f74206265207a65726f206164646044820152637265737360e01b60648201526084016102aa565b5f87815260016020526040902054156108e85760405162461bcd60e51b815260206004820152601e60248201527f486173686c696e6b2066757475726520616c7265616479206c6973746564000060448201526064016102aa565b6040518060e001604052808681526020018581526020018481526020018381526020018781526020015f8152602001826001600160a01b031681525060015f8981526020019081526020015f205f820151815f01556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015f6101000a8154816001600160a01b0302191690836001600160a01b03160217905550905050867f6ea9d6c6ff22c08e615b6102e8e1e980db10219f5a3bac469ff29b83a11ccbfa868686868b87604051610a049695949392919095865260208601949094526040850192909252606084015260808301526001600160a01b031660a082015260c00190565b60405180910390a250505050505050565b335f9081526020819052604090205460ff16610a435760405162461bcd60e51b81526004016102aa90610e53565b5f610a4d83610bac565b90505f198203610a5b578091505b81811015610aab5760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820737570706c7920746f2064656c697374000000000060448201526064016102aa565b5f8211610aee5760405162461bcd60e51b8152602060048201526011602482015270139bdd1a1a5b99c81d1bc819195b1a5cdd607a1b60448201526064016102aa565b5f8381526001602052604081206004018054849290610b0e908490610f50565b909155505060405182815283907f22263eac899f0f68a4e87323cfb9e34ebcaaafa8a0e007663e1c077ddb5c29789060200160405180910390a2505050565b6040516001600160a01b038381166024830152604482018390526105cd91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610c13565b5f8181526001602052604081206005810154600490910154610bce9190610f50565b92915050565b6040516001600160a01b038481166024830152838116604483015260648201839052610c0d9186918216906323b872dd90608401610b7a565b50505050565b5f5f60205f8451602086015f885af180610c32576040513d5f823e3d81fd5b50505f513d91508115610c49578060011415610c56565b6001600160a01b0384163b155b15610c0d57604051635274afe760e01b81526001600160a01b03851660048201526024016102aa565b80356001600160a01b0381168114610c95575f5ffd5b919050565b5f60208284031215610caa575f5ffd5b610cb382610c7f565b9392505050565b5f5f60408385031215610ccb575f5ffd5b50508035926020909101359150565b5f5f5f60608486031215610cec575f5ffd5b610cf584610c7f565b9250610d0360208501610c7f565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b5f5f60408385031215610d39575f5ffd5b82359150602083013567ffffffffffffffff811115610d56575f5ffd5b8301601f81018513610d66575f5ffd5b803567ffffffffffffffff811115610d8057610d80610d14565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610daf57610daf610d14565b604052818152828201602001871015610dc6575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215610df5575f5ffd5b5035919050565b5f5f5f5f5f5f5f60e0888a031215610e12575f5ffd5b873596506020880135955060408801359450606088013593506080880135925060a08801359150610e4560c08901610c7f565b905092959891949750929550565b6020808252600c908201526b2737ba1030b71030b236b4b760a11b604082015260600190565b6020808252601a908201527f486173686c696e6b20667574757265206e6f74206c6973746564000000000000604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610bce57610bce610eb0565b60208082526024908201527f55534443207072696365206d7573742062652067726561746572207468616e206040820152637a65726f60e01b606082015260800190565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b81810381811115610bce57610bce610eb056fea26469706673582212201606908996b748e51e2623f8b2fcdb8359c8679af73f6dec02ab464e094a205564736f6c634300081b0033000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000da926c6893c6a7c04f54921ac4c68569aa4154f8

Deployed Bytecode

0x608060405234801561000f575f5ffd5b50600436106100b1575f3560e01c8063c46049431161006e578063c46049431461018d578063cea9d26f146101a0578063da9581b6146101b3578063de74e57b146101c6578063f302924614610256578063f8c265be14610269575f5ffd5b80631785f53c146100b557806324d7806c146100ca5780634585efe41461010157806366338baa146101405780637048027514610153578063bb09d9b714610166575b5f5ffd5b6100c86100c3366004610c9a565b61027c565b005b6100ec6100d8366004610c9a565b5f6020819052908152604090205460ff1681565b60405190151581526020015b60405180910390f35b6101287f000000000000000000000000da926c6893c6a7c04f54921ac4c68569aa4154f881565b6040516001600160a01b0390911681526020016100f8565b6100c861014e366004610cba565b61033f565b6100c8610161366004610c9a565b6103f6565b6101287f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881565b6100c861019b366004610cba565b6104d0565b6100c86101ae366004610cda565b61058b565b6100c86101c1366004610d28565b6105d2565b6102186101d4366004610de5565b600160208190525f9182526040909120805491810154600282015460038301546004840154600585015460069095015493949293919290916001600160a01b031687565b604080519788526020880196909652948601939093526060850191909152608084015260a08301526001600160a01b031660c082015260e0016100f8565b6100c8610264366004610dfc565b610784565b6100c8610277366004610cba565b610a15565b335f9081526020819052604090205460ff166102b35760405162461bcd60e51b81526004016102aa90610e53565b60405180910390fd5b6001600160a01b0381165f9081526020819052604090205460ff166102ea5760405162461bcd60e51b81526004016102aa90610e53565b6001600160a01b0381165f8181526020818152604091829020805460ff1916905590519182527fa3b62bc36326052d97ea62d63c3d60308ed4c3ea8ac079dd8499f1e9c4f80c0f91015b60405180910390a150565b335f9081526020819052604090205460ff1661036d5760405162461bcd60e51b81526004016102aa90610e53565b5f828152600160205260409020546103975760405162461bcd60e51b81526004016102aa90610e79565b5f82815260016020526040812060040180548392906103b7908490610ec4565b909155505060405181815282907fc1fb3cb5a3e830e8044224dd88f636a3ae1b5a7843ee4fda6d20ba71b1cf0be0906020015b60405180910390a25050565b335f9081526020819052604090205460ff166104245760405162461bcd60e51b81526004016102aa90610e53565b6001600160a01b0381165f9081526020819052604090205460ff161561047f5760405162461bcd60e51b815260206004820152601060248201526f20b63932b0b23c9030b71030b236b4b760811b60448201526064016102aa565b6001600160a01b0381165f8181526020818152604091829020805460ff1916600117905590519182527f44d6d25963f097ad14f29f06854a01f575648a1ef82f30e562ccd3889717e3399101610334565b335f9081526020819052604090205460ff166104fe5760405162461bcd60e51b81526004016102aa90610e53565b5f828152600160205260409020546105285760405162461bcd60e51b81526004016102aa90610e79565b5f81116105475760405162461bcd60e51b81526004016102aa90610ed7565b5f82815260016020526040908190208290555182907f522acc74fb3f21f3b09a9a4667b5faba86eb39c7f6b916a64f9114e68765abb4906103ea9084815260200190565b335f9081526020819052604090205460ff166105b95760405162461bcd60e51b81526004016102aa90610e53565b6105cd6001600160a01b0384168383610b4d565b505050565b5f828152600160205260409020546105fc5760405162461bcd60e51b81526004016102aa90610e79565b5f61060683610bac565b116106535760405162461bcd60e51b815260206004820152601860248201527f486173686c696e6b2066757475726520736f6c64206f7574000000000000000060448201526064016102aa565b5f82815260016020819052604082208054600582018054929491939290919061067d908490610ec4565b9091555050604051339085907ffb127ea18e5248bbf72238b4fc09cadede447dade567eb60af7dfb2ccba22577906106b6908790610f1b565b60405180910390a360068201546106fc906001600160a01b037f000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4881169133911684610bd4565b604051630ab714fb60e11b815233600482015260248101859052600160448201527f000000000000000000000000da926c6893c6a7c04f54921ac4c68569aa4154f86001600160a01b03169063156e29f6906064015f604051808303815f87803b158015610768575f5ffd5b505af115801561077a573d5f5f3e3d5ffd5b5050505050505050565b335f9081526020819052604090205460ff166107b25760405162461bcd60e51b81526004016102aa90610e53565b5f871161080c5760405162461bcd60e51b815260206004820152602260248201527f546f6b656e204944206d7573742062652067726561746572207468616e207a65604482015261726f60f01b60648201526084016102aa565b5f851161082b5760405162461bcd60e51b81526004016102aa90610ed7565b6001600160a01b03811661088d5760405162461bcd60e51b8152602060048201526024808201527f555344432072656365697665722063616e6e6f74206265207a65726f206164646044820152637265737360e01b60648201526084016102aa565b5f87815260016020526040902054156108e85760405162461bcd60e51b815260206004820152601e60248201527f486173686c696e6b2066757475726520616c7265616479206c6973746564000060448201526064016102aa565b6040518060e001604052808681526020018581526020018481526020018381526020018781526020015f8152602001826001600160a01b031681525060015f8981526020019081526020015f205f820151815f01556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015f6101000a8154816001600160a01b0302191690836001600160a01b03160217905550905050867f6ea9d6c6ff22c08e615b6102e8e1e980db10219f5a3bac469ff29b83a11ccbfa868686868b87604051610a049695949392919095865260208601949094526040850192909252606084015260808301526001600160a01b031660a082015260c00190565b60405180910390a250505050505050565b335f9081526020819052604090205460ff16610a435760405162461bcd60e51b81526004016102aa90610e53565b5f610a4d83610bac565b90505f198203610a5b578091505b81811015610aab5760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820737570706c7920746f2064656c697374000000000060448201526064016102aa565b5f8211610aee5760405162461bcd60e51b8152602060048201526011602482015270139bdd1a1a5b99c81d1bc819195b1a5cdd607a1b60448201526064016102aa565b5f8381526001602052604081206004018054849290610b0e908490610f50565b909155505060405182815283907f22263eac899f0f68a4e87323cfb9e34ebcaaafa8a0e007663e1c077ddb5c29789060200160405180910390a2505050565b6040516001600160a01b038381166024830152604482018390526105cd91859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050610c13565b5f8181526001602052604081206005810154600490910154610bce9190610f50565b92915050565b6040516001600160a01b038481166024830152838116604483015260648201839052610c0d9186918216906323b872dd90608401610b7a565b50505050565b5f5f60205f8451602086015f885af180610c32576040513d5f823e3d81fd5b50505f513d91508115610c49578060011415610c56565b6001600160a01b0384163b155b15610c0d57604051635274afe760e01b81526001600160a01b03851660048201526024016102aa565b80356001600160a01b0381168114610c95575f5ffd5b919050565b5f60208284031215610caa575f5ffd5b610cb382610c7f565b9392505050565b5f5f60408385031215610ccb575f5ffd5b50508035926020909101359150565b5f5f5f60608486031215610cec575f5ffd5b610cf584610c7f565b9250610d0360208501610c7f565b929592945050506040919091013590565b634e487b7160e01b5f52604160045260245ffd5b5f5f60408385031215610d39575f5ffd5b82359150602083013567ffffffffffffffff811115610d56575f5ffd5b8301601f81018513610d66575f5ffd5b803567ffffffffffffffff811115610d8057610d80610d14565b604051601f8201601f19908116603f0116810167ffffffffffffffff81118282101715610daf57610daf610d14565b604052818152828201602001871015610dc6575f5ffd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215610df5575f5ffd5b5035919050565b5f5f5f5f5f5f5f60e0888a031215610e12575f5ffd5b873596506020880135955060408801359450606088013593506080880135925060a08801359150610e4560c08901610c7f565b905092959891949750929550565b6020808252600c908201526b2737ba1030b71030b236b4b760a11b604082015260600190565b6020808252601a908201527f486173686c696e6b20667574757265206e6f74206c6973746564000000000000604082015260600190565b634e487b7160e01b5f52601160045260245ffd5b80820180821115610bce57610bce610eb0565b60208082526024908201527f55534443207072696365206d7573742062652067726561746572207468616e206040820152637a65726f60e01b606082015260800190565b602081525f82518060208401528060208501604085015e5f604082850101526040601f19601f83011684010191505092915050565b81810381811115610bce57610bce610eb056fea26469706673582212201606908996b748e51e2623f8b2fcdb8359c8679af73f6dec02ab464e094a205564736f6c634300081b0033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000da926c6893c6a7c04f54921ac4c68569aa4154f8

-----Decoded View---------------
Arg [0] : usdcAddress (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [1] : hashlinkFuturesTokenAddress (address): 0xdA926C6893C6a7c04F54921aC4C68569AA4154f8

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [1] : 000000000000000000000000da926c6893c6a7c04f54921ac4c68569aa4154f8


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.