ETH Price: $3,397.80 (-1.12%)
Gas: 2 Gwei

Contract

0xb141fF705Aef654C13dA8A96C4ABb20BB8E286b2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Swap CRE201966882024-06-29 10:16:351 hr ago1719656195IN
0xb141fF70...BB8E286b2
0 ETH0.000306492.34326721
Withdraw Token201940202024-06-29 1:19:4710 hrs ago1719623987IN
0xb141fF70...BB8E286b2
0 ETH0.000202345
Withdraw Token201940192024-06-29 1:19:3510 hrs ago1719623975IN
0xb141fF70...BB8E286b2
0 ETH0.000198485
Swap CRE201937062024-06-29 0:16:2311 hrs ago1719620183IN
0xb141fF70...BB8E286b2
0 ETH0.000283072.16444272
Swap SLG201872532024-06-28 2:39:2333 hrs ago1719542363IN
0xb141fF70...BB8E286b2
0 ETH0.000853497.8970719
Swap SLG201826412024-06-27 11:10:592 days ago1719486659IN
0xb141fF70...BB8E286b2
0 ETH0.000666015.12403306
Withdraw Token201799942024-06-27 2:19:352 days ago1719454775IN
0xb141fF70...BB8E286b2
0 ETH0.000202345
Swap CRE201699452024-06-25 16:38:593 days ago1719333539IN
0xb141fF70...BB8E286b2
0 ETH0.0016088812.30173757
Withdraw Token201585392024-06-24 2:22:595 days ago1719195779IN
0xb141fF70...BB8E286b2
0 ETH0.000198485
Swap SLG201539872024-06-23 11:07:236 days ago1719140843IN
0xb141fF70...BB8E286b2
0 ETH0.000274142.53656166
Swap SLG201539022024-06-23 10:50:236 days ago1719139823IN
0xb141fF70...BB8E286b2
0 ETH0.000285742.64391901
Swap SLG201537862024-06-23 10:27:116 days ago1719138431IN
0xb141fF70...BB8E286b2
0 ETH0.000277942.5716966
Swap SLG201536762024-06-23 10:05:116 days ago1719137111IN
0xb141fF70...BB8E286b2
0 ETH0.000359843.05757733
Swap SLG201536542024-06-23 10:00:356 days ago1719136835IN
0xb141fF70...BB8E286b2
0 ETH0.000301532.78999955
Swap SLG201519362024-06-23 4:12:476 days ago1719115967IN
0xb141fF70...BB8E286b2
0 ETH0.000269992.49810389
Swap SLG201480722024-06-22 15:14:596 days ago1719069299IN
0xb141fF70...BB8E286b2
0 ETH0.000544334.18787349
Withdraw Token201460782024-06-22 8:33:237 days ago1719045203IN
0xb141fF70...BB8E286b2
0 ETH0.000198485
Swap SLG201457662024-06-22 7:30:477 days ago1719041447IN
0xb141fF70...BB8E286b2
0 ETH0.000244012.25779092
Swap SLG201445832024-06-22 3:31:597 days ago1719027119IN
0xb141fF70...BB8E286b2
0 ETH0.000293322.71400698
Swap SLG201399742024-06-21 12:03:358 days ago1718971415IN
0xb141fF70...BB8E286b2
0 ETH0.000482273.71006825
Withdraw Token201368392024-06-21 1:33:238 days ago1718933603IN
0xb141fF70...BB8E286b2
0 ETH0.0003969710
Swap SLG201320102024-06-20 9:21:239 days ago1718875283IN
0xb141fF70...BB8E286b2
0 ETH0.000810117.17612064
Swap SLG201318612024-06-20 8:51:239 days ago1718873483IN
0xb141fF70...BB8E286b2
0 ETH0.0015196614.05923353
Swap SLG201027742024-06-16 7:11:3513 days ago1718521895IN
0xb141fF70...BB8E286b2
0 ETH0.000575084.42486246
Withdraw Token201013972024-06-16 2:34:5913 days ago1718505299IN
0xb141fF70...BB8E286b2
0 ETH0.0003969710
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0xA32899Ec...4D6B7a0ad
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
GameBuildSwap

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
No with 200 runs

Other Settings:
paris EvmVersion
File 1 of 9 : GameBuildSwap.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;

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

