ETH Price: $3,333.39 (+3.52%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Transfer Ownersh...198641432024-05-13 22:41:47262 days ago1715640107IN
0x84A719d6...e6825AdcB
0 ETH0.000110163.84736816
Reclaim Bids168697192023-03-20 15:16:35682 days ago1679325395IN
0x84A719d6...e6825AdcB
0 ETH0.0020671325.58777335
Reclaim Bids168390382023-03-16 7:49:59687 days ago1678952999IN
0x84A719d6...e6825AdcB
0 ETH0.0006991216.64258797
Reclaim Bids168390372023-03-16 7:49:47687 days ago1678952987IN
0x84A719d6...e6825AdcB
0 ETH0.0006605415.72415742
Reclaim Bids168390352023-03-16 7:49:23687 days ago1678952963IN
0x84A719d6...e6825AdcB
0 ETH0.0012930516.00199751
Reclaim Bids168261392023-03-14 12:18:47688 days ago1678796327IN
0x84A719d6...e6825AdcB
0 ETH0.0017562821.73463571
Reclaim Bids168064602023-03-11 17:56:35691 days ago1678557395IN
0x84A719d6...e6825AdcB
0 ETH0.0032656840.41387838
Reclaim Bids168053862023-03-11 14:18:23691 days ago1678544303IN
0x84A719d6...e6825AdcB
0 ETH0.0042685852.82512202
Reclaim Bids167890152023-03-09 6:58:23694 days ago1678345103IN
0x84A719d6...e6825AdcB
0 ETH0.001768221.88211652
Reclaim Bids166799272023-02-21 22:44:35709 days ago1677019475IN
0x84A719d6...e6825AdcB
0 ETH0.0023956629.65447515
Reclaim Bids166453772023-02-17 2:09:59714 days ago1676599799IN
0x84A719d6...e6825AdcB
0 ETH0.0024657330.51875681
Reclaim Bids166434422023-02-16 19:40:35714 days ago1676576435IN
0x84A719d6...e6825AdcB
0 ETH0.0037119445.94328673
Reclaim Bids166311642023-02-15 2:28:47716 days ago1676428127IN
0x84A719d6...e6825AdcB
0 ETH0.0029837336.93929849
Reclaim Bids166045602023-02-11 9:15:23720 days ago1676106923IN
0x84A719d6...e6825AdcB
0 ETH0.0013769717.04299204
Reclaim Bids166038712023-02-11 6:57:11720 days ago1676098631IN
0x84A719d6...e6825AdcB
0 ETH0.0013067916.17436012
Reclaim Bids166023872023-02-11 1:57:59720 days ago1676080679IN
0x84A719d6...e6825AdcB
0 ETH0.0016040119.85314315
Reclaim Bids166013462023-02-10 22:29:23720 days ago1676068163IN
0x84A719d6...e6825AdcB
0 ETH0.0026179332.40576345
Reclaim Bids166008452023-02-10 20:48:11720 days ago1676062091IN
0x84A719d6...e6825AdcB
0 ETH0.0017196421.28110669
Reclaim Bids166002702023-02-10 18:53:11720 days ago1676055191IN
0x84A719d6...e6825AdcB
0 ETH0.0021061126.07800883
Reclaim Bids165998482023-02-10 17:28:23720 days ago1676050103IN
0x84A719d6...e6825AdcB
0 ETH0.0026639332.96700944
Reclaim Bids165989002023-02-10 14:17:23720 days ago1676038643IN
0x84A719d6...e6825AdcB
0 ETH0.0022629728.01194365
Reclaim Bids165987082023-02-10 13:38:47720 days ago1676036327IN
0x84A719d6...e6825AdcB
0 ETH0.0019293723.88016854
Reclaim Bids165986382023-02-10 13:24:35720 days ago1676035475IN
0x84A719d6...e6825AdcB
0 ETH0.0020269625.0905165
Bid165976092023-02-10 9:57:59721 days ago1676023079IN
0x84A719d6...e6825AdcB
0 ETH0.0023474721.75560968
Bid165970502023-02-10 8:05:47721 days ago1676016347IN
0x84A719d6...e6825AdcB
0 ETH0.0024824133.66710664
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
161899692022-12-15 12:03:23778 days ago1671105803
0x84A719d6...e6825AdcB
0.001 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AcrocalpyseMarketplace

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 2000 runs

Other Settings:
default evmVersion
File 1 of 9 : AcrocalpyseMarketplace.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.7;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract AcrocalpyseMarketplace is Ownable, Pausable {
    using SafeMath for uint256;

    // signer address for verification
    address public signerAddress;

    // paper token address
    IERC20 public paperToken;

    event ItemBought(address purchaser, uint256 itemId, uint256 quantity, uint256 timestamp);
    event AuctionBid(address bidder, uint256 itemId, uint256 bidAmount, uint256 timestamp);
    event ReclaimedBids(address bidder, uint256[] itemIds, uint256 timestamp);

    struct Bidder {
        uint256 bidAmount;
        bool isRefunded;
        uint256 bidTimestamp;
    }

    struct Auction {
        uint256 highestBid;
        mapping(address => Bidder) bidders;
    }

    // Mapping to store all the bidders for an auction
    mapping(uint256 => Auction) private auctions;

    // Mapping to store total sold for buy & raffle types
    mapping(uint256 => uint256) private itemsSold;

    constructor(IERC20 _paperTokenAddress) {
        signerAddress = _msgSender();

        if (address(_paperTokenAddress) != address(0)) {
            paperToken = IERC20(_paperTokenAddress);
        }
    }

    //external
    fallback() external payable {}

    receive() external payable {} // solhint-disable-line no-empty-blocks

    modifier callerIsUser() {
        // solhint-disable-next-line avoid-tx-origin
        require(tx.origin == _msgSender(), "Cannot be called by a contract");
        _;
    }

    function buy(
        bytes memory signature,
        uint256 itemId,
        uint256 quantity,
        uint256 paperTokensCost,
        uint256 ethCost,
        uint256 maxAllowedQuantity
    ) external payable whenNotPaused callerIsUser {
        require(paperTokensCost > 0 || ethCost > 0, "Invalid amount");

        // verifying the signature
        bytes32 hash = ECDSA.toEthSignedMessageHash(
            keccak256(abi.encodePacked(_msgSender(), itemId, quantity, paperTokensCost, ethCost, maxAllowedQuantity))
        );
        require(ECDSA.recover(hash, signature) == signerAddress, "Invalid Access");

        if (ethCost > 0) {
            require(msg.value >= ethCost, "Invalid amount transferred");
        }

        // validating max allowed quantity per item
        uint256 totalSold = itemsSold[itemId];
        if (maxAllowedQuantity > 0) {
            require(totalSold + quantity <= maxAllowedQuantity, "Max sell limit reached");
        }
        itemsSold[itemId] = totalSold + quantity;

        if (paperTokensCost > 0) {
            // checking the $PAPER Token balance
            require(paperToken.balanceOf(_msgSender()) >= paperTokensCost, "Insufficient $PAPER balance");

            // Transfer $PAPER Token from Account to the Contract
            bool transferSuccess = paperToken.transferFrom(_msgSender(), address(this), paperTokensCost);
            require(transferSuccess, "$PAPER transfer failed");
        }

        emit ItemBought(_msgSender(), itemId, quantity, block.timestamp); // solhint-disable-line not-rely-on-time
    }

    function bid(
        bytes memory signature,
        uint256 itemId,
        uint256 bidAmount
    ) external whenNotPaused callerIsUser {
        require(bidAmount > 0, "Invalid bid amount");

        // verifying the signature
        bytes32 hash = ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked(_msgSender(), itemId, bidAmount)));
        require(ECDSA.recover(hash, signature) == signerAddress, "Invalid Access");

        uint256 currentHighestBid = auctions[itemId].highestBid;
        uint256 previousBid = auctions[itemId].bidders[_msgSender()].bidAmount;

        require(bidAmount > previousBid, "Bid less than previous bid");

        // checking the $PAPER Token balance
        require(paperToken.balanceOf(_msgSender()) >= bidAmount, "Insufficient $PAPER balance");

        // Transfer $PAPER Token from Account to the Contract
        bool transferSuccess = paperToken.transferFrom(_msgSender(), address(this), bidAmount - previousBid);
        require(transferSuccess, "$PAPER transfer failed");

        auctions[itemId].bidders[_msgSender()] = Bidder({
            bidAmount: bidAmount,
            isRefunded: false,
            bidTimestamp: block.timestamp // solhint-disable-line not-rely-on-time
        });

        if (currentHighestBid < bidAmount) {
            auctions[itemId].highestBid = bidAmount;
        }

        emit AuctionBid(_msgSender(), itemId, bidAmount, block.timestamp); // solhint-disable-line not-rely-on-time
    }

    function reclaimBids(bytes memory signature, uint256[] memory itemIds) external whenNotPaused callerIsUser {
        // verifying the signature
        bytes32 hash = ECDSA.toEthSignedMessageHash(keccak256(abi.encodePacked(_msgSender(), itemIds)));
        require(ECDSA.recover(hash, signature) == signerAddress, "Invalid Access");

        uint256 totalPaperToClaim = 0;

        for (uint256 i = 0; i < itemIds.length; i++) {
            Bidder memory bidder = auctions[itemIds[i]].bidders[_msgSender()];

            if (!bidder.isRefunded) {
                totalPaperToClaim += bidder.bidAmount;

                bidder.isRefunded = true;
                auctions[itemIds[i]].bidders[_msgSender()] = bidder;
            }
        }

        if (totalPaperToClaim > 0) {
            // Transfer $PAPER from Contract to the Account
            bool transferSuccess = paperToken.transfer(_msgSender(), totalPaperToClaim);
            require(transferSuccess, "Unable to transfer $PAPER");
        }

        emit ReclaimedBids(_msgSender(), itemIds, block.timestamp); // solhint-disable-line not-rely-on-time
    }

    function getItemBidder(address bidder, uint256 itemId) external view returns (Bidder memory _bidder) {
        require(itemId > 0, "Invalid Item Id");

        return auctions[itemId].bidders[bidder];
    }

    function getItemHighestBid(uint256 itemId) external view returns (uint256 highestBid) {
        require(itemId > 0, "Invalid Item Id");

        return auctions[itemId].highestBid;
    }

    function getItemsSold(uint256 itemId) external view returns (uint256 itemsSoldCount) {
        require(itemId > 0, "Invalid Item Id");

        return itemsSold[itemId];
    }

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }

    function setSignerAddress(address newSignerAddress) external onlyOwner {
        if (address(newSignerAddress) != address(0)) {
            signerAddress = newSignerAddress;
        }
    }

    function setPaperToken(IERC20 newAddress) external onlyOwner {
        if (address(newAddress) != address(0)) {
            paperToken = IERC20(newAddress);
        }
    }

    function viewContractTokenBalance(IERC20 tokenAddress) public view returns (uint256) {
        return IERC20(tokenAddress).balanceOf(address(this));
    }

    function withdrawTokens(IERC20 tokenAddress, uint256 percentageWithdrawl) external onlyOwner {
        uint256 balance = viewContractTokenBalance(tokenAddress);

        require(balance > 0, "No funds available");
        require(percentageWithdrawl > 0 && percentageWithdrawl <= 100, "Withdrawl percent invalid");

        bool success = IERC20(tokenAddress).transfer(owner(), balance.mul(percentageWithdrawl).div(100));

        require(success, "Withdrawl failed");
    }

    function withdraw(uint256 percentWithdrawl) external onlyOwner {
        require(address(this).balance > 0, "No funds available");
        require(percentWithdrawl > 0 && percentWithdrawl <= 100, "Invalid Withdrawl percent");

        Address.sendValue(payable(owner()), (address(this).balance * percentWithdrawl) / 100);
    }
}

