ETH Price: $3,134.08 (-4.98%)
Gas: 3 Gwei

Contract

0xAE4E71afE5dDB99779eEe7009a73CA6E13b14ddB
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Wager With ETH193602812024-03-04 7:23:35122 days ago1709537015IN
0xAE4E71af...E13b14ddB
0.00001 ETH0.0019590856.08122386
Wager With ETH193588172024-03-04 2:28:59122 days ago1709519339IN
0xAE4E71af...E13b14ddB
0.00001 ETH0.0018471252.87629871
Wager With ETH193433532024-03-01 22:36:11125 days ago1709332571IN
0xAE4E71af...E13b14ddB
0.01 ETH0.0016707547.82730699
Wager With ETH193427832024-03-01 20:41:47125 days ago1709325707IN
0xAE4E71af...E13b14ddB
0.03 ETH0.0017312149.55803374
Wager With ETH193359382024-02-29 21:45:59126 days ago1709243159IN
0xAE4E71af...E13b14ddB
0.1 ETH0.0029786185.26663691
Wager With ETH193308882024-02-29 4:47:47126 days ago1709182067IN
0xAE4E71af...E13b14ddB
0.28 ETH0.0016086846.05050965
Wager With ETH192681932024-02-20 10:01:23135 days ago1708423283IN
0xAE4E71af...E13b14ddB
0.00001 ETH0.0013684339.17327282
Wager With ETH192680702024-02-20 9:36:35135 days ago1708421795IN
0xAE4E71af...E13b14ddB
0.00005 ETH0.0013503838.65644313
Wager With ETH192565772024-02-18 18:51:59137 days ago1708282319IN
0xAE4E71af...E13b14ddB
0.0001 ETH0.000851724.3811819
Wager With ETH191071982024-01-28 19:44:35158 days ago1706471075IN
0xAE4E71af...E13b14ddB
0.005 ETH0.000465113.31413806
Wager With ETH191063402024-01-28 16:51:59158 days ago1706460719IN
0xAE4E71af...E13b14ddB
0.0001 ETH0.0004076511.66953087
Wager With ETH191063382024-01-28 16:51:35158 days ago1706460695IN
0xAE4E71af...E13b14ddB
0.001 ETH0.0004009311.47724906
Wager With ETH191063342024-01-28 16:50:47158 days ago1706460647IN
0xAE4E71af...E13b14ddB
0.001 ETH0.0004117311.78653063
Wager With ETH190497712024-01-20 18:08:59166 days ago1705774139IN
0xAE4E71af...E13b14ddB
0.005 ETH0.0005546515.87768551
Wager With ETH190452142024-01-20 2:53:47166 days ago1705719227IN
0xAE4E71af...E13b14ddB
0.005 ETH0.0005290515.14494845
Wager With ETH189230182024-01-02 23:38:59183 days ago1704238739IN
0xAE4E71af...E13b14ddB
0.009 ETH0.0005076114.53112891
Wager With ETH188751422023-12-27 6:13:35190 days ago1703657615IN
0xAE4E71af...E13b14ddB
0.00001 ETH0.0009292226.6001952
Wager With ETH188654082023-12-25 21:27:35192 days ago1703539655IN
0xAE4E71af...E13b14ddB
0.002 ETH0.0005202714.89353113
Wager With ETH188652762023-12-25 21:00:47192 days ago1703538047IN
0xAE4E71af...E13b14ddB
0.00369 ETH0.0004744113.5806465
Wager With ETH188503972023-12-23 18:48:23194 days ago1703357303IN
0xAE4E71af...E13b14ddB
0.018 ETH0.0007406921.20316629
Wager With ETH188436382023-12-22 20:03:11195 days ago1703275391IN
0xAE4E71af...E13b14ddB
0.15 ETH0.0011124131.84437089
Wager With ETH187759822023-12-13 8:12:23204 days ago1702455143IN
0xAE4E71af...E13b14ddB
0.0001 ETH0.0010087628.8770642
Wager With ETH187759802023-12-13 8:11:59204 days ago1702455119IN
0xAE4E71af...E13b14ddB
0.0001 ETH0.0010903831.21369369
Wager With ETH187758422023-12-13 7:43:59204 days ago1702453439IN
0xAE4E71af...E13b14ddB
0.00001 ETH0.0011153731.92903779
Wager With ETH187543722023-12-10 7:38:47207 days ago1702193927IN
0xAE4E71af...E13b14ddB
0.005 ETH0.0011017131.5379498
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
193602812024-03-04 7:23:35122 days ago1709537015
0xAE4E71af...E13b14ddB
0.00001 ETH
193588172024-03-04 2:28:59122 days ago1709519339
0xAE4E71af...E13b14ddB
0.00001 ETH
193433532024-03-01 22:36:11125 days ago1709332571
0xAE4E71af...E13b14ddB
0.01 ETH
193427832024-03-01 20:41:47125 days ago1709325707
0xAE4E71af...E13b14ddB
0.03 ETH
193359382024-02-29 21:45:59126 days ago1709243159
0xAE4E71af...E13b14ddB
0.1 ETH
193308882024-02-29 4:47:47126 days ago1709182067
0xAE4E71af...E13b14ddB
0.28 ETH
192681932024-02-20 10:01:23135 days ago1708423283
0xAE4E71af...E13b14ddB
0.00001 ETH
192680702024-02-20 9:36:35135 days ago1708421795
0xAE4E71af...E13b14ddB
0.00005 ETH
192565772024-02-18 18:51:59137 days ago1708282319
0xAE4E71af...E13b14ddB
0.0001 ETH
191071982024-01-28 19:44:35158 days ago1706471075
0xAE4E71af...E13b14ddB
0.005 ETH
191063402024-01-28 16:51:59158 days ago1706460719
0xAE4E71af...E13b14ddB
0.0001 ETH
191063382024-01-28 16:51:35158 days ago1706460695
0xAE4E71af...E13b14ddB
0.001 ETH
191063342024-01-28 16:50:47158 days ago1706460647
0xAE4E71af...E13b14ddB
0.001 ETH
190497712024-01-20 18:08:59166 days ago1705774139
0xAE4E71af...E13b14ddB
0.005 ETH
190452142024-01-20 2:53:47166 days ago1705719227
0xAE4E71af...E13b14ddB
0.005 ETH
189230182024-01-02 23:38:59183 days ago1704238739
0xAE4E71af...E13b14ddB
0.009 ETH
188751422023-12-27 6:13:35190 days ago1703657615
0xAE4E71af...E13b14ddB
0.00001 ETH
188654082023-12-25 21:27:35192 days ago1703539655
0xAE4E71af...E13b14ddB
0.002 ETH
188652762023-12-25 21:00:47192 days ago1703538047
0xAE4E71af...E13b14ddB
0.00369 ETH
188503972023-12-23 18:48:23194 days ago1703357303
0xAE4E71af...E13b14ddB
0.018 ETH
188436382023-12-22 20:03:11195 days ago1703275391
0xAE4E71af...E13b14ddB
0.15 ETH
187759822023-12-13 8:12:23204 days ago1702455143
0xAE4E71af...E13b14ddB
0.0001 ETH
187759802023-12-13 8:11:59204 days ago1702455119
0xAE4E71af...E13b14ddB
0.0001 ETH
187758422023-12-13 7:43:59204 days ago1702453439
0xAE4E71af...E13b14ddB
0.00001 ETH
187543722023-12-10 7:38:47207 days ago1702193927
0xAE4E71af...E13b14ddB
0.005 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WagerContract

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : wager.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.20;

