ETH Price: $3,354.05 (-0.39%)
Gas: 4.73 Gwei

Contract

0x3AFb61DEA26141B66b35196cAAa65C4a4E613Df7
 

Overview

ETH Balance

0.000904409879481899 ETH

Eth Value

$3.03 (@ $3,354.05/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Swap164252272023-01-17 8:08:59712 days ago1673942939IN
0x3AFb61DE...a4E613Df7
0 ETH0.0012766416.79465571
Swap158700582022-10-31 19:13:59789 days ago1667243639IN
0x3AFb61DE...a4E613Df7
0 ETH0.0004743221.56038023
Swap158699312022-10-31 18:48:23789 days ago1667242103IN
0x3AFb61DE...a4E613Df7
0 ETH0.000528524.02282322
Swap158289182022-10-26 1:19:47795 days ago1666747187IN
0x3AFb61DE...a4E613Df7
0 ETH0.0008393811.04235264
Transfer158289152022-10-26 1:19:11795 days ago1666747151IN
0x3AFb61DE...a4E613Df7
0.001 ETH0.0002428111.53225186
Swap157896962022-10-20 13:46:11801 days ago1666273571IN
0x3AFb61DE...a4E613Df7
0 ETH0.0028137154.66063126
Swap157695642022-10-17 18:18:23803 days ago1666030703IN
0x3AFb61DE...a4E613Df7
0 ETH0.0032152542.29768521
Swap156909722022-10-06 18:53:23814 days ago1665082403IN
0x3AFb61DE...a4E613Df7
0 ETH0.0002807812.76288237
Swap156810312022-10-05 9:32:35816 days ago1664962355IN
0x3AFb61DE...a4E613Df7
0 ETH0.000254824.95027955
Swap156713882022-10-04 1:05:11817 days ago1664845511IN
0x3AFb61DE...a4E613Df7
0 ETH0.0005209111.09864923
Swap156670182022-10-03 10:26:11818 days ago1664792771IN
0x3AFb61DE...a4E613Df7
0 ETH0.000378738.06929787
Swap156635302022-10-02 22:44:23818 days ago1664750663IN
0x3AFb61DE...a4E613Df7
0 ETH0.000226754.83131242
Swap156634402022-10-02 22:26:23818 days ago1664749583IN
0x3AFb61DE...a4E613Df7
0 ETH0.000231714.93687402
Swap156634202022-10-02 22:22:23818 days ago1664749343IN
0x3AFb61DE...a4E613Df7
0 ETH0.000122675.57606697
Swap156634052022-10-02 22:19:23818 days ago1664749163IN
0x3AFb61DE...a4E613Df7
0 ETH0.000128075.8213672
Swap156618972022-10-02 17:15:47818 days ago1664730947IN
0x3AFb61DE...a4E613Df7
0 ETH0.0002897711.59101161
Swap156585942022-10-02 6:13:35819 days ago1664691215IN
0x3AFb61DE...a4E613Df7
0 ETH0.000466639.72162845
Swap156581342022-10-02 4:41:23819 days ago1664685683IN
0x3AFb61DE...a4E613Df7
0 ETH0.000287155.57964362
Swap156570912022-10-02 1:12:11819 days ago1664673131IN
0x3AFb61DE...a4E613Df7
0 ETH0.000491226.46217464
Swap156570762022-10-02 1:09:11819 days ago1664672951IN
0x3AFb61DE...a4E613Df7
0 ETH0.000447785.8898537
Swap156554632022-10-01 19:43:47819 days ago1664653427IN
0x3AFb61DE...a4E613Df7
0 ETH0.000462039.84666323
Swap156554552022-10-01 19:42:11819 days ago1664653331IN
0x3AFb61DE...a4E613Df7
0 ETH0.000194968.86189836
Swap156548272022-10-01 17:34:47819 days ago1664645687IN
0x3AFb61DE...a4E613Df7
0 ETH0.0005282910.26288476
Swap156523132022-10-01 9:07:47820 days ago1664615267IN
0x3AFb61DE...a4E613Df7
0 ETH0.000333426.477292
Swap156507102022-10-01 3:45:23820 days ago1664595923IN
0x3AFb61DE...a4E613Df7
0 ETH0.000666598.76926798
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
164252272023-01-17 8:08:59712 days ago1673942939
0x3AFb61DE...a4E613Df7
0.01 ETH
164199242023-01-16 14:23:35713 days ago1673879015
0x3AFb61DE...a4E613Df7
0.01029523 ETH
158289182022-10-26 1:19:47795 days ago1666747187
0x3AFb61DE...a4E613Df7
0.006 ETH
157695642022-10-17 18:18:23803 days ago1666030703
0x3AFb61DE...a4E613Df7
0.006 ETH
157690202022-10-17 16:29:11803 days ago1666024151
0x3AFb61DE...a4E613Df7
0.01077621 ETH
156570912022-10-02 1:12:11819 days ago1664673131
0x3AFb61DE...a4E613Df7
0.01 ETH
156570762022-10-02 1:09:11819 days ago1664672951
0x3AFb61DE...a4E613Df7
0.01442814 ETH
156552982022-10-01 19:09:59819 days ago1664651399
0x3AFb61DE...a4E613Df7
0.02088954 ETH
156507102022-10-01 3:45:23820 days ago1664595923
0x3AFb61DE...a4E613Df7
0.006 ETH
156507042022-10-01 3:44:11820 days ago1664595851
0x3AFb61DE...a4E613Df7
0.01 ETH
156506892022-10-01 3:40:59820 days ago1664595659
0x3AFb61DE...a4E613Df7
0.006 ETH
156502102022-10-01 2:04:11820 days ago1664589851
0x3AFb61DE...a4E613Df7
0.02201868 ETH
156315432022-09-28 11:29:23823 days ago1664364563
0x3AFb61DE...a4E613Df7
0.006 ETH
156311262022-09-28 10:05:23823 days ago1664359523
0x3AFb61DE...a4E613Df7
0.0186 ETH
156310772022-09-28 9:55:35823 days ago1664358935
0x3AFb61DE...a4E613Df7
0.02887127 ETH
156280302022-09-27 23:42:35823 days ago1664322155
0x3AFb61DE...a4E613Df7
0.01582618 ETH
156268092022-09-27 19:35:23823 days ago1664307323
0x3AFb61DE...a4E613Df7
0.0154 ETH
156265482022-09-27 18:42:35823 days ago1664304155
0x3AFb61DE...a4E613Df7
0.03081336 ETH
156026642022-09-24 10:37:11827 days ago1664015831
0x3AFb61DE...a4E613Df7
0.0062 ETH
156007492022-09-24 4:12:23827 days ago1663992743
0x3AFb61DE...a4E613Df7
0.0128 ETH
156004782022-09-24 3:18:11827 days ago1663989491
0x3AFb61DE...a4E613Df7
0.016 ETH
155999502022-09-24 1:32:23827 days ago1663983143
0x3AFb61DE...a4E613Df7
0.03533857 ETH
155783612022-09-21 0:48:47830 days ago1663721327
0x3AFb61DE...a4E613Df7
0.0128 ETH
155762352022-09-20 17:40:11830 days ago1663695611
0x3AFb61DE...a4E613Df7
0.01357499 ETH
155752632022-09-20 14:23:59831 days ago1663683839
0x3AFb61DE...a4E613Df7
0.054 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CheddaSwap

Compiler Version
v0.8.16+commit.07a7930e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-08-18
*/

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.15;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

/**
 * @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;
    }
}

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

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

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

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

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

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

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

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

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

// File: contracts/CheddaSwap.sol

/**
 * @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;
    }
}


contract CheddaSwap is Context, ReentrancyGuard, Ownable {
    using Address for address payable;
    
    event Swap(address indexed user, uint256 outAmount);
    event PayeeTransferred(address indexed previousPayee, address indexed newPayee);

    IERC20 public token;

    IERC20 public ratTrapToken;

    uint256 public minRatTrapHolding;
    uint256 public minCheddaToSwap = 15 * 10**18;
    
    bool public isSwapStarted;

    uint8 public swapRate = 1;
    uint256 public swapRatio = 3000; // Chedda Reward rate is swapRate / swapRatio i.e. 1:3000
    
    // Total ETH Swapped
    uint256 public totalSwapped;
   
    constructor (IERC20 _token, IERC20 _ratTrapToken) {
        token = _token;
        ratTrapToken = _ratTrapToken;
    }

    /**
     * @dev fallback function ***DO NOT OVERRIDE***
     * Note that other contracts will transfer funds with a base gas stipend
     * of 2300, which is not enough to call buyTokens. Consider calling
     * buyTokens directly when purchasing tokens from a contract.
     */
    receive() external payable {
    }

    function swap(IERC20 _token, uint256 weiAmount) public nonReentrant{
        uint256 quota = address(this).balance;
        require(_token == IERC20(token), "Can only swap chedda");
        require(isSwapStarted == true, "CheddaSwap::Swap not started");
        require(IERC20(token).balanceOf(msg.sender) > 0, "You don't have enough Chedda balance");
        require(IERC20(ratTrapToken).balanceOf(msg.sender) >= minRatTrapHolding, "You don't have enough RatTrap balance");
        require(weiAmount >= minCheddaToSwap, "Require minimum Chedda to swap");

        uint256 outAmount = weiAmount * swapRate / swapRatio;
        require(quota >= outAmount, "Not enough ETH in the contract to swap");
    
        totalSwapped += outAmount;
        quota -= outAmount;

        IERC20(token).transferFrom(msg.sender, address(0xdead), weiAmount);

        payable(msg.sender).transfer(outAmount);

        emit Swap(msg.sender, outAmount);
    }
    

    function startSwap() public onlyOwner returns (bool) {
        isSwapStarted = true;
        return true;
    }

    function stopSwap() public onlyOwner returns (bool) {
        isSwapStarted = false;
        return true;
    }
    
    function setSwapRate(uint8 newRate) public onlyOwner returns (uint8) {
        swapRate = newRate;
        return newRate;
    }

    function setSwapRatio(uint256 newRatio) public onlyOwner returns (uint256) {
        swapRatio = newRatio;
        return newRatio;
    }

    function updateMinHolding(uint256 newVal) external onlyOwner returns(uint256) {
        minRatTrapHolding = newVal * 10**18;
        return newVal;
    }

    function updateMinCheddaToSwap(uint256 newVal) external onlyOwner returns(uint256) {
        minCheddaToSwap = newVal * 10**18;
        return newVal;
    }

    function updateCheddaToken(address _token) external onlyOwner returns(address) {
        token = IERC20(_token);

        return _token;
    }

    function updateRatTrapToken(address _token) external onlyOwner returns(address) {
        ratTrapToken = IERC20(_token);

        return _token;
    }

   function recoverLostETH() public onlyOwner {
        payable(owner()).sendValue (address(this).balance);
    }

    function WithdrawOtherTokens(address _token, uint256 amount) public onlyOwner {
        IERC20(_token).transfer(msg.sender, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"contract IERC20","name":"_ratTrapToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"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":true,"internalType":"address","name":"previousPayee","type":"address"},{"indexed":true,"internalType":"address","name":"newPayee","type":"address"}],"name":"PayeeTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"outAmount","type":"uint256"}],"name":"Swap","type":"event"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawOtherTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isSwapStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minCheddaToSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minRatTrapHolding","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":"ratTrapToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recoverLostETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"newRate","type":"uint8"}],"name":"setSwapRate","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newRatio","type":"uint256"}],"name":"setSwapRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startSwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopSwap","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"weiAmount","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapRate","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swapRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSwapped","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"updateCheddaToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"updateMinCheddaToSwap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newVal","type":"uint256"}],"name":"updateMinHolding","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"updateRatTrapToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405267d02ab486cedc00006005556006805461ff001916610100179055610bb860075534801561003157600080fd5b50604051610f54380380610f54833981016040819052610050916100fd565b600160005561005e3361008f565b600280546001600160a01b039384166001600160a01b03199182161790915560038054929093169116179055610130565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146100f857600080fd5b919050565b6000806040838503121561011057600080fd5b610119836100e1565b9150610127602084016100e1565b90509250929050565b610e158061013f6000396000f3fe6080604052600436106101395760003560e01c8063ab4340ec116100ab578063d8501f4f1161006f578063d8501f4f14610347578063dc1bc51d1461035d578063f18b540714610377578063f2fde38b14610397578063fc0c546a146103b7578063fed5c2c0146103d757600080fd5b8063ab4340ec146102b7578063b633b364146102cd578063ba2129b1146102f2578063c992b5b214610312578063d004f0f71461032757600080fd5b8063698518e5116100fd578063698518e5146101f7578063715018a614610216578063814ebaee1461022b5780638da5cb5b14610263578063a6a849ed14610281578063a87ef82c1461029757600080fd5b80630e0bfb491461014557806327f605c81461016e5780632b445ed9146101a0578063302f627d146101c0578063680997f6146101d757600080fd5b3661014057005b600080fd5b34801561015157600080fd5b5061015b60075481565b6040519081526020015b60405180910390f35b34801561017a57600080fd5b5061018e610189366004610c80565b6103f7565b60405160ff9091168152602001610165565b3480156101ac57600080fd5b5061015b6101bb366004610caa565b610419565b3480156101cc57600080fd5b506101d561043c565b005b3480156101e357600080fd5b506101d56101f2366004610cd8565b61046b565b34801561020357600080fd5b5060065461018e90610100900460ff1681565b34801561022257600080fd5b506101d56104e9565b34801561023757600080fd5b5061024b610246366004610d04565b6104fb565b6040516001600160a01b039091168152602001610165565b34801561026f57600080fd5b506001546001600160a01b031661024b565b34801561028d57600080fd5b5061015b60055481565b3480156102a357600080fd5b5061024b6102b2366004610d04565b610524565b3480156102c357600080fd5b5061015b60045481565b3480156102d957600080fd5b506102e261054d565b6040519015158152602001610165565b3480156102fe57600080fd5b5061015b61030d366004610caa565b610567565b34801561031e57600080fd5b506102e261057a565b34801561033357600080fd5b506101d5610342366004610cd8565b610598565b34801561035357600080fd5b5061015b60085481565b34801561036957600080fd5b506006546102e29060ff1681565b34801561038357600080fd5b5060035461024b906001600160a01b031681565b3480156103a357600080fd5b506101d56103b2366004610d04565b610a1f565b3480156103c357600080fd5b5060025461024b906001600160a01b031681565b3480156103e357600080fd5b5061015b6103f2366004610caa565b610a98565b6000610401610abb565b506006805461ff00191661010060ff84160217905590565b6000610423610abb565b61043582670de0b6b3a7640000610d37565b6004555090565b610444610abb565b6104694761045a6001546001600160a01b031690565b6001600160a01b031690610b15565b565b610473610abb565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156104c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e49190610d56565b505050565b6104f1610abb565b6104696000610c2e565b6000610505610abb565b50600380546001600160a01b0319166001600160a01b03831617905590565b600061052e610abb565b50600280546001600160a01b0319166001600160a01b03831617905590565b6000610557610abb565b506006805460ff19169055600190565b6000610571610abb565b50600781905590565b6000610584610abb565b506006805460ff1916600190811790915590565b6002600054036105ef5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260008190555447906001600160a01b0384811691161461064a5760405162461bcd60e51b815260206004820152601460248201527343616e206f6e6c7920737761702063686564646160601b60448201526064016105e6565b60065460ff1615156001146106a15760405162461bcd60e51b815260206004820152601c60248201527f436865646461537761703a3a53776170206e6f7420737461727465640000000060448201526064016105e6565b6002546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156106ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070e9190610d78565b116107675760405162461bcd60e51b8152602060048201526024808201527f596f7520646f6e2774206861766520656e6f756768204368656464612062616c604482015263616e636560e01b60648201526084016105e6565b600480546003546040516370a0823160e01b8152339381019390935290916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156107b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107db9190610d78565b10156108375760405162461bcd60e51b815260206004820152602560248201527f596f7520646f6e2774206861766520656e6f75676820526174547261702062616044820152646c616e636560d81b60648201526084016105e6565b6005548210156108895760405162461bcd60e51b815260206004820152601e60248201527f52657175697265206d696e696d756d2043686564646120746f2073776170000060448201526064016105e6565b600754600654600091906108a590610100900460ff1685610d37565b6108af9190610d91565b9050808210156109105760405162461bcd60e51b815260206004820152602660248201527f4e6f7420656e6f7567682045544820696e2074686520636f6e7472616374207460448201526506f20737761760d41b60648201526084016105e6565b80600860008282546109229190610db3565b9091555061093290508183610dcc565b6002546040516323b872dd60e01b815233600482015261dead6024820152604481018690529193506001600160a01b0316906323b872dd906064016020604051808303816000875af115801561098c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b09190610d56565b50604051339082156108fc029083906000818181858888f193505050501580156109de573d6000803e3d6000fd5b5060405181815233907f562c219552544ec4c9d7a8eb850f80ea152973e315372bf4999fe7c953ea004f9060200160405180910390a2505060016000555050565b610a27610abb565b6001600160a01b038116610a8c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105e6565b610a9581610c2e565b50565b6000610aa2610abb565b610ab482670de0b6b3a7640000610d37565b6005555090565b6001546001600160a01b031633146104695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e6565b80471015610b655760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016105e6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610bb2576040519150601f19603f3d011682016040523d82523d6000602084013e610bb7565b606091505b50509050806104e45760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016105e6565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208284031215610c9257600080fd5b813560ff81168114610ca357600080fd5b9392505050565b600060208284031215610cbc57600080fd5b5035919050565b6001600160a01b0381168114610a9557600080fd5b60008060408385031215610ceb57600080fd5b8235610cf681610cc3565b946020939093013593505050565b600060208284031215610d1657600080fd5b8135610ca381610cc3565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610d5157610d51610d21565b500290565b600060208284031215610d6857600080fd5b81518015158114610ca357600080fd5b600060208284031215610d8a57600080fd5b5051919050565b600082610dae57634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610dc657610dc6610d21565b92915050565b81810381811115610dc657610dc6610d2156fea2646970667358221220a8bed4d153eafe85e64a1efeced17122596057d036788d7c9ac093ac58e00bf764736f6c6343000810003300000000000000000000000037de2663a2b265adfd152b73e1a42fb1b0063ada000000000000000000000000a9fdae1f91c5e1dc72b555af5cf80b21f96cbb15

