GLMR Price: $0.021324 (-3.59%)

Contract

0x733379a7b44aEaF0786520E26F9334A12E31e487

Overview

GLMR Balance

Moonbeam Chain LogoMoonbeam Chain LogoMoonbeam Chain Logo0 GLMR

GLMR Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Distribute141988152026-01-23 17:14:3023 hrs ago1769188470IN
0x733379a7...12E31e487
0 GLMR0.1861104159.25
Distribute141860472026-01-22 17:14:3047 hrs ago1769102070IN
0x733379a7...12E31e487
0 GLMR0.101300632.25
Distribute141732412026-01-21 17:15:362 days ago1769015736IN
0x733379a7...12E31e487
0 GLMR1.47486807469.53812242
Distribute141604952026-01-20 17:14:303 days ago1768929270IN
0x733379a7...12E31e487
0 GLMR0.1020858832.5
Distribute141477972026-01-19 17:14:304 days ago1768842870IN
0x733379a7...12E31e487
0 GLMR0.1028711532.75
Distribute141350432026-01-18 17:14:365 days ago1768756476IN
0x733379a7...12E31e487
0 GLMR0.101300632.25
Distribute141222222026-01-17 17:14:316 days ago1768670071IN
0x733379a7...12E31e487
0 GLMR0.19631962.5
Distribute141096482026-01-16 17:14:307 days ago1768583670IN
0x733379a7...12E31e487
0 GLMR0.1105930335.20833333
Distribute140968742026-01-15 17:15:008 days ago1768497300IN
0x733379a7...12E31e487
0 GLMR0.101300632.25
Distribute140844142026-01-14 17:14:369 days ago1768410876IN
0x733379a7...12E31e487
0 GLMR0.1008294332.1
Distribute140720152026-01-13 17:14:3010 days ago1768324470IN
0x733379a7...12E31e487
0 GLMR0.1431598545.57628467
Distribute140597112026-01-12 17:14:3011 days ago1768238070IN
0x733379a7...12E31e487
0 GLMR0.1028711532.75
Distribute140473562026-01-11 17:14:3012 days ago1768151670IN
0x733379a7...12E31e487
0 GLMR0.1008294332.1
Distribute140349252026-01-10 17:14:3013 days ago1768065270IN
0x733379a7...12E31e487
0 GLMR0.1008294332.1
Distribute140225722026-01-09 17:14:3014 days ago1767978870IN
0x733379a7...12E31e487
0 GLMR0.1008294332.1
Distribute140101552026-01-08 17:15:0615 days ago1767892506IN
0x733379a7...12E31e487
0 GLMR0.4711656150
Distribute139979922026-01-07 17:14:3016 days ago1767806070IN
0x733379a7...12E31e487
0 GLMR0.101300632.25
Distribute139856512026-01-06 17:14:3617 days ago1767719676IN
0x733379a7...12E31e487
0 GLMR0.105423333.5625
Distribute139733452026-01-05 17:14:4218 days ago1767633282IN
0x733379a7...12E31e487
0 GLMR0.1028711532.75
Distribute139612782026-01-04 17:14:3619 days ago1767546876IN
0x733379a7...12E31e487
0 GLMR0.1028711532.75
Distribute139490352026-01-03 17:14:3020 days ago1767460470IN
0x733379a7...12E31e487
0 GLMR0.1607027351.16122627
Distribute139367502026-01-02 17:14:3621 days ago1767374076IN
0x733379a7...12E31e487
0 GLMR0.1251206439.83333333
Distribute139245202026-01-01 17:14:3022 days ago1767287670IN
0x733379a7...12E31e487
0 GLMR0.1083680834.5
Distribute139124922025-12-31 17:15:0023 days ago1767201300IN
0x733379a7...12E31e487
0 GLMR0.099887131.8
Distribute139002902025-12-30 17:14:3024 days ago1767114870IN
0x733379a7...12E31e487
0 GLMR0.1020858832.5
View all transactions

View more zero value Internal Transactions in Advanced View mode

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PulsarFeeShare

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT

// P1 - P3: OK
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