import "./SendToken.sol";

contract WagerContract {
    // State variables
    SENDToken public sendToken;   // Reference to the SEND token contract
    address public owner;         // Owner of the contract (presumably the deployer)
    address public ethWallet;     // Dedicated wallet for ETH
    address public sendWallet;    // Dedicated wallet for SEND tokens
    
    uint256 public maxEthWager = 1 ether;
    uint256 public maxSendWager = 300000 * 10**18;

    // Modifier to restrict certain functions to the contract owner
    modifier onlyOwner() {
        require(msg.sender == owner, "Not the owner");
        _;
    }

    // Contract constructor initializes the state variables
    constructor(SENDToken _sendToken, address _ethWallet, address _sendWallet) {
        require(_ethWallet != address(0), "Invalid ETH wallet address");
        require(_sendWallet != address(0), "Invalid SEND wallet address");

        sendToken = _sendToken;
        owner = msg.sender;
        ethWallet = _ethWallet;
        sendWallet = _sendWallet;
    }

    // Function to allow users to wager with ETH
    function wagerWithETH() external payable {
        require(msg.value <= maxEthWager, "Exceeds max ETH wager");
        payable(ethWallet).transfer(msg.value);  // Transfer the wagered amount to the dedicated ETH wallet
    }

    // Function to allow users to wager with SEND tokens
    function wagerWithSEND(uint256 amount) external {
        require(amount <= maxSendWager, "Exceeds max SEND wager");
        require(sendToken.transferFrom(msg.sender, sendWallet, amount), "Transfer failed");  // Transfer the wagered amount to the dedicated SEND wallet
    }

    // Function for the owner to change the ETH wallet address
    function changeEthWallet(address _newEthWallet) external onlyOwner {
        require(_newEthWallet != address(0) && _newEthWallet != ethWallet, "Invalid address or same as current");
        ethWallet = _newEthWallet;
    }

    // Function for the owner to change the SEND wallet address
    function changeSENDWallet(address _newSendWallet) external onlyOwner {
        require(_newSendWallet != address(0) && _newSendWallet != sendWallet, "Invalid address or same as current");
        sendWallet = _newSendWallet;
    }

    // Function for the owner to change the max wager amount for ETH
    function changeMaxEthWager(uint256 _newMaxEthWager) external onlyOwner {
        maxEthWager = _newMaxEthWager;
    }

    // Function for the owner to change the max wager amount for SEND
    function changeMaxSendWager(uint256 _newMaxSendWager) external onlyOwner {
        maxSendWager = _newMaxSendWager;
    }
}

