ETH Price: $3,491.04 (+0.08%)
Gas: 2 Gwei

Contract

0x6ba4c6854a0CD66F39D41e0a9a8D8C52179dcF86
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Buy196584112024-04-15 4:03:2397 days ago1713153803IN
0x6ba4c685...2179dcF86
0.215 ETH0.000715087.7206622
Buy196581472024-04-15 3:10:2397 days ago1713150623IN
0x6ba4c685...2179dcF86
0.4 ETH0.000572097.5573665
Buy196580592024-04-15 2:52:4797 days ago1713149567IN
0x6ba4c685...2179dcF86
0.2 ETH0.000650828.59740579
Buy196570632024-04-14 23:32:1197 days ago1713137531IN
0x6ba4c685...2179dcF86
0.1 ETH0.000923589.68193718
Buy196560972024-04-14 20:15:5997 days ago1713125759IN
0x6ba4c685...2179dcF86
1 ETH0.0014063710.64241315
Buy196557052024-04-14 18:57:3597 days ago1713121055IN
0x6ba4c685...2179dcF86
0.5 ETH0.0010266311.08444612
Buy196555862024-04-14 18:33:4797 days ago1713119627IN
0x6ba4c685...2179dcF86
0.84 ETH0.000994310.73547066
Buy196555442024-04-14 18:25:2397 days ago1713119123IN
0x6ba4c685...2179dcF86
0.2 ETH0.0012089212.69713996
Buy196552472024-04-14 17:24:5997 days ago1713115499IN
0x6ba4c685...2179dcF86
0.2 ETH0.0020648522.29405794
Buy196551422024-04-14 17:03:5997 days ago1713114239IN
0x6ba4c685...2179dcF86
0.165 ETH0.0011226112.09715778
Buy196542422024-04-14 14:02:3597 days ago1713103355IN
0x6ba4c685...2179dcF86
0.1 ETH0.0012856313.88087766
Buy196542212024-04-14 13:58:2397 days ago1713103103IN
0x6ba4c685...2179dcF86
0.2 ETH0.0013401611.91329051
Buy196539972024-04-14 13:13:1197 days ago1713100391IN
0x6ba4c685...2179dcF86
0.15 ETH0.0011774210.48355109
Buy196530252024-04-14 9:57:4797 days ago1713088667IN
0x6ba4c685...2179dcF86
0.05 ETH0.0012668511.2616053
Buy196524572024-04-14 8:03:4798 days ago1713081827IN
0x6ba4c685...2179dcF86
0.3 ETH0.0014987813.3448118
Buy196519032024-04-14 6:11:2398 days ago1713075083IN
0x6ba4c685...2179dcF86
0.4744 ETH0.0009671610.44238543
Buy196516362024-04-14 5:17:2398 days ago1713071843IN
0x6ba4c685...2179dcF86
0.22 ETH0.0008952411.85457425
Buy196507552024-04-14 2:18:5998 days ago1713061139IN
0x6ba4c685...2179dcF86
0.1 ETH0.00116212.18128333
Buy196505752024-04-14 1:42:4798 days ago1713058967IN
0x6ba4c685...2179dcF86
0.34 ETH0.0014401615.09872486
Buy196504432024-04-14 1:16:1198 days ago1713057371IN
0x6ba4c685...2179dcF86
0.3 ETH0.0018897716.80052751
Buy196483512024-04-13 18:11:1198 days ago1713031871IN
0x6ba4c685...2179dcF86
0.04 ETH0.0024786426.70951824
Buy196481662024-04-13 17:34:1198 days ago1713029651IN
0x6ba4c685...2179dcF86
0.35 ETH0.0026716328.84546327
Buy196478252024-04-13 16:24:5998 days ago1713025499IN
0x6ba4c685...2179dcF86
0.04638673 ETH0.0021439119.08893162
Buy196475652024-04-13 15:32:5998 days ago1713022379IN
0x6ba4c685...2179dcF86
0.085 ETH0.0017241515.32678254
Buy196475642024-04-13 15:32:4798 days ago1713022367IN
0x6ba4c685...2179dcF86
0.7 ETH0.0027396124.35361982
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To
196584112024-04-15 4:03:2397 days ago1713153803
0x6ba4c685...2179dcF86
0.215 ETH
196581472024-04-15 3:10:2397 days ago1713150623
0x6ba4c685...2179dcF86
0.4 ETH
196580592024-04-15 2:52:4797 days ago1713149567
0x6ba4c685...2179dcF86
0.2 ETH
196570632024-04-14 23:32:1197 days ago1713137531
0x6ba4c685...2179dcF86
0.1 ETH
196560972024-04-14 20:15:5997 days ago1713125759
0x6ba4c685...2179dcF86
1 ETH
196557052024-04-14 18:57:3597 days ago1713121055
0x6ba4c685...2179dcF86
0.5 ETH
196555862024-04-14 18:33:4797 days ago1713119627
0x6ba4c685...2179dcF86
0.84 ETH
196555442024-04-14 18:25:2397 days ago1713119123
0x6ba4c685...2179dcF86
0.2 ETH
196552472024-04-14 17:24:5997 days ago1713115499
0x6ba4c685...2179dcF86
0.2 ETH
196551422024-04-14 17:03:5997 days ago1713114239
0x6ba4c685...2179dcF86
0.165 ETH
196542422024-04-14 14:02:3597 days ago1713103355
0x6ba4c685...2179dcF86
0.1 ETH
196542212024-04-14 13:58:2397 days ago1713103103
0x6ba4c685...2179dcF86
0.2 ETH
196539972024-04-14 13:13:1197 days ago1713100391
0x6ba4c685...2179dcF86
0.15 ETH
196530252024-04-14 9:57:4797 days ago1713088667
0x6ba4c685...2179dcF86
0.05 ETH
196524572024-04-14 8:03:4798 days ago1713081827
0x6ba4c685...2179dcF86
0.3 ETH
196519032024-04-14 6:11:2398 days ago1713075083
0x6ba4c685...2179dcF86
0.4744 ETH
196516362024-04-14 5:17:2398 days ago1713071843
0x6ba4c685...2179dcF86
0.22 ETH
196507552024-04-14 2:18:5998 days ago1713061139
0x6ba4c685...2179dcF86
0.1 ETH
196505752024-04-14 1:42:4798 days ago1713058967
0x6ba4c685...2179dcF86
0.34 ETH
196504432024-04-14 1:16:1198 days ago1713057371
0x6ba4c685...2179dcF86
0.3 ETH
196483512024-04-13 18:11:1198 days ago1713031871
0x6ba4c685...2179dcF86
0.04 ETH
196481662024-04-13 17:34:1198 days ago1713029651
0x6ba4c685...2179dcF86
0.35 ETH
196478252024-04-13 16:24:5998 days ago1713025499
0x6ba4c685...2179dcF86
0.04638673 ETH
196475652024-04-13 15:32:5998 days ago1713022379
0x6ba4c685...2179dcF86
0.085 ETH
196475642024-04-13 15:32:4798 days ago1713022367
0x6ba4c685...2179dcF86
0.7 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
EclipsePrivateSale