contract PulsarFeeShare is Ownable {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    address public feeCollector;

    address public treasury;
    address public buyback;
    address public partner;

    uint256 public treasuryFees;
    uint256 public buybackFees;
    uint256 public partnerFees;


    uint256 feeDenominator = 100000;

    constructor(
        address _feeCollector,
        address _treasury,
        uint256 _treasuryFees,
        address _buyback,
        uint256 _buybackFees,
        address _partner,
        uint256 _partnerFees
    ) public {
        feeCollector = _feeCollector;

        treasury = _treasury;
        buyback = _buyback;
        partner = _partner;

        treasuryFees = _treasuryFees;
        buybackFees = _buybackFees;
        partnerFees = _partnerFees;
    }

    function distribute(address[] calldata tokens) payable external {
        uint256 len = tokens.length;
        for (uint256 i = 0; i < len; i++) {
            uint256 balanceToken = IERC20(tokens[i]).balanceOf(feeCollector);

            uint256 treasuryValue = (balanceToken * treasuryFees) / feeDenominator;
            uint256 buybackValue = (balanceToken * buybackFees) / feeDenominator;
            uint256 partnerValue = (balanceToken * partnerFees) / feeDenominator;

            safeTransferFrom(tokens[i], feeCollector, treasury, treasuryValue);
            safeTransferFrom(tokens[i], feeCollector, buyback, buybackValue);
            safeTransferFrom(tokens[i], feeCollector, partner, partnerValue);
            
            
        }
        uint256 balanceEth = msg.value;
        safeTransferETH(treasury, (balanceEth * treasuryFees) / feeDenominator);
        safeTransferETH(buyback, (balanceEth * buybackFees) / feeDenominator);
        safeTransferETH(partner, (balanceEth * partnerFees) / feeDenominator);
    }

    function safeTransferFrom(address token, address from, address to, uint value) internal {
        // bytes4(keccak256(bytes('transferFrom(address,address,uint256)')));
        (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value));
        require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED');
    }

    function safeTransferETH(address to, uint value) internal {
        (bool success,) = to.call{value:value}(new bytes(0));
        require(success, 'TransferHelper: ETH_TRANSFER_FAILED');
    }

    function setFees(
        uint256 _treasuryFees,
        uint256 _buybackFees,
        uint256 _partnerFees
    ) external onlyOwner {
        treasuryFees = _treasuryFees;
        buybackFees = _buybackFees;
        partnerFees = _partnerFees;
    }

    function updateTreasury(address _treasury) external onlyOwner {
        treasury = _treasury;
    }

    function updateBuyback(address _buyback) external onlyOwner {
        buyback = _buyback;
    }

    function updatePartner(address _partner) external onlyOwner {
        partner = _partner;
    }
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/IERC20Permit.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;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
    }

    /**
     * @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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_feeCollector","type":"address"},{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_treasuryFees","type":"uint256"},{"internalType":"address","name":"_buyback","type":"address"},{"internalType":"uint256","name":"_buybackFees","type":"uint256"},{"internalType":"address","name":"_partner","type":"address"},{"internalType":"uint256","name":"_partnerFees","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"buyback","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"buybackFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"distribute","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_treasuryFees","type":"uint256"},{"internalType":"uint256","name":"_buybackFees","type":"uint256"},{"internalType":"uint256","name":"_partnerFees","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_buyback","type":"address"}],"name":"updateBuyback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_partner","type":"address"}],"name":"updatePartner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"updateTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052620186a06008553480156200001857600080fd5b50604051620017eb380380620017eb83398181016040528101906200003e9190620002f5565b6200005e620000526200018460201b60201c565b6200018c60201b60201c565b86600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555085600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600581905550826006819055508060078190555050505050505050620003a8565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620002828262000255565b9050919050565b620002948162000275565b8114620002a057600080fd5b50565b600081519050620002b48162000289565b92915050565b6000819050919050565b620002cf81620002ba565b8114620002db57600080fd5b50565b600081519050620002ef81620002c4565b92915050565b600080600080600080600060e0888a03121562000317576200031662000250565b5b6000620003278a828b01620002a3565b97505060206200033a8a828b01620002a3565b96505060406200034d8a828b01620002de565b9550506060620003608a828b01620002a3565b9450506080620003738a828b01620002de565b93505060a0620003868a828b01620002a3565b92505060c0620003998a828b01620002de565b91505092959891949750929550565b61143380620003b86000396000f3fe6080604052600436106100e85760003560e01c80639a67430f1161008a578063cec10c1111610059578063cec10c111461029f578063d8866e73146102c8578063f2fde38b146102f1578063f8ec69111461031a576100e8565b80639a67430f146101f3578063be10862b1461021e578063c12c4c2314610249578063c415b95c14610274576100e8565b806361d027b3116100c657806361d027b31461015d578063715018a6146101885780637f51bb1f1461019f5780638da5cb5b146101c8576100e8565b80631b9163da146100ed578063401f4663146101185780636138889b14610141575b600080fd5b3480156100f957600080fd5b50610102610345565b60405161010f9190610ce2565b60405180910390f35b34801561012457600080fd5b5061013f600480360381019061013a9190610d65565b61034b565b005b61015b60048036038101906101569190610df7565b610397565b005b34801561016957600080fd5b50610172610728565b60405161017f9190610e53565b60405180910390f35b34801561019457600080fd5b5061019d61074e565b005b3480156101ab57600080fd5b506101c660048036038101906101c19190610d65565b610762565b005b3480156101d457600080fd5b506101dd6107ae565b6040516101ea9190610e53565b60405180910390f35b3480156101ff57600080fd5b506102086107d7565b6040516102159190610ce2565b60405180910390f35b34801561022a57600080fd5b506102336107dd565b6040516102409190610e53565b60405180910390f35b34801561025557600080fd5b5061025e610803565b60405161026b9190610ce2565b60405180910390f35b34801561028057600080fd5b50610289610809565b6040516102969190610e53565b60405180910390f35b3480156102ab57600080fd5b506102c660048036038101906102c19190610e9a565b61082f565b005b3480156102d457600080fd5b506102ef60048036038101906102ea9190610d65565b610851565b005b3480156102fd57600080fd5b5061031860048036038101906103139190610d65565b61089d565b005b34801561032657600080fd5b5061032f610920565b60405161033c9190610e53565b60405180910390f35b60065481565b610353610946565b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600082829050905060005b8181101561064a5760008484838181106103bf576103be610eed565b5b90506020020160208101906103d49190610d65565b73ffffffffffffffffffffffffffffffffffffffff166370a08231600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b815260040161042e9190610e53565b602060405180830381865afa15801561044b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046f9190610f31565b90506000600854600554836104849190610f8d565b61048e9190610ffe565b90506000600854600654846104a39190610f8d565b6104ad9190610ffe565b90506000600854600754856104c29190610f8d565b6104cc9190610ffe565b90506105458888878181106104e4576104e3610eed565b5b90506020020160208101906104f99190610d65565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866109c4565b6105bc88888781811061055b5761055a610eed565b5b90506020020160208101906105709190610d65565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856109c4565b6106338888878181106105d2576105d1610eed565b5b90506020020160208101906105e79190610d65565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846109c4565b5050505080806106429061102f565b9150506103a2565b506000349050610696600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600854600554846106879190610f8d565b6106919190610ffe565b610afd565b6106dc600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600854600654846106cd9190610f8d565b6106d79190610ffe565b610afd565b610722600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600854600754846107139190610f8d565b61071d9190610ffe565b610afd565b50505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610756610946565b6107606000610bfd565b565b61076a610946565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60055481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610837610946565b826005819055508160068190555080600781905550505050565b610859610946565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6108a5610946565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090b906110fa565b60405180910390fd5b61091d81610bfd565b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61094e610cc1565b73ffffffffffffffffffffffffffffffffffffffff1661096c6107ae565b73ffffffffffffffffffffffffffffffffffffffff16146109c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b990611166565b60405180910390fd5b565b6000808573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016109f893929190611186565b6040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610a46919061122e565b6000604051808303816000865af19150503d8060008114610a83576040519150601f19603f3d011682016040523d82523d6000602084013e610a88565b606091505b5091509150818015610ab65750600081511480610ab5575080806020019051810190610ab4919061127d565b5b5b610af5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aec9061131c565b60405180910390fd5b505050505050565b60008273ffffffffffffffffffffffffffffffffffffffff1682600067ffffffffffffffff811115610b3257610b3161133c565b5b6040519080825280601f01601f191660200182016040528015610b645781602001600182028036833780820191505090505b50604051610b72919061122e565b60006040518083038185875af1925050503d8060008114610baf576040519150601f19603f3d011682016040523d82523d6000602084013e610bb4565b606091505b5050905080610bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bef906113dd565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000819050919050565b610cdc81610cc9565b82525050565b6000602082019050610cf76000830184610cd3565b92915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610d3282610d07565b9050919050565b610d4281610d27565b8114610d4d57600080fd5b50565b600081359050610d5f81610d39565b92915050565b600060208284031215610d7b57610d7a610cfd565b5b6000610d8984828501610d50565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610db757610db6610d92565b5b8235905067ffffffffffffffff811115610dd457610dd3610d97565b5b602083019150836020820283011115610df057610def610d9c565b5b9250929050565b60008060208385031215610e0e57610e0d610cfd565b5b600083013567ffffffffffffffff811115610e2c57610e2b610d02565b5b610e3885828601610da1565b92509250509250929050565b610e4d81610d27565b82525050565b6000602082019050610e686000830184610e44565b92915050565b610e7781610cc9565b8114610e8257600080fd5b50565b600081359050610e9481610e6e565b92915050565b600080600060608486031215610eb357610eb2610cfd565b5b6000610ec186828701610e85565b9350506020610ed286828701610e85565b9250506040610ee386828701610e85565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050610f2b81610e6e565b92915050565b600060208284031215610f4757610f46610cfd565b5b6000610f5584828501610f1c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610f9882610cc9565b9150610fa383610cc9565b9250828202610fb181610cc9565b91508282048414831517610fc857610fc7610f5e565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061100982610cc9565b915061101483610cc9565b92508261102457611023610fcf565b5b828204905092915050565b600061103a82610cc9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361106c5761106b610f5e565b5b600182019050919050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006110e4602683611077565b91506110ef82611088565b604082019050919050565b60006020820190508181036000830152611113816110d7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611150602083611077565b915061115b8261111a565b602082019050919050565b6000602082019050818103600083015261117f81611143565b9050919050565b600060608201905061119b6000830186610e44565b6111a86020830185610e44565b6111b56040830184610cd3565b949350505050565b600081519050919050565b600081905092915050565b60005b838110156111f15780820151818401526020810190506111d6565b60008484015250505050565b6000611208826111bd565b61121281856111c8565b93506112228185602086016111d3565b80840191505092915050565b600061123a82846111fd565b915081905092915050565b60008115159050919050565b61125a81611245565b811461126557600080fd5b50565b60008151905061127781611251565b92915050565b60006020828403121561129357611292610cfd565b5b60006112a184828501611268565b91505092915050565b7f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f464160008201527f494c454400000000000000000000000000000000000000000000000000000000602082015250565b6000611306602483611077565b9150611311826112aa565b604082019050919050565b60006020820190508181036000830152611335816112f9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f5472616e7366657248656c7065723a204554485f5452414e534645525f46414960008201527f4c45440000000000000000000000000000000000000000000000000000000000602082015250565b60006113c7602383611077565b91506113d28261136b565b604082019050919050565b600060208201905081810360008301526113f6816113ba565b905091905056fea2646970667358221220386636ce547831f85ca69b4b12d4614bb0c6d8393796f81c4b130586233afe0c64736f6c63430008110033000000000000000000000000dc9e1af9869b8771a9cf3b2d17264019c6aad2c60000000000000000000000003a931d5cf0d99a8fea48e82169c376996a21c6000000000000000000000000000000000000000000000000000000000000009fcc000000000000000000000000a877371d55d65536ef45ceb55f9a90ee6bc9b1c4000000000000000000000000000000000000000000000000000000000000cc300000000000000000000000001d8b6fa722230153be08c4fa4aa4b4c7cd01a95a0000000000000000000000000000000000000000000000000000000000001aa2

Deployed Bytecode

0x6080604052600436106100e85760003560e01c80639a67430f1161008a578063cec10c1111610059578063cec10c111461029f578063d8866e73146102c8578063f2fde38b146102f1578063f8ec69111461031a576100e8565b80639a67430f146101f3578063be10862b1461021e578063c12c4c2314610249578063c415b95c14610274576100e8565b806361d027b3116100c657806361d027b31461015d578063715018a6146101885780637f51bb1f1461019f5780638da5cb5b146101c8576100e8565b80631b9163da146100ed578063401f4663146101185780636138889b14610141575b600080fd5b3480156100f957600080fd5b50610102610345565b60405161010f9190610ce2565b60405180910390f35b34801561012457600080fd5b5061013f600480360381019061013a9190610d65565b61034b565b005b61015b60048036038101906101569190610df7565b610397565b005b34801561016957600080fd5b50610172610728565b60405161017f9190610e53565b60405180910390f35b34801561019457600080fd5b5061019d61074e565b005b3480156101ab57600080fd5b506101c660048036038101906101c19190610d65565b610762565b005b3480156101d457600080fd5b506101dd6107ae565b6040516101ea9190610e53565b60405180910390f35b3480156101ff57600080fd5b506102086107d7565b6040516102159190610ce2565b60405180910390f35b34801561022a57600080fd5b506102336107dd565b6040516102409190610e53565b60405180910390f35b34801561025557600080fd5b5061025e610803565b60405161026b9190610ce2565b60405180910390f35b34801561028057600080fd5b50610289610809565b6040516102969190610e53565b60405180910390f35b3480156102ab57600080fd5b506102c660048036038101906102c19190610e9a565b61082f565b005b3480156102d457600080fd5b506102ef60048036038101906102ea9190610d65565b610851565b005b3480156102fd57600080fd5b5061031860048036038101906103139190610d65565b61089d565b005b34801561032657600080fd5b5061032f610920565b60405161033c9190610e53565b60405180910390f35b60065481565b610353610946565b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600082829050905060005b8181101561064a5760008484838181106103bf576103be610eed565b5b90506020020160208101906103d49190610d65565b73ffffffffffffffffffffffffffffffffffffffff166370a08231600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166040518263ffffffff1660e01b815260040161042e9190610e53565b602060405180830381865afa15801561044b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061046f9190610f31565b90506000600854600554836104849190610f8d565b61048e9190610ffe565b90506000600854600654846104a39190610f8d565b6104ad9190610ffe565b90506000600854600754856104c29190610f8d565b6104cc9190610ffe565b90506105458888878181106104e4576104e3610eed565b5b90506020020160208101906104f99190610d65565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16866109c4565b6105bc88888781811061055b5761055a610eed565b5b90506020020160208101906105709190610d65565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16856109c4565b6106338888878181106105d2576105d1610eed565b5b90506020020160208101906105e79190610d65565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16846109c4565b5050505080806106429061102f565b9150506103a2565b506000349050610696600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600854600554846106879190610f8d565b6106919190610ffe565b610afd565b6106dc600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600854600654846106cd9190610f8d565b6106d79190610ffe565b610afd565b610722600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600854600754846107139190610f8d565b61071d9190610ffe565b610afd565b50505050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610756610946565b6107606000610bfd565b565b61076a610946565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60055481565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610837610946565b826005819055508160068190555080600781905550505050565b610859610946565b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6108a5610946565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090b906110fa565b60405180910390fd5b61091d81610bfd565b50565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61094e610cc1565b73ffffffffffffffffffffffffffffffffffffffff1661096c6107ae565b73ffffffffffffffffffffffffffffffffffffffff16146109c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109b990611166565b60405180910390fd5b565b6000808573ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040516024016109f893929190611186565b6040516020818303038152906040529060e01b6020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610a46919061122e565b6000604051808303816000865af19150503d8060008114610a83576040519150601f19603f3d011682016040523d82523d6000602084013e610a88565b606091505b5091509150818015610ab65750600081511480610ab5575080806020019051810190610ab4919061127d565b5b5b610af5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aec9061131c565b60405180910390fd5b505050505050565b60008273ffffffffffffffffffffffffffffffffffffffff1682600067ffffffffffffffff811115610b3257610b3161133c565b5b6040519080825280601f01601f191660200182016040528015610b645781602001600182028036833780820191505090505b50604051610b72919061122e565b60006040518083038185875af1925050503d8060008114610baf576040519150601f19603f3d011682016040523d82523d6000602084013e610bb4565b606091505b5050905080610bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bef906113dd565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600033905090565b6000819050919050565b610cdc81610cc9565b82525050565b6000602082019050610cf76000830184610cd3565b92915050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000610d3282610d07565b9050919050565b610d4281610d27565b8114610d4d57600080fd5b50565b600081359050610d5f81610d39565b92915050565b600060208284031215610d7b57610d7a610cfd565b5b6000610d8984828501610d50565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610db757610db6610d92565b5b8235905067ffffffffffffffff811115610dd457610dd3610d97565b5b602083019150836020820283011115610df057610def610d9c565b5b9250929050565b60008060208385031215610e0e57610e0d610cfd565b5b600083013567ffffffffffffffff811115610e2c57610e2b610d02565b5b610e3885828601610da1565b92509250509250929050565b610e4d81610d27565b82525050565b6000602082019050610e686000830184610e44565b92915050565b610e7781610cc9565b8114610e8257600080fd5b50565b600081359050610e9481610e6e565b92915050565b600080600060608486031215610eb357610eb2610cfd565b5b6000610ec186828701610e85565b9350506020610ed286828701610e85565b9250506040610ee386828701610e85565b9150509250925092565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050610f2b81610e6e565b92915050565b600060208284031215610f4757610f46610cfd565b5b6000610f5584828501610f1c565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000610f9882610cc9565b9150610fa383610cc9565b9250828202610fb181610cc9565b91508282048414831517610fc857610fc7610f5e565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061100982610cc9565b915061101483610cc9565b92508261102457611023610fcf565b5b828204905092915050565b600061103a82610cc9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361106c5761106b610f5e565b5b600182019050919050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006110e4602683611077565b91506110ef82611088565b604082019050919050565b60006020820190508181036000830152611113816110d7565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611150602083611077565b915061115b8261111a565b602082019050919050565b6000602082019050818103600083015261117f81611143565b9050919050565b600060608201905061119b6000830186610e44565b6111a86020830185610e44565b6111b56040830184610cd3565b949350505050565b600081519050919050565b600081905092915050565b60005b838110156111f15780820151818401526020810190506111d6565b60008484015250505050565b6000611208826111bd565b61121281856111c8565b93506112228185602086016111d3565b80840191505092915050565b600061123a82846111fd565b915081905092915050565b60008115159050919050565b61125a81611245565b811461126557600080fd5b50565b60008151905061127781611251565b92915050565b60006020828403121561129357611292610cfd565b5b60006112a184828501611268565b91505092915050565b7f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f464160008201527f494c454400000000000000000000000000000000000000000000000000000000602082015250565b6000611306602483611077565b9150611311826112aa565b604082019050919050565b60006020820190508181036000830152611335816112f9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f5472616e7366657248656c7065723a204554485f5452414e534645525f46414960008201527f4c45440000000000000000000000000000000000000000000000000000000000602082015250565b60006113c7602383611077565b91506113d28261136b565b604082019050919050565b600060208201905081810360008301526113f6816113ba565b905091905056fea2646970667358221220386636ce547831f85ca69b4b12d4614bb0c6d8393796f81c4b130586233afe0c64736f6c63430008110033

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

000000000000000000000000dc9e1af9869b8771a9cf3b2d17264019c6aad2c60000000000000000000000003a931d5cf0d99a8fea48e82169c376996a21c6000000000000000000000000000000000000000000000000000000000000009fcc000000000000000000000000a877371d55d65536ef45ceb55f9a90ee6bc9b1c4000000000000000000000000000000000000000000000000000000000000cc300000000000000000000000001d8b6fa722230153be08c4fa4aa4b4c7cd01a95a0000000000000000000000000000000000000000000000000000000000001aa2

-----Decoded View---------------
Arg [0] : _feeCollector (address): 0xDC9E1af9869B8771a9cf3b2D17264019c6aAD2c6
Arg [1] : _treasury (address): 0x3a931d5cF0D99A8FEA48E82169C376996a21c600
Arg [2] : _treasuryFees (uint256): 40908
Arg [3] : _buyback (address): 0xa877371D55D65536eF45cEB55f9A90EE6bC9B1c4
Arg [4] : _buybackFees (uint256): 52272
Arg [5] : _partner (address): 0x1d8b6fA722230153BE08C4Fa4Aa4B4c7cd01A95a
Arg [6] : _partnerFees (uint256): 6818

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000dc9e1af9869b8771a9cf3b2d17264019c6aad2c6
Arg [1] : 0000000000000000000000003a931d5cf0d99a8fea48e82169c376996a21c600
Arg [2] : 0000000000000000000000000000000000000000000000000000000000009fcc
Arg [3] : 000000000000000000000000a877371d55d65536ef45ceb55f9a90ee6bc9b1c4
Arg [4] : 000000000000000000000000000000000000000000000000000000000000cc30
Arg [5] : 0000000000000000000000001d8b6fa722230153be08c4fa4aa4b4c7cd01a95a
Arg [6] : 0000000000000000000000000000000000000000000000000000000000001aa2


Block Transaction Gas Used Reward
view all blocks collator

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

Validator Index Block Amount
View All Withdrawals

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

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