File 2 of 13 : SendToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

// Importing required OpenZeppelin Contracts
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; // Standard ERC20 Token Implementation
import "@openzeppelin/contracts/access/Ownable.sol"; // Access Control Contract
import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; // Protection against reentrant calls
import "@uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol"; // Uniswap Router Interface for performing swaps
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol"; // Uniswap Pair Interface
import "@uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol"; // Uniswap Factory Interface 

contract SENDToken is ERC20, Ownable, ReentrancyGuard {
    // Buy and Sell Tax
    uint256 public constant BUY_TAX = 5;
    uint256 public constant SELL_TAX = 5;

    // Uniswap Router and Pair
    IUniswapV2Router02 public uniswapV2Router;
    address public uniswapV2Pair;

    // Array to hold all unique holders
    address[] public holders;
    mapping(address => bool) public isHolder;
    mapping(address => uint256) public holderIndex;

    // Immutable addresses for Team, Reserve Fund, Marketing, and Tax
    address public immutable teamAddress;
    address public immutable reserveFundAddress;
    address public immutable marketingAddress;
    address public immutable taxAddress;
    address public revenueDistributionAddress; // Address where the revenue will be distributed

     // Initialize the token and mint initial supply to specified addresses
constructor(
    address _initialOwner,
    address _teamAddress,
    address _reserveFundAddress,
    address _marketingAddress,
    address _taxAddress,
    address _uniswapV2Router
) ERC20("Sendpicks", "SEND") Ownable(_initialOwner) {
    uint256 totalSupply = 100_000_000 * 10**18; // Total Supply of 100 million tokens with 18 decimals
    
    // Immutable addresses
    teamAddress = _teamAddress;
    reserveFundAddress = _reserveFundAddress;
    marketingAddress = _marketingAddress;
    taxAddress = _taxAddress;

    // Minting the initial supply
    _mint(teamAddress, totalSupply * 5 / 100); // 5% to Team
    _mint(reserveFundAddress, totalSupply * 5 / 100); // 5% to Reserve Fund
    _mint(marketingAddress, totalSupply * 5 / 100); // 5% to Marketing
    _mint(msg.sender, totalSupply * 85 / 100); // 85% to the owner

    // Uniswap Router and creating a Uniswap Pair
   uniswapV2Router = IUniswapV2Router02(_uniswapV2Router);
   uniswapV2Pair = address(
       IUniswapV2Factory(IUniswapV2Router02(_uniswapV2Router).factory()).createPair(address(this), uniswapV2Router.WETH())
   );
}

// Function to set the address where the revenue will be distributed
function setRevenueDistributionAddress(address _revenueDistributionAddress) external onlyOwner {
    require(_revenueDistributionAddress != address(0), "Invalid address");
    revenueDistributionAddress = _revenueDistributionAddress;
}

    // Function to add liquidity to Uniswap Pair
    function addLiquidity(uint256 tokenAmount) external onlyOwner nonReentrant {
        _approve(address(this), address(uniswapV2Router), tokenAmount); // Approve tokens for Uniswap Router
        uniswapV2Router.addLiquidityETH{value: address(this).balance}(
            address(this),
            tokenAmount,
            0,
            0,
            owner(),
            block.timestamp
        );
    }

    // Function to allow users to swap tokens for ETH
    function swapTokensForEth(uint256 tokenAmount) external {
        require(balanceOf(msg.sender) >= tokenAmount, "Insufficient tokens"); // Ensure sender has enough tokens
        _approve(msg.sender, address(uniswapV2Router), tokenAmount); // Approve Uniswap Router to spend tokens
        
        // Specify the Path for the swap, from this token to WETH
        address[] memory path = new address[](2);
        path[0] = address(this);
        path[1] = uniswapV2Router.WETH();
        uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(
            tokenAmount,
            0, // Accept any amount of ETH
            path,
            msg.sender, // Send ETH to the sender
            block.timestamp
        );
    }


    // Override the _update function to include tax and maintain the holders list
    function _update(address from, address to, uint256 value) internal virtual override {
        uint256 taxAmount = 0;
        bool isExempt = _isExempt(from, to); // Check if the transfer is exempt from tax
        
        if (!isExempt) {
            // Determine tax amount based on whether it's a buy or sell
            if (to == uniswapV2Pair) {
                taxAmount = value * SELL_TAX / 100; // Sell Tax
            } else if (from == uniswapV2Pair) {
                taxAmount = value * BUY_TAX / 100; // Buy Tax
            }
            
            if (taxAmount > 0) {
                // Distributing tax
                uint256 amountAfterTax = value - taxAmount;
                uint256 revenueAmount = taxAmount * 2 / 100; // 2% of tax to Revenue Distribution
                uint256 remainingTax = taxAmount - revenueAmount; // Remaining tax to the Tax Address

                // Execute transfers
                super._update(from, revenueDistributionAddress, revenueAmount);
                super._update(from, taxAddress, remainingTax);
                super._update(from, to, amountAfterTax);

                // Manage Holders List
                _addHolder(from);
                _addHolder(to);
                if (balanceOf(from) == 0) _removeHolder(from);

                return;
            }
        }
        
        // If no tax or exempt, perform normal transfer
        super._update(from, to, value);

        // Manage Holders List
        _addHolder(from);
        _addHolder(to);
        if (balanceOf(from) == 0) _removeHolder(from);
    }


    // Check if the transfer is exempt from tax
    function _isExempt(address sender, address recipient) internal view returns (bool) {
        return sender == teamAddress || sender == reserveFundAddress || sender == marketingAddress ||
       recipient == teamAddress || recipient == reserveFundAddress || recipient == marketingAddress;
    }


    // Add a holder to the holders list
    function _addHolder(address account) internal {
        if (!isHolder[account] && account != address(this) && account != address(0) && account != uniswapV2Pair) {
            isHolder[account] = true;
            holders.push(account);
            holderIndex[account] = holders.length - 1;
        }
    }

    // Remove a holder from the holders list
    function _removeHolder(address account) internal {
        if (isHolder[account]) {
            uint256 index = holderIndex[account];
            if (index < holders.length - 1) {
                holders[index] = holders[holders.length - 1];
                holderIndex[holders[index]] = index;
            }
            holders.pop();
            delete holderIndex[account];
            isHolder[account] = false;
        }
    }
}

