ETH Price: $3,421.50 (+4.10%)

Contract

0xC58603470A276E341a6B450C0C55D9F8dF027246
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Tokens183020052023-10-07 23:51:23469 days ago1696722683IN
0xC5860347...8dF027246
0 ETH0.00029775.08430651
Claim Tokens181795392023-09-20 20:38:35486 days ago1695242315IN
0xC5860347...8dF027246
0 ETH0.0010975618.74474102
Claim Tokens178221162023-08-01 19:03:11537 days ago1690916591IN
0xC5860347...8dF027246
0 ETH0.00167228.55548771
Claim Tokens177931082023-07-28 17:42:35541 days ago1690566155IN
0xC5860347...8dF027246
0 ETH0.0030837452.66590095
Claim Tokens177260982023-07-19 8:38:11550 days ago1689755891IN
0xC5860347...8dF027246
0 ETH0.0007920913.52791382
Claim Tokens177232962023-07-18 23:11:23550 days ago1689721883IN
0xC5860347...8dF027246
0 ETH0.0014738225.17077331
Claim Tokens177185962023-07-18 7:21:47551 days ago1689664907IN
0xC5860347...8dF027246
0 ETH0.0007822413.35968262
Claim Tokens177181552023-07-18 5:52:59551 days ago1689659579IN
0xC5860347...8dF027246
0 ETH0.0007925513.53563337
Claim Tokens176980862023-07-15 10:04:47554 days ago1689415487IN
0xC5860347...8dF027246
0 ETH0.0008148613.9167646
Claim Tokens176926192023-07-14 15:34:47555 days ago1689348887IN
0xC5860347...8dF027246
0 ETH0.0022185937.89034914
Claim Tokens176908652023-07-14 9:39:35555 days ago1689327575IN
0xC5860347...8dF027246
0 ETH0.0010257617.51853826
Claim Tokens176868522023-07-13 20:08:11555 days ago1689278891IN
0xC5860347...8dF027246
0 ETH0.0031701154.14101574
Claim Tokens176688732023-07-11 7:24:59558 days ago1689060299IN
0xC5860347...8dF027246
0 ETH0.0009306115.89363179
Claim Tokens176686992023-07-11 6:49:23558 days ago1689058163IN
0xC5860347...8dF027246
0 ETH0.0008721514.89507757
Claim Tokens176673332023-07-11 2:13:23558 days ago1689041603IN
0xC5860347...8dF027246
0 ETH0.0009527316.27132961
Claim Tokens176656252023-07-10 20:26:35558 days ago1689020795IN
0xC5860347...8dF027246
0 ETH0.0019077732.5819464
Claim Tokens176652482023-07-10 19:10:35558 days ago1689016235IN
0xC5860347...8dF027246
0 ETH0.0012969322.14971932
Claim Tokens176633692023-07-10 12:50:23559 days ago1688993423IN
0xC5860347...8dF027246
0 ETH0.0010265117.53135737
Claim Tokens176554662023-07-09 10:09:35560 days ago1688897375IN
0xC5860347...8dF027246
0 ETH0.0008352614.26515771
Claim Tokens176546352023-07-09 7:21:35560 days ago1688887295IN
0xC5860347...8dF027246
0 ETH0.0009382116.02340247
Claim Tokens176537462023-07-09 4:21:35560 days ago1688876495IN
0xC5860347...8dF027246
0 ETH0.0009466816.16797797
Claim Tokens176527562023-07-09 0:59:59560 days ago1688864399IN
0xC5860347...8dF027246
0 ETH0.0007904613.5
Claim Tokens176502742023-07-08 16:36:23561 days ago1688834183IN
0xC5860347...8dF027246
0 ETH0.0012382921.14820236
Claim Tokens176495802023-07-08 14:17:11561 days ago1688825831IN
0xC5860347...8dF027246
0 ETH0.0017228429.42375324
Claim Tokens176395362023-07-07 4:24:35562 days ago1688703875IN
0xC5860347...8dF027246
0 ETH0.0011090218.94059451
View all transactions

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block
From
To
176165292023-07-03 22:52:59565 days ago1688424779
0xC5860347...8dF027246
526.4132 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BootstrappingAuction

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : BootstrappingAuction.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import {IERC20} from "@openzeppelin/interfaces/IERC20.sol";
import {Address} from "@openzeppelin/utils/Address.sol";

