ETH Price: $1,509.50 (-13.64%)

Contract

0x974E9C748FA317f5bE73fA1eF1aB7e2Ab1C2A181
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Buy With Eth216848042025-01-23 4:28:3574 days ago1737606515IN
ENS Namepresale.aquadoge.eth
0.00161 ETH0.00031144.87910131
Buy With Eth216848042025-01-23 4:28:3574 days ago1737606515IN
ENS Namepresale.aquadoge.eth
0.00161 ETH0.00031264.89790131
Stake Tokens216214162025-01-14 8:05:5983 days ago1736841959IN
ENS Namepresale.aquadoge.eth
0 ETH0.00009233.62072927
Stake Tokens216212932025-01-14 7:41:1183 days ago1736840471IN
ENS Namepresale.aquadoge.eth
0 ETH0.000074542.92013463
Stake Tokens216171922025-01-13 17:55:4783 days ago1736790947IN
ENS Namepresale.aquadoge.eth
0 ETH0.000205788.07229795
Stake Tokens216171912025-01-13 17:55:3583 days ago1736790935IN
ENS Namepresale.aquadoge.eth
0 ETH0.000210358.25161876
Stake Tokens216003722025-01-11 9:33:4786 days ago1736588027IN
ENS Namepresale.aquadoge.eth
0 ETH0.000065622.57417526
Stake Tokens215802802025-01-08 14:13:3588 days ago1736345615IN
ENS Namepresale.aquadoge.eth
0 ETH0.000241769.48361554
Stake Tokens215654692025-01-06 12:37:5991 days ago1736167079IN
ENS Namepresale.aquadoge.eth
0 ETH0.0003546313.91106918
Stake Tokens215642502025-01-06 8:32:2391 days ago1736152343IN
ENS Namepresale.aquadoge.eth
0 ETH0.000177626.96749637
Stake Tokens215613542025-01-05 22:47:5991 days ago1736117279IN
ENS Namepresale.aquadoge.eth
0 ETH0.000253489.94332213
Buy With Eth215600752025-01-05 18:29:3591 days ago1736101775IN
ENS Namepresale.aquadoge.eth
2.76 ETH0.000581099.10620811
Buy With USDT215599962025-01-05 18:13:4791 days ago1736100827IN
ENS Namepresale.aquadoge.eth
0 ETH0.000548128.39557546
Buy With Eth215599322025-01-05 18:00:5991 days ago1736100059IN
ENS Namepresale.aquadoge.eth
0.552 ETH0.000628489.84879797
Stake Tokens215585542025-01-05 13:24:1191 days ago1736083451IN
ENS Namepresale.aquadoge.eth
0 ETH0.000231549.08278507
Buy With Eth215581692025-01-05 12:06:4792 days ago1736078807IN
ENS Namepresale.aquadoge.eth
0.01850202 ETH0.0007199211.27973029
Stake Tokens215556942025-01-05 3:48:1192 days ago1736048891IN
ENS Namepresale.aquadoge.eth
0 ETH0.000166736.54045496
Buy With DAI215508662025-01-04 11:38:5993 days ago1735990739IN
ENS Namepresale.aquadoge.eth
0 ETH0.000447178.24262831
Buy With USDT215508602025-01-04 11:37:4793 days ago1735990667IN
ENS Namepresale.aquadoge.eth
0 ETH0.00051997.96478394
Buy With Eth215503102025-01-04 9:46:5993 days ago1735984019IN
ENS Namepresale.aquadoge.eth
0.02 ETH0.000486827.62748508
Buy With Eth215501172025-01-04 9:08:1193 days ago1735981691IN
ENS Namepresale.aquadoge.eth
0.012 ETH0.000464667.28173412
Buy With USDT215498452025-01-04 8:13:3593 days ago1735978415IN
ENS Namepresale.aquadoge.eth
0 ETH0.000436036.68001147
Buy With Eth215498002025-01-04 8:04:3593 days ago1735977875IN
ENS Namepresale.aquadoge.eth
0.0501 ETH0.000416366.52360065
Buy With Eth215476452025-01-04 0:50:1193 days ago1735951811IN
ENS Namepresale.aquadoge.eth
0.01077463 ETH0.000513018.03779615
Buy With Eth215475072025-01-04 0:22:2393 days ago1735950143IN
ENS Namepresale.aquadoge.eth
0.57 ETH0.0006462210.12687918
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer216848042025-01-23 4:28:3574 days ago1737606515
ENS Namepresale.aquadoge.eth
0.00161 ETH
Transfer216848042025-01-23 4:28:3574 days ago1737606515
ENS Namepresale.aquadoge.eth
0.00161 ETH
Transfer215600752025-01-05 18:29:3591 days ago1736101775
ENS Namepresale.aquadoge.eth
2.76 ETH
Transfer215599322025-01-05 18:00:5991 days ago1736100059
ENS Namepresale.aquadoge.eth
0.552 ETH
Transfer215581692025-01-05 12:06:4792 days ago1736078807
ENS Namepresale.aquadoge.eth
0.01850202 ETH
Transfer215503102025-01-04 9:46:5993 days ago1735984019
ENS Namepresale.aquadoge.eth
0.02 ETH
Transfer215501172025-01-04 9:08:1193 days ago1735981691
ENS Namepresale.aquadoge.eth
0.012 ETH
Transfer215498002025-01-04 8:04:3593 days ago1735977875
ENS Namepresale.aquadoge.eth
0.0501 ETH
Transfer215476452025-01-04 0:50:1193 days ago1735951811
ENS Namepresale.aquadoge.eth
0.01077463 ETH
Transfer215475072025-01-04 0:22:2393 days ago1735950143
ENS Namepresale.aquadoge.eth
0.57 ETH
Transfer215466872025-01-03 21:37:2393 days ago1735940243
ENS Namepresale.aquadoge.eth
1.63772955 ETH
Transfer215435082025-01-03 10:58:2394 days ago1735901903
ENS Namepresale.aquadoge.eth
0.00086272 ETH
Transfer215424422025-01-03 7:24:1194 days ago1735889051
ENS Namepresale.aquadoge.eth
0.18861458 ETH
Transfer215389652025-01-02 19:45:3594 days ago1735847135
ENS Namepresale.aquadoge.eth
0.01284019 ETH
Transfer215380832025-01-02 16:48:2394 days ago1735836503
ENS Namepresale.aquadoge.eth
2.765 ETH
Transfer215349962025-01-02 6:28:5995 days ago1735799339
ENS Namepresale.aquadoge.eth
0.00505658 ETH
Transfer215346922025-01-02 5:28:1195 days ago1735795691
ENS Namepresale.aquadoge.eth
1.8 ETH
Transfer215310512025-01-01 17:16:3595 days ago1735751795
ENS Namepresale.aquadoge.eth
0.02 ETH
Transfer215225852024-12-31 12:54:2397 days ago1735649663
ENS Namepresale.aquadoge.eth
0.00225329 ETH
Transfer215182462024-12-30 22:22:1197 days ago1735597331
ENS Namepresale.aquadoge.eth
0.0179174 ETH
Transfer215141552024-12-30 8:40:1198 days ago1735548011
ENS Namepresale.aquadoge.eth
0.002807 ETH
Transfer215134222024-12-30 6:12:1198 days ago1735539131
ENS Namepresale.aquadoge.eth
0.0001 ETH
Transfer215126272024-12-30 3:32:1198 days ago1735529531
ENS Namepresale.aquadoge.eth
0.03425791 ETH
Transfer215124362024-12-30 2:53:3598 days ago1735527215
ENS Namepresale.aquadoge.eth
0.001 ETH
Transfer215092112024-12-29 16:05:5998 days ago1735488359
ENS Namepresale.aquadoge.eth
0.0054 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AquadogePresale

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion
File 1 of 8 : AquadogePresale.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