File 3 of 13 : IUniswapV2Factory.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

interface IUniswapV2Factory {
    event PairCreated(address indexed token0, address indexed token1, address pair, uint);

    function feeTo() external view returns (address);
    function feeToSetter() external view returns (address);

    function getPair(address tokenA, address tokenB) external view returns (address pair);
    function allPairs(uint) external view returns (address pair);
    function allPairsLength() external view returns (uint);

    function createPair(address tokenA, address tokenB) external returns (address pair);

    function setFeeTo(address) external;
    function setFeeToSetter(address) external;
}

File 4 of 13 : IUniswapV2Pair.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.5.0;

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

File 5 of 13 : IUniswapV2Router02.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2;

import './IUniswapV2Router01.sol';

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

File 6 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and 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
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

File 7 of 13 : 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 8 of 13 : 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 9 of 13 : IUniswapV2Router01.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2;

interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

File 10 of 13 : 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 11 of 13 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (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;
    }
}

File 12 of 13 : 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 13 of 13 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract SENDToken","name":"_sendToken","type":"address"},{"internalType":"address","name":"_ethWallet","type":"address"},{"internalType":"address","name":"_sendWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_newEthWallet","type":"address"}],"name":"changeEthWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxEthWager","type":"uint256"}],"name":"changeMaxEthWager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxSendWager","type":"uint256"}],"name":"changeMaxSendWager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newSendWallet","type":"address"}],"name":"changeSENDWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxEthWager","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSendWager","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":"sendToken","outputs":[{"internalType":"contract SENDToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sendWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wagerWithETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"wagerWithSEND","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052670de0b6b3a7640000600455693f870857a3e0e38000006005553480156200002a575f80fd5b5060405162001254380380620012548339818101604052810190620000509190620002e1565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603620000c1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000b89062000398565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160362000132576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620001299062000406565b60405180910390fd5b825f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503360015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508160025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505062000426565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f62000269826200023e565b9050919050565b5f6200027c826200025d565b9050919050565b6200028e8162000270565b811462000299575f80fd5b50565b5f81519050620002ac8162000283565b92915050565b620002bd816200025d565b8114620002c8575f80fd5b50565b5f81519050620002db81620002b2565b92915050565b5f805f60608486031215620002fb57620002fa6200023a565b5b5f6200030a868287016200029c565b93505060206200031d86828701620002cb565b92505060406200033086828701620002cb565b9150509250925092565b5f82825260208201905092915050565b7f496e76616c6964204554482077616c6c657420616464726573730000000000005f82015250565b5f62000380601a836200033a565b91506200038d826200034a565b602082019050919050565b5f6020820190508181035f830152620003b18162000372565b9050919050565b7f496e76616c69642053454e442077616c6c6574206164647265737300000000005f82015250565b5f620003ee601b836200033a565b9150620003fb82620003b8565b602082019050919050565b5f6020820190508181035f8301526200041f81620003e0565b9050919050565b610e2080620004345f395ff3fe6080604052600436106100a6575f3560e01c8063b8972db511610063578063b8972db5146101a2578063d56fba6e146101cc578063da13b269146101f6578063ebcd51861461021e578063f235d71a14610246578063f471816714610250576100a6565b806304671061146100aa57806309094f7a146100d457806370acb728146100fe5780637e55b021146101265780638da5cb5b1461014e578063b489378a14610178575b5f80fd5b3480156100b5575f80fd5b506100be610278565b6040516100cb9190610984565b60405180910390f35b3480156100df575f80fd5b506100e861027e565b6040516100f591906109dc565b60405180910390f35b348015610109575f80fd5b50610124600480360381019061011f9190610a23565b6102a3565b005b348015610131575f80fd5b5061014c60048036038101906101479190610a23565b6103e7565b005b348015610159575f80fd5b50610162610480565b60405161016f91906109dc565b60405180910390f35b348015610183575f80fd5b5061018c6104a5565b6040516101999190610984565b60405180910390f35b3480156101ad575f80fd5b506101b66104ab565b6040516101c39190610aa9565b60405180910390f35b3480156101d7575f80fd5b506101e06104ce565b6040516101ed91906109dc565b60405180910390f35b348015610201575f80fd5b5061021c60048036038101906102179190610aec565b6104f3565b005b348015610229575f80fd5b50610244600480360381019061023f9190610aec565b61068d565b005b61024e610827565b005b34801561025b575f80fd5b5061027660048036038101906102719190610a23565b6108d3565b005b60045481565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6005548111156102e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102df90610b71565b60405180910390fd5b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161036593929190610b8f565b6020604051808303815f875af1158015610381573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103a59190610bf9565b6103e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103db90610c6e565b60405180910390fd5b50565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046d90610cd6565b60405180910390fd5b8060058190555050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610582576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057990610cd6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415801561060b575060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b61064a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064190610d64565b60405180910390fd5b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461071c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071390610cd6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156107a5575060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b6107e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107db90610d64565b60405180910390fd5b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60045434111561086c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086390610dcc565b60405180910390fd5b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3490811502906040515f60405180830381858888f193505050501580156108d0573d5f803e3d5ffd5b50565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610962576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095990610cd6565b60405180910390fd5b8060048190555050565b5f819050919050565b61097e8161096c565b82525050565b5f6020820190506109975f830184610975565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6109c68261099d565b9050919050565b6109d6816109bc565b82525050565b5f6020820190506109ef5f8301846109cd565b92915050565b5f80fd5b610a028161096c565b8114610a0c575f80fd5b50565b5f81359050610a1d816109f9565b92915050565b5f60208284031215610a3857610a376109f5565b5b5f610a4584828501610a0f565b91505092915050565b5f819050919050565b5f610a71610a6c610a678461099d565b610a4e565b61099d565b9050919050565b5f610a8282610a57565b9050919050565b5f610a9382610a78565b9050919050565b610aa381610a89565b82525050565b5f602082019050610abc5f830184610a9a565b92915050565b610acb816109bc565b8114610ad5575f80fd5b50565b5f81359050610ae681610ac2565b92915050565b5f60208284031215610b0157610b006109f5565b5b5f610b0e84828501610ad8565b91505092915050565b5f82825260208201905092915050565b7f45786365656473206d61782053454e44207761676572000000000000000000005f82015250565b5f610b5b601683610b17565b9150610b6682610b27565b602082019050919050565b5f6020820190508181035f830152610b8881610b4f565b9050919050565b5f606082019050610ba25f8301866109cd565b610baf60208301856109cd565b610bbc6040830184610975565b949350505050565b5f8115159050919050565b610bd881610bc4565b8114610be2575f80fd5b50565b5f81519050610bf381610bcf565b92915050565b5f60208284031215610c0e57610c0d6109f5565b5b5f610c1b84828501610be5565b91505092915050565b7f5472616e73666572206661696c656400000000000000000000000000000000005f82015250565b5f610c58600f83610b17565b9150610c6382610c24565b602082019050919050565b5f6020820190508181035f830152610c8581610c4c565b9050919050565b7f4e6f7420746865206f776e6572000000000000000000000000000000000000005f82015250565b5f610cc0600d83610b17565b9150610ccb82610c8c565b602082019050919050565b5f6020820190508181035f830152610ced81610cb4565b9050919050565b7f496e76616c69642061646472657373206f722073616d652061732063757272655f8201527f6e74000000000000000000000000000000000000000000000000000000000000602082015250565b5f610d4e602283610b17565b9150610d5982610cf4565b604082019050919050565b5f6020820190508181035f830152610d7b81610d42565b9050919050565b7f45786365656473206d61782045544820776167657200000000000000000000005f82015250565b5f610db6601583610b17565b9150610dc182610d82565b602082019050919050565b5f6020820190508181035f830152610de381610daa565b905091905056fea2646970667358221220da78d2f596e0ab636f64195d99dd3369371d70f14444c12d5d0b4f43b19adb5064736f6c634300081400330000000000000000000000006d48206b97b164555c8fc7a40d59a7230e0551660000000000000000000000004af1beb79843c571a54b9427586ce7d2fbb69cec0000000000000000000000003fb0e489c94f0ce818106902131641d7a71a282d