error NoCommitmentRegistered();
error PleaseSendETH();
error AuctionNotSuccessful();
error AuctionHasFinalized();
error AuctionHasNotFinalized();
error ClaimTokensInstead();

contract BootstrappingAuction {
    using Address for address payable;

    event FinalizedAuction(uint256 timestamp);
    event ClaimedPRTC(address indexed who, uint256 amount);
    event CommittedETH(address indexed who, uint256 amount);
    event RefundETH(address indexed who, uint256 amount);

    uint256 private constant PRICE_PER_PRTC = 52_137_600_000_000 wei;
    uint256 private constant TOTAL_TOKENS = 10_000_000e18;

    IERC20 private immutable prtc;
    address private immutable beneficiary;

    uint256 private immutable startTime;
    uint256 private immutable endTime;

    uint256 public totalCommitments;
    bool public isAuctionFinalized;

    mapping(address user => uint256 amountCommitted) public commitments;

    constructor(IERC20 _prtc, address _beneficiary) {
        prtc = _prtc;
        beneficiary = _beneficiary;
        startTime = block.timestamp;
        endTime = block.timestamp + 1 days + 5 hours;
    }

    function commitETH() external payable {
        if (isAuctionFinalized || auctionSuccessful()) revert AuctionHasFinalized();
        if (msg.value == 0) revert PleaseSendETH();

        commitments[msg.sender] += msg.value;
        totalCommitments += msg.value;

        emit CommittedETH(msg.sender, msg.value);
    }

    function claimTokens() external {
        if (!auctionSuccessful()) revert AuctionNotSuccessful();
        if (commitments[msg.sender] == 0) revert NoCommitmentRegistered();

        uint256 correspondingAmount = commitments[msg.sender] * TOTAL_TOKENS / totalCommitments;

        delete commitments[msg.sender];

        prtc.transfer(msg.sender, correspondingAmount);

        emit ClaimedPRTC(msg.sender, correspondingAmount);
    }

    function claimETH() external {
        if (!isAuctionFinalized) revert AuctionHasNotFinalized();
        if (commitments[msg.sender] == 0) revert NoCommitmentRegistered();
        if (auctionSuccessful()) revert ClaimTokensInstead();

        uint256 amount = commitments[msg.sender];

        delete commitments[msg.sender];

        payable(msg.sender).sendValue(amount);

        emit RefundETH(msg.sender, amount);
    }

    function finalizeAuction() external {
        if (isAuctionFinalized) revert AuctionHasFinalized();
        if (!(block.timestamp >= endTime || auctionSuccessful())) {
            revert AuctionHasNotFinalized();
        }

        isAuctionFinalized = true;

        if (auctionSuccessful()) {
            payable(beneficiary).sendValue(address(this).balance);
        } else {
            prtc.transfer(beneficiary, TOTAL_TOKENS);
        }

        emit FinalizedAuction(block.timestamp);
    }

    function auctionSuccessful() public view returns (bool) {
        return totalCommitments >= (PRICE_PER_PRTC * TOTAL_TOKENS / 1 ether);
    }
}

File 2 of 4 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

