ETH Price: $2,495.14 (-0.95%)

Contract

0x4a563744Ae446eab28717BeBe744e339034c480C
 

Overview

ETH Balance

13.84 ETH

Eth Value

$34,532.76 (@ $2,495.14/ETH)

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deposit211022042024-11-02 20:00:2314 mins ago1730577623IN
0x4a563744...9034c480C
0.02 ETH0.000956845.33140485
Deposit211019292024-11-02 19:05:111 hr ago1730574311IN
0x4a563744...9034c480C
0.02 ETH0.0010877.48246178
Deposit211018932024-11-02 18:57:591 hr ago1730573879IN
0x4a563744...9034c480C
0.02 ETH0.001180528.12683883
Deposit211016692024-11-02 18:13:112 hrs ago1730571191IN
0x4a563744...9034c480C
0.02 ETH0.001425689.8146068
Deposit211015542024-11-02 17:49:592 hrs ago1730569799IN
0x4a563744...9034c480C
0.02 ETH0.0016913911.64282453
Deposit211015192024-11-02 17:42:592 hrs ago1730569379IN
0x4a563744...9034c480C
0.02 ETH0.0019332513.30765851
Deposit211014652024-11-02 17:32:112 hrs ago1730568731IN
0x4a563744...9034c480C
0.02 ETH0.002135114.69709561
Deposit211014252024-11-02 17:24:112 hrs ago1730568251IN
0x4a563744...9034c480C
0.02 ETH0.001421519.78506206
Deposit211014222024-11-02 17:23:352 hrs ago1730568215IN
0x4a563744...9034c480C
0.02 ETH0.0014686210.10934416
Deposit211013662024-11-02 17:12:233 hrs ago1730567543IN
0x4a563744...9034c480C
0.02 ETH0.001776212.22656952
Deposit211013492024-11-02 17:08:593 hrs ago1730567339IN
0x4a563744...9034c480C
0.02 ETH0.0021600514.86884813
Deposit211013442024-11-02 17:07:593 hrs ago1730567279IN
0x4a563744...9034c480C
0.02 ETH0.0021878315.06005846
Deposit211013422024-11-02 17:07:353 hrs ago1730567255IN
0x4a563744...9034c480C
0.02 ETH0.0020427414.06131958
Deposit211013062024-11-02 17:00:233 hrs ago1730566823IN
0x4a563744...9034c480C
0.02 ETH0.0025267917.39328442
Deposit211012932024-11-02 16:57:473 hrs ago1730566667IN
0x4a563744...9034c480C
0.02 ETH0.002560917.62810626
Deposit211012722024-11-02 16:53:353 hrs ago1730566415IN
0x4a563744...9034c480C
0.02 ETH0.0026156818.00516716
Deposit211012672024-11-02 16:52:353 hrs ago1730566355IN
0x4a563744...9034c480C
0.02 ETH0.0028131619.36453095
Deposit211012662024-11-02 16:52:233 hrs ago1730566343IN
0x4a563744...9034c480C
0.02 ETH0.0027617919.01092382
Deposit211012392024-11-02 16:46:593 hrs ago1730566019IN
0x4a563744...9034c480C
0.02 ETH0.0020764614.29346041
Deposit211012072024-11-02 16:40:353 hrs ago1730565635IN
0x4a563744...9034c480C
0.02 ETH0.0025964817.8729958
Deposit211012072024-11-02 16:40:353 hrs ago1730565635IN
0x4a563744...9034c480C
0.02 ETH0.0032736918.24049231
Deposit211011212024-11-02 16:22:473 hrs ago1730564567IN
0x4a563744...9034c480C
0.02 ETH0.0036557125.16427727
Deposit211011012024-11-02 16:18:473 hrs ago1730564327IN
0x4a563744...9034c480C
0.02 ETH0.0036044324.81333474
Deposit211010192024-11-02 16:02:234 hrs ago1730563343IN
0x4a563744...9034c480C
0.02 ETH0.0020789414.31051479
Deposit211009782024-11-02 15:54:114 hrs ago1730562851IN
0x4a563744...9034c480C
0.02 ETH0.0023486516.16840612
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EtherPrivatePlacement

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 8 : EtherPrivatePlacement.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract EtherPrivatePlacement is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    IERC20 public tokenA;
    IERC20 public tokenB;

    uint256 public constant DEPOSIT_AMOUNT = 0.02 ether;
    uint256 public constant DEPOSITOR_TOKEN_AMOUNT = 10000 * 10 ** 18;
    uint256 public constant REFERRER_TOKEN_AMOUNT = 500 * 10 ** 18;
    mapping(address => bool) public hasDeposited;
    constructor(address _tokenA, address _tokenB, address initialOwner) Ownable(initialOwner) {
        require(_tokenA != address(0), "Token A address cannot be zero");
        require(_tokenB != address(0), "Token B address cannot be zero");
        tokenA = IERC20(_tokenA);
        tokenB = IERC20(_tokenB);
    }

    function deposit(address referrer) external payable nonReentrant {
        require(msg.value == DEPOSIT_AMOUNT, "Incorrect deposit amount");
        require(referrer != address(0), "Referrer address cannot be zero");
        require(referrer != msg.sender, "Referrer cannot be the sender");
        require(!hasDeposited[msg.sender], "You have already deposited");

        tokenA.safeTransfer(msg.sender, DEPOSITOR_TOKEN_AMOUNT);
        tokenB.safeTransfer(msg.sender, DEPOSITOR_TOKEN_AMOUNT);

        tokenA.safeTransfer(referrer, REFERRER_TOKEN_AMOUNT);
        tokenB.safeTransfer(referrer, REFERRER_TOKEN_AMOUNT);

        hasDeposited[msg.sender] = true;
    }

    function withdrawETH(uint256 amount) external onlyOwner {
        require(address(this).balance >= amount, "Insufficient ETH balance");
        payable(owner()).transfer(amount);
    }

    function withdrawTokenA(uint256 amount) external onlyOwner {
        require(tokenA.balanceOf(address(this)) >= amount, "Insufficient Token A balance");
        tokenA.safeTransfer(owner(), amount);
    }

    function withdrawTokenB(uint256 amount) external onlyOwner {
        require(tokenB.balanceOf(address(this)) >= amount, "Insufficient Token B balance");
        tokenB.safeTransfer(owner(), amount);
    }

    function depositTokenA(uint256 amount) external onlyOwner {
        tokenA.safeTransferFrom(msg.sender, address(this), amount);
    }

    function depositTokenB(uint256 amount) external onlyOwner {
        tokenB.safeTransferFrom(msg.sender, address(this), amount);
    }

    function setTokenA(address _newTokenA) external onlyOwner {
        require(_newTokenA != address(0), "New Token A address cannot be zero");
        tokenA = IERC20(_newTokenA);
    }

    function setTokenB(address _newTokenB) external onlyOwner {
        require(_newTokenB != address(0), "New Token B address cannot be zero");
        tokenB = IERC20(_newTokenB);
    }

    function changeAdmin(address newAdmin) external onlyOwner {
        require(newAdmin != address(0), "New admin address cannot be zero");
        transferOwnership(newAdmin);
    }

    function getContractETHBalance() external view returns (uint256) {
        return address(this).balance;
    }

    function getContractTokenABalance() external view returns (uint256) {
        return tokenA.balanceOf(address(this));
    }

    function getContractTokenBBalance() external view returns (uint256) {
        return tokenB.balanceOf(address(this));
    }

    receive() external payable {}
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