Compiler Version
v0.8.8+commit.dddeac2f

Optimization Enabled:
Yes with 200 runs

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

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

import "./IAIXRevenueSharing.sol";

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

    IERC20 public AIX;
    IAIXRevenueSharing public AIXRevenueSharing;

    mapping(address => uint256) public accountPower;
    uint256 public totalPower;
    uint256 public minimumAIX;
    address payable public treasury;

    event Bought(
        address indexed buyer,
        uint256 ethAmount,
        uint256 power,
        uint256 newAccountPower,
        uint256 totalPower
    );
    event TreasuryChanged(address indexed newTreasury);
    event MinimumAIXChanged(uint256 newMinimumAIX);

    constructor(
        address _AIX,
        address _AIXRevenueSharing,
        uint256 _minimumAIX,
        address payable _treasury,
        address _newOwner
    ) {
        require(
            (
                _AIX != address(0) &&
                _AIXRevenueSharing != address(0) &&
                _treasury != address(0) &&
                _newOwner != address(0)
            ),
            "Invalid address");
        AIX = IERC20(_AIX);
        AIXRevenueSharing = IAIXRevenueSharing(_AIXRevenueSharing);
        minimumAIX = _minimumAIX;
        treasury = _treasury;
        _transferOwnership(_newOwner);
    }

    function setTreasury(address payable newTreasury) external onlyOwner {
        require(newTreasury != address(0), "Invalid treasury address");
        treasury = newTreasury;
        emit TreasuryChanged(newTreasury);
    }

    function setMinimumAIX(uint256 newMinimumAIX) external onlyOwner {
        minimumAIX = newMinimumAIX;
        emit MinimumAIXChanged(newMinimumAIX);
    }

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

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

    function calculatePower(
        uint256 ethValue,
        uint256 aixBalance,
        uint256 aixStaked
    ) public view returns (uint256 power) {
        require(
            aixBalance + aixStaked >= minimumAIX,
            "Your owned + staked AIX amount is too small to participate in this pre-sale"
        );

        if (aixBalance + aixStaked < 10_000 * 1e18) {
            power = ethValue;
        } else if (aixStaked < 100_000 * 1e18) {
            power = ethValue * 110 / 100; // Boost power by 10%
        } else {  // aixStaked >= 100_000
            power = ethValue * 120 / 100; // Boost power by 20%
        }
    }

    function buy() external payable whenNotPaused nonReentrant {
        require(msg.value > 0, "ETH amount must be greater than 0");

        uint256 aixBalance = AIX.balanceOf(msg.sender);
        uint256 totalStaked = 0;

        uint256[] memory stakeIds = AIXRevenueSharing.getUserStakeIds(msg.sender);
        for (uint256 i = 0; i < stakeIds.length; i++) {
            IAIXRevenueSharing.Stake memory _stake = AIXRevenueSharing.stakes(stakeIds[i]);
            totalStaked += _stake.stakedAmount;
        }

        uint256 power = calculatePower(msg.value, aixBalance, totalStaked);
        uint256 newAccountPower = accountPower[msg.sender] + power;
        accountPower[msg.sender] = newAccountPower;
        totalPower += power;
        treasury.sendValue(msg.value);

        emit Bought({
            buyer: msg.sender,
            ethAmount: msg.value,
            power: power,
            newAccountPower: newAccountPower,
            totalPower: totalPower
        });
    }
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. 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 {
        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 (last updated v4.7.0) (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 Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

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

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

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        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 (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 5 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 6 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

File 7 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

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

File 8 of 8 : IAIXRevenueSharing.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.8;

interface IAIXRevenueSharing {
    struct Stake {
        address user;
        uint256 stakedAmount;
        uint256 boostedStakedAmount;
        uint256 period;
        uint256 unstakeTimestamp;
        uint256 lastRewardPerToken;
        uint256 totalPaidRewards;
    }

    function getUserStakeIds(address account) external view returns (uint256[] memory);
    function stakes(uint256 stakeId) external view returns (Stake memory);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_AIX","type":"address"},{"internalType":"address","name":"_AIXRevenueSharing","type":"address"},{"internalType":"uint256","name":"_minimumAIX","type":"uint256"},{"internalType":"address payable","name":"_treasury","type":"address"},{"internalType":"address","name":"_newOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"ethAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"power","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newAccountPower","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalPower","type":"uint256"}],"name":"Bought","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinimumAIX","type":"uint256"}],"name":"MinimumAIXChanged","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":"newTreasury","type":"address"}],"name":"TreasuryChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"AIX","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"AIXRevenueSharing","outputs":[{"internalType":"contract IAIXRevenueSharing","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"accountPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buy","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"ethValue","type":"uint256"},{"internalType":"uint256","name":"aixBalance","type":"uint256"},{"internalType":"uint256","name":"aixStaked","type":"uint256"}],"name":"calculatePower","outputs":[{"internalType":"uint256","name":"power","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minimumAIX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMinimumAIX","type":"uint256"}],"name":"setMinimumAIX","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newTreasury","type":"address"}],"name":"setTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalPower","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162001103380380620011038339810160408190526200003491620001a2565b6001600055620000443362000137565b6001805460ff60a01b191690556001600160a01b038516158015906200007257506001600160a01b03841615155b80156200008757506001600160a01b03821615155b80156200009c57506001600160a01b03811615155b620000df5760405162461bcd60e51b815260206004820152600f60248201526e496e76616c6964206164647265737360881b604482015260640160405180910390fd5b600280546001600160a01b038088166001600160a01b03199283161790925560038054878416908316179055600685905560078054928516929091169190911790556200012c8162000137565b505050505062000216565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b03811681146200019f57600080fd5b50565b600080600080600060a08688031215620001bb57600080fd5b8551620001c88162000189565b6020870151909550620001db8162000189565b604087015160608801519195509350620001f58162000189565b6080870151909250620002088162000189565b809150509295509295909350565b610edd80620002266000396000f3fe6080604052600436106100f35760003560e01c80639bce807a1161008a578063d320feae11610059578063d320feae14610281578063db3ad22c14610297578063f0f44260146102ad578063f2fde38b146102cd57600080fd5b80639bce807a14610219578063a6f2ae3a14610239578063a97eb65014610241578063c3aa60f61461026157600080fd5b8063715018a6116100c6578063715018a6146101965780638456cb59146101ab5780638da5cb5b146101c05780639624178f146101de57600080fd5b80631fb25277146100f85780633f4ba83a146101355780635c975abb1461014c57806361d027b314610176575b600080fd5b34801561010457600080fd5b50600254610118906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014157600080fd5b5061014a6102ed565b005b34801561015857600080fd5b50600154600160a01b900460ff16604051901515815260200161012c565b34801561018257600080fd5b50600754610118906001600160a01b031681565b3480156101a257600080fd5b5061014a6102ff565b3480156101b757600080fd5b5061014a610311565b3480156101cc57600080fd5b506001546001600160a01b0316610118565b3480156101ea57600080fd5b5061020b6101f9366004610c12565b60046020526000908152604090205481565b60405190815260200161012c565b34801561022557600080fd5b5061014a610234366004610c2f565b610321565b61014a610364565b34801561024d57600080fd5b5061020b61025c366004610c48565b610678565b34801561026d57600080fd5b50600354610118906001600160a01b031681565b34801561028d57600080fd5b5061020b60065481565b3480156102a357600080fd5b5061020b60055481565b3480156102b957600080fd5b5061014a6102c8366004610c12565b610783565b3480156102d957600080fd5b5061014a6102e8366004610c12565b61082b565b6102f56108a4565b6102fd6108fe565b565b6103076108a4565b6102fd6000610953565b6103196108a4565b6102fd6109a5565b6103296108a4565b60068190556040518181527f179a5cd6a6f546acc02b9e864e88dbefd5ebd46fb3d8a2c9991ff13c880f5b699060200160405180910390a150565b61036c6109e8565b610374610a35565b600034116103d35760405162461bcd60e51b815260206004820152602160248201527f45544820616d6f756e74206d7573742062652067726561746572207468616e206044820152600360fc1b60648201526084015b60405180910390fd5b6002546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561041757600080fd5b505afa15801561042b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044f9190610c74565b60035460405163313da78f60e01b815233600482015291925060009182916001600160a01b03169063313da78f9060240160006040518083038186803b15801561049857600080fd5b505afa1580156104ac573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104d49190810190610cd4565b905060005b81518110156105aa5760035482516000916001600160a01b03169063d5a44f869085908590811061050c5761050c610d7a565b60200260200101516040518263ffffffff1660e01b815260040161053291815260200190565b60e06040518083038186803b15801561054a57600080fd5b505afa15801561055e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105829190610d90565b90508060200151846105949190610e33565b93505080806105a290610e4b565b9150506104d9565b5060006105b8348585610678565b33600090815260046020526040812054919250906105d7908390610e33565b336000908152600460205260408120829055600580549293508492909190610600908490610e33565b909155505060075461061b906001600160a01b031634610a8f565b6005546040805134815260208101859052908101839052606081019190915233907f27330bd7589580547b6437e08f9c60653de63691d2d2b2c13bff9ee67da2a68d9060800160405180910390a250505050506102fd6001600055565b6006546000906106888385610e33565b10156107105760405162461bcd60e51b815260206004820152604b60248201527f596f7572206f776e6564202b207374616b65642041495820616d6f756e74206960448201527f7320746f6f20736d616c6c20746f20706172746963697061746520696e20746860648201526a6973207072652d73616c6560a81b608482015260a4016103ca565b69021e19e0c9bab24000006107258385610e33565b101561073257508261077c565b69152d02c7e14af680000082101561076257606461075185606e610e66565b61075b9190610e85565b905061077c565b606461076f856078610e66565b6107799190610e85565b90505b9392505050565b61078b6108a4565b6001600160a01b0381166107e15760405162461bcd60e51b815260206004820152601860248201527f496e76616c69642074726561737572792061646472657373000000000000000060448201526064016103ca565b600780546001600160a01b0319166001600160a01b0383169081179091556040517fc714d22a2f08b695f81e7c707058db484aa5b4d6b4c9fd64beb10fe85832f60890600090a250565b6108336108a4565b6001600160a01b0381166108985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103ca565b6108a181610953565b50565b6001546001600160a01b031633146102fd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103ca565b610906610bad565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6109ad6109e8565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109363390565b600154600160a01b900460ff16156102fd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016103ca565b60026000541415610a885760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103ca565b6002600055565b80471015610adf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016103ca565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610b2c576040519150601f19603f3d011682016040523d82523d6000602084013e610b31565b606091505b5050905080610ba85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016103ca565b505050565b600154600160a01b900460ff166102fd5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016103ca565b6001600160a01b03811681146108a157600080fd5b600060208284031215610c2457600080fd5b813561077c81610bfd565b600060208284031215610c4157600080fd5b5035919050565b600080600060608486031215610c5d57600080fd5b505081359360208301359350604090920135919050565b600060208284031215610c8657600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610ccc57610ccc610c8d565b604052919050565b60006020808385031215610ce757600080fd5b825167ffffffffffffffff80821115610cff57600080fd5b818501915085601f830112610d1357600080fd5b815181811115610d2557610d25610c8d565b8060051b9150610d36848301610ca3565b8181529183018401918481019088841115610d5057600080fd5b938501935b83851015610d6e57845182529385019390850190610d55565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b600060e08284031215610da257600080fd5b60405160e0810181811067ffffffffffffffff82111715610dc557610dc5610c8d565b6040528251610dd381610bfd565b808252506020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c08201528091505092915050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610e4657610e46610e1d565b500190565b6000600019821415610e5f57610e5f610e1d565b5060010190565b6000816000190483118215151615610e8057610e80610e1d565b500290565b600082610ea257634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212202d13191e0a0a436c4fec2eb9428284aff7e534b8be32eb0fd0e7b39fad5c169964736f6c6343000808003300000000000000000000000040e9187078032afe1a30cfcf76e4fe3d7ab5c6c5000000000000000000000000d051ef3dbbea636fa009a0318ac51e9ee2cbc3bd0000000000000000000000000000000000000000000000056bc75e2d631000000000000000000000000000004b629a0bb9c5e3cac2acaddb27cc598dd9049d670000000000000000000000004b629a0bb9c5e3cac2acaddb27cc598dd9049d67

Deployed Bytecode

0x6080604052600436106100f35760003560e01c80639bce807a1161008a578063d320feae11610059578063d320feae14610281578063db3ad22c14610297578063f0f44260146102ad578063f2fde38b146102cd57600080fd5b80639bce807a14610219578063a6f2ae3a14610239578063a97eb65014610241578063c3aa60f61461026157600080fd5b8063715018a6116100c6578063715018a6146101965780638456cb59146101ab5780638da5cb5b146101c05780639624178f146101de57600080fd5b80631fb25277146100f85780633f4ba83a146101355780635c975abb1461014c57806361d027b314610176575b600080fd5b34801561010457600080fd5b50600254610118906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561014157600080fd5b5061014a6102ed565b005b34801561015857600080fd5b50600154600160a01b900460ff16604051901515815260200161012c565b34801561018257600080fd5b50600754610118906001600160a01b031681565b3480156101a257600080fd5b5061014a6102ff565b3480156101b757600080fd5b5061014a610311565b3480156101cc57600080fd5b506001546001600160a01b0316610118565b3480156101ea57600080fd5b5061020b6101f9366004610c12565b60046020526000908152604090205481565b60405190815260200161012c565b34801561022557600080fd5b5061014a610234366004610c2f565b610321565b61014a610364565b34801561024d57600080fd5b5061020b61025c366004610c48565b610678565b34801561026d57600080fd5b50600354610118906001600160a01b031681565b34801561028d57600080fd5b5061020b60065481565b3480156102a357600080fd5b5061020b60055481565b3480156102b957600080fd5b5061014a6102c8366004610c12565b610783565b3480156102d957600080fd5b5061014a6102e8366004610c12565b61082b565b6102f56108a4565b6102fd6108fe565b565b6103076108a4565b6102fd6000610953565b6103196108a4565b6102fd6109a5565b6103296108a4565b60068190556040518181527f179a5cd6a6f546acc02b9e864e88dbefd5ebd46fb3d8a2c9991ff13c880f5b699060200160405180910390a150565b61036c6109e8565b610374610a35565b600034116103d35760405162461bcd60e51b815260206004820152602160248201527f45544820616d6f756e74206d7573742062652067726561746572207468616e206044820152600360fc1b60648201526084015b60405180910390fd5b6002546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561041757600080fd5b505afa15801561042b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061044f9190610c74565b60035460405163313da78f60e01b815233600482015291925060009182916001600160a01b03169063313da78f9060240160006040518083038186803b15801561049857600080fd5b505afa1580156104ac573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526104d49190810190610cd4565b905060005b81518110156105aa5760035482516000916001600160a01b03169063d5a44f869085908590811061050c5761050c610d7a565b60200260200101516040518263ffffffff1660e01b815260040161053291815260200190565b60e06040518083038186803b15801561054a57600080fd5b505afa15801561055e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105829190610d90565b90508060200151846105949190610e33565b93505080806105a290610e4b565b9150506104d9565b5060006105b8348585610678565b33600090815260046020526040812054919250906105d7908390610e33565b336000908152600460205260408120829055600580549293508492909190610600908490610e33565b909155505060075461061b906001600160a01b031634610a8f565b6005546040805134815260208101859052908101839052606081019190915233907f27330bd7589580547b6437e08f9c60653de63691d2d2b2c13bff9ee67da2a68d9060800160405180910390a250505050506102fd6001600055565b6006546000906106888385610e33565b10156107105760405162461bcd60e51b815260206004820152604b60248201527f596f7572206f776e6564202b207374616b65642041495820616d6f756e74206960448201527f7320746f6f20736d616c6c20746f20706172746963697061746520696e20746860648201526a6973207072652d73616c6560a81b608482015260a4016103ca565b69021e19e0c9bab24000006107258385610e33565b101561073257508261077c565b69152d02c7e14af680000082101561076257606461075185606e610e66565b61075b9190610e85565b905061077c565b606461076f856078610e66565b6107799190610e85565b90505b9392505050565b61078b6108a4565b6001600160a01b0381166107e15760405162461bcd60e51b815260206004820152601860248201527f496e76616c69642074726561737572792061646472657373000000000000000060448201526064016103ca565b600780546001600160a01b0319166001600160a01b0383169081179091556040517fc714d22a2f08b695f81e7c707058db484aa5b4d6b4c9fd64beb10fe85832f60890600090a250565b6108336108a4565b6001600160a01b0381166108985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016103ca565b6108a181610953565b50565b6001546001600160a01b031633146102fd5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016103ca565b610906610bad565b6001805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600180546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6109ad6109e8565b6001805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109363390565b600154600160a01b900460ff16156102fd5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016103ca565b60026000541415610a885760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016103ca565b6002600055565b80471015610adf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016103ca565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610b2c576040519150601f19603f3d011682016040523d82523d6000602084013e610b31565b606091505b5050905080610ba85760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016103ca565b505050565b600154600160a01b900460ff166102fd5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016103ca565b6001600160a01b03811681146108a157600080fd5b600060208284031215610c2457600080fd5b813561077c81610bfd565b600060208284031215610c4157600080fd5b5035919050565b600080600060608486031215610c5d57600080fd5b505081359360208301359350604090920135919050565b600060208284031215610c8657600080fd5b5051919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715610ccc57610ccc610c8d565b604052919050565b60006020808385031215610ce757600080fd5b825167ffffffffffffffff80821115610cff57600080fd5b818501915085601f830112610d1357600080fd5b815181811115610d2557610d25610c8d565b8060051b9150610d36848301610ca3565b8181529183018401918481019088841115610d5057600080fd5b938501935b83851015610d6e57845182529385019390850190610d55565b98975050505050505050565b634e487b7160e01b600052603260045260246000fd5b600060e08284031215610da257600080fd5b60405160e0810181811067ffffffffffffffff82111715610dc557610dc5610c8d565b6040528251610dd381610bfd565b808252506020830151602082015260408301516040820152606083015160608201526080830151608082015260a083015160a082015260c083015160c08201528091505092915050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610e4657610e46610e1d565b500190565b6000600019821415610e5f57610e5f610e1d565b5060010190565b6000816000190483118215151615610e8057610e80610e1d565b500290565b600082610ea257634e487b7160e01b600052601260045260246000fd5b50049056fea26469706673582212202d13191e0a0a436c4fec2eb9428284aff7e534b8be32eb0fd0e7b39fad5c169964736f6c63430008080033

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

00000000000000000000000040e9187078032afe1a30cfcf76e4fe3d7ab5c6c5000000000000000000000000d051ef3dbbea636fa009a0318ac51e9ee2cbc3bd0000000000000000000000000000000000000000000000056bc75e2d631000000000000000000000000000004b629a0bb9c5e3cac2acaddb27cc598dd9049d670000000000000000000000004b629a0bb9c5e3cac2acaddb27cc598dd9049d67

-----Decoded View---------------
Arg [0] : _AIX (address): 0x40e9187078032AfE1a30cfcF76E4fe3D7aB5c6C5
Arg [1] : _AIXRevenueSharing (address): 0xd051eF3DBBEA636Fa009A0318ac51e9eE2CBc3bD
Arg [2] : _minimumAIX (uint256): 100000000000000000000
Arg [3] : _treasury (address): 0x4B629A0bb9C5E3cac2AcADdb27cc598DD9049D67
Arg [4] : _newOwner (address): 0x4B629A0bb9C5E3cac2AcADdb27cc598DD9049D67

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 00000000000000000000000040e9187078032afe1a30cfcf76e4fe3d7ab5c6c5
Arg [1] : 000000000000000000000000d051ef3dbbea636fa009a0318ac51e9ee2cbc3bd
Arg [2] : 0000000000000000000000000000000000000000000000056bc75e2d63100000
Arg [3] : 0000000000000000000000004b629a0bb9c5e3cac2acaddb27cc598dd9049d67
Arg [4] : 0000000000000000000000004b629a0bb9c5e3cac2acaddb27cc598dd9049d67


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.