// Interface for Chainlink Aggregator for ETH/USD price feed
interface Aggregator {
    function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
}

contract AquadogePresale is ReentrancyGuard, Ownable, Pausable {
    using SafeERC20 for IERC20;

    // Initial token price
    uint256 public currentPrice = 4220; // .00422 USD

    // Payment wallet address
    address public paymentWallet = 0x3a9000423AfAF8A54249f405f37e10229d37aa4d;

    // USD Token interfaces
    IERC20 public USDTInterface = IERC20(0xdAC17F958D2ee523a2206206994597C13D831ec7); // USDT on Ethereum
    IERC20 public USDCInterface = IERC20(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48); // USDC on Ethereum
    IERC20 public WETHInterface = IERC20(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); // WETH on Ethereum
    IERC20 public DAIInterface = IERC20(0x6B175474E89094C44Da98b954EedeAC495271d0F); // DAI on Ethereum

    // Chainlink Aggregator for ETH/USD price feed
    Aggregator public aggregatorInterface = Aggregator(0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419);

    // Events
    event TokensBoughtWithEth(address indexed buyer, uint256 ethAmount, uint256 ethPrice, uint256 tokenPrice, uint256 timestamp, bool stake);
    event TokensBoughtWithUsd(address indexed buyer, uint256 usdAmount, uint256 tokenPrice, uint256 timestamp, bool stake, uint8 decimals);
    event StakeTokens(address indexed buyer, uint256 amount, uint256 timestamp);
    event BridgeSolana(address indexed buyer, string solanaAddress, uint256 timestamp, bool stake);
    
    // Mapping to keep track of bridged addresses
    mapping(address => bool) public hasBridgedFromSolana;

    // Pause the contract (onlyOwner)
    function pause() external onlyOwner {
        _pause();
    }

    // Unpause the contract (onlyOwner)
    function unpause() external onlyOwner {
        _unpause();
    }

    // Internal function to handle token purchase
    function _buyWithToken(IERC20 token, uint256 amount) internal {
        uint256 allowance = token.allowance(_msgSender(), address(this));
        require(amount <= allowance, "Insufficient allowance");
        token.safeTransferFrom(_msgSender(), paymentWallet, amount);
    }

    // Internal function to handle stablecoin purchase and emit event
    function _buyWithStable(IERC20 token, uint256 amount, bool stake, uint8 decimals) internal {
        _buyWithToken(token, amount);
        emit TokensBoughtWithUsd(_msgSender(), amount, currentPrice, block.timestamp, stake, decimals);
    }

    // Buy with USDT
    function buyWithUSDT(uint256 usdtAmount, bool stake) external whenNotPaused {
        _buyWithStable(USDTInterface, usdtAmount, stake, 6);
    }

    // Buy with USDC
    function buyWithUSDC(uint256 usdcAmount, bool stake) external whenNotPaused {
        _buyWithStable(USDCInterface, usdcAmount, stake, 6);
    }

    // Buy with DAI
    function buyWithDAI(uint256 daiAmount, bool stake) external whenNotPaused {
        _buyWithStable(DAIInterface, daiAmount, stake, 18);
    }

    // Buy with WETH
    function buyWithWETH(uint256 wethAmount, bool stake) external whenNotPaused {
        _buyWithToken(WETHInterface, wethAmount);
        emit TokensBoughtWithEth(_msgSender(), wethAmount, getLatestEthPrice(), currentPrice, block.timestamp, stake);
    }

    // Buy with ETH
    function buyWithEth(bool stake) external payable whenNotPaused nonReentrant {
        require(msg.value > 0, "No ETH sent");
        sendValue(payable(paymentWallet), msg.value);
        emit TokensBoughtWithEth(_msgSender(), msg.value, getLatestEthPrice(), currentPrice, block.timestamp, stake);
    }

    // Stake tokens
    function stakeTokens(uint256 amount) external whenNotPaused {
        emit StakeTokens(_msgSender(), amount, block.timestamp);
    }

    // Bridge from Solana to EVM by providing Solana address
    function bridgeFromSolana(string calldata solanaAddress, bool stake) external whenNotPaused nonReentrant {
        require(bytes(solanaAddress).length != 0, "solanaAddress cannot be empty");
        require(!hasBridgedFromSolana[_msgSender()], "Already bridged");

        hasBridgedFromSolana[_msgSender()] = true;
        emit BridgeSolana(_msgSender(), solanaAddress, block.timestamp, stake);
    }

    // Internal function to send ETH
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Insufficient balance");
        (bool success, ) = recipient.call{value: amount}("");
        require(success, "ETH transfer failed");
    }

    // Change the token price (onlyOwner)
    function changePrice(uint256 _currentPrice) external onlyOwner {
        currentPrice = _currentPrice;
    }

    // Change the payment wallet address (onlyOwner)
    function changePaymentWallet(address _newPaymentWallet) external onlyOwner {
        paymentWallet = _newPaymentWallet;
    }

    // Get the latest ETH price from Chainlink
    function getLatestEthPrice() public view returns (uint256) {
        (, int256 price, , , ) = aggregatorInterface.latestRoundData();
        return uint256(price * 10 ** 10);
    }

    // Withdraw tokens from the contract (onlyOwner)
    function withdrawToken(address tokenContractAddress, uint256 amount) external onlyOwner {
        IERC20 tokenContract = IERC20(tokenContractAddress);
        tokenContract.safeTransfer(msg.sender, amount);
    }

    // Withdraw native ETH from the contract (onlyOwner)
    function withdrawNative(uint256 amount) external onlyOwner {
        payable(msg.sender).transfer(amount);
    }

    // Fallback function to receive ETH
    // solhint-disable-next-line no-empty-blocks
    receive() external payable {}
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 8 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

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

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

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

    bool private _paused;

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

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

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

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

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

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