Deployed Bytecode

0x6080604052600436106100a6575f3560e01c8063b8972db511610063578063b8972db5146101a2578063d56fba6e146101cc578063da13b269146101f6578063ebcd51861461021e578063f235d71a14610246578063f471816714610250576100a6565b806304671061146100aa57806309094f7a146100d457806370acb728146100fe5780637e55b021146101265780638da5cb5b1461014e578063b489378a14610178575b5f80fd5b3480156100b5575f80fd5b506100be610278565b6040516100cb9190610984565b60405180910390f35b3480156100df575f80fd5b506100e861027e565b6040516100f591906109dc565b60405180910390f35b348015610109575f80fd5b50610124600480360381019061011f9190610a23565b6102a3565b005b348015610131575f80fd5b5061014c60048036038101906101479190610a23565b6103e7565b005b348015610159575f80fd5b50610162610480565b60405161016f91906109dc565b60405180910390f35b348015610183575f80fd5b5061018c6104a5565b6040516101999190610984565b60405180910390f35b3480156101ad575f80fd5b506101b66104ab565b6040516101c39190610aa9565b60405180910390f35b3480156101d7575f80fd5b506101e06104ce565b6040516101ed91906109dc565b60405180910390f35b348015610201575f80fd5b5061021c60048036038101906102179190610aec565b6104f3565b005b348015610229575f80fd5b50610244600480360381019061023f9190610aec565b61068d565b005b61024e610827565b005b34801561025b575f80fd5b5061027660048036038101906102719190610a23565b6108d3565b005b60045481565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6005548111156102e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102df90610b71565b60405180910390fd5b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd3360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846040518463ffffffff1660e01b815260040161036593929190610b8f565b6020604051808303815f875af1158015610381573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906103a59190610bf9565b6103e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103db90610c6e565b60405180910390fd5b50565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610476576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046d90610cd6565b60405180910390fd5b8060058190555050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60055481565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610582576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057990610cd6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415801561060b575060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b61064a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161064190610d64565b60405180910390fd5b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461071c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161071390610cd6565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141580156107a5575060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b6107e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107db90610d64565b60405180910390fd5b8060035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60045434111561086c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086390610dcc565b60405180910390fd5b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc3490811502906040515f60405180830381858888f193505050501580156108d0573d5f803e3d5ffd5b50565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610962576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095990610cd6565b60405180910390fd5b8060048190555050565b5f819050919050565b61097e8161096c565b82525050565b5f6020820190506109975f830184610975565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6109c68261099d565b9050919050565b6109d6816109bc565b82525050565b5f6020820190506109ef5f8301846109cd565b92915050565b5f80fd5b610a028161096c565b8114610a0c575f80fd5b50565b5f81359050610a1d816109f9565b92915050565b5f60208284031215610a3857610a376109f5565b5b5f610a4584828501610a0f565b91505092915050565b5f819050919050565b5f610a71610a6c610a678461099d565b610a4e565b61099d565b9050919050565b5f610a8282610a57565b9050919050565b5f610a9382610a78565b9050919050565b610aa381610a89565b82525050565b5f602082019050610abc5f830184610a9a565b92915050565b610acb816109bc565b8114610ad5575f80fd5b50565b5f81359050610ae681610ac2565b92915050565b5f60208284031215610b0157610b006109f5565b5b5f610b0e84828501610ad8565b91505092915050565b5f82825260208201905092915050565b7f45786365656473206d61782053454e44207761676572000000000000000000005f82015250565b5f610b5b601683610b17565b9150610b6682610b27565b602082019050919050565b5f6020820190508181035f830152610b8881610b4f565b9050919050565b5f606082019050610ba25f8301866109cd565b610baf60208301856109cd565b610bbc6040830184610975565b949350505050565b5f8115159050919050565b610bd881610bc4565b8114610be2575f80fd5b50565b5f81519050610bf381610bcf565b92915050565b5f60208284031215610c0e57610c0d6109f5565b5b5f610c1b84828501610be5565b91505092915050565b7f5472616e73666572206661696c656400000000000000000000000000000000005f82015250565b5f610c58600f83610b17565b9150610c6382610c24565b602082019050919050565b5f6020820190508181035f830152610c8581610c4c565b9050919050565b7f4e6f7420746865206f776e6572000000000000000000000000000000000000005f82015250565b5f610cc0600d83610b17565b9150610ccb82610c8c565b602082019050919050565b5f6020820190508181035f830152610ced81610cb4565b9050919050565b7f496e76616c69642061646472657373206f722073616d652061732063757272655f8201527f6e74000000000000000000000000000000000000000000000000000000000000602082015250565b5f610d4e602283610b17565b9150610d5982610cf4565b604082019050919050565b5f6020820190508181035f830152610d7b81610d42565b9050919050565b7f45786365656473206d61782045544820776167657200000000000000000000005f82015250565b5f610db6601583610b17565b9150610dc182610d82565b602082019050919050565b5f6020820190508181035f830152610de381610daa565b905091905056fea2646970667358221220da78d2f596e0ab636f64195d99dd3369371d70f14444c12d5d0b4f43b19adb5064736f6c63430008140033

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

0000000000000000000000006d48206b97b164555c8fc7a40d59a7230e0551660000000000000000000000004af1beb79843c571a54b9427586ce7d2fbb69cec0000000000000000000000003fb0e489c94f0ce818106902131641d7a71a282d

-----Decoded View---------------
Arg [0] : _sendToken (address): 0x6D48206b97B164555C8fC7a40D59A7230E055166
Arg [1] : _ethWallet (address): 0x4aF1beB79843C571a54B9427586ce7d2Fbb69CEC
Arg [2] : _sendWallet (address): 0x3fB0E489c94f0CE818106902131641D7a71a282d

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000006d48206b97b164555c8fc7a40d59a7230e055166
Arg [1] : 0000000000000000000000004af1beb79843c571a54b9427586ce7d2fbb69cec
Arg [2] : 0000000000000000000000003fb0e489c94f0ce818106902131641d7a71a282d


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.