contract GameBuildSwap is Ownable, Pausable, ReentrancyGuard {

    event Swap(address indexed from, address indexed token, uint256 amount);

    ERC20 public tokenCRE;
    ERC20 public tokenSLG;
    ERC20 public tokenGameBuild;

    // swap ratio: ratioCRE CRE = ratioGameBuild GameBuild, ratioSLG SLG = ratioGameBuild GameBuild
    // so: 
    //    amountGameBuild = amoundCRE * ratioGameBuild / ratioCRE
    //    amountGAmeBuild = amountSLG * ratioGameBuild / ratioSLG;
    uint256 public ratioCRE;
    uint256 public ratioSLG;
    uint256 public ratioGameBuild;

    uint256 public swappedCRE;
    uint256 public swappedSLG;
    uint256 public maxSwappableCRE;
    uint256 public maxSwappableSLG;
    uint256 public deadline;

    constructor(address addressCRE, 
                address addressSLG, 
                address addressGameBuild, 
                uint256 _ratioCRE, 
                uint256 _ratioSLG,
                uint256 _ratioGameBuild) Ownable(msg.sender) {
        tokenCRE = ERC20(addressCRE);
        tokenSLG = ERC20(addressSLG);
        tokenGameBuild = ERC20(addressGameBuild);
        ratioCRE = _ratioCRE;
        ratioSLG = _ratioSLG;
        ratioGameBuild = _ratioGameBuild;
    }

    function swapCRE(uint256 amountCRE) public whenNotPaused nonReentrant returns (uint256) {
        require(deadline == 0 || block.timestamp < deadline, "exceed deadline");
        require(amountCRE > 0, "CRE amount should be greater than 0");
        require(tokenCRE.balanceOf(msg.sender) >= amountCRE, "do not have enough CRE");

        uint256 amountGameBuild = amountCRE * ratioGameBuild / ratioCRE;
        require(tokenGameBuild.balanceOf(address(this)) >= amountGameBuild, "contract has no enough GameBuild");

        swappedCRE = swappedCRE + amountCRE;
        if (maxSwappableCRE > 0) {
            require(swappedCRE <= maxSwappableCRE, "exceed max swappable amount");
        }
        tokenCRE.transferFrom(msg.sender, address(this), amountCRE);
        tokenGameBuild.transfer(msg.sender, amountGameBuild);
        emit Swap(msg.sender, address(tokenCRE), amountCRE);

        return amountGameBuild;
    }

    function swapSLG(uint256 amountSLG) public whenNotPaused nonReentrant returns (uint256) {
        require(deadline == 0 || block.timestamp < deadline, "exceed deadline");
        require(amountSLG > 0, "SLG amount should be greater than 0");
        require(tokenSLG.balanceOf(msg.sender) >= amountSLG, "do not have enough SLG");

        uint256 amountGameBuild = amountSLG * ratioGameBuild / ratioSLG;
        require(tokenGameBuild.balanceOf(address(this)) >= amountGameBuild, "contract has no enough GameBuild");

        swappedSLG = swappedSLG + amountSLG;
        if (maxSwappableSLG > 0) {
            require(swappedSLG <= maxSwappableSLG, "exceed max swappable amount");
        }
        tokenSLG.transferFrom(msg.sender, address(this), amountSLG);
        tokenGameBuild.transfer(msg.sender, amountGameBuild);
        emit Swap(msg.sender, address(tokenSLG), amountSLG);

        return amountGameBuild;
    }

    function withdrawToken(address token, address to) public onlyOwner {
        ERC20 erc20 = ERC20(token);
        erc20.transfer(to, erc20.balanceOf(address(this)));
    }

    function setRatioCRE(uint256 _ratioCRE) public onlyOwner {
        ratioCRE = _ratioCRE;
    }

    function setRatioSLG(uint256 _ratioSLG) public onlyOwner {
        ratioSLG = _ratioSLG;
    }

    function setRatioGameBuild(uint256 _ratioGameBuild) public onlyOwner {
        ratioGameBuild = _ratioGameBuild;
    }

    function setMaxSwappableCRE(uint256 _maxSwappableCRE) public onlyOwner {
        maxSwappableCRE = _maxSwappableCRE;
    }

    function setMaxSwappableSLG(uint256 _maxSwappableSLG) public onlyOwner {
        maxSwappableSLG = _maxSwappableSLG;
    }

    function setDeadline(uint256 _deadline) public onlyOwner {
        require(_deadline >= block.timestamp, "invalid deadline");
        deadline = _deadline;
    }

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

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

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

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

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

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

File 3 of 9 : draft-IERC6093.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;

/**
 * @dev Standard ERC20 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
 */
interface IERC20Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC20InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC20InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     * @param allowance Amount of tokens a `spender` is allowed to operate with.
     * @param needed Minimum amount required to perform a transfer.
     */
    error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC20InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `spender` to be approved. Used in approvals.
     * @param spender Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC20InvalidSpender(address spender);
}