File 4 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 5 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

File 6 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

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

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

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

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 7 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 8 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"string","name":"solanaAddress","type":"string"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bool","name":"stake","type":"bool"}],"name":"BridgeSolana","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"StakeTokens","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bool","name":"stake","type":"bool"}],"name":"TokensBoughtWithEth","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"usdAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenPrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bool","name":"stake","type":"bool"},{"indexed":false,"internalType":"uint8","name":"decimals","type":"uint8"}],"name":"TokensBoughtWithUsd","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"DAIInterface","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDCInterface","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDTInterface","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETHInterface","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aggregatorInterface","outputs":[{"internalType":"contract Aggregator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"solanaAddress","type":"string"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"bridgeFromSolana","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"daiAmount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"buyWithDAI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"stake","type":"bool"}],"name":"buyWithEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"usdcAmount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"buyWithUSDC","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"usdtAmount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"buyWithUSDT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"wethAmount","type":"uint256"},{"internalType":"bool","name":"stake","type":"bool"}],"name":"buyWithWETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newPaymentWallet","type":"address"}],"name":"changePaymentWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_currentPrice","type":"uint256"}],"name":"changePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currentPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestEthPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"hasBridgedFromSolana","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawNative","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenContractAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405261107c600255600380546001600160a01b0319908116733a9000423afaf8a54249f405f37e10229d37aa4d1790915560048054821673dac17f958d2ee523a2206206994597c13d831ec717905560058054821673a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4817905560068054821673c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2179055600780548216736b175474e89094c44da98b954eedeac495271d0f17905560088054909116735f4ec3df9cbd43714fe2740f5e3616155c5b84191790553480156100d657600080fd5b5060016000556100e5336100f7565b6001805460ff60a01b19169055610149565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b611642806101586000396000f3fe6080604052600436106101355760003560e01c8063136021d9146101415780631772e277146101635780631ebf3f9e146101a85780632322acbe146101d557806325312e54146101f557806328749cdc1461021557806330c0b9ec146102285780633f4ba83a1461024b5780635c975abb14610260578063715018a6146102755780637547c7a31461028a57806384276d81146102aa5780638456cb59146102ca5780638da5cb5b146102df5780639d1b464a146102f45780639e281a981461030a578063a2b40d191461032a578063ba1ceafd1461034a578063bff1cbec1461036a578063c49cc6451461038a578063cad00556146103aa578063d193cfee146103ca578063e32204dd146103ea578063ed3744e91461040a578063f2fde38b1461042a578063f597573f1461044a57600080fd5b3661013c57005b600080fd5b34801561014d57600080fd5b5061016161015c36600461133c565b61046a565b005b34801561016f57600080fd5b5061019361017e366004611214565b60096020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b3480156101b457600080fd5b506007546101c8906001600160a01b031681565b60405161019f91906113d6565b3480156101e157600080fd5b506101616101f036600461133c565b6104b5565b34801561020157600080fd5b506005546101c8906001600160a01b031681565b610161610223366004611257565b61052b565b34801561023457600080fd5b5061023d610608565b60405190815260200161019f565b34801561025757600080fd5b506101616106ae565b34801561026c57600080fd5b506101936106e7565b34801561028157600080fd5b506101616106f7565b34801561029657600080fd5b506101616102a536600461130c565b610730565b3480156102b657600080fd5b506101616102c536600461130c565b610792565b3480156102d657600080fd5b506101616107ee565b3480156102eb57600080fd5b506101c8610825565b34801561030057600080fd5b5061023d60025481565b34801561031657600080fd5b5061016161032536600461122e565b610834565b34801561033657600080fd5b5061016161034536600461130c565b61087d565b34801561035657600080fd5b5061016161036536600461128f565b6108b1565b34801561037657600080fd5b5061016161038536600461133c565b6109ff565b34801561039657600080fd5b506008546101c8906001600160a01b031681565b3480156103b657600080fd5b506101616103c5366004611214565b610a3d565b3480156103d657600080fd5b506101616103e536600461133c565b610a8e565b3480156103f657600080fd5b506003546101c8906001600160a01b031681565b34801561041657600080fd5b506006546101c8906001600160a01b031681565b34801561043657600080fd5b50610161610445366004611214565b610acc565b34801561045657600080fd5b506004546101c8906001600160a01b031681565b6104726106e7565b156104985760405162461bcd60e51b815260040161048f9061145e565b60405180910390fd5b6004546104b1906001600160a01b031683836006610b6c565b5050565b6104bd6106e7565b156104da5760405162461bcd60e51b815260040161048f9061145e565b6006546104f0906001600160a01b031683610bd2565b336000805160206115ed83398151915283610509610608565b600254428660405161051f9594939291906114f4565b60405180910390a25050565b6105336106e7565b156105505760405162461bcd60e51b815260040161048f9061145e565b600260005414156105735760405162461bcd60e51b815260040161048f906114bd565b6002600055346105b35760405162461bcd60e51b815260206004820152600b60248201526a139bc8115512081cd95b9d60aa1b604482015260640161048f565b6003546105c9906001600160a01b031634610cc7565b336000805160206115ed833981519152346105e2610608565b60025442866040516105f89594939291906114f4565b60405180910390a2506001600055565b600080600860009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561065957600080fd5b505afa15801561066d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610691919061136b565b505050915050806402540be4006106a89190611519565b91505090565b336106b7610825565b6001600160a01b0316146106dd5760405162461bcd60e51b815260040161048f90611488565b6106e5610da7565b565b600154600160a01b900460ff1690565b33610700610825565b6001600160a01b0316146107265760405162461bcd60e51b815260040161048f90611488565b6106e56000610e39565b6107386106e7565b156107555760405162461bcd60e51b815260040161048f9061145e565b6040805182815242602082015233917f106d46085b22b31d658796e9924cf39946b4105bdb86f8afba3d60d71c3cc591910160405180910390a250565b3361079b610825565b6001600160a01b0316146107c15760405162461bcd60e51b815260040161048f90611488565b604051339082156108fc029083906000818181858888f193505050501580156104b1573d6000803e3d6000fd5b336107f7610825565b6001600160a01b03161461081d5760405162461bcd60e51b815260040161048f90611488565b6106e5610e8b565b6001546001600160a01b031690565b3361083d610825565b6001600160a01b0316146108635760405162461bcd60e51b815260040161048f90611488565b816108786001600160a01b0382163384610eeb565b505050565b33610886610825565b6001600160a01b0316146108ac5760405162461bcd60e51b815260040161048f90611488565b600255565b6108b96106e7565b156108d65760405162461bcd60e51b815260040161048f9061145e565b600260005414156108f95760405162461bcd60e51b815260040161048f906114bd565b60026000558161094b5760405162461bcd60e51b815260206004820152601d60248201527f736f6c616e61416464726573732063616e6e6f7420626520656d707479000000604482015260640161048f565b3360009081526009602052604090205460ff161561099d5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e48189c9a5919d959608a1b604482015260640161048f565b3360008181526009602052604090819020805460ff19166001179055517fd62759ed519608d36f11cc69f4aeeb2736876e7d1e165db0fb6d2c5cb53e551a906109ed9086908690429087906113ea565b60405180910390a25050600160005550565b610a076106e7565b15610a245760405162461bcd60e51b815260040161048f9061145e565b6005546104b1906001600160a01b031683836006610b6c565b33610a46610825565b6001600160a01b031614610a6c5760405162461bcd60e51b815260040161048f90611488565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b610a966106e7565b15610ab35760405162461bcd60e51b815260040161048f9061145e565b6007546104b1906001600160a01b031683836012610b6c565b33610ad5610825565b6001600160a01b031614610afb5760405162461bcd60e51b815260040161048f90611488565b6001600160a01b038116610b605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161048f565b610b6981610e39565b50565b610b768484610bd2565b6002546040805185815260208101929092524282820152831515606083015260ff831660808301525133917faf188b2a14e7df99d40a30023e97c147ba49a00e7954f3348e6d0639b58d506b919081900360a00190a250505050565b60006001600160a01b03831663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b158015610c2957600080fd5b505afa158015610c3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c619190611324565b905080821115610cac5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b604482015260640161048f565b610878336003546001600160a01b0386811692911685610f4e565b80471015610d0e5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161048f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610d5b576040519150601f19603f3d011682016040523d82523d6000602084013e610d60565b606091505b50509050806108785760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b604482015260640161048f565b610daf6106e7565b610df25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161048f565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051610e2f91906113d6565b60405180910390a1565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e936106e7565b15610eb05760405162461bcd60e51b815260040161048f9061145e565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e223390565b6040516001600160a01b03831660248201526044810182905261087890849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610f8c565b6040516001600160a01b0380851660248301528316604482015260648101829052610f869085906323b872dd60e01b90608401610f17565b50505050565b6000610fe1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661105e9092919063ffffffff16565b8051909150156108785780806020019051810190610fff9190611273565b6108785760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161048f565b606061106d8484600085611077565b90505b9392505050565b6060824710156110d85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161048f565b6001600160a01b0385163b61112f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161048f565b600080866001600160a01b0316858760405161114b91906113ba565b60006040518083038185875af1925050503d8060008114611188576040519150601f19603f3d011682016040523d82523d6000602084013e61118d565b606091505b509150915061119d8282866111a8565b979650505050505050565b606083156111b7575081611070565b8251156111c75782518084602001fd5b8160405162461bcd60e51b815260040161048f919061142b565b80356001600160a01b03811681146111f857600080fd5b919050565b80516001600160501b03811681146111f857600080fd5b600060208284031215611225578081fd5b611070826111e1565b60008060408385031215611240578081fd5b611249836111e1565b946020939093013593505050565b600060208284031215611268578081fd5b8135611070816115de565b600060208284031215611284578081fd5b8151611070816115de565b6000806000604084860312156112a3578081fd5b83356001600160401b03808211156112b9578283fd5b818601915086601f8301126112cc578283fd5b8135818111156112da578384fd5b8760208285010111156112eb578384fd5b60209283019550935050840135611301816115de565b809150509250925092565b60006020828403121561131d578081fd5b5035919050565b600060208284031215611335578081fd5b5051919050565b6000806040838503121561134e578182fd5b823591506020830135611360816115de565b809150509250929050565b600080600080600060a08688031215611382578081fd5b61138b866111fd565b94506020860151935060408601519250606086015191506113ae608087016111fd565b90509295509295909350565b600082516113cc81846020870161159c565b9190910192915050565b6001600160a01b0391909116815260200190565b6060815283606082015283856080830137600080608086840101526080601f19601f8701168301019050836020830152821515604083015295945050505050565b602081526000825180602084015261144a81604085016020870161159c565b601f01601f19169190910160400192915050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b9485526020850193909352604084019190915260608301521515608082015260a00190565b60006001600160ff1b038184138284138082168684048611161561153f5761153f6115c8565b600160ff1b8487128281168783058912161561155d5761155d6115c8565b858712925087820587128484161615611578576115786115c8565b8785058712818416161561158e5761158e6115c8565b505050929093029392505050565b60005b838110156115b757818101518382015260200161159f565b83811115610f865750506000910152565b634e487b7160e01b600052601160045260246000fd5b8015158114610b6957600080fdfe58d563240e6c5e2f762c5871ec14a7b67bef5b6baf097919dfb20a3da57297d2a26469706673582212208add531c01eb2e0e200a2cd28a4c883547ecc079c539ce92915124134f0791ad64736f6c63430008040033

