ETH Price: $1,787.60 (-1.06%)

Contract

0x671d97F97632f183a4E693a57A3c9A9577D0b879
 

Overview

ETH Balance

88.157775959460272 ETH

Eth Value

$157,590.82 (@ $1,787.60/ETH)

Token Holdings

Transaction Hash
Method
Block
From
To
Deposit221702732025-03-31 23:47:475 days ago1743464867IN
0x671d97F9...577D0b879
0.27 ETH0.000026460.53004931
Deposit221176062025-03-24 15:17:2312 days ago1742829443IN
0x671d97F9...577D0b879
0.01 ETH0.000062571.2532398
Withdraw220954252025-03-21 13:04:5915 days ago1742562299IN
0x671d97F9...577D0b879
0 ETH0.000099481.58175595
Deposit220920902025-03-21 1:55:2316 days ago1742522123IN
0x671d97F9...577D0b879
0.002 ETH0.00002060.41273622
Withdraw220066272025-03-09 3:28:2328 days ago1741490903IN
0x671d97F9...577D0b879
0 ETH0.000096081.52747769
Withdraw218168232025-02-10 14:49:5954 days ago1739198999IN
0x671d97F9...577D0b879
0 ETH0.000192383.05892264
Withdraw217086022025-01-26 12:10:4769 days ago1737893447IN
0x671d97F9...577D0b879
0 ETH0.000279864.44896972
Deposit216043852025-01-11 23:00:4784 days ago1736636447IN
0x671d97F9...577D0b879
0.2755 ETH0.000131172.62693479
Deposit215632522025-01-06 5:10:3590 days ago1736140235IN
0x671d97F9...577D0b879
0.01 ETH0.000289245.79252226
Withdraw214731542024-12-24 15:14:23102 days ago1735053263IN
0x671d97F9...577D0b879
0 ETH0.0007876812.52406036
Deposit214136562024-12-16 7:42:47111 days ago1734334967IN
0x671d97F9...577D0b879
0.014 ETH0.000341376.83658263
Deposit214136142024-12-16 7:34:23111 days ago1734334463IN
0x671d97F9...577D0b879
0.0028 ETH0.000362047.2505281
Withdraw213970362024-12-14 0:01:11113 days ago1734134471IN
0x671d97F9...577D0b879
0 ETH0.0007821512.43372107
Withdraw211062352024-11-03 9:31:47154 days ago1730626307IN
0x671d97F9...577D0b879
0 ETH0.000296364.71296668
Withdraw210538112024-10-27 1:55:11161 days ago1729994111IN
0x671d97F9...577D0b879
0 ETH0.000305484.85712371
Withdraw210426202024-10-25 12:25:59162 days ago1729859159IN
0x671d97F9...577D0b879
0 ETH0.000528958.40861504
Deposit207432652024-09-13 17:44:47204 days ago1726249487IN
0x671d97F9...577D0b879
0.25 ETH0.000166823.3409991
Deposit207131842024-09-09 12:54:47208 days ago1725886487IN
0x671d97F9...577D0b879
0.28 ETH0.000178883.58238686
Withdraw206934952024-09-06 18:59:11211 days ago1725649151IN
0x671d97F9...577D0b879
0 ETH0.0006349810.09606408
Withdraw199394462024-05-24 11:28:47317 days ago1716550127IN
0x671d97F9...577D0b879
0 ETH0.000461557.33726555
Deposit198887832024-05-17 9:25:11324 days ago1715937911IN
0x671d97F9...577D0b879
0.3 ETH0.000330066.6099388
Withdraw Owner198413972024-05-10 18:22:23330 days ago1715365343IN
0x671d97F9...577D0b879
0 ETH0.0005024813.22436196
Withdraw198411022024-05-10 17:23:11330 days ago1715361791IN
0x671d97F9...577D0b879
0 ETH0.0017108827.20260067
Withdraw197920932024-05-03 20:52:23337 days ago1714769543IN
0x671d97F9...577D0b879
0 ETH0.000585769.31346413
Withdraw197907382024-05-03 16:20:11337 days ago1714753211IN
0x671d97F9...577D0b879
0 ETH0.000571859.09239253
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer220954252025-03-21 13:04:5915 days ago1742562299
0x671d97F9...577D0b879
0.00092812 ETH
Transfer220066272025-03-09 3:28:2328 days ago1741490903
0x671d97F9...577D0b879
0.34882966 ETH
Transfer218168232025-02-10 14:49:5954 days ago1739198999
0x671d97F9...577D0b879
0.06982614 ETH
Transfer217086022025-01-26 12:10:4769 days ago1737893447
0x671d97F9...577D0b879
0.38321866 ETH
Transfer214731542024-12-24 15:14:23102 days ago1735053263
0x671d97F9...577D0b879
0.01716234 ETH
Transfer213970362024-12-14 0:01:11113 days ago1734134471
0x671d97F9...577D0b879
0.92234036 ETH
Transfer211062352024-11-03 9:31:47154 days ago1730626307
0x671d97F9...577D0b879
0.00971624 ETH
Transfer210538112024-10-27 1:55:11161 days ago1729994111
0x671d97F9...577D0b879
0.04048922 ETH
Transfer210426202024-10-25 12:25:59162 days ago1729859159
0x671d97F9...577D0b879
0.99891233 ETH
Transfer206934952024-09-06 18:59:11211 days ago1725649151
0x671d97F9...577D0b879
0.04930953 ETH
Transfer199394462024-05-24 11:28:47317 days ago1716550127
0x671d97F9...577D0b879
0.3095094 ETH
Transfer198413972024-05-10 18:22:23330 days ago1715365343
0x671d97F9...577D0b879
7 ETH
Transfer198411022024-05-10 17:23:11330 days ago1715361791
0x671d97F9...577D0b879
0.01087034 ETH
Transfer197920932024-05-03 20:52:23337 days ago1714769543
0x671d97F9...577D0b879
0.0023771 ETH
Transfer197907382024-05-03 16:20:11337 days ago1714753211
0x671d97F9...577D0b879
0.0297269 ETH
Transfer195745642024-04-03 10:10:47368 days ago1712139047
0x671d97F9...577D0b879
0.62820792 ETH
Transfer195208302024-03-26 19:59:23375 days ago1711483163
0x671d97F9...577D0b879
0.09753266 ETH
Transfer194547732024-03-17 13:10:59384 days ago1710681059
0x671d97F9...577D0b879
0.01783212 ETH
Transfer194192422024-03-12 13:16:59389 days ago1710249419
0x671d97F9...577D0b879
0.00533886 ETH
Transfer193882752024-03-08 5:10:35394 days ago1709874635
0x671d97F9...577D0b879
0.04614865 ETH
Transfer193191612024-02-27 13:22:59403 days ago1709040179
0x671d97F9...577D0b879
0.01499028 ETH
Transfer192701342024-02-20 16:35:11410 days ago1708446911
0x671d97F9...577D0b879
0.27853152 ETH
Transfer192058192024-02-11 15:49:59419 days ago1707666599
0x671d97F9...577D0b879
0.08855515 ETH
Transfer191212492024-01-30 18:56:23431 days ago1706640983
0x671d97F9...577D0b879
0.05177003 ETH
Transfer191130652024-01-29 15:26:11432 days ago1706541971
0x671d97F9...577D0b879
0.15630382 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
KolectivExchange

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : KolectivExchange.sol
pragma solidity ^0.8.0;
// SPDX-License-Identifier: UNLICENSED