File 2 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 3 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 4 of 9 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 5 of 9 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 6 of 9 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 7 of 9 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface 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 amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 8 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 9 of 9 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 2000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_paperTokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256","name":"itemId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bidAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"AuctionBid","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"purchaser","type":"address"},{"indexed":false,"internalType":"uint256","name":"itemId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ItemBought","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"bidder","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"itemIds","type":"uint256[]"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"ReclaimedBids","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"itemId","type":"uint256"},{"internalType":"uint256","name":"bidAmount","type":"uint256"}],"name":"bid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256","name":"itemId","type":"uint256"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"paperTokensCost","type":"uint256"},{"internalType":"uint256","name":"ethCost","type":"uint256"},{"internalType":"uint256","name":"maxAllowedQuantity","type":"uint256"}],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"bidder","type":"address"},{"internalType":"uint256","name":"itemId","type":"uint256"}],"name":"getItemBidder","outputs":[{"components":[{"internalType":"uint256","name":"bidAmount","type":"uint256"},{"internalType":"bool","name":"isRefunded","type":"bool"},{"internalType":"uint256","name":"bidTimestamp","type":"uint256"}],"internalType":"struct AcrocalpyseMarketplace.Bidder","name":"_bidder","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"itemId","type":"uint256"}],"name":"getItemHighestBid","outputs":[{"internalType":"uint256","name":"highestBid","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"itemId","type":"uint256"}],"name":"getItemsSold","outputs":[{"internalType":"uint256","name":"itemsSoldCount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paperToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256[]","name":"itemIds","type":"uint256[]"}],"name":"reclaimBids","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"newAddress","type":"address"}],"name":"setPaperToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSignerAddress","type":"address"}],"name":"setSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenAddress","type":"address"}],"name":"viewContractTokenBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"percentWithdrawl","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"percentageWithdrawl","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162002353380380620023538339810160408190526200003491620000e1565b6200003f3362000091565b6000805460ff60a01b19169055600180546001600160a01b031916331790556001600160a01b038116156200008a57600280546001600160a01b0319166001600160a01b0383161790555b5062000113565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620000f457600080fd5b81516001600160a01b03811681146200010c57600080fd5b9392505050565b61223080620001236000396000f3fe6080604052600436106101335760003560e01c8063715018a6116100b4578063b114edd91161006e578063d594152b11610056578063d594152b14610365578063e6ee228514610385578063f2fde38b146103a557005b8063b114edd914610325578063b70db9731461034557005b80638da5cb5b1161009c5780638da5cb5b146102d457806390c2b304146102f257806398255e151461030557005b8063715018a6146102aa5780638456cb59146102bf57005b80632e1a7d4d116101055780635b7633d0116100ed5780635b7633d0146102285780635c975abb14610260578063617eef6e1461028a57005b80632e1a7d4d146101f35780633f4ba83a1461021357005b8063033ee2a91461013c578063046dc1661461018557806306b091f9146101a55780630f1fd6f2146101c557005b3661013a57005b005b34801561014857600080fd5b5061015c610157366004611e1f565b6103c5565b604080518251815260208084015115159082015291810151908201526060015b60405180910390f35b34801561019157600080fd5b5061013a6101a0366004611e02565b610492565b3480156101b157600080fd5b5061013a6101c0366004611e1f565b6104d5565b3480156101d157600080fd5b506101e56101e0366004611ff1565b6106ba565b60405190815260200161017c565b3480156101ff57600080fd5b5061013a61020e366004611ff1565b61071e565b34801561021f57600080fd5b5061013a610803565b34801561023457600080fd5b50600154610248906001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b34801561026c57600080fd5b50600054600160a01b900460ff16604051901515815260200161017c565b34801561029657600080fd5b506101e56102a5366004611e02565b610815565b3480156102b657600080fd5b5061013a6108ae565b3480156102cb57600080fd5b5061013a6108c0565b3480156102e057600080fd5b506000546001600160a01b0316610248565b61013a610300366004611f8c565b6108d0565b34801561031157600080fd5b50600254610248906001600160a01b031681565b34801561033157600080fd5b506101e5610340366004611ff1565b610dc2565b34801561035157600080fd5b5061013a610360366004611f3e565b610e26565b34801561037157600080fd5b5061013a610380366004611e6d565b6112a4565b34801561039157600080fd5b5061013a6103a0366004611e02565b611604565b3480156103b157600080fd5b5061013a6103c0366004611e02565b611648565b6103eb604051806060016040528060008152602001600015158152602001600081525090565b600082116104405760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964204974656d204964000000000000000000000000000000000060448201526064015b60405180910390fd5b5060009081526003602090815260408083206001600160a01b0394909416835260019384018252918290208251606081018452815481529381015460ff16151591840191909152600201549082015290565b61049a6116d5565b6001600160a01b038116156104d2576001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383161790555b50565b6104dd6116d5565b60006104e883610815565b90506000811161053a5760405162461bcd60e51b815260206004820152601260248201527f4e6f2066756e647320617661696c61626c6500000000000000000000000000006044820152606401610437565b60008211801561054b575060648211155b6105975760405162461bcd60e51b815260206004820152601960248201527f57697468647261776c2070657263656e7420696e76616c6964000000000000006044820152606401610437565b6000836001600160a01b031663a9059cbb6105ba6000546001600160a01b031690565b6105cf60646105c9878961172f565b90611742565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561062d57600080fd5b505af1158015610641573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106659190611e4b565b9050806106b45760405162461bcd60e51b815260206004820152601060248201527f57697468647261776c206661696c6564000000000000000000000000000000006044820152606401610437565b50505050565b600080821161070b5760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964204974656d20496400000000000000000000000000000000006044820152606401610437565b5060009081526003602052604090205490565b6107266116d5565b600047116107765760405162461bcd60e51b815260206004820152601260248201527f4e6f2066756e647320617661696c61626c6500000000000000000000000000006044820152606401610437565b600081118015610787575060648111155b6107d35760405162461bcd60e51b815260206004820152601960248201527f496e76616c69642057697468647261776c2070657263656e74000000000000006044820152606401610437565b6104d26107e86000546001600160a01b031690565b60646107f4844761213c565b6107fe919061211a565b61174e565b61080b6116d5565b61081361186c565b565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561087057600080fd5b505afa158015610884573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a8919061200a565b92915050565b6108b66116d5565b61081360006118dc565b6108c86116d5565b610813611939565b6108d8611997565b3233146109275760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e747261637400006044820152606401610437565b60008311806109365750600082115b6109825760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401610437565b6040516bffffffffffffffffffffffff193360601b1660208201526034810186905260548101859052607481018490526094810183905260b48101829052600090610a2b9060d4015b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b6001549091506001600160a01b0316610a4482896119f1565b6001600160a01b031614610a9a5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964204163636573730000000000000000000000000000000000006044820152606401610437565b8215610af05782341015610af05760405162461bcd60e51b815260206004820152601a60248201527f496e76616c696420616d6f756e74207472616e736665727265640000000000006044820152606401610437565b6000868152600460205260409020548215610b5e5782610b108783612102565b1115610b5e5760405162461bcd60e51b815260206004820152601660248201527f4d61782073656c6c206c696d69742072656163686564000000000000000000006044820152606401610437565b610b688682612102565b6000888152600460205260409020558415610d725760025485906001600160a01b03166370a08231336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610be857600080fd5b505afa158015610bfc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c20919061200a565b1015610c6e5760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e74202450415045522062616c616e636500000000006044820152606401610437565b6002546000906001600160a01b03166323b872dd336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015230602482015260448101899052606401602060405180830381600087803b158015610ce957600080fd5b505af1158015610cfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d219190611e4b565b905080610d705760405162461bcd60e51b815260206004820152601660248201527f245041504552207472616e73666572206661696c6564000000000000000000006044820152606401610437565b505b604080513381526020810189905280820188905242606082015290517fe75ef3a0d768e0e8037e4b80e42d2f8a3c797998ec29cacf84fa87766ff8de5e9181900360800190a15050505050505050565b6000808211610e135760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964204974656d20496400000000000000000000000000000000006044820152606401610437565b5060009081526004602052604090205490565b610e2e611997565b323314610e7d5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e747261637400006044820152606401610437565b60008111610ecd5760405162461bcd60e51b815260206004820152601260248201527f496e76616c69642062696420616d6f756e7400000000000000000000000000006044820152606401610437565b6040516bffffffffffffffffffffffff193360601b1660208201526034810183905260548101829052600090610f05906074016109cb565b6001549091506001600160a01b0316610f1e82866119f1565b6001600160a01b031614610f745760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964204163636573730000000000000000000000000000000000006044820152606401610437565b60008381526003602090815260408083208054338552600190910190925290912054808411610fe55760405162461bcd60e51b815260206004820152601a60248201527f426964206c657373207468616e2070726576696f7573206269640000000000006044820152606401610437565b60025484906001600160a01b03166370a08231336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561105057600080fd5b505afa158015611064573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611088919061200a565b10156110d65760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e74202450415045522062616c616e636500000000006044820152606401610437565b6002546000906001600160a01b03166323b872dd33306110f6868a61215b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561115d57600080fd5b505af1158015611171573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111959190611e4b565b9050806111e45760405162461bcd60e51b815260206004820152601660248201527f245041504552207472616e73666572206661696c6564000000000000000000006044820152606401610437565b6040805160608101825286815260006020808301828152428486019081528b845260038352858420338552600190810190935294909220925183559051908201805460ff19169115159190911790559051600290910155848310156112555760008681526003602052604090208590555b604080513381526020810188905280820187905242606082015290517fe1c495393e585601bf4f7a7fa52081fc27d074c191ffc36e216b3188bbd006b89181900360800190a150505050505050565b6112ac611997565b3233146112fb5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e747261637400006044820152606401610437565b600061131333836040516020016109cb929190612023565b6001549091506001600160a01b031661132c82856119f1565b6001600160a01b0316146113825760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964204163636573730000000000000000000000000000000000006044820152606401610437565b6000805b83518110156114be576000600360008684815181106113a7576113a76121b9565b6020026020010151815260200190815260200160002060010160006113c93390565b6001600160a01b031681526020808201929092526040908101600020815160608101835281548152600182015460ff1615159381018490526002909101549181019190915291506114ab5780516114209084612102565b6001602083015285519093508190600390600090889086908110611446576114466121b9565b6020026020010151815260200190815260200160002060010160006114683390565b6001600160a01b031681526020808201929092526040908101600020835181559183015160018301805460ff191691151591909117905591909101516002909101555b50806114b681612172565b915050611386565b5080156115c3576002546000906001600160a01b031663a9059cbb336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260248101859052604401602060405180830381600087803b15801561153a57600080fd5b505af115801561154e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115729190611e4b565b9050806115c15760405162461bcd60e51b815260206004820152601960248201527f556e61626c6520746f207472616e7366657220245041504552000000000000006044820152606401610437565b505b7f6081bda262b922f2bfbaf2274e5dd6641340f3d180a5f059a513e2309850ad573384426040516115f693929190612071565b60405180910390a150505050565b61160c6116d5565b6001600160a01b038116156104d257600280546001600160a01b03831673ffffffffffffffffffffffffffffffffffffffff1990911617905550565b6116506116d5565b6001600160a01b0381166116cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610437565b6104d2816118dc565b6000546001600160a01b031633146108135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610437565b600061173b828461213c565b9392505050565b600061173b828461211a565b8047101561179e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610437565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146117eb576040519150601f19603f3d011682016040523d82523d6000602084013e6117f0565b606091505b50509050806118675760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610437565b505050565b611874611a15565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611941611997565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118bf3390565b600054600160a01b900460ff16156108135760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610437565b6000806000611a008585611a6e565b91509150611a0d81611ab4565b509392505050565b600054600160a01b900460ff166108135760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610437565b600080825160411415611aa55760208301516040840151606085015160001a611a9987828585611ca5565b94509450505050611aad565b506000905060025b9250929050565b6000816004811115611ac857611ac86121a3565b1415611ad15750565b6001816004811115611ae557611ae56121a3565b1415611b335760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610437565b6002816004811115611b4757611b476121a3565b1415611b955760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610437565b6003816004811115611ba957611ba96121a3565b1415611c1d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610437565b6004816004811115611c3157611c316121a3565b14156104d25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610437565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611cdc5750600090506003611d89565b8460ff16601b14158015611cf457508460ff16601c14155b15611d055750600090506004611d89565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611d59573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d8257600060019250925050611d89565b9150600090505b94509492505050565b600082601f830112611da357600080fd5b813567ffffffffffffffff811115611dbd57611dbd6121cf565b611dd06020601f19601f840116016120d1565b818152846020838601011115611de557600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215611e1457600080fd5b813561173b816121e5565b60008060408385031215611e3257600080fd5b8235611e3d816121e5565b946020939093013593505050565b600060208284031215611e5d57600080fd5b8151801515811461173b57600080fd5b60008060408385031215611e8057600080fd5b823567ffffffffffffffff80821115611e9857600080fd5b611ea486838701611d92565b9350602091508185013581811115611ebb57600080fd5b8501601f81018713611ecc57600080fd5b803582811115611ede57611ede6121cf565b8060051b9250611eef8484016120d1565b8181528481019083860185850187018b1015611f0a57600080fd5b600095505b83861015611f2d578035835260019590950194918601918601611f0f565b508096505050505050509250929050565b600080600060608486031215611f5357600080fd5b833567ffffffffffffffff811115611f6a57600080fd5b611f7686828701611d92565b9660208601359650604090950135949350505050565b60008060008060008060c08789031215611fa557600080fd5b863567ffffffffffffffff811115611fbc57600080fd5b611fc889828a01611d92565b9960208901359950604089013598606081013598506080810135975060a0013595509350505050565b60006020828403121561200357600080fd5b5035919050565b60006020828403121561201c57600080fd5b5051919050565b6bffffffffffffffffffffffff198360601b1681526000601482018351602080860160005b8381101561206457815185529382019390820190600101612048565b5092979650505050505050565b6000606082016001600160a01b03861683526020606081850152818651808452608086019150828801935060005b818110156120bb5784518352938301939183019160010161209f565b5050809350505050826040830152949350505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156120fa576120fa6121cf565b604052919050565b600082198211156121155761211561218d565b500190565b60008261213757634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156121565761215661218d565b500290565b60008282101561216d5761216d61218d565b500390565b60006000198214156121865761218661218d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146104d257600080fdfea2646970667358221220250ff1f0092920b7490e27827bf95aa2abcb4185d0ff647c8cc2c92180e807a064736f6c6343000807003300000000000000000000000021018cbc9ad730542130be180b577b74db2a9397