File 3 of 4 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 4 of 4 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_prtc","type":"address"},{"internalType":"address","name":"_beneficiary","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AuctionHasFinalized","type":"error"},{"inputs":[],"name":"AuctionHasNotFinalized","type":"error"},{"inputs":[],"name":"AuctionNotSuccessful","type":"error"},{"inputs":[],"name":"ClaimTokensInstead","type":"error"},{"inputs":[],"name":"NoCommitmentRegistered","type":"error"},{"inputs":[],"name":"PleaseSendETH","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"who","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ClaimedPRTC","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"who","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"CommittedETH","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"FinalizedAuction","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"who","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RefundETH","type":"event"},{"inputs":[],"name":"auctionSuccessful","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"commitETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"commitments","outputs":[{"internalType":"uint256","name":"amountCommitted","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalizeAuction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isAuctionFinalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalCommitments","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

61010060405234801561001157600080fd5b5060405161098338038061098383398101604081905261003091610085565b6001600160a01b03808316608052811660a0524260c081905261005690620151806100bf565b610062906146506100bf565b60e052506100e69050565b6001600160a01b038116811461008257600080fd5b50565b6000806040838503121561009857600080fd5b82516100a38161006d565b60208401519092506100b48161006d565b809150509250929050565b808201808211156100e057634e487b7160e01b600052601160045260246000fd5b92915050565b60805160a05160c05160e05161085961012a60003960006104b401526000505060008181610527015261056901526000818161025801526105a201526108596000f3fe60806040526004361061007b5760003560e01c806383a2fcdf1161004e57806383a2fcdf146100fa578063b83eaeff14610102578063e8fcf7231461011c578063f77282ab1461014957600080fd5b806336d0054b1461008057806348c54b9d146100aa57806367272999146100c157806378bb86d3146100d6575b600080fd5b34801561008c57600080fd5b5061009561015e565b60405190151581526020015b60405180910390f35b3480156100b657600080fd5b506100bf610198565b005b3480156100cd57600080fd5b506100bf6102ff565b3480156100e257600080fd5b506100ec60005481565b6040519081526020016100a1565b6100bf6103c8565b34801561010e57600080fd5b506001546100959060ff1681565b34801561012857600080fd5b506100ec610137366004610769565b60026020526000908152604090205481565b34801561015557600080fd5b506100bf61048e565b6000670de0b6b3a76400006101846a084595161401484a000000652f6b3b20a0006107af565b61018e91906107cc565b6000541015905090565b6101a061015e565b6101bd57604051635bc9351360e11b815260040160405180910390fd5b3360009081526002602052604081205490036101ec576040516371c1a54960e11b815260040160405180910390fd5b6000805433825260026020526040822054610213906a084595161401484a000000906107af565b61021d91906107cc565b33600081815260026020526040808220919091555163a9059cbb60e01b81526004810191909152602481018290529091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af11580156102a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c591906107ee565b5060405181815233907fddead7fb68dbdbd1e8dbbbd22d509ee1f1f24d57e0400483ed5e0139ce9a398d906020015b60405180910390a250565b60015460ff1661032257604051630ba390f560e01b815260040160405180910390fd5b336000908152600260205260408120549003610351576040516371c1a54960e11b815260040160405180910390fd5b61035961015e565b15610377576040516371851c1d60e01b815260040160405180910390fd5b3360008181526002602052604081208054919055906103969082610646565b60405181815233907f289360176646a5f99cb4b6300628426dca46b723f40db3c04449d6ed1745a0e7906020016102f4565b60015460ff16806103dc57506103dc61015e565b156103fa57604051630df85cb360e31b815260040160405180910390fd5b3460000361041b57604051639477cc2960e01b815260040160405180910390fd5b336000908152600260205260408120805434929061043a908490610810565b92505081905550346000808282546104529190610810565b909155505060405134815233907f1868bb16a7de2e7155ee8fb3e6c9e686a205add2a1a1da9bbcfb586993f51d269060200160405180910390a2565b60015460ff16156104b257604051630df85cb360e31b815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000421015806104e457506104e461015e565b61050157604051630ba390f560e01b815260040160405180910390fd5b6001805460ff19168117905561051561015e565b156105525761054d6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001647610646565b610611565b60405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526a084595161401484a00000060248301527f0000000000000000000000000000000000000000000000000000000000000000169063a9059cbb906044016020604051808303816000875af11580156105eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060f91906107ee565b505b6040514281527f31f45ed685d6dc4dd7a88f79d5038dce015c2430d68b51f8ee2d5ca1d9094d3b9060200160405180910390a1565b8047101561069b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064015b60405180910390fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146106e8576040519150601f19603f3d011682016040523d82523d6000602084013e6106ed565b606091505b50509050806107645760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610692565b505050565b60006020828403121561077b57600080fd5b81356001600160a01b038116811461079257600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176107c6576107c6610799565b92915050565b6000826107e957634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561080057600080fd5b8151801515811461079257600080fd5b808201808211156107c6576107c661079956fea2646970667358221220937d4f4c74f54ee3f38f78d4a61d36d81d5dc6fdf1819e3b6c95a112440cd09c64736f6c63430008130033000000000000000000000000b9098d3669a78e9afe8b94a97290407400d9da310000000000000000000000002a1aa732fe04494be2a24e90b120ba1864da3b17

Deployed Bytecode

0x60806040526004361061007b5760003560e01c806383a2fcdf1161004e57806383a2fcdf146100fa578063b83eaeff14610102578063e8fcf7231461011c578063f77282ab1461014957600080fd5b806336d0054b1461008057806348c54b9d146100aa57806367272999146100c157806378bb86d3146100d6575b600080fd5b34801561008c57600080fd5b5061009561015e565b60405190151581526020015b60405180910390f35b3480156100b657600080fd5b506100bf610198565b005b3480156100cd57600080fd5b506100bf6102ff565b3480156100e257600080fd5b506100ec60005481565b6040519081526020016100a1565b6100bf6103c8565b34801561010e57600080fd5b506001546100959060ff1681565b34801561012857600080fd5b506100ec610137366004610769565b60026020526000908152604090205481565b34801561015557600080fd5b506100bf61048e565b6000670de0b6b3a76400006101846a084595161401484a000000652f6b3b20a0006107af565b61018e91906107cc565b6000541015905090565b6101a061015e565b6101bd57604051635bc9351360e11b815260040160405180910390fd5b3360009081526002602052604081205490036101ec576040516371c1a54960e11b815260040160405180910390fd5b6000805433825260026020526040822054610213906a084595161401484a000000906107af565b61021d91906107cc565b33600081815260026020526040808220919091555163a9059cbb60e01b81526004810191909152602481018290529091506001600160a01b037f000000000000000000000000b9098d3669a78e9afe8b94a97290407400d9da31169063a9059cbb906044016020604051808303816000875af11580156102a1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102c591906107ee565b5060405181815233907fddead7fb68dbdbd1e8dbbbd22d509ee1f1f24d57e0400483ed5e0139ce9a398d906020015b60405180910390a250565b60015460ff1661032257604051630ba390f560e01b815260040160405180910390fd5b336000908152600260205260408120549003610351576040516371c1a54960e11b815260040160405180910390fd5b61035961015e565b15610377576040516371851c1d60e01b815260040160405180910390fd5b3360008181526002602052604081208054919055906103969082610646565b60405181815233907f289360176646a5f99cb4b6300628426dca46b723f40db3c04449d6ed1745a0e7906020016102f4565b60015460ff16806103dc57506103dc61015e565b156103fa57604051630df85cb360e31b815260040160405180910390fd5b3460000361041b57604051639477cc2960e01b815260040160405180910390fd5b336000908152600260205260408120805434929061043a908490610810565b92505081905550346000808282546104529190610810565b909155505060405134815233907f1868bb16a7de2e7155ee8fb3e6c9e686a205add2a1a1da9bbcfb586993f51d269060200160405180910390a2565b60015460ff16156104b257604051630df85cb360e31b815260040160405180910390fd5b7f0000000000000000000000000000000000000000000000000000000064a48b67421015806104e457506104e461015e565b61050157604051630ba390f560e01b815260040160405180910390fd5b6001805460ff19168117905561051561015e565b156105525761054d6001600160a01b037f0000000000000000000000002a1aa732fe04494be2a24e90b120ba1864da3b171647610646565b610611565b60405163a9059cbb60e01b81526001600160a01b037f0000000000000000000000002a1aa732fe04494be2a24e90b120ba1864da3b17811660048301526a084595161401484a00000060248301527f000000000000000000000000b9098d3669a78e9afe8b94a97290407400d9da31169063a9059cbb906044016020604051808303816000875af11580156105eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060f91906107ee565b505b6040514281527f31f45ed685d6dc4dd7a88f79d5038dce015c2430d68b51f8ee2d5ca1d9094d3b9060200160405180910390a1565b8047101561069b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064015b60405180910390fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146106e8576040519150601f19603f3d011682016040523d82523d6000602084013e6106ed565b606091505b50509050806107645760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610692565b505050565b60006020828403121561077b57600080fd5b81356001600160a01b038116811461079257600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176107c6576107c6610799565b92915050565b6000826107e957634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561080057600080fd5b8151801515811461079257600080fd5b808201808211156107c6576107c661079956fea2646970667358221220937d4f4c74f54ee3f38f78d4a61d36d81d5dc6fdf1819e3b6c95a112440cd09c64736f6c63430008130033

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

000000000000000000000000b9098d3669a78e9afe8b94a97290407400d9da310000000000000000000000002a1aa732fe04494be2a24e90b120ba1864da3b17

-----Decoded View---------------
Arg [0] : _prtc (address): 0xb9098D3669A78e9AfE8b94a97290407400D9dA31
Arg [1] : _beneficiary (address): 0x2A1Aa732Fe04494bE2A24E90b120Ba1864Da3b17

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000b9098d3669a78e9afe8b94a97290407400d9da31
Arg [1] : 0000000000000000000000002a1aa732fe04494be2a24e90b120ba1864da3b17


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.