Deployed Bytecode

0x6080604052600436106101355760003560e01c8063136021d9146101415780631772e277146101635780631ebf3f9e146101a85780632322acbe146101d557806325312e54146101f557806328749cdc1461021557806330c0b9ec146102285780633f4ba83a1461024b5780635c975abb14610260578063715018a6146102755780637547c7a31461028a57806384276d81146102aa5780638456cb59146102ca5780638da5cb5b146102df5780639d1b464a146102f45780639e281a981461030a578063a2b40d191461032a578063ba1ceafd1461034a578063bff1cbec1461036a578063c49cc6451461038a578063cad00556146103aa578063d193cfee146103ca578063e32204dd146103ea578063ed3744e91461040a578063f2fde38b1461042a578063f597573f1461044a57600080fd5b3661013c57005b600080fd5b34801561014d57600080fd5b5061016161015c36600461133c565b61046a565b005b34801561016f57600080fd5b5061019361017e366004611214565b60096020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b3480156101b457600080fd5b506007546101c8906001600160a01b031681565b60405161019f91906113d6565b3480156101e157600080fd5b506101616101f036600461133c565b6104b5565b34801561020157600080fd5b506005546101c8906001600160a01b031681565b610161610223366004611257565b61052b565b34801561023457600080fd5b5061023d610608565b60405190815260200161019f565b34801561025757600080fd5b506101616106ae565b34801561026c57600080fd5b506101936106e7565b34801561028157600080fd5b506101616106f7565b34801561029657600080fd5b506101616102a536600461130c565b610730565b3480156102b657600080fd5b506101616102c536600461130c565b610792565b3480156102d657600080fd5b506101616107ee565b3480156102eb57600080fd5b506101c8610825565b34801561030057600080fd5b5061023d60025481565b34801561031657600080fd5b5061016161032536600461122e565b610834565b34801561033657600080fd5b5061016161034536600461130c565b61087d565b34801561035657600080fd5b5061016161036536600461128f565b6108b1565b34801561037657600080fd5b5061016161038536600461133c565b6109ff565b34801561039657600080fd5b506008546101c8906001600160a01b031681565b3480156103b657600080fd5b506101616103c5366004611214565b610a3d565b3480156103d657600080fd5b506101616103e536600461133c565b610a8e565b3480156103f657600080fd5b506003546101c8906001600160a01b031681565b34801561041657600080fd5b506006546101c8906001600160a01b031681565b34801561043657600080fd5b50610161610445366004611214565b610acc565b34801561045657600080fd5b506004546101c8906001600160a01b031681565b6104726106e7565b156104985760405162461bcd60e51b815260040161048f9061145e565b60405180910390fd5b6004546104b1906001600160a01b031683836006610b6c565b5050565b6104bd6106e7565b156104da5760405162461bcd60e51b815260040161048f9061145e565b6006546104f0906001600160a01b031683610bd2565b336000805160206115ed83398151915283610509610608565b600254428660405161051f9594939291906114f4565b60405180910390a25050565b6105336106e7565b156105505760405162461bcd60e51b815260040161048f9061145e565b600260005414156105735760405162461bcd60e51b815260040161048f906114bd565b6002600055346105b35760405162461bcd60e51b815260206004820152600b60248201526a139bc8115512081cd95b9d60aa1b604482015260640161048f565b6003546105c9906001600160a01b031634610cc7565b336000805160206115ed833981519152346105e2610608565b60025442866040516105f89594939291906114f4565b60405180910390a2506001600055565b600080600860009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561065957600080fd5b505afa15801561066d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610691919061136b565b505050915050806402540be4006106a89190611519565b91505090565b336106b7610825565b6001600160a01b0316146106dd5760405162461bcd60e51b815260040161048f90611488565b6106e5610da7565b565b600154600160a01b900460ff1690565b33610700610825565b6001600160a01b0316146107265760405162461bcd60e51b815260040161048f90611488565b6106e56000610e39565b6107386106e7565b156107555760405162461bcd60e51b815260040161048f9061145e565b6040805182815242602082015233917f106d46085b22b31d658796e9924cf39946b4105bdb86f8afba3d60d71c3cc591910160405180910390a250565b3361079b610825565b6001600160a01b0316146107c15760405162461bcd60e51b815260040161048f90611488565b604051339082156108fc029083906000818181858888f193505050501580156104b1573d6000803e3d6000fd5b336107f7610825565b6001600160a01b03161461081d5760405162461bcd60e51b815260040161048f90611488565b6106e5610e8b565b6001546001600160a01b031690565b3361083d610825565b6001600160a01b0316146108635760405162461bcd60e51b815260040161048f90611488565b816108786001600160a01b0382163384610eeb565b505050565b33610886610825565b6001600160a01b0316146108ac5760405162461bcd60e51b815260040161048f90611488565b600255565b6108b96106e7565b156108d65760405162461bcd60e51b815260040161048f9061145e565b600260005414156108f95760405162461bcd60e51b815260040161048f906114bd565b60026000558161094b5760405162461bcd60e51b815260206004820152601d60248201527f736f6c616e61416464726573732063616e6e6f7420626520656d707479000000604482015260640161048f565b3360009081526009602052604090205460ff161561099d5760405162461bcd60e51b815260206004820152600f60248201526e105b1c9958591e48189c9a5919d959608a1b604482015260640161048f565b3360008181526009602052604090819020805460ff19166001179055517fd62759ed519608d36f11cc69f4aeeb2736876e7d1e165db0fb6d2c5cb53e551a906109ed9086908690429087906113ea565b60405180910390a25050600160005550565b610a076106e7565b15610a245760405162461bcd60e51b815260040161048f9061145e565b6005546104b1906001600160a01b031683836006610b6c565b33610a46610825565b6001600160a01b031614610a6c5760405162461bcd60e51b815260040161048f90611488565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b610a966106e7565b15610ab35760405162461bcd60e51b815260040161048f9061145e565b6007546104b1906001600160a01b031683836012610b6c565b33610ad5610825565b6001600160a01b031614610afb5760405162461bcd60e51b815260040161048f90611488565b6001600160a01b038116610b605760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161048f565b610b6981610e39565b50565b610b768484610bd2565b6002546040805185815260208101929092524282820152831515606083015260ff831660808301525133917faf188b2a14e7df99d40a30023e97c147ba49a00e7954f3348e6d0639b58d506b919081900360a00190a250505050565b60006001600160a01b03831663dd62ed3e336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b158015610c2957600080fd5b505afa158015610c3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c619190611324565b905080821115610cac5760405162461bcd60e51b8152602060048201526016602482015275496e73756666696369656e7420616c6c6f77616e636560501b604482015260640161048f565b610878336003546001600160a01b0386811692911685610f4e565b80471015610d0e5760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b604482015260640161048f565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610d5b576040519150601f19603f3d011682016040523d82523d6000602084013e610d60565b606091505b50509050806108785760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b604482015260640161048f565b610daf6106e7565b610df25760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161048f565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b604051610e2f91906113d6565b60405180910390a1565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e936106e7565b15610eb05760405162461bcd60e51b815260040161048f9061145e565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258610e223390565b6040516001600160a01b03831660248201526044810182905261087890849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610f8c565b6040516001600160a01b0380851660248301528316604482015260648101829052610f869085906323b872dd60e01b90608401610f17565b50505050565b6000610fe1826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661105e9092919063ffffffff16565b8051909150156108785780806020019051810190610fff9190611273565b6108785760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161048f565b606061106d8484600085611077565b90505b9392505050565b6060824710156110d85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161048f565b6001600160a01b0385163b61112f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161048f565b600080866001600160a01b0316858760405161114b91906113ba565b60006040518083038185875af1925050503d8060008114611188576040519150601f19603f3d011682016040523d82523d6000602084013e61118d565b606091505b509150915061119d8282866111a8565b979650505050505050565b606083156111b7575081611070565b8251156111c75782518084602001fd5b8160405162461bcd60e51b815260040161048f919061142b565b80356001600160a01b03811681146111f857600080fd5b919050565b80516001600160501b03811681146111f857600080fd5b600060208284031215611225578081fd5b611070826111e1565b60008060408385031215611240578081fd5b611249836111e1565b946020939093013593505050565b600060208284031215611268578081fd5b8135611070816115de565b600060208284031215611284578081fd5b8151611070816115de565b6000806000604084860312156112a3578081fd5b83356001600160401b03808211156112b9578283fd5b818601915086601f8301126112cc578283fd5b8135818111156112da578384fd5b8760208285010111156112eb578384fd5b60209283019550935050840135611301816115de565b809150509250925092565b60006020828403121561131d578081fd5b5035919050565b600060208284031215611335578081fd5b5051919050565b6000806040838503121561134e578182fd5b823591506020830135611360816115de565b809150509250929050565b600080600080600060a08688031215611382578081fd5b61138b866111fd565b94506020860151935060408601519250606086015191506113ae608087016111fd565b90509295509295909350565b600082516113cc81846020870161159c565b9190910192915050565b6001600160a01b0391909116815260200190565b6060815283606082015283856080830137600080608086840101526080601f19601f8701168301019050836020830152821515604083015295945050505050565b602081526000825180602084015261144a81604085016020870161159c565b601f01601f19169190910160400192915050565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b9485526020850193909352604084019190915260608301521515608082015260a00190565b60006001600160ff1b038184138284138082168684048611161561153f5761153f6115c8565b600160ff1b8487128281168783058912161561155d5761155d6115c8565b858712925087820587128484161615611578576115786115c8565b8785058712818416161561158e5761158e6115c8565b505050929093029392505050565b60005b838110156115b757818101518382015260200161159f565b83811115610f865750506000910152565b634e487b7160e01b600052601160045260246000fd5b8015158114610b6957600080fdfe58d563240e6c5e2f762c5871ec14a7b67bef5b6baf097919dfb20a3da57297d2a26469706673582212208add531c01eb2e0e200a2cd28a4c883547ecc079c539ce92915124134f0791ad64736f6c63430008040033

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.