/**
 * @dev Standard ERC721 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
 */
interface IERC721Errors {
    /**
     * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
     * Used in balance queries.
     * @param owner Address of the current owner of a token.
     */
    error ERC721InvalidOwner(address owner);

    /**
     * @dev Indicates a `tokenId` whose `owner` is the zero address.
     * @param tokenId Identifier number of a token.
     */
    error ERC721NonexistentToken(uint256 tokenId);

    /**
     * @dev Indicates an error related to the ownership over a particular token. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param tokenId Identifier number of a token.
     * @param owner Address of the current owner of a token.
     */
    error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC721InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC721InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param tokenId Identifier number of a token.
     */
    error ERC721InsufficientApproval(address operator, uint256 tokenId);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC721InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC721InvalidOperator(address operator);
}

/**
 * @dev Standard ERC1155 Errors
 * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
 */
interface IERC1155Errors {
    /**
     * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     * @param balance Current balance for the interacting account.
     * @param needed Minimum amount required to perform a transfer.
     * @param tokenId Identifier number of a token.
     */
    error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);

    /**
     * @dev Indicates a failure with the token `sender`. Used in transfers.
     * @param sender Address whose tokens are being transferred.
     */
    error ERC1155InvalidSender(address sender);

    /**
     * @dev Indicates a failure with the token `receiver`. Used in transfers.
     * @param receiver Address to which tokens are being transferred.
     */
    error ERC1155InvalidReceiver(address receiver);

    /**
     * @dev Indicates a failure with the `operator`’s approval. Used in transfers.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     * @param owner Address of the current owner of a token.
     */
    error ERC1155MissingApprovalForAll(address operator, address owner);

    /**
     * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
     * @param approver Address initiating an approval operation.
     */
    error ERC1155InvalidApprover(address approver);

    /**
     * @dev Indicates a failure with the `operator` to be approved. Used in approvals.
     * @param operator Address that may be allowed to operate on tokens without being their owner.
     */
    error ERC1155InvalidOperator(address operator);

    /**
     * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
     * Used in batch transfers.
     * @param idsLength Length of the array of token identifiers
     * @param valuesLength Length of the array of token amounts
     */
    error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}

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

pragma solidity ^0.8.20;

import {IERC20} from "./IERC20.sol";
import {IERC20Metadata} from "./extensions/IERC20Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 */
abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors {
    mapping(address account => uint256) private _balances;

    mapping(address account => mapping(address spender => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `value`.
     */
    function transfer(address to, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, value);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 value) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, value);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `value`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `value`.
     */
    function transferFrom(address from, address to, uint256 value) public virtual returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, value);
        _transfer(from, to, value);
        return true;
    }

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _transfer(address from, address to, uint256 value) internal {
        if (from == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        if (to == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(from, to, value);
    }

    /**
     * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from`
     * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding
     * this function.
     *
     * Emits a {Transfer} event.
     */
    function _update(address from, address to, uint256 value) internal virtual {
        if (from == address(0)) {
            // Overflow check required: The rest of the code assumes that totalSupply never overflows
            _totalSupply += value;
        } else {
            uint256 fromBalance = _balances[from];
            if (fromBalance < value) {
                revert ERC20InsufficientBalance(from, fromBalance, value);
            }
            unchecked {
                // Overflow not possible: value <= fromBalance <= totalSupply.
                _balances[from] = fromBalance - value;
            }
        }

        if (to == address(0)) {
            unchecked {
                // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply.
                _totalSupply -= value;
            }
        } else {
            unchecked {
                // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256.
                _balances[to] += value;
            }
        }

        emit Transfer(from, to, value);
    }

    /**
     * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0).
     * Relies on the `_update` mechanism
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead.
     */
    function _mint(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidReceiver(address(0));
        }
        _update(address(0), account, value);
    }

    /**
     * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply.
     * Relies on the `_update` mechanism.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * NOTE: This function is not virtual, {_update} should be overridden instead
     */
    function _burn(address account, uint256 value) internal {
        if (account == address(0)) {
            revert ERC20InvalidSender(address(0));
        }
        _update(account, address(0), value);
    }

    /**
     * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address owner, address spender, uint256 value) internal {
        _approve(owner, spender, value, true);
    }

    /**
     * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event.
     *
     * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by
     * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any
     * `Approval` event during `transferFrom` operations.
     *
     * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to
     * true using the following override:
     * ```
     * function _approve(address owner, address spender, uint256 value, bool) internal virtual override {
     *     super._approve(owner, spender, value, true);
     * }
     * ```
     *
     * Requirements are the same as {_approve}.
     */
    function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual {
        if (owner == address(0)) {
            revert ERC20InvalidApprover(address(0));
        }
        if (spender == address(0)) {
            revert ERC20InvalidSpender(address(0));
        }
        _allowances[owner][spender] = value;
        if (emitEvent) {
            emit Approval(owner, spender, value);
        }
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `value`.
     *
     * Does not update the allowance value in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Does not emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 value) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            if (currentAllowance < value) {
                revert ERC20InsufficientAllowance(spender, currentAllowance, value);
            }
            unchecked {
                _approve(owner, spender, currentAllowance - value, false);
            }
        }
    }
}