import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract KolectivExchange is Ownable, Pausable, ReentrancyGuard {
    using Address for address;

    event Deposit(address indexed account, uint256 amount, uint256 indexed exchangeId);
    event Withdraw(address indexed account, uint256 amount, uint256 indexed exchangeId);
    mapping (uint256 => uint256) private deposits;
    mapping (uint256 => uint256) private withdraws;
    uint256 public reservedBalance;
    uint256 public minDeposit;

    constructor() {
        reservedBalance = 0;
        minDeposit = 0;
    }

    function getDepositBalance(uint256 exchangeId) public view returns (uint256) {
        return deposits[exchangeId];
    }

    function getWithdrawBalance(uint256 exchangeId) public view returns (uint256) {
        return withdraws[exchangeId];
    }

    function deposit(uint256 exchangeId) public payable whenNotPaused {
        require(msg.value > 0, "No value provided to deposit.");
        require(msg.value >= minDeposit, "The minimum amount to deposit has not been met.");
        require(deposits[exchangeId] == 0, "That deposit has already been completed");
        deposits[exchangeId] = msg.value;
        emit Deposit(msg.sender, msg.value, exchangeId);
    }

    // --------- Only owner functionality below here --------------------------------------------------------------
    function pause() public whenNotPaused onlyOwner {
        _pause();
    }

    function unpause() public whenPaused onlyOwner {
        _unpause();
    }

    function withdraw(address payable account, uint256 amount, uint256 exchangeId) public onlyOwner nonReentrant whenNotPaused {
        require(amount > 0, "No value provided to withdraw.");
        require(withdraws[exchangeId] == 0, "That withdraw has already been completed");
        require(address(this).balance - amount >= reservedBalance, "That withdraw will use reserved funds.");
        withdraws[exchangeId] = amount;
        sendValue(account, amount);
        emit Withdraw(account, amount, exchangeId);
    }

    function withdrawOwner(address payable account, uint256 amount) public onlyOwner nonReentrant {
        require(amount > 0, "No value provided to withdraw.");
        sendValue(account, amount);
        emit Withdraw(account, amount, 0);
    }

    function withdrawOwnerAll(address payable account) public onlyOwner nonReentrant {
        uint256 amount = address(this).balance;
        sendValue(account, amount);
        emit Withdraw(account, amount, 0);
    }

    function getReservedBalance() public view returns (uint256) {
        return reservedBalance;
    }

    function setReservedBalance(uint256 balance) public onlyOwner returns (uint256) {
        reservedBalance = balance;
        return reservedBalance;
    }

    function getMinDeposit() public view returns (uint256) {
        return minDeposit;
    }

    function setMinDeposit(uint256 amount) public onlyOwner returns (uint256) {
        minDeposit = amount;
        return minDeposit;
    }

    function sendValue(address payable recipient, uint256 amount) private {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

File 2 of 6 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

File 3 of 6 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 4 of 6 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor () {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 5 of 6 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 6 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"exchangeId","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"exchangeId","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"exchangeId","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"exchangeId","type":"uint256"}],"name":"getDepositBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getReservedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"exchangeId","type":"uint256"}],"name":"getWithdrawBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setMinDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"setReservedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"exchangeId","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"account","type":"address"}],"name":"withdrawOwnerAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600061001b610083565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506000805460ff60a01b19168155600180556004819055600555610087565b3390565b610f9f806100966000396000f3fe6080604052600436106101095760003560e01c80638fcc9cfb11610095578063b6b55f2511610064578063b6b55f2514610288578063c4cc2e381461029b578063d74ebae1146102bb578063d9a15549146102db578063f2fde38b146102f057610109565b80638fcc9cfb14610213578063a1aabda614610233578063a388541314610248578063b5c5f6721461026857610109565b80635c975abb116100dc5780635c975abb14610185578063715018a6146101a75780638456cb59146101bc5780638da5cb5b146101d15780638e68d925146101f357610109565b80630eaad3f11461010e5780631f4985d3146101395780633f4ba83a1461015957806341b3d18514610170575b600080fd5b34801561011a57600080fd5b50610123610310565b6040516101309190610f25565b60405180910390f35b34801561014557600080fd5b50610123610154366004610bbb565b610316565b34801561016557600080fd5b5061016e610328565b005b34801561017c57600080fd5b5061012361039e565b34801561019157600080fd5b5061019a6103a4565b6040516101309190610bea565b3480156101b357600080fd5b5061016e6103b4565b3480156101c857600080fd5b5061016e61043d565b3480156101dd57600080fd5b506101e66104a9565b6040516101309190610bd6565b3480156101ff57600080fd5b5061012361020e366004610bbb565b6104b8565b34801561021f57600080fd5b5061012361022e366004610bbb565b6104ca565b34801561023f57600080fd5b50610123610514565b34801561025457600080fd5b5061016e610263366004610b5c565b61051a565b34801561027457600080fd5b5061016e610283366004610b87565b6105f3565b61016e610296366004610bbb565b61075c565b3480156102a757600080fd5b506101236102b6366004610bbb565b610840565b3480156102c757600080fd5b5061016e6102d6366004610b39565b61088a565b3480156102e757600080fd5b506101236108fc565b3480156102fc57600080fd5b5061016e61030b366004610b39565b610902565b60055490565b60009081526003602052604090205490565b6103306103a4565b6103555760405162461bcd60e51b815260040161034c90610bf5565b60405180910390fd5b61035d6109c2565b6001600160a01b031661036e6104a9565b6001600160a01b0316146103945760405162461bcd60e51b815260040161034c90610e3c565b61039c6109c6565b565b60055481565b600054600160a01b900460ff1690565b6103bc6109c2565b6001600160a01b03166103cd6104a9565b6001600160a01b0316146103f35760405162461bcd60e51b815260040161034c90610e3c565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6104456103a4565b156104625760405162461bcd60e51b815260040161034c90610d7c565b61046a6109c2565b6001600160a01b031661047b6104a9565b6001600160a01b0316146104a15760405162461bcd60e51b815260040161034c90610e3c565b61039c610a37565b6000546001600160a01b031690565b60009081526002602052604090205490565b60006104d46109c2565b6001600160a01b03166104e56104a9565b6001600160a01b03161461050b5760405162461bcd60e51b815260040161034c90610e3c565b50600581905590565b60045481565b6105226109c2565b6001600160a01b03166105336104a9565b6001600160a01b0316146105595760405162461bcd60e51b815260040161034c90610e3c565b6002600154141561057c5760405162461bcd60e51b815260040161034c90610eee565b60026001558061059e5760405162461bcd60e51b815260040161034c90610e71565b6105a88282610a98565b6000826001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568836040516105e39190610f25565b60405180910390a3505060018055565b6105fb6109c2565b6001600160a01b031661060c6104a9565b6001600160a01b0316146106325760405162461bcd60e51b815260040161034c90610e3c565b600260015414156106555760405162461bcd60e51b815260040161034c90610eee565b60026001556106626103a4565b1561067f5760405162461bcd60e51b815260040161034c90610d7c565b6000821161069f5760405162461bcd60e51b815260040161034c90610e71565b600081815260036020526040902054156106cb5760405162461bcd60e51b815260040161034c90610ca0565b6004546106d88347610f2e565b10156106f65760405162461bcd60e51b815260040161034c90610ea8565b60008181526003602052604090208290556107118383610a98565b80836001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688460405161074b9190610f25565b60405180910390a350506001805550565b6107646103a4565b156107815760405162461bcd60e51b815260040161034c90610d7c565b600034116107a15760405162461bcd60e51b815260040161034c90610c69565b6005543410156107c35760405162461bcd60e51b815260040161034c90610ded565b600081815260026020526040902054156107ef5760405162461bcd60e51b815260040161034c90610da6565b6000818152600260205260409081902034908190559051829133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159161083591610f25565b60405180910390a350565b600061084a6109c2565b6001600160a01b031661085b6104a9565b6001600160a01b0316146108815760405162461bcd60e51b815260040161034c90610e3c565b50600481905590565b6108926109c2565b6001600160a01b03166108a36104a9565b6001600160a01b0316146108c95760405162461bcd60e51b815260040161034c90610e3c565b600260015414156108ec5760405162461bcd60e51b815260040161034c90610eee565b6002600155476105a88282610a98565b60045490565b61090a6109c2565b6001600160a01b031661091b6104a9565b6001600160a01b0316146109415760405162461bcd60e51b815260040161034c90610e3c565b6001600160a01b0381166109675760405162461bcd60e51b815260040161034c90610c23565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6109ce6103a4565b6109ea5760405162461bcd60e51b815260040161034c90610bf5565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a206109c2565b604051610a2d9190610bd6565b60405180910390a1565b610a3f6103a4565b15610a5c5760405162461bcd60e51b815260040161034c90610d7c565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a206109c2565b80471015610ab85760405162461bcd60e51b815260040161034c90610d45565b6000826001600160a01b031682604051610ad190610bd3565b60006040518083038185875af1925050503d8060008114610b0e576040519150601f19603f3d011682016040523d82523d6000602084013e610b13565b606091505b5050905080610b345760405162461bcd60e51b815260040161034c90610ce8565b505050565b600060208284031215610b4a578081fd5b8135610b5581610f51565b9392505050565b60008060408385031215610b6e578081fd5b8235610b7981610f51565b946020939093013593505050565b600080600060608486031215610b9b578081fd5b8335610ba681610f51565b95602085013595506040909401359392505050565b600060208284031215610bcc578081fd5b5035919050565b90565b6001600160a01b0391909116815260200190565b901515815260200190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601d908201527f4e6f2076616c75652070726f766964656420746f206465706f7369742e000000604082015260600190565b60208082526028908201527f546861742077697468647261772068617320616c7265616479206265656e20636040820152671bdb5c1b195d195960c21b606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526027908201527f54686174206465706f7369742068617320616c7265616479206265656e20636f6040820152661b5c1b195d195960ca1b606082015260800190565b6020808252602f908201527f546865206d696e696d756d20616d6f756e7420746f206465706f73697420686160408201526e39903737ba103132b2b71036b2ba1760891b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601e908201527f4e6f2076616c75652070726f766964656420746f2077697468647261772e0000604082015260600190565b60208082526026908201527f546861742077697468647261772077696c6c2075736520726573657276656420604082015265333ab732399760d11b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b600082821015610f4c57634e487b7160e01b81526011600452602481fd5b500390565b6001600160a01b0381168114610f6657600080fd5b5056fea264697066735822122084dfc945df323914fcd5bf4ef2046c173fb18ece4da02331cda70e05d61d401c64736f6c63430008000033

Deployed Bytecode

0x6080604052600436106101095760003560e01c80638fcc9cfb11610095578063b6b55f2511610064578063b6b55f2514610288578063c4cc2e381461029b578063d74ebae1146102bb578063d9a15549146102db578063f2fde38b146102f057610109565b80638fcc9cfb14610213578063a1aabda614610233578063a388541314610248578063b5c5f6721461026857610109565b80635c975abb116100dc5780635c975abb14610185578063715018a6146101a75780638456cb59146101bc5780638da5cb5b146101d15780638e68d925146101f357610109565b80630eaad3f11461010e5780631f4985d3146101395780633f4ba83a1461015957806341b3d18514610170575b600080fd5b34801561011a57600080fd5b50610123610310565b6040516101309190610f25565b60405180910390f35b34801561014557600080fd5b50610123610154366004610bbb565b610316565b34801561016557600080fd5b5061016e610328565b005b34801561017c57600080fd5b5061012361039e565b34801561019157600080fd5b5061019a6103a4565b6040516101309190610bea565b3480156101b357600080fd5b5061016e6103b4565b3480156101c857600080fd5b5061016e61043d565b3480156101dd57600080fd5b506101e66104a9565b6040516101309190610bd6565b3480156101ff57600080fd5b5061012361020e366004610bbb565b6104b8565b34801561021f57600080fd5b5061012361022e366004610bbb565b6104ca565b34801561023f57600080fd5b50610123610514565b34801561025457600080fd5b5061016e610263366004610b5c565b61051a565b34801561027457600080fd5b5061016e610283366004610b87565b6105f3565b61016e610296366004610bbb565b61075c565b3480156102a757600080fd5b506101236102b6366004610bbb565b610840565b3480156102c757600080fd5b5061016e6102d6366004610b39565b61088a565b3480156102e757600080fd5b506101236108fc565b3480156102fc57600080fd5b5061016e61030b366004610b39565b610902565b60055490565b60009081526003602052604090205490565b6103306103a4565b6103555760405162461bcd60e51b815260040161034c90610bf5565b60405180910390fd5b61035d6109c2565b6001600160a01b031661036e6104a9565b6001600160a01b0316146103945760405162461bcd60e51b815260040161034c90610e3c565b61039c6109c6565b565b60055481565b600054600160a01b900460ff1690565b6103bc6109c2565b6001600160a01b03166103cd6104a9565b6001600160a01b0316146103f35760405162461bcd60e51b815260040161034c90610e3c565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6104456103a4565b156104625760405162461bcd60e51b815260040161034c90610d7c565b61046a6109c2565b6001600160a01b031661047b6104a9565b6001600160a01b0316146104a15760405162461bcd60e51b815260040161034c90610e3c565b61039c610a37565b6000546001600160a01b031690565b60009081526002602052604090205490565b60006104d46109c2565b6001600160a01b03166104e56104a9565b6001600160a01b03161461050b5760405162461bcd60e51b815260040161034c90610e3c565b50600581905590565b60045481565b6105226109c2565b6001600160a01b03166105336104a9565b6001600160a01b0316146105595760405162461bcd60e51b815260040161034c90610e3c565b6002600154141561057c5760405162461bcd60e51b815260040161034c90610eee565b60026001558061059e5760405162461bcd60e51b815260040161034c90610e71565b6105a88282610a98565b6000826001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568836040516105e39190610f25565b60405180910390a3505060018055565b6105fb6109c2565b6001600160a01b031661060c6104a9565b6001600160a01b0316146106325760405162461bcd60e51b815260040161034c90610e3c565b600260015414156106555760405162461bcd60e51b815260040161034c90610eee565b60026001556106626103a4565b1561067f5760405162461bcd60e51b815260040161034c90610d7c565b6000821161069f5760405162461bcd60e51b815260040161034c90610e71565b600081815260036020526040902054156106cb5760405162461bcd60e51b815260040161034c90610ca0565b6004546106d88347610f2e565b10156106f65760405162461bcd60e51b815260040161034c90610ea8565b60008181526003602052604090208290556107118383610a98565b80836001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5688460405161074b9190610f25565b60405180910390a350506001805550565b6107646103a4565b156107815760405162461bcd60e51b815260040161034c90610d7c565b600034116107a15760405162461bcd60e51b815260040161034c90610c69565b6005543410156107c35760405162461bcd60e51b815260040161034c90610ded565b600081815260026020526040902054156107ef5760405162461bcd60e51b815260040161034c90610da6565b6000818152600260205260409081902034908190559051829133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159161083591610f25565b60405180910390a350565b600061084a6109c2565b6001600160a01b031661085b6104a9565b6001600160a01b0316146108815760405162461bcd60e51b815260040161034c90610e3c565b50600481905590565b6108926109c2565b6001600160a01b03166108a36104a9565b6001600160a01b0316146108c95760405162461bcd60e51b815260040161034c90610e3c565b600260015414156108ec5760405162461bcd60e51b815260040161034c90610eee565b6002600155476105a88282610a98565b60045490565b61090a6109c2565b6001600160a01b031661091b6104a9565b6001600160a01b0316146109415760405162461bcd60e51b815260040161034c90610e3c565b6001600160a01b0381166109675760405162461bcd60e51b815260040161034c90610c23565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b6109ce6103a4565b6109ea5760405162461bcd60e51b815260040161034c90610bf5565b6000805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa610a206109c2565b604051610a2d9190610bd6565b60405180910390a1565b610a3f6103a4565b15610a5c5760405162461bcd60e51b815260040161034c90610d7c565b6000805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610a206109c2565b80471015610ab85760405162461bcd60e51b815260040161034c90610d45565b6000826001600160a01b031682604051610ad190610bd3565b60006040518083038185875af1925050503d8060008114610b0e576040519150601f19603f3d011682016040523d82523d6000602084013e610b13565b606091505b5050905080610b345760405162461bcd60e51b815260040161034c90610ce8565b505050565b600060208284031215610b4a578081fd5b8135610b5581610f51565b9392505050565b60008060408385031215610b6e578081fd5b8235610b7981610f51565b946020939093013593505050565b600080600060608486031215610b9b578081fd5b8335610ba681610f51565b95602085013595506040909401359392505050565b600060208284031215610bcc578081fd5b5035919050565b90565b6001600160a01b0391909116815260200190565b901515815260200190565b60208082526014908201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601d908201527f4e6f2076616c75652070726f766964656420746f206465706f7369742e000000604082015260600190565b60208082526028908201527f546861742077697468647261772068617320616c7265616479206265656e20636040820152671bdb5c1b195d195960c21b606082015260800190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526027908201527f54686174206465706f7369742068617320616c7265616479206265656e20636f6040820152661b5c1b195d195960ca1b606082015260800190565b6020808252602f908201527f546865206d696e696d756d20616d6f756e7420746f206465706f73697420686160408201526e39903737ba103132b2b71036b2ba1760891b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601e908201527f4e6f2076616c75652070726f766964656420746f2077697468647261772e0000604082015260600190565b60208082526026908201527f546861742077697468647261772077696c6c2075736520726573657276656420604082015265333ab732399760d11b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b90815260200190565b600082821015610f4c57634e487b7160e01b81526011600452602481fd5b500390565b6001600160a01b0381168114610f6657600080fd5b5056fea264697066735822122084dfc945df323914fcd5bf4ef2046c173fb18ece4da02331cda70e05d61d401c64736f6c63430008000033

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.