Deployed Bytecode

0x6080604052600436106101395760003560e01c8063ab4340ec116100ab578063d8501f4f1161006f578063d8501f4f14610347578063dc1bc51d1461035d578063f18b540714610377578063f2fde38b14610397578063fc0c546a146103b7578063fed5c2c0146103d757600080fd5b8063ab4340ec146102b7578063b633b364146102cd578063ba2129b1146102f2578063c992b5b214610312578063d004f0f71461032757600080fd5b8063698518e5116100fd578063698518e5146101f7578063715018a614610216578063814ebaee1461022b5780638da5cb5b14610263578063a6a849ed14610281578063a87ef82c1461029757600080fd5b80630e0bfb491461014557806327f605c81461016e5780632b445ed9146101a0578063302f627d146101c0578063680997f6146101d757600080fd5b3661014057005b600080fd5b34801561015157600080fd5b5061015b60075481565b6040519081526020015b60405180910390f35b34801561017a57600080fd5b5061018e610189366004610c80565b6103f7565b60405160ff9091168152602001610165565b3480156101ac57600080fd5b5061015b6101bb366004610caa565b610419565b3480156101cc57600080fd5b506101d561043c565b005b3480156101e357600080fd5b506101d56101f2366004610cd8565b61046b565b34801561020357600080fd5b5060065461018e90610100900460ff1681565b34801561022257600080fd5b506101d56104e9565b34801561023757600080fd5b5061024b610246366004610d04565b6104fb565b6040516001600160a01b039091168152602001610165565b34801561026f57600080fd5b506001546001600160a01b031661024b565b34801561028d57600080fd5b5061015b60055481565b3480156102a357600080fd5b5061024b6102b2366004610d04565b610524565b3480156102c357600080fd5b5061015b60045481565b3480156102d957600080fd5b506102e261054d565b6040519015158152602001610165565b3480156102fe57600080fd5b5061015b61030d366004610caa565b610567565b34801561031e57600080fd5b506102e261057a565b34801561033357600080fd5b506101d5610342366004610cd8565b610598565b34801561035357600080fd5b5061015b60085481565b34801561036957600080fd5b506006546102e29060ff1681565b34801561038357600080fd5b5060035461024b906001600160a01b031681565b3480156103a357600080fd5b506101d56103b2366004610d04565b610a1f565b3480156103c357600080fd5b5060025461024b906001600160a01b031681565b3480156103e357600080fd5b5061015b6103f2366004610caa565b610a98565b6000610401610abb565b506006805461ff00191661010060ff84160217905590565b6000610423610abb565b61043582670de0b6b3a7640000610d37565b6004555090565b610444610abb565b6104694761045a6001546001600160a01b031690565b6001600160a01b031690610b15565b565b610473610abb565b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156104c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e49190610d56565b505050565b6104f1610abb565b6104696000610c2e565b6000610505610abb565b50600380546001600160a01b0319166001600160a01b03831617905590565b600061052e610abb565b50600280546001600160a01b0319166001600160a01b03831617905590565b6000610557610abb565b506006805460ff19169055600190565b6000610571610abb565b50600781905590565b6000610584610abb565b506006805460ff1916600190811790915590565b6002600054036105ef5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260008190555447906001600160a01b0384811691161461064a5760405162461bcd60e51b815260206004820152601460248201527343616e206f6e6c7920737761702063686564646160601b60448201526064016105e6565b60065460ff1615156001146106a15760405162461bcd60e51b815260206004820152601c60248201527f436865646461537761703a3a53776170206e6f7420737461727465640000000060448201526064016105e6565b6002546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa1580156106ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070e9190610d78565b116107675760405162461bcd60e51b8152602060048201526024808201527f596f7520646f6e2774206861766520656e6f756768204368656464612062616c604482015263616e636560e01b60648201526084016105e6565b600480546003546040516370a0823160e01b8152339381019390935290916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156107b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107db9190610d78565b10156108375760405162461bcd60e51b815260206004820152602560248201527f596f7520646f6e2774206861766520656e6f75676820526174547261702062616044820152646c616e636560d81b60648201526084016105e6565b6005548210156108895760405162461bcd60e51b815260206004820152601e60248201527f52657175697265206d696e696d756d2043686564646120746f2073776170000060448201526064016105e6565b600754600654600091906108a590610100900460ff1685610d37565b6108af9190610d91565b9050808210156109105760405162461bcd60e51b815260206004820152602660248201527f4e6f7420656e6f7567682045544820696e2074686520636f6e7472616374207460448201526506f20737761760d41b60648201526084016105e6565b80600860008282546109229190610db3565b9091555061093290508183610dcc565b6002546040516323b872dd60e01b815233600482015261dead6024820152604481018690529193506001600160a01b0316906323b872dd906064016020604051808303816000875af115801561098c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109b09190610d56565b50604051339082156108fc029083906000818181858888f193505050501580156109de573d6000803e3d6000fd5b5060405181815233907f562c219552544ec4c9d7a8eb850f80ea152973e315372bf4999fe7c953ea004f9060200160405180910390a2505060016000555050565b610a27610abb565b6001600160a01b038116610a8c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105e6565b610a9581610c2e565b50565b6000610aa2610abb565b610ab482670de0b6b3a7640000610d37565b6005555090565b6001546001600160a01b031633146104695760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105e6565b80471015610b655760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016105e6565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610bb2576040519150601f19603f3d011682016040523d82523d6000602084013e610bb7565b606091505b50509050806104e45760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016105e6565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060208284031215610c9257600080fd5b813560ff81168114610ca357600080fd5b9392505050565b600060208284031215610cbc57600080fd5b5035919050565b6001600160a01b0381168114610a9557600080fd5b60008060408385031215610ceb57600080fd5b8235610cf681610cc3565b946020939093013593505050565b600060208284031215610d1657600080fd5b8135610ca381610cc3565b634e487b7160e01b600052601160045260246000fd5b6000816000190483118215151615610d5157610d51610d21565b500290565b600060208284031215610d6857600080fd5b81518015158114610ca357600080fd5b600060208284031215610d8a57600080fd5b5051919050565b600082610dae57634e487b7160e01b600052601260045260246000fd5b500490565b80820180821115610dc657610dc6610d21565b92915050565b81810381811115610dc657610dc6610d2156fea2646970667358221220a8bed4d153eafe85e64a1efeced17122596057d036788d7c9ac093ac58e00bf764736f6c63430008100033

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