File 5 of 9 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

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

pragma solidity ^0.8.20;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.20;

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

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

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

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

pragma solidity ^0.8.20;

import {Context} from "../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 {
    bool private _paused;

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

    /**
     * @dev The operation failed because the contract is paused.
     */
    error EnforcedPause();

    /**
     * @dev The operation failed because the contract is not paused.
     */
    error ExpectedPause();

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

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

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        if (paused()) {
            revert EnforcedPause();
        }
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        if (!paused()) {
            revert ExpectedPause();
        }
    }

    /**
     * @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 9 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

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

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

    uint256 private _status;

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

    constructor() {
        _status = NOT_ENTERED;
    }

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"addressCRE","type":"address"},{"internalType":"address","name":"addressSLG","type":"address"},{"internalType":"address","name":"addressGameBuild","type":"address"},{"internalType":"uint256","name":"_ratioCRE","type":"uint256"},{"internalType":"uint256","name":"_ratioSLG","type":"uint256"},{"internalType":"uint256","name":"_ratioGameBuild","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Swap","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"deadline","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSwappableCRE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSwappableSLG","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":"ratioCRE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ratioGameBuild","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ratioSLG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"setDeadline","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSwappableCRE","type":"uint256"}],"name":"setMaxSwappableCRE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSwappableSLG","type":"uint256"}],"name":"setMaxSwappableSLG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ratioCRE","type":"uint256"}],"name":"setRatioCRE","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ratioGameBuild","type":"uint256"}],"name":"setRatioGameBuild","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ratioSLG","type":"uint256"}],"name":"setRatioSLG","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountCRE","type":"uint256"}],"name":"swapCRE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountSLG","type":"uint256"}],"name":"swapSLG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swappedCRE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"swappedSLG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenCRE","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenGameBuild","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenSLG","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061018e5760003560e01c8063715018a6116100de5780639a3aaf5311610097578063b12de49f11610071578063b12de49f14610403578063f197f34614610421578063f2fde38b1461043f578063fd10fecd1461045b5761018e565b80639a3aaf53146103995780639d1b0f1d146103c9578063a02be18b146103e75761018e565b8063715018a6146102fb5780637c8f3494146103055780638285bfa3146103235780638456cb59146103535780638da5cb5b1461035d5780638fa76a691461037b5761018e565b8063362963471161014b57806340bd1dab1161012557806340bd1dab146102855780635a309979146102a15780635c975abb146102bf578063653a32c6146102dd5761018e565b806336296347146102415780633aeac4e11461025f5780633f4ba83a1461027b5761018e565b806314475e5e14610193578063195199f6146101b15780631d9b7fe9146101cd57806324945f79146101e957806326381b421461020557806329dcb0cf14610223575b600080fd5b61019b610477565b6040516101a89190611458565b60405180910390f35b6101cb60048036038101906101c691906114a4565b61047d565b005b6101e760048036038101906101e291906114a4565b6104d2565b005b61020360048036038101906101fe91906114a4565b6104e4565b005b61020d6104f6565b60405161021a9190611458565b60405180910390f35b61022b6104fc565b6040516102389190611458565b60405180910390f35b610249610502565b6040516102569190611550565b60405180910390f35b610279600480360381019061027491906115a9565b610528565b005b610283610632565b005b61029f600480360381019061029a91906114a4565b610644565b005b6102a9610656565b6040516102b69190611458565b60405180910390f35b6102c761065c565b6040516102d49190611604565b60405180910390f35b6102e5610672565b6040516102f29190611458565b60405180910390f35b610303610678565b005b61030d61068c565b60405161031a9190611550565b60405180910390f35b61033d600480360381019061033891906114a4565b6106b2565b60405161034a9190611458565b60405180910390f35b61035b610b76565b005b610365610b88565b604051610372919061162e565b60405180910390f35b610383610bb1565b6040516103909190611458565b60405180910390f35b6103b360048036038101906103ae91906114a4565b610bb7565b6040516103c09190611458565b60405180910390f35b6103d161107b565b6040516103de9190611550565b60405180910390f35b61040160048036038101906103fc91906114a4565b6110a1565b005b61040b6110b3565b6040516104189190611458565b60405180910390f35b6104296110b9565b6040516104369190611458565b60405180910390f35b61045960048036038101906104549190611649565b6110bf565b005b610475600480360381019061047091906114a4565b611145565b005b600b5481565b610485611157565b428110156104c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104bf906116d3565b60405180910390fd5b80600c8190555050565b6104da611157565b80600b8190555050565b6104ec611157565b80600a8190555050565b60055481565b600c5481565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610530611157565b60008290508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb838373ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161058b919061162e565b602060405180830381865afa1580156105a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cc9190611708565b6040518363ffffffff1660e01b81526004016105e9929190611735565b6020604051808303816000875af1158015610608573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062c919061178a565b50505050565b61063a611157565b6106426111de565b565b61064c611157565b8060058190555050565b60075481565b60008060149054906101000a900460ff16905090565b60095481565b610680611157565b61068a6000611240565b565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006106bc611304565b6106c4611345565b6000600c5414806106d65750600c5442105b610715576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161070c90611803565b60405180910390fd5b60008211610758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161074f90611895565b60405180910390fd5b81600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b81526004016107b4919061162e565b602060405180830381865afa1580156107d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f59190611708565b1015610836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082d90611901565b60405180910390fd5b6000600654600754846108499190611950565b61085391906119c1565b905080600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016108b1919061162e565b602060405180830381865afa1580156108ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f29190611708565b1015610933576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092a90611a3e565b60405180910390fd5b826009546109419190611a5e565b6009819055506000600b54111561099a57600b546009541115610999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161099090611ade565b60405180910390fd5b5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b81526004016109f993929190611afe565b6020604051808303816000875af1158015610a18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3c919061178a565b50600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610a9a929190611735565b6020604051808303816000875af1158015610ab9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610add919061178a565b50600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fea368a40e9570069bb8e6511d668293ad2e1f03b0d982431fd223de9f3b70ca685604051610b5d9190611458565b60405180910390a380915050610b7161138b565b919050565b610b7e611157565b610b86611394565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60065481565b6000610bc1611304565b610bc9611345565b6000600c541480610bdb5750600c5442105b610c1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c1190611803565b60405180910390fd5b60008211610c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5490611ba7565b60405180910390fd5b81600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401610cb9919061162e565b602060405180830381865afa158015610cd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfa9190611708565b1015610d3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3290611c13565b60405180910390fd5b600060055460075484610d4e9190611950565b610d5891906119c1565b905080600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610db6919061162e565b602060405180830381865afa158015610dd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df79190611708565b1015610e38576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e2f90611a3e565b60405180910390fd5b82600854610e469190611a5e565b6008819055506000600a541115610e9f57600a546008541115610e9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9590611ade565b60405180910390fd5b5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3330866040518463ffffffff1660e01b8152600401610efe93929190611afe565b6020604051808303816000875af1158015610f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f41919061178a565b50600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33836040518363ffffffff1660e01b8152600401610f9f929190611735565b6020604051808303816000875af1158015610fbe573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fe2919061178a565b50600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fea368a40e9570069bb8e6511d668293ad2e1f03b0d982431fd223de9f3b70ca6856040516110629190611458565b60405180910390a38091505061107661138b565b919050565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6110a9611157565b8060078190555050565b600a5481565b60085481565b6110c7611157565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036111395760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401611130919061162e565b60405180910390fd5b61114281611240565b50565b61114d611157565b8060068190555050565b61115f6113f7565b73ffffffffffffffffffffffffffffffffffffffff1661117d610b88565b73ffffffffffffffffffffffffffffffffffffffff16146111dc576111a06113f7565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016111d3919061162e565b60405180910390fd5b565b6111e66113ff565b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6112296113f7565b604051611236919061162e565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61130c61065c565b15611343576040517fd93c066500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600260015403611381576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600181905550565b60018081905550565b61139c611304565b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586113e06113f7565b6040516113ed919061162e565b60405180910390a1565b600033905090565b61140761065c565b61143d576040517f8dfc202b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000819050919050565b6114528161143f565b82525050565b600060208201905061146d6000830184611449565b92915050565b600080fd5b6114818161143f565b811461148c57600080fd5b50565b60008135905061149e81611478565b92915050565b6000602082840312156114ba576114b9611473565b5b60006114c88482850161148f565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061151661151161150c846114d1565b6114f1565b6114d1565b9050919050565b6000611528826114fb565b9050919050565b600061153a8261151d565b9050919050565b61154a8161152f565b82525050565b60006020820190506115656000830184611541565b92915050565b6000611576826114d1565b9050919050565b6115868161156b565b811461159157600080fd5b50565b6000813590506115a38161157d565b92915050565b600080604083850312156115c0576115bf611473565b5b60006115ce85828601611594565b92505060206115df85828601611594565b9150509250929050565b60008115159050919050565b6115fe816115e9565b82525050565b600060208201905061161960008301846115f5565b92915050565b6116288161156b565b82525050565b6000602082019050611643600083018461161f565b92915050565b60006020828403121561165f5761165e611473565b5b600061166d84828501611594565b91505092915050565b600082825260208201905092915050565b7f696e76616c696420646561646c696e6500000000000000000000000000000000600082015250565b60006116bd601083611676565b91506116c882611687565b602082019050919050565b600060208201905081810360008301526116ec816116b0565b9050919050565b60008151905061170281611478565b92915050565b60006020828403121561171e5761171d611473565b5b600061172c848285016116f3565b91505092915050565b600060408201905061174a600083018561161f565b6117576020830184611449565b9392505050565b611767816115e9565b811461177257600080fd5b50565b6000815190506117848161175e565b92915050565b6000602082840312156117a05761179f611473565b5b60006117ae84828501611775565b91505092915050565b7f65786365656420646561646c696e650000000000000000000000000000000000600082015250565b60006117ed600f83611676565b91506117f8826117b7565b602082019050919050565b6000602082019050818103600083015261181c816117e0565b9050919050565b7f534c4720616d6f756e742073686f756c6420626520677265617465722074686160008201527f6e20300000000000000000000000000000000000000000000000000000000000602082015250565b600061187f602383611676565b915061188a82611823565b604082019050919050565b600060208201905081810360008301526118ae81611872565b9050919050565b7f646f206e6f74206861766520656e6f75676820534c4700000000000000000000600082015250565b60006118eb601683611676565b91506118f6826118b5565b602082019050919050565b6000602082019050818103600083015261191a816118de565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061195b8261143f565b91506119668361143f565b92508282026119748161143f565b9150828204841483151761198b5761198a611921565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006119cc8261143f565b91506119d78361143f565b9250826119e7576119e6611992565b5b828204905092915050565b7f636f6e747261637420686173206e6f20656e6f7567682047616d654275696c64600082015250565b6000611a28602083611676565b9150611a33826119f2565b602082019050919050565b60006020820190508181036000830152611a5781611a1b565b9050919050565b6000611a698261143f565b9150611a748361143f565b9250828201905080821115611a8c57611a8b611921565b5b92915050565b7f657863656564206d617820737761707061626c6520616d6f756e740000000000600082015250565b6000611ac8601b83611676565b9150611ad382611a92565b602082019050919050565b60006020820190508181036000830152611af781611abb565b9050919050565b6000606082019050611b13600083018661161f565b611b20602083018561161f565b611b2d6040830184611449565b949350505050565b7f43524520616d6f756e742073686f756c6420626520677265617465722074686160008201527f6e20300000000000000000000000000000000000000000000000000000000000602082015250565b6000611b91602383611676565b9150611b9c82611b35565b604082019050919050565b60006020820190508181036000830152611bc081611b84565b9050919050565b7f646f206e6f74206861766520656e6f7567682043524500000000000000000000600082015250565b6000611bfd601683611676565b9150611c0882611bc7565b602082019050919050565b60006020820190508181036000830152611c2c81611bf0565b905091905056fea264697066735822122063112b8b4ab609fc45492f0f688cb2399d05b36201f45b3f476fe0e88b86b9ee64736f6c63430008180033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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