File 3 of 8 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 4 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @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 value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

File 5 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

File 6 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @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 or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * 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.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @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`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) 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 FailedInnerCall();
        }
    }
}

File 7 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 8 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant NOT_ENTERED = 1;
    uint256 private constant ENTERED = 2;

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // Any calls to nonReentrant after this point will fail
        _status = ENTERED;
    }

    function _nonReentrantAfter() private {
        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = NOT_ENTERED;
    }

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

Settings
{
  "evmVersion": "paris",
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenA","type":"address"},{"internalType":"address","name":"_tokenB","type":"address"},{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"DEPOSITOR_TOKEN_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPOSIT_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REFERRER_TOKEN_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newAdmin","type":"address"}],"name":"changeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"referrer","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositTokenA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositTokenB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getContractETHBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractTokenABalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getContractTokenBBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasDeposited","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTokenA","type":"address"}],"name":"setTokenA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newTokenB","type":"address"}],"name":"setTokenB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenA","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenB","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokenA","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawTokenB","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b506040516122723803806122728339818101604052810190610032919061034b565b80600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a55760006040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161009c91906103ad565b60405180910390fd5b6100b48161022460201b60201c565b5060018081905550600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361012b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161012290610425565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361019a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161019190610491565b60405180910390fd5b82600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050506104b1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610318826102ed565b9050919050565b6103288161030d565b811461033357600080fd5b50565b6000815190506103458161031f565b92915050565b600080600060608486031215610364576103636102e8565b5b600061037286828701610336565b935050602061038386828701610336565b925050604061039486828701610336565b9150509250925092565b6103a78161030d565b82525050565b60006020820190506103c2600083018461039e565b92915050565b600082825260208201905092915050565b7f546f6b656e204120616464726573732063616e6e6f74206265207a65726f0000600082015250565b600061040f601e836103c8565b915061041a826103d9565b602082019050919050565b6000602082019050818103600083015261043e81610402565b9050919050565b7f546f6b656e204220616464726573732063616e6e6f74206265207a65726f0000600082015250565b600061047b601e836103c8565b915061048682610445565b602082019050919050565b600060208201905081810360008301526104aa8161046e565b9050919050565b611db2806104c06000396000f3fe60806040526004361061012e5760003560e01c80638f283970116100ab578063e4c93be71161006f578063e4c93be71461039f578063ec6925a7146103c8578063f14210a6146103f3578063f2c16e6f1461041c578063f2fde38b14610459578063f340fa011461048257610135565b80638f283970146102ce5780639e30b1e8146102f7578063a84003f314610320578063dfeaf6ce14610349578063e36d99c41461037457610135565b8063715018a6116100f2578063715018a61461020d57806376182baf146102245780637b754a0f1461024d5780638c89a0ad146102785780638da5cb5b146102a357610135565b80630dcef01e1461013a5780630fc63d1014610163578063147075381461018e5780633e153227146101b75780635f64b55b146101e257610135565b3661013557005b600080fd5b34801561014657600080fd5b50610161600480360381019061015c91906115d0565b61049e565b005b34801561016f57600080fd5b50610178610559565b604051610185919061165c565b60405180910390f35b34801561019a57600080fd5b506101b560048036038101906101b091906115d0565b61057f565b005b3480156101c357600080fd5b506101cc61063a565b6040516101d99190611690565b60405180910390f35b3480156101ee57600080fd5b506101f76106dd565b604051610204919061165c565b60405180910390f35b34801561021957600080fd5b50610222610703565b005b34801561023057600080fd5b5061024b600480360381019061024691906116d7565b610717565b005b34801561025957600080fd5b50610262610771565b60405161026f9190611690565b60405180910390f35b34801561028457600080fd5b5061028d61077e565b60405161029a9190611690565b60405180910390f35b3480156102af57600080fd5b506102b8610786565b6040516102c59190611713565b60405180910390f35b3480156102da57600080fd5b506102f560048036038101906102f091906115d0565b6107af565b005b34801561030357600080fd5b5061031e600480360381019061031991906116d7565b610832565b005b34801561032c57600080fd5b50610347600480360381019061034291906116d7565b61088c565b005b34801561035557600080fd5b5061035e6109c9565b60405161036b9190611690565b60405180910390f35b34801561038057600080fd5b50610389610a6c565b6040516103969190611690565b60405180910390f35b3480156103ab57600080fd5b506103c660048036038101906103c191906116d7565b610a7a565b005b3480156103d457600080fd5b506103dd610bb7565b6040516103ea9190611690565b60405180910390f35b3480156103ff57600080fd5b5061041a600480360381019061041591906116d7565b610bc2565b005b34801561042857600080fd5b50610443600480360381019061043e91906115d0565b610c5e565b6040516104509190611749565b60405180910390f35b34801561046557600080fd5b50610480600480360381019061047b91906115d0565b610c7e565b005b61049c600480360381019061049791906115d0565b610d04565b005b6104a661107c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050c906117e7565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61058761107c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036105f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ed90611879565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106979190611713565b602060405180830381865afa1580156106b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d891906118ae565b905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61070b61107c565b6107156000611103565b565b61071f61107c565b61076e333083600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166111c7909392919063ffffffff16565b50565b681b1ae4d6e2ef50000081565b600047905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6107b761107c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610826576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081d90611927565b60405180910390fd5b61082f81610c7e565b50565b61083a61107c565b610889333083600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166111c7909392919063ffffffff16565b50565b61089461107c565b80600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108f09190611713565b602060405180830381865afa15801561090d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093191906118ae565b1015610972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096990611993565b60405180910390fd5b6109c661097d610786565b82600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112499092919063ffffffff16565b50565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610a269190611713565b602060405180830381865afa158015610a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6791906118ae565b905090565b69021e19e0c9bab240000081565b610a8261107c565b80600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ade9190611713565b602060405180830381865afa158015610afb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1f91906118ae565b1015610b60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b57906119ff565b60405180910390fd5b610bb4610b6b610786565b82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112499092919063ffffffff16565b50565b66470de4df82000081565b610bca61107c565b80471015610c0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0490611a6b565b60405180910390fd5b610c15610786565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610c5a573d6000803e3d6000fd5b5050565b60046020528060005260406000206000915054906101000a900460ff1681565b610c8661107c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610cf85760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610cef9190611713565b60405180910390fd5b610d0181611103565b50565b610d0c6112c8565b66470de4df8200003414610d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4c90611ad7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610dc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbb90611b43565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2990611baf565b60405180910390fd5b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb690611c1b565b60405180910390fd5b610f163369021e19e0c9bab2400000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112499092919063ffffffff16565b610f6d3369021e19e0c9bab2400000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112499092919063ffffffff16565b610fc381681b1ae4d6e2ef500000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112499092919063ffffffff16565b61101981681b1ae4d6e2ef500000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112499092919063ffffffff16565b6001600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061107961130e565b50565b611084611317565b73ffffffffffffffffffffffffffffffffffffffff166110a2610786565b73ffffffffffffffffffffffffffffffffffffffff1614611101576110c5611317565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016110f89190611713565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611243848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016111fc93929190611c3b565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061131f565b50505050565b6112c3838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb858560405160240161127c929190611c72565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061131f565b505050565b600260015403611304576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b600033905090565b600061134a828473ffffffffffffffffffffffffffffffffffffffff166113b690919063ffffffff16565b9050600081511415801561136f57508080602001905181019061136d9190611cc7565b155b156113b157826040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016113a89190611713565b60405180910390fd5b505050565b60606113c4838360006113cc565b905092915050565b60608147101561141357306040517fcd78605900000000000000000000000000000000000000000000000000000000815260040161140a9190611713565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16848660405161143c9190611d65565b60006040518083038185875af1925050503d8060008114611479576040519150601f19603f3d011682016040523d82523d6000602084013e61147e565b606091505b509150915061148e868383611499565b925050509392505050565b6060826114ae576114a982611528565b611520565b600082511480156114d6575060008473ffffffffffffffffffffffffffffffffffffffff163b145b1561151857836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161150f9190611713565b60405180910390fd5b819050611521565b5b9392505050565b60008151111561153b5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061159d82611572565b9050919050565b6115ad81611592565b81146115b857600080fd5b50565b6000813590506115ca816115a4565b92915050565b6000602082840312156115e6576115e561156d565b5b60006115f4848285016115bb565b91505092915050565b6000819050919050565b600061162261161d61161884611572565b6115fd565b611572565b9050919050565b600061163482611607565b9050919050565b600061164682611629565b9050919050565b6116568161163b565b82525050565b6000602082019050611671600083018461164d565b92915050565b6000819050919050565b61168a81611677565b82525050565b60006020820190506116a56000830184611681565b92915050565b6116b481611677565b81146116bf57600080fd5b50565b6000813590506116d1816116ab565b92915050565b6000602082840312156116ed576116ec61156d565b5b60006116fb848285016116c2565b91505092915050565b61170d81611592565b82525050565b60006020820190506117286000830184611704565b92915050565b60008115159050919050565b6117438161172e565b82525050565b600060208201905061175e600083018461173a565b92915050565b600082825260208201905092915050565b7f4e657720546f6b656e204120616464726573732063616e6e6f74206265207a6560008201527f726f000000000000000000000000000000000000000000000000000000000000602082015250565b60006117d1602283611764565b91506117dc82611775565b604082019050919050565b60006020820190508181036000830152611800816117c4565b9050919050565b7f4e657720546f6b656e204220616464726573732063616e6e6f74206265207a6560008201527f726f000000000000000000000000000000000000000000000000000000000000602082015250565b6000611863602283611764565b915061186e82611807565b604082019050919050565b6000602082019050818103600083015261189281611856565b9050919050565b6000815190506118a8816116ab565b92915050565b6000602082840312156118c4576118c361156d565b5b60006118d284828501611899565b91505092915050565b7f4e65772061646d696e20616464726573732063616e6e6f74206265207a65726f600082015250565b6000611911602083611764565b915061191c826118db565b602082019050919050565b6000602082019050818103600083015261194081611904565b9050919050565b7f496e73756666696369656e7420546f6b656e20422062616c616e636500000000600082015250565b600061197d601c83611764565b915061198882611947565b602082019050919050565b600060208201905081810360008301526119ac81611970565b9050919050565b7f496e73756666696369656e7420546f6b656e20412062616c616e636500000000600082015250565b60006119e9601c83611764565b91506119f4826119b3565b602082019050919050565b60006020820190508181036000830152611a18816119dc565b9050919050565b7f496e73756666696369656e74204554482062616c616e63650000000000000000600082015250565b6000611a55601883611764565b9150611a6082611a1f565b602082019050919050565b60006020820190508181036000830152611a8481611a48565b9050919050565b7f496e636f7272656374206465706f73697420616d6f756e740000000000000000600082015250565b6000611ac1601883611764565b9150611acc82611a8b565b602082019050919050565b60006020820190508181036000830152611af081611ab4565b9050919050565b7f526566657272657220616464726573732063616e6e6f74206265207a65726f00600082015250565b6000611b2d601f83611764565b9150611b3882611af7565b602082019050919050565b60006020820190508181036000830152611b5c81611b20565b9050919050565b7f52656665727265722063616e6e6f74206265207468652073656e646572000000600082015250565b6000611b99601d83611764565b9150611ba482611b63565b602082019050919050565b60006020820190508181036000830152611bc881611b8c565b9050919050565b7f596f75206861766520616c7265616479206465706f7369746564000000000000600082015250565b6000611c05601a83611764565b9150611c1082611bcf565b602082019050919050565b60006020820190508181036000830152611c3481611bf8565b9050919050565b6000606082019050611c506000830186611704565b611c5d6020830185611704565b611c6a6040830184611681565b949350505050565b6000604082019050611c876000830185611704565b611c946020830184611681565b9392505050565b611ca48161172e565b8114611caf57600080fd5b50565b600081519050611cc181611c9b565b92915050565b600060208284031215611cdd57611cdc61156d565b5b6000611ceb84828501611cb2565b91505092915050565b600081519050919050565b600081905092915050565b60005b83811015611d28578082015181840152602081019050611d0d565b60008484015250505050565b6000611d3f82611cf4565b611d498185611cff565b9350611d59818560208601611d0a565b80840191505092915050565b6000611d718284611d34565b91508190509291505056fea26469706673582212202283262bf574ad5ead9470a322ea98d37d0fc6a8111b56400788837501a804e864736f6c634300081a003300000000000000000000000057289de28e532c6f40f16b30e79fefebaf96f7c30000000000000000000000006626230805a1b14bd5d1bf3d3f1f527cce39f6a20000000000000000000000009b821ea623ca1cec5239d7653da0c5087a3b7072

Deployed Bytecode

0x60806040526004361061012e5760003560e01c80638f283970116100ab578063e4c93be71161006f578063e4c93be71461039f578063ec6925a7146103c8578063f14210a6146103f3578063f2c16e6f1461041c578063f2fde38b14610459578063f340fa011461048257610135565b80638f283970146102ce5780639e30b1e8146102f7578063a84003f314610320578063dfeaf6ce14610349578063e36d99c41461037457610135565b8063715018a6116100f2578063715018a61461020d57806376182baf146102245780637b754a0f1461024d5780638c89a0ad146102785780638da5cb5b146102a357610135565b80630dcef01e1461013a5780630fc63d1014610163578063147075381461018e5780633e153227146101b75780635f64b55b146101e257610135565b3661013557005b600080fd5b34801561014657600080fd5b50610161600480360381019061015c91906115d0565b61049e565b005b34801561016f57600080fd5b50610178610559565b604051610185919061165c565b60405180910390f35b34801561019a57600080fd5b506101b560048036038101906101b091906115d0565b61057f565b005b3480156101c357600080fd5b506101cc61063a565b6040516101d99190611690565b60405180910390f35b3480156101ee57600080fd5b506101f76106dd565b604051610204919061165c565b60405180910390f35b34801561021957600080fd5b50610222610703565b005b34801561023057600080fd5b5061024b600480360381019061024691906116d7565b610717565b005b34801561025957600080fd5b50610262610771565b60405161026f9190611690565b60405180910390f35b34801561028457600080fd5b5061028d61077e565b60405161029a9190611690565b60405180910390f35b3480156102af57600080fd5b506102b8610786565b6040516102c59190611713565b60405180910390f35b3480156102da57600080fd5b506102f560048036038101906102f091906115d0565b6107af565b005b34801561030357600080fd5b5061031e600480360381019061031991906116d7565b610832565b005b34801561032c57600080fd5b50610347600480360381019061034291906116d7565b61088c565b005b34801561035557600080fd5b5061035e6109c9565b60405161036b9190611690565b60405180910390f35b34801561038057600080fd5b50610389610a6c565b6040516103969190611690565b60405180910390f35b3480156103ab57600080fd5b506103c660048036038101906103c191906116d7565b610a7a565b005b3480156103d457600080fd5b506103dd610bb7565b6040516103ea9190611690565b60405180910390f35b3480156103ff57600080fd5b5061041a600480360381019061041591906116d7565b610bc2565b005b34801561042857600080fd5b50610443600480360381019061043e91906115d0565b610c5e565b6040516104509190611749565b60405180910390f35b34801561046557600080fd5b50610480600480360381019061047b91906115d0565b610c7e565b005b61049c600480360381019061049791906115d0565b610d04565b005b6104a661107c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161050c906117e7565b60405180910390fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61058761107c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036105f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105ed90611879565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016106979190611713565b602060405180830381865afa1580156106b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d891906118ae565b905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61070b61107c565b6107156000611103565b565b61071f61107c565b61076e333083600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166111c7909392919063ffffffff16565b50565b681b1ae4d6e2ef50000081565b600047905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6107b761107c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610826576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161081d90611927565b60405180910390fd5b61082f81610c7e565b50565b61083a61107c565b610889333083600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166111c7909392919063ffffffff16565b50565b61089461107c565b80600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108f09190611713565b602060405180830381865afa15801561090d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061093191906118ae565b1015610972576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096990611993565b60405180910390fd5b6109c661097d610786565b82600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112499092919063ffffffff16565b50565b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610a269190611713565b602060405180830381865afa158015610a43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a6791906118ae565b905090565b69021e19e0c9bab240000081565b610a8261107c565b80600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610ade9190611713565b602060405180830381865afa158015610afb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b1f91906118ae565b1015610b60576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b57906119ff565b60405180910390fd5b610bb4610b6b610786565b82600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112499092919063ffffffff16565b50565b66470de4df82000081565b610bca61107c565b80471015610c0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0490611a6b565b60405180910390fd5b610c15610786565b73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610c5a573d6000803e3d6000fd5b5050565b60046020528060005260406000206000915054906101000a900460ff1681565b610c8661107c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610cf85760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610cef9190611713565b60405180910390fd5b610d0181611103565b50565b610d0c6112c8565b66470de4df8200003414610d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4c90611ad7565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610dc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbb90611b43565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610e32576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2990611baf565b60405180910390fd5b600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615610ebf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb690611c1b565b60405180910390fd5b610f163369021e19e0c9bab2400000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112499092919063ffffffff16565b610f6d3369021e19e0c9bab2400000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112499092919063ffffffff16565b610fc381681b1ae4d6e2ef500000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112499092919063ffffffff16565b61101981681b1ae4d6e2ef500000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112499092919063ffffffff16565b6001600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555061107961130e565b50565b611084611317565b73ffffffffffffffffffffffffffffffffffffffff166110a2610786565b73ffffffffffffffffffffffffffffffffffffffff1614611101576110c5611317565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016110f89190611713565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611243848573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016111fc93929190611c3b565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061131f565b50505050565b6112c3838473ffffffffffffffffffffffffffffffffffffffff1663a9059cbb858560405160240161127c929190611c72565b604051602081830303815290604052915060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505061131f565b505050565b600260015403611304576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b600033905090565b600061134a828473ffffffffffffffffffffffffffffffffffffffff166113b690919063ffffffff16565b9050600081511415801561136f57508080602001905181019061136d9190611cc7565b155b156113b157826040517f5274afe70000000000000000000000000000000000000000000000000000000081526004016113a89190611713565b60405180910390fd5b505050565b60606113c4838360006113cc565b905092915050565b60608147101561141357306040517fcd78605900000000000000000000000000000000000000000000000000000000815260040161140a9190611713565b60405180910390fd5b6000808573ffffffffffffffffffffffffffffffffffffffff16848660405161143c9190611d65565b60006040518083038185875af1925050503d8060008114611479576040519150601f19603f3d011682016040523d82523d6000602084013e61147e565b606091505b509150915061148e868383611499565b925050509392505050565b6060826114ae576114a982611528565b611520565b600082511480156114d6575060008473ffffffffffffffffffffffffffffffffffffffff163b145b1561151857836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161150f9190611713565b60405180910390fd5b819050611521565b5b9392505050565b60008151111561153b5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061159d82611572565b9050919050565b6115ad81611592565b81146115b857600080fd5b50565b6000813590506115ca816115a4565b92915050565b6000602082840312156115e6576115e561156d565b5b60006115f4848285016115bb565b91505092915050565b6000819050919050565b600061162261161d61161884611572565b6115fd565b611572565b9050919050565b600061163482611607565b9050919050565b600061164682611629565b9050919050565b6116568161163b565b82525050565b6000602082019050611671600083018461164d565b92915050565b6000819050919050565b61168a81611677565b82525050565b60006020820190506116a56000830184611681565b92915050565b6116b481611677565b81146116bf57600080fd5b50565b6000813590506116d1816116ab565b92915050565b6000602082840312156116ed576116ec61156d565b5b60006116fb848285016116c2565b91505092915050565b61170d81611592565b82525050565b60006020820190506117286000830184611704565b92915050565b60008115159050919050565b6117438161172e565b82525050565b600060208201905061175e600083018461173a565b92915050565b600082825260208201905092915050565b7f4e657720546f6b656e204120616464726573732063616e6e6f74206265207a6560008201527f726f000000000000000000000000000000000000000000000000000000000000602082015250565b60006117d1602283611764565b91506117dc82611775565b604082019050919050565b60006020820190508181036000830152611800816117c4565b9050919050565b7f4e657720546f6b656e204220616464726573732063616e6e6f74206265207a6560008201527f726f000000000000000000000000000000000000000000000000000000000000602082015250565b6000611863602283611764565b915061186e82611807565b604082019050919050565b6000602082019050818103600083015261189281611856565b9050919050565b6000815190506118a8816116ab565b92915050565b6000602082840312156118c4576118c361156d565b5b60006118d284828501611899565b91505092915050565b7f4e65772061646d696e20616464726573732063616e6e6f74206265207a65726f600082015250565b6000611911602083611764565b915061191c826118db565b602082019050919050565b6000602082019050818103600083015261194081611904565b9050919050565b7f496e73756666696369656e7420546f6b656e20422062616c616e636500000000600082015250565b600061197d601c83611764565b915061198882611947565b602082019050919050565b600060208201905081810360008301526119ac81611970565b9050919050565b7f496e73756666696369656e7420546f6b656e20412062616c616e636500000000600082015250565b60006119e9601c83611764565b91506119f4826119b3565b602082019050919050565b60006020820190508181036000830152611a18816119dc565b9050919050565b7f496e73756666696369656e74204554482062616c616e63650000000000000000600082015250565b6000611a55601883611764565b9150611a6082611a1f565b602082019050919050565b60006020820190508181036000830152611a8481611a48565b9050919050565b7f496e636f7272656374206465706f73697420616d6f756e740000000000000000600082015250565b6000611ac1601883611764565b9150611acc82611a8b565b602082019050919050565b60006020820190508181036000830152611af081611ab4565b9050919050565b7f526566657272657220616464726573732063616e6e6f74206265207a65726f00600082015250565b6000611b2d601f83611764565b9150611b3882611af7565b602082019050919050565b60006020820190508181036000830152611b5c81611b20565b9050919050565b7f52656665727265722063616e6e6f74206265207468652073656e646572000000600082015250565b6000611b99601d83611764565b9150611ba482611b63565b602082019050919050565b60006020820190508181036000830152611bc881611b8c565b9050919050565b7f596f75206861766520616c7265616479206465706f7369746564000000000000600082015250565b6000611c05601a83611764565b9150611c1082611bcf565b602082019050919050565b60006020820190508181036000830152611c3481611bf8565b9050919050565b6000606082019050611c506000830186611704565b611c5d6020830185611704565b611c6a6040830184611681565b949350505050565b6000604082019050611c876000830185611704565b611c946020830184611681565b9392505050565b611ca48161172e565b8114611caf57600080fd5b50565b600081519050611cc181611c9b565b92915050565b600060208284031215611cdd57611cdc61156d565b5b6000611ceb84828501611cb2565b91505092915050565b600081519050919050565b600081905092915050565b60005b83811015611d28578082015181840152602081019050611d0d565b60008484015250505050565b6000611d3f82611cf4565b611d498185611cff565b9350611d59818560208601611d0a565b80840191505092915050565b6000611d718284611d34565b91508190509291505056fea26469706673582212202283262bf574ad5ead9470a322ea98d37d0fc6a8111b56400788837501a804e864736f6c634300081a0033

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

00000000000000000000000057289de28e532c6f40f16b30e79fefebaf96f7c30000000000000000000000006626230805a1b14bd5d1bf3d3f1f527cce39f6a20000000000000000000000009b821ea623ca1cec5239d7653da0c5087a3b7072

-----Decoded View---------------
Arg [0] : _tokenA (address): 0x57289DE28e532c6f40F16B30e79fefeBAf96f7c3
Arg [1] : _tokenB (address): 0x6626230805a1b14bD5d1bF3d3f1F527ccE39f6a2
Arg [2] : initialOwner (address): 0x9B821EA623CA1Cec5239D7653dA0c5087a3B7072

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000057289de28e532c6f40f16b30e79fefebaf96f7c3
Arg [1] : 0000000000000000000000006626230805a1b14bd5d1bf3d3f1f527cce39f6a2
Arg [2] : 0000000000000000000000009b821ea623ca1cec5239d7653da0c5087a3b7072


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  ]

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.