00000000000000000000000037de2663a2b265adfd152b73e1a42fb1b0063ada000000000000000000000000a9fdae1f91c5e1dc72b555af5cf80b21f96cbb15

-----Decoded View---------------
Arg [0] : _token (address): 0x37de2663A2b265AdfD152b73E1A42fB1B0063adA
Arg [1] : _ratTrapToken (address): 0xA9fDaE1f91c5e1Dc72b555Af5Cf80B21F96cBb15

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000037de2663a2b265adfd152b73e1a42fb1b0063ada
Arg [1] : 000000000000000000000000a9fdae1f91c5e1dc72b555af5cf80b21f96cbb15


Deployed Bytecode Sourcemap

17106:3528:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17587:31;;;;;;;;;;;;;;;;;;;160:25:1;;;148:2;133:18;17587:31:0;;;;;;;;19438:131;;;;;;;;;;-1:-1:-1;19438:131:0;;;;;:::i;:::-;;:::i;:::-;;;642:4:1;630:17;;;612:36;;600:2;585:18;19438:131:0;470:184:1;19725:156:0;;;;;;;;;;-1:-1:-1;19725:156:0;;;;;:::i;:::-;;:::i;20371:112::-;;;;;;;;;;;;;:::i;:::-;;20491:140;;;;;;;;;;-1:-1:-1;20491:140:0;;;;;:::i;:::-;;:::i;17555:25::-;;;;;;;;;;-1:-1:-1;17555:25:0;;;;;;;;;;;13654:103;;;;;;;;;;;;;:::i;20210:154::-;;;;;;;;;;-1:-1:-1;20210:154:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1716:32:1;;;1698:51;;1686:2;1671:18;20210:154:0;1552:203:1;13006:87:0;;;;;;;;;;-1:-1:-1;13079:6:0;;-1:-1:-1;;;;;13079:6:0;13006:87;;17464:44;;;;;;;;;;;;;;;;20056:146;;;;;;;;;;-1:-1:-1;20056:146:0;;;;;:::i;:::-;;:::i;17425:32::-;;;;;;;;;;;;;;;;19312:114;;;;;;;;;;;;;:::i;:::-;;;1925:14:1;;1918:22;1900:41;;1888:2;1873:18;19312:114:0;1760:187:1;19577:140:0;;;;;;;;;;-1:-1:-1;19577:140:0;;;;;:::i;:::-;;:::i;19190:114::-;;;;;;;;;;;;;:::i;18216:960::-;;;;;;;;;;-1:-1:-1;18216:960:0;;;;;:::i;:::-;;:::i;17715:27::-;;;;;;;;;;;;;;;;17521:25;;;;;;;;;;-1:-1:-1;17521:25:0;;;;;;;;17390:26;;;;;;;;;;-1:-1:-1;17390:26:0;;;;-1:-1:-1;;;;;17390:26:0;;;13912:201;;;;;;;;;;-1:-1:-1;13912:201:0;;;;;:::i;:::-;;:::i;17362:19::-;;;;;;;;;;-1:-1:-1;17362:19:0;;;;-1:-1:-1;;;;;17362:19:0;;;19889:159;;;;;;;;;;-1:-1:-1;19889:159:0;;;;;:::i;:::-;;:::i;19438:131::-;19500:5;12892:13;:11;:13::i;:::-;-1:-1:-1;19518:8:0::1;:18:::0;;-1:-1:-1;;19518:18:0::1;;;::::0;::::1;;;::::0;;;19438:131::o;19725:156::-;19794:7;12892:13;:11;:13::i;:::-;19834:15:::1;:6:::0;19843::::1;19834:15;:::i;:::-;19814:17;:35:::0;-1:-1:-1;19867:6:0;19725:156::o;20371:112::-;12892:13;:11;:13::i;:::-;20425:50:::1;20453:21;20433:7;13079:6:::0;;-1:-1:-1;;;;;13079:6:0;;13006:87;20433:7:::1;-1:-1:-1::0;;;;;20425:26:0::1;::::0;::::1;:50::i;:::-;20371:112::o:0;20491:140::-;12892:13;:11;:13::i;:::-;20580:43:::1;::::0;-1:-1:-1;;;20580:43:0;;20604:10:::1;20580:43;::::0;::::1;2987:51:1::0;3054:18;;;3047:34;;;-1:-1:-1;;;;;20580:23:0;::::1;::::0;::::1;::::0;2960:18:1;;20580:43:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;20491:140:::0;;:::o;13654:103::-;12892:13;:11;:13::i;:::-;13719:30:::1;13746:1;13719:18;:30::i;20210:154::-:0;20281:7;12892:13;:11;:13::i;:::-;-1:-1:-1;20301:12:0::1;:29:::0;;-1:-1:-1;;;;;;20301:29:0::1;-1:-1:-1::0;;;;;20301:29:0;::::1;;::::0;;;20210:154::o;20056:146::-;20126:7;12892:13;:11;:13::i;:::-;-1:-1:-1;20146:5:0::1;:22:::0;;-1:-1:-1;;;;;;20146:22:0::1;-1:-1:-1::0;;;;;20146:22:0;::::1;;::::0;;;20056:146::o;19312:114::-;19358:4;12892:13;:11;:13::i;:::-;-1:-1:-1;19375:13:0::1;:21:::0;;-1:-1:-1;;19375:21:0::1;::::0;;;19312:114;:::o;19577:140::-;19643:7;12892:13;:11;:13::i;:::-;-1:-1:-1;19663:9:0::1;:20:::0;;;;19577:140::o;19190:114::-;19237:4;12892:13;:11;:13::i;:::-;-1:-1:-1;19254:13:0::1;:20:::0;;-1:-1:-1;;19254:20:0::1;19270:4;19254:20:::0;;::::1;::::0;;;19190:114;:::o;18216:960::-;16159:1;16755:7;;:19;16747:63;;;;-1:-1:-1;;;16747:63:0;;3576:2:1;16747:63:0;;;3558:21:1;3615:2;3595:18;;;3588:30;3654:33;3634:18;;;3627:61;3705:18;;16747:63:0;;;;;;;;;16159:1;16888:7;:18;;;18367:5;18310:21:::1;::::0;-1:-1:-1;;;;;18350:23:0;;::::1;18367:5:::0;::::1;18350:23;18342:56;;;::::0;-1:-1:-1;;;18342:56:0;;3936:2:1;18342:56:0::1;::::0;::::1;3918:21:1::0;3975:2;3955:18;;;3948:30;-1:-1:-1;;;3994:18:1;;;3987:50;4054:18;;18342:56:0::1;3734:344:1::0;18342:56:0::1;18417:13;::::0;::::1;;:21;;:13:::0;:21:::1;18409:62;;;::::0;-1:-1:-1;;;18409:62:0;;4285:2:1;18409:62:0::1;::::0;::::1;4267:21:1::0;4324:2;4304:18;;;4297:30;4363;4343:18;;;4336:58;4411:18;;18409:62:0::1;4083:352:1::0;18409:62:0::1;18497:5;::::0;18490:35:::1;::::0;-1:-1:-1;;;18490:35:0;;18514:10:::1;18490:35;::::0;::::1;1698:51:1::0;18528:1:0::1;::::0;-1:-1:-1;;;;;18497:5:0::1;::::0;18490:23:::1;::::0;1671:18:1;;18490:35:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:39;18482:88;;;::::0;-1:-1:-1;;;18482:88:0;;4831:2:1;18482:88:0::1;::::0;::::1;4813:21:1::0;4870:2;4850:18;;;4843:30;4909:34;4889:18;;;4882:62;-1:-1:-1;;;4960:18:1;;;4953:34;5004:19;;18482:88:0::1;4629:400:1::0;18482:88:0::1;18635:17;::::0;;18596:12:::1;::::0;18589:42:::1;::::0;-1:-1:-1;;;18589:42:0;;18620:10:::1;18589:42:::0;;::::1;1698:51:1::0;;;;18635:17:0;;-1:-1:-1;;;;;18596:12:0;;::::1;::::0;18589:30:::1;::::0;1671:18:1;;18589:42:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:63;;18581:113;;;::::0;-1:-1:-1;;;18581:113:0;;5236:2:1;18581:113:0::1;::::0;::::1;5218:21:1::0;5275:2;5255:18;;;5248:30;5314:34;5294:18;;;5287:62;-1:-1:-1;;;5365:18:1;;;5358:35;5410:19;;18581:113:0::1;5034:401:1::0;18581:113:0::1;18726:15;;18713:9;:28;;18705:71;;;::::0;-1:-1:-1;;;18705:71:0;;5642:2:1;18705:71:0::1;::::0;::::1;5624:21:1::0;5681:2;5661:18;;;5654:30;5720:32;5700:18;;;5693:60;5770:18;;18705:71:0::1;5440:354:1::0;18705:71:0::1;18832:9;::::0;18821:8:::1;::::0;18789:17:::1;::::0;18832:9;18809:20:::1;::::0;18821:8:::1;::::0;::::1;;;18809:9:::0;:20:::1;:::i;:::-;:32;;;;:::i;:::-;18789:52;;18869:9;18860:5;:18;;18852:69;;;::::0;-1:-1:-1;;;18852:69:0;;6223:2:1;18852:69:0::1;::::0;::::1;6205:21:1::0;6262:2;6242:18;;;6235:30;6301:34;6281:18;;;6274:62;-1:-1:-1;;;6352:18:1;;;6345:36;6398:19;;18852:69:0::1;6021:402:1::0;18852:69:0::1;18954:9;18938:12;;:25;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;18974:18:0::1;::::0;-1:-1:-1;18983:9:0;18974:18;::::1;:::i;:::-;19012:5;::::0;19005:66:::1;::::0;-1:-1:-1;;;19005:66:0;;19032:10:::1;19005:66;::::0;::::1;6931:34:1::0;19052:6:0::1;6981:18:1::0;;;6974:43;7033:18;;;7026:34;;;18974:18:0;;-1:-1:-1;;;;;;19012:5:0::1;::::0;19005:26:::1;::::0;6866:18:1;;19005:66:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;19084:39:0::1;::::0;19092:10:::1;::::0;19084:39;::::1;;;::::0;19113:9;;19084:39:::1;::::0;;;19113:9;19092:10;19084:39;::::1;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;19141:27:0::1;::::0;160:25:1;;;19146:10:0::1;::::0;19141:27:::1;::::0;148:2:1;133:18;19141:27:0::1;;;;;;;-1:-1:-1::0;;16115:1:0;17067:7;:22;-1:-1:-1;;18216:960:0:o;13912:201::-;12892:13;:11;:13::i;:::-;-1:-1:-1;;;;;14001:22:0;::::1;13993:73;;;::::0;-1:-1:-1;;;13993:73:0;;7273:2:1;13993:73:0::1;::::0;::::1;7255:21:1::0;7312:2;7292:18;;;7285:30;7351:34;7331:18;;;7324:62;-1:-1:-1;;;7402:18:1;;;7395:36;7448:19;;13993:73:0::1;7071:402:1::0;13993:73:0::1;14077:28;14096:8;14077:18;:28::i;:::-;13912:201:::0;:::o;19889:159::-;19963:7;12892:13;:11;:13::i;:::-;20001:15:::1;:6:::0;20010::::1;20001:15;:::i;:::-;19983;:33:::0;-1:-1:-1;20034:6:0;19889:159::o;13171:132::-;13079:6;;-1:-1:-1;;;;;13079:6:0;11795:10;13235:23;13227:68;;;;-1:-1:-1;;;13227:68:0;;7680:2:1;13227:68:0;;;7662:21:1;;;7699:18;;;7692:30;7758:34;7738:18;;;7731:62;7810:18;;13227:68:0;7478:356:1;2401:317:0;2516:6;2491:21;:31;;2483:73;;;;-1:-1:-1;;;2483:73:0;;8041:2:1;2483:73:0;;;8023:21:1;8080:2;8060:18;;;8053:30;8119:31;8099:18;;;8092:59;8168:18;;2483:73:0;7839:353:1;2483:73:0;2570:12;2588:9;-1:-1:-1;;;;;2588:14:0;2610:6;2588:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2569:52;;;2640:7;2632:78;;;;-1:-1:-1;;;2632:78:0;;8609:2:1;2632:78:0;;;8591:21:1;8648:2;8628:18;;;8621:30;8687:34;8667:18;;;8660:62;8758:28;8738:18;;;8731:56;8804:19;;2632:78:0;8407:422:1;14273:191:0;14366:6;;;-1:-1:-1;;;;;14383:17:0;;;-1:-1:-1;;;;;;14383:17:0;;;;;;;14416:40;;14366:6;;;14383:17;14366:6;;14416:40;;14347:16;;14416:40;14336:128;14273:191;:::o;196:269:1:-;253:6;306:2;294:9;285:7;281:23;277:32;274:52;;;322:1;319;312:12;274:52;361:9;348:23;411:4;404:5;400:16;393:5;390:27;380:55;;431:1;428;421:12;380:55;454:5;196:269;-1:-1:-1;;;196:269:1:o;659:180::-;718:6;771:2;759:9;750:7;746:23;742:32;739:52;;;787:1;784;777:12;739:52;-1:-1:-1;810:23:1;;659:180;-1:-1:-1;659:180:1:o;844:131::-;-1:-1:-1;;;;;919:31:1;;909:42;;899:70;;965:1;962;955:12;980:315;1048:6;1056;1109:2;1097:9;1088:7;1084:23;1080:32;1077:52;;;1125:1;1122;1115:12;1077:52;1164:9;1151:23;1183:31;1208:5;1183:31;:::i;:::-;1233:5;1285:2;1270:18;;;;1257:32;;-1:-1:-1;;;980:315:1:o;1300:247::-;1359:6;1412:2;1400:9;1391:7;1387:23;1383:32;1380:52;;;1428:1;1425;1418:12;1380:52;1467:9;1454:23;1486:31;1511:5;1486:31;:::i;2508:127::-;2569:10;2564:3;2560:20;2557:1;2550:31;2600:4;2597:1;2590:15;2624:4;2621:1;2614:15;2640:168;2680:7;2746:1;2742;2738:6;2734:14;2731:1;2728:21;2723:1;2716:9;2709:17;2705:45;2702:71;;;2753:18;;:::i;:::-;-1:-1:-1;2793:9:1;;2640:168::o;3092:277::-;3159:6;3212:2;3200:9;3191:7;3187:23;3183:32;3180:52;;;3228:1;3225;3218:12;3180:52;3260:9;3254:16;3313:5;3306:13;3299:21;3292:5;3289:32;3279:60;;3335:1;3332;3325:12;4440:184;4510:6;4563:2;4551:9;4542:7;4538:23;4534:32;4531:52;;;4579:1;4576;4569:12;4531:52;-1:-1:-1;4602:16:1;;4440:184;-1:-1:-1;4440:184:1:o;5799:217::-;5839:1;5865;5855:132;;5909:10;5904:3;5900:20;5897:1;5890:31;5944:4;5941:1;5934:15;5972:4;5969:1;5962:15;5855:132;-1:-1:-1;6001:9:1;;5799:217::o;6428:125::-;6493:9;;;6514:10;;;6511:36;;;6527:18;;:::i;:::-;6428:125;;;;:::o;6558:128::-;6625:9;;;6646:11;;;6643:37;;;6660:18;;:::i

Swarm Source

ipfs://a8bed4d153eafe85e64a1efeced17122596057d036788d7c9ac093ac58e00bf7

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.