Deployed Bytecode

0x6080604052600436106101335760003560e01c8063715018a6116100b4578063b114edd91161006e578063d594152b11610056578063d594152b14610365578063e6ee228514610385578063f2fde38b146103a557005b8063b114edd914610325578063b70db9731461034557005b80638da5cb5b1161009c5780638da5cb5b146102d457806390c2b304146102f257806398255e151461030557005b8063715018a6146102aa5780638456cb59146102bf57005b80632e1a7d4d116101055780635b7633d0116100ed5780635b7633d0146102285780635c975abb14610260578063617eef6e1461028a57005b80632e1a7d4d146101f35780633f4ba83a1461021357005b8063033ee2a91461013c578063046dc1661461018557806306b091f9146101a55780630f1fd6f2146101c557005b3661013a57005b005b34801561014857600080fd5b5061015c610157366004611e1f565b6103c5565b604080518251815260208084015115159082015291810151908201526060015b60405180910390f35b34801561019157600080fd5b5061013a6101a0366004611e02565b610492565b3480156101b157600080fd5b5061013a6101c0366004611e1f565b6104d5565b3480156101d157600080fd5b506101e56101e0366004611ff1565b6106ba565b60405190815260200161017c565b3480156101ff57600080fd5b5061013a61020e366004611ff1565b61071e565b34801561021f57600080fd5b5061013a610803565b34801561023457600080fd5b50600154610248906001600160a01b031681565b6040516001600160a01b03909116815260200161017c565b34801561026c57600080fd5b50600054600160a01b900460ff16604051901515815260200161017c565b34801561029657600080fd5b506101e56102a5366004611e02565b610815565b3480156102b657600080fd5b5061013a6108ae565b3480156102cb57600080fd5b5061013a6108c0565b3480156102e057600080fd5b506000546001600160a01b0316610248565b61013a610300366004611f8c565b6108d0565b34801561031157600080fd5b50600254610248906001600160a01b031681565b34801561033157600080fd5b506101e5610340366004611ff1565b610dc2565b34801561035157600080fd5b5061013a610360366004611f3e565b610e26565b34801561037157600080fd5b5061013a610380366004611e6d565b6112a4565b34801561039157600080fd5b5061013a6103a0366004611e02565b611604565b3480156103b157600080fd5b5061013a6103c0366004611e02565b611648565b6103eb604051806060016040528060008152602001600015158152602001600081525090565b600082116104405760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964204974656d204964000000000000000000000000000000000060448201526064015b60405180910390fd5b5060009081526003602090815260408083206001600160a01b0394909416835260019384018252918290208251606081018452815481529381015460ff16151591840191909152600201549082015290565b61049a6116d5565b6001600160a01b038116156104d2576001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0383161790555b50565b6104dd6116d5565b60006104e883610815565b90506000811161053a5760405162461bcd60e51b815260206004820152601260248201527f4e6f2066756e647320617661696c61626c6500000000000000000000000000006044820152606401610437565b60008211801561054b575060648211155b6105975760405162461bcd60e51b815260206004820152601960248201527f57697468647261776c2070657263656e7420696e76616c6964000000000000006044820152606401610437565b6000836001600160a01b031663a9059cbb6105ba6000546001600160a01b031690565b6105cf60646105c9878961172f565b90611742565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b15801561062d57600080fd5b505af1158015610641573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106659190611e4b565b9050806106b45760405162461bcd60e51b815260206004820152601060248201527f57697468647261776c206661696c6564000000000000000000000000000000006044820152606401610437565b50505050565b600080821161070b5760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964204974656d20496400000000000000000000000000000000006044820152606401610437565b5060009081526003602052604090205490565b6107266116d5565b600047116107765760405162461bcd60e51b815260206004820152601260248201527f4e6f2066756e647320617661696c61626c6500000000000000000000000000006044820152606401610437565b600081118015610787575060648111155b6107d35760405162461bcd60e51b815260206004820152601960248201527f496e76616c69642057697468647261776c2070657263656e74000000000000006044820152606401610437565b6104d26107e86000546001600160a01b031690565b60646107f4844761213c565b6107fe919061211a565b61174e565b61080b6116d5565b61081361186c565b565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561087057600080fd5b505afa158015610884573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a8919061200a565b92915050565b6108b66116d5565b61081360006118dc565b6108c86116d5565b610813611939565b6108d8611997565b3233146109275760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e747261637400006044820152606401610437565b60008311806109365750600082115b6109825760405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152606401610437565b6040516bffffffffffffffffffffffff193360601b1660208201526034810186905260548101859052607481018490526094810183905260b48101829052600090610a2b9060d4015b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b6001549091506001600160a01b0316610a4482896119f1565b6001600160a01b031614610a9a5760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964204163636573730000000000000000000000000000000000006044820152606401610437565b8215610af05782341015610af05760405162461bcd60e51b815260206004820152601a60248201527f496e76616c696420616d6f756e74207472616e736665727265640000000000006044820152606401610437565b6000868152600460205260409020548215610b5e5782610b108783612102565b1115610b5e5760405162461bcd60e51b815260206004820152601660248201527f4d61782073656c6c206c696d69742072656163686564000000000000000000006044820152606401610437565b610b688682612102565b6000888152600460205260409020558415610d725760025485906001600160a01b03166370a08231336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015610be857600080fd5b505afa158015610bfc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c20919061200a565b1015610c6e5760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e74202450415045522062616c616e636500000000006044820152606401610437565b6002546000906001600160a01b03166323b872dd336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015230602482015260448101899052606401602060405180830381600087803b158015610ce957600080fd5b505af1158015610cfd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d219190611e4b565b905080610d705760405162461bcd60e51b815260206004820152601660248201527f245041504552207472616e73666572206661696c6564000000000000000000006044820152606401610437565b505b604080513381526020810189905280820188905242606082015290517fe75ef3a0d768e0e8037e4b80e42d2f8a3c797998ec29cacf84fa87766ff8de5e9181900360800190a15050505050505050565b6000808211610e135760405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964204974656d20496400000000000000000000000000000000006044820152606401610437565b5060009081526004602052604090205490565b610e2e611997565b323314610e7d5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e747261637400006044820152606401610437565b60008111610ecd5760405162461bcd60e51b815260206004820152601260248201527f496e76616c69642062696420616d6f756e7400000000000000000000000000006044820152606401610437565b6040516bffffffffffffffffffffffff193360601b1660208201526034810183905260548101829052600090610f05906074016109cb565b6001549091506001600160a01b0316610f1e82866119f1565b6001600160a01b031614610f745760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964204163636573730000000000000000000000000000000000006044820152606401610437565b60008381526003602090815260408083208054338552600190910190925290912054808411610fe55760405162461bcd60e51b815260206004820152601a60248201527f426964206c657373207468616e2070726576696f7573206269640000000000006044820152606401610437565b60025484906001600160a01b03166370a08231336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561105057600080fd5b505afa158015611064573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611088919061200a565b10156110d65760405162461bcd60e51b815260206004820152601b60248201527f496e73756666696369656e74202450415045522062616c616e636500000000006044820152606401610437565b6002546000906001600160a01b03166323b872dd33306110f6868a61215b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b15801561115d57600080fd5b505af1158015611171573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111959190611e4b565b9050806111e45760405162461bcd60e51b815260206004820152601660248201527f245041504552207472616e73666572206661696c6564000000000000000000006044820152606401610437565b6040805160608101825286815260006020808301828152428486019081528b845260038352858420338552600190810190935294909220925183559051908201805460ff19169115159190911790559051600290910155848310156112555760008681526003602052604090208590555b604080513381526020810188905280820187905242606082015290517fe1c495393e585601bf4f7a7fa52081fc27d074c191ffc36e216b3188bbd006b89181900360800190a150505050505050565b6112ac611997565b3233146112fb5760405162461bcd60e51b815260206004820152601e60248201527f43616e6e6f742062652063616c6c6564206279206120636f6e747261637400006044820152606401610437565b600061131333836040516020016109cb929190612023565b6001549091506001600160a01b031661132c82856119f1565b6001600160a01b0316146113825760405162461bcd60e51b815260206004820152600e60248201527f496e76616c6964204163636573730000000000000000000000000000000000006044820152606401610437565b6000805b83518110156114be576000600360008684815181106113a7576113a76121b9565b6020026020010151815260200190815260200160002060010160006113c93390565b6001600160a01b031681526020808201929092526040908101600020815160608101835281548152600182015460ff1615159381018490526002909101549181019190915291506114ab5780516114209084612102565b6001602083015285519093508190600390600090889086908110611446576114466121b9565b6020026020010151815260200190815260200160002060010160006114683390565b6001600160a01b031681526020808201929092526040908101600020835181559183015160018301805460ff191691151591909117905591909101516002909101555b50806114b681612172565b915050611386565b5080156115c3576002546000906001600160a01b031663a9059cbb336040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260248101859052604401602060405180830381600087803b15801561153a57600080fd5b505af115801561154e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115729190611e4b565b9050806115c15760405162461bcd60e51b815260206004820152601960248201527f556e61626c6520746f207472616e7366657220245041504552000000000000006044820152606401610437565b505b7f6081bda262b922f2bfbaf2274e5dd6641340f3d180a5f059a513e2309850ad573384426040516115f693929190612071565b60405180910390a150505050565b61160c6116d5565b6001600160a01b038116156104d257600280546001600160a01b03831673ffffffffffffffffffffffffffffffffffffffff1990911617905550565b6116506116d5565b6001600160a01b0381166116cc5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610437565b6104d2816118dc565b6000546001600160a01b031633146108135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610437565b600061173b828461213c565b9392505050565b600061173b828461211a565b8047101561179e5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610437565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146117eb576040519150601f19603f3d011682016040523d82523d6000602084013e6117f0565b606091505b50509050806118675760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610437565b505050565b611874611a15565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611941611997565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff16600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586118bf3390565b600054600160a01b900460ff16156108135760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a20706175736564000000000000000000000000000000006044820152606401610437565b6000806000611a008585611a6e565b91509150611a0d81611ab4565b509392505050565b600054600160a01b900460ff166108135760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f74207061757365640000000000000000000000006044820152606401610437565b600080825160411415611aa55760208301516040840151606085015160001a611a9987828585611ca5565b94509450505050611aad565b506000905060025b9250929050565b6000816004811115611ac857611ac86121a3565b1415611ad15750565b6001816004811115611ae557611ae56121a3565b1415611b335760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610437565b6002816004811115611b4757611b476121a3565b1415611b955760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610437565b6003816004811115611ba957611ba96121a3565b1415611c1d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610437565b6004816004811115611c3157611c316121a3565b14156104d25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610437565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611cdc5750600090506003611d89565b8460ff16601b14158015611cf457508460ff16601c14155b15611d055750600090506004611d89565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611d59573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611d8257600060019250925050611d89565b9150600090505b94509492505050565b600082601f830112611da357600080fd5b813567ffffffffffffffff811115611dbd57611dbd6121cf565b611dd06020601f19601f840116016120d1565b818152846020838601011115611de557600080fd5b816020850160208301376000918101602001919091529392505050565b600060208284031215611e1457600080fd5b813561173b816121e5565b60008060408385031215611e3257600080fd5b8235611e3d816121e5565b946020939093013593505050565b600060208284031215611e5d57600080fd5b8151801515811461173b57600080fd5b60008060408385031215611e8057600080fd5b823567ffffffffffffffff80821115611e9857600080fd5b611ea486838701611d92565b9350602091508185013581811115611ebb57600080fd5b8501601f81018713611ecc57600080fd5b803582811115611ede57611ede6121cf565b8060051b9250611eef8484016120d1565b8181528481019083860185850187018b1015611f0a57600080fd5b600095505b83861015611f2d578035835260019590950194918601918601611f0f565b508096505050505050509250929050565b600080600060608486031215611f5357600080fd5b833567ffffffffffffffff811115611f6a57600080fd5b611f7686828701611d92565b9660208601359650604090950135949350505050565b60008060008060008060c08789031215611fa557600080fd5b863567ffffffffffffffff811115611fbc57600080fd5b611fc889828a01611d92565b9960208901359950604089013598606081013598506080810135975060a0013595509350505050565b60006020828403121561200357600080fd5b5035919050565b60006020828403121561201c57600080fd5b5051919050565b6bffffffffffffffffffffffff198360601b1681526000601482018351602080860160005b8381101561206457815185529382019390820190600101612048565b5092979650505050505050565b6000606082016001600160a01b03861683526020606081850152818651808452608086019150828801935060005b818110156120bb5784518352938301939183019160010161209f565b5050809350505050826040830152949350505050565b604051601f8201601f1916810167ffffffffffffffff811182821017156120fa576120fa6121cf565b604052919050565b600082198211156121155761211561218d565b500190565b60008261213757634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156121565761215661218d565b500290565b60008282101561216d5761216d61218d565b500390565b60006000198214156121865761218661218d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146104d257600080fdfea2646970667358221220250ff1f0092920b7490e27827bf95aa2abcb4185d0ff647c8cc2c92180e807a064736f6c63430008070033

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

00000000000000000000000021018cbc9ad730542130be180b577b74db2a9397

-----Decoded View---------------
Arg [0] : _paperTokenAddress (address): 0x21018CBC9ad730542130bE180b577b74DB2a9397

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000021018cbc9ad730542130be180b577b74db2a9397


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.