POL Price: $0.700851 (-1.49%)
Gas: 32 GWei
 

Overview

POL Balance

Polygon PoS Chain LogoPolygon PoS Chain LogoPolygon PoS Chain Logo5.90431738 POL

POL Value

$4.14 (@ $0.70/POL)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
650628402024-12-04 6:35:064 days ago1733294106
0x29836d3C...A43DBf698
0.05 POL
650039502024-12-02 19:07:405 days ago1733166460
0x29836d3C...A43DBf698
0.109 POL
646588402024-11-24 2:57:5714 days ago1732417077
0x29836d3C...A43DBf698
0.29 POL
638461822024-11-03 19:42:3534 days ago1730662955
0x29836d3C...A43DBf698
0.05 POL
617472092024-09-12 20:14:5086 days ago1726172090
0x29836d3C...A43DBf698
2.685 POL
613678292024-09-03 7:44:3196 days ago1725349471
0x29836d3C...A43DBf698
0.01 POL
613673282024-09-03 7:25:1496 days ago1725348314
0x29836d3C...A43DBf698
0.015 POL
611490062024-08-28 17:11:20101 days ago1724865080
0x29836d3C...A43DBf698
0.116 POL
609567692024-08-23 21:42:43106 days ago1724449363
0x29836d3C...A43DBf698
0.00006 POL
581356572024-06-14 3:28:22177 days ago1718335702
0x29836d3C...A43DBf698
0.0005 POL
575709332024-05-30 15:16:35192 days ago1717082195
0x29836d3C...A43DBf698
0.002 POL
574892982024-05-28 12:39:50194 days ago1716899990
0x29836d3C...A43DBf698
0.02 POL
572528612024-05-22 8:16:31200 days ago1716365791
0x29836d3C...A43DBf698
0.03655 POL
554279052024-04-04 7:49:02248 days ago1712216942
0x29836d3C...A43DBf698
0.0598 POL
552942742024-03-31 16:59:07251 days ago1711904347
0x29836d3C...A43DBf698
0.00040738 POL
543324692024-03-06 12:03:07277 days ago1709726587
0x29836d3C...A43DBf698
0.05 POL
508261982023-12-06 22:26:06367 days ago1701901566
0x29836d3C...A43DBf698
0.5 POL
507365012023-12-04 15:53:38369 days ago1701705218
0x29836d3C...A43DBf698
0.3 POL
507356892023-12-04 15:24:07370 days ago1701703447
0x29836d3C...A43DBf698
0.2 POL
506275572023-12-01 21:25:42372 days ago1701465942
0x29836d3C...A43DBf698
0.1 POL
504472892023-11-27 9:38:17377 days ago1701077897
0x29836d3C...A43DBf698
0.31 POL
504472512023-11-27 9:36:57377 days ago1701077817
0x29836d3C...A43DBf698
0.3 POL
499491902023-11-14 22:04:49389 days ago1699999489
0x29836d3C...A43DBf698
0.5 POL
499491432023-11-14 22:03:09389 days ago1699999389
0x29836d3C...A43DBf698
0.3 POL
499120562023-11-13 23:43:09390 days ago1699918989
0x29836d3C...A43DBf698
1 POL
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FeeCollector

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 6 : FeeCollector.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.9;

import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "../lib/UniversalERC20.sol";

contract FeeCollector {
    using UniversalERC20 for IERC20;

    // Partner -> TokenAddress -> Balance
    mapping(address => mapping(address => uint256)) private _balances;
    // TokenAddress -> Balance
    mapping(address => uint256) private _swingBalances;
    address public owner;
    address public partnerAddress;
    address public protocolAddress;
    uint256 public partnerShare;
    uint256 public constant BASE = 10000;

    /// Events ///
    event FeesCollected(address indexed _token, address indexed _partner, uint256 _partnerFee, uint256 _swingFee);
    event FeesWithdrawn(address indexed _token, address indexed _partner, address indexed _to, uint256 _amount);
    event SwingFeesWithdrawn(address indexed _token, address indexed _owner, address indexed _to, uint256 _amount);
    event OwnerChanged(address indexed previousOwner, address indexed newOwner);

    constructor (address _owner) public {
        owner = _owner;
    }

    /// @notice Collects fees for the partner
    /// @param tokenAddress address of the token to collect fees for
    /// @param partnerFee amount of fees to collect going to the partner
    /// @param swingFee amount of fees to collect going to swing
    /// @param partnerAddress address of the partner
    function collectTokenFees(
        address tokenAddress,
        uint256 partnerFee,
        uint256 swingFee,
        address partnerAddress
    ) external payable {
        IERC20(tokenAddress).universalTransferFrom(msg.sender, address(this), partnerFee + swingFee);
        _balances[partnerAddress][tokenAddress] += partnerFee;
        _swingBalances[tokenAddress] += swingFee;
        emit FeesCollected(tokenAddress, partnerAddress, partnerFee, swingFee);
    }

    function withdrawPartnerFees(address[] memory tokenAddresses, address receiver) external {
        uint256 length = tokenAddresses.length;
        uint256 balance;
        for (uint256 i = 0; i < length; i++) {
            balance = _balances[msg.sender][tokenAddresses[i]];
            if (balance == 0) {
                continue;
            }
            _balances[msg.sender][tokenAddresses[i]] = 0;
            IERC20(tokenAddresses[i]).universalTransfer(receiver, balance);
            emit FeesWithdrawn(tokenAddresses[i], msg.sender, receiver, balance);
        }
    }

    function withdrawSwingFees(address[] memory tokenAddresses, address receiver) external onlyOwner {
        uint256 length = tokenAddresses.length;
        uint256 balance;
        for (uint256 i = 0; i < length; i++) {
            balance = _swingBalances[tokenAddresses[i]];
            if (balance == 0) {
                continue;
            }
            _swingBalances[tokenAddresses[i]] = 0;
            IERC20(tokenAddresses[i]).universalTransfer(receiver, balance);
            emit SwingFeesWithdrawn(tokenAddresses[i], msg.sender, receiver, balance);
        }
    }

    function getTokenBalance(address partnerAddress, address[] memory tokenAddresses) external view returns (uint256[] memory) {
        uint256 length = tokenAddresses.length;
        uint256[] memory partnerBalances = new uint[](length);
        for (uint256 i = 0; i < length; i++) {
            partnerBalances[i] = _balances[partnerAddress][tokenAddresses[i]];
        }
        return partnerBalances;
    }

    function getSwingTokenBalance(address[] memory tokenAddresses) external view returns (uint256[] memory) {
        uint256 length = tokenAddresses.length;
        uint256[] memory swingBalances = new uint[](length);
        for (uint256 i = 0; i < length; i++) {
            swingBalances[i] = _swingBalances[tokenAddresses[i]];
        }
        return swingBalances;
    }

    function changeOwner(address _newOwner) external onlyOwner {
        owner = _newOwner;
        emit OwnerChanged(msg.sender, owner);
    }

    modifier onlyOwner() {
        require(msg.sender == owner, "!owner");
        _;
    }

}

File 2 of 6 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-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.
 */
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].
     */
    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);
}

File 3 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.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 4 of 6 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

    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");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 5 of 6 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

library UniversalERC20 {

    using SafeERC20 for IERC20;

    address private constant ZERO_ADDRESS = address(0x0000000000000000000000000000000000000000);
    address private constant ETH_ADDRESS = address(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);

    function universalTransfer(
        IERC20 token,
        address to,
        uint256 amount
    )
        internal
        returns (bool)
    {
        if (amount == 0) {
            return true;
        }
        if (isETH(token)) {
            payable(to).transfer(amount);
            return true;
        } else {
            token.safeTransfer(to, amount);
            return true;
        }
    }

    function universalTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 amount
    )
        internal
    {
        if (amount == 0) {
            return;
        }

        if (isETH(token)) {
            require(from == msg.sender && msg.value >= amount, "Wrong useage of ETH.universalTransferFrom()");
            if (to != address(this)) {
                payable(to).transfer(amount);
            }
            // commented following lines for passing celer fee properly.
//            if (msg.value > amount) {
//                payable(msg.sender).transfer(msg.value - amount);
//            }
        } else {
            token.safeTransferFrom(from, to, amount);
        }
    }

    function universalTransferFromSenderToThis(
        IERC20 token,
        uint256 amount
    )
        internal
    {
        if (amount == 0) {
            return;
        }

        if (isETH(token)) {
            if (msg.value > amount) {
                // Return remainder if exist
                payable(msg.sender).transfer(msg.value - amount);
            }
        } else {
            token.safeTransferFrom(msg.sender, address(this), amount);
        }
    }

    function universalApprove(
        IERC20 token,
        address to,
        uint256 amount
    )
        internal
    {
        if (!isETH(token)) {
            if (amount == 0) {
                token.safeApprove(to, 0);
                return;
            }

            uint256 approvedAmount = token.allowance(address(this), to);
            if (approvedAmount > 0) {
                token.safeApprove(to, 0);
            }
            token.safeApprove(to, amount);
        }
    }

    function universalBalanceOf(IERC20 token, address who) internal view returns (uint256) {
        if (isETH(token)) {
            return who.balance;
        } else {
            return token.balanceOf(who);
        }
    }

    function isETH(IERC20 token) internal pure returns(bool) {
        return (address(token) == address(ZERO_ADDRESS) || address(token) == address(ETH_ADDRESS));
    }

    // function notExist(IERC20 token) internal pure returns(bool) {
    //     return (address(token) == address(-1));
    // }
}

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":"_owner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":true,"internalType":"address","name":"_partner","type":"address"},{"indexed":false,"internalType":"uint256","name":"_partnerFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_swingFee","type":"uint256"}],"name":"FeesCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":true,"internalType":"address","name":"_partner","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"FeesWithdrawn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_token","type":"address"},{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"SwingFeesWithdrawn","type":"event"},{"inputs":[],"name":"BASE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"partnerFee","type":"uint256"},{"internalType":"uint256","name":"swingFee","type":"uint256"},{"internalType":"address","name":"partnerAddress","type":"address"}],"name":"collectTokenFees","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenAddresses","type":"address[]"}],"name":"getSwingTokenBalance","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"partnerAddress","type":"address"},{"internalType":"address[]","name":"tokenAddresses","type":"address[]"}],"name":"getTokenBalance","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":"partnerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"partnerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"protocolAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenAddresses","type":"address[]"},{"internalType":"address","name":"receiver","type":"address"}],"name":"withdrawPartnerFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokenAddresses","type":"address[]"},{"internalType":"address","name":"receiver","type":"address"}],"name":"withdrawSwingFees","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b506040516110f23803806110f283398101604081905261002f91610054565b600280546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b61105f806100936000396000f3fe60806040526004361061009c5760003560e01c8063a574de0a11610064578063a574de0a14610164578063a6f9dae114610191578063ac3ce65a146101b1578063b1615307146101d1578063ec342ad0146101f1578063eedd56e11461020757600080fd5b80630676c1b7146100a1578063576168fc146100de57806361afb61b146100fe57806367b8a7d6146101205780638da5cb5b14610144575b600080fd5b3480156100ad57600080fd5b506004546100c1906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100ea57600080fd5b506003546100c1906001600160a01b031681565b34801561010a57600080fd5b5061011e610119366004610db7565b61021a565b005b34801561012c57600080fd5b5061013660055481565b6040519081526020016100d5565b34801561015057600080fd5b506002546100c1906001600160a01b031681565b34801561017057600080fd5b5061018461017f366004610e05565b61039a565b6040516100d59190610e53565b34801561019d57600080fd5b5061011e6101ac366004610e97565b61048a565b3480156101bd57600080fd5b506101846101cc366004610eb2565b61051e565b3480156101dd57600080fd5b5061011e6101ec366004610db7565b6105eb565b3480156101fd57600080fd5b5061013661271081565b61011e610215366004610ee7565b61076a565b81516000805b8281101561039357336000908152602081905260408120865190919087908490811061024e5761024e610f2d565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020549150816000141561028757610381565b336000908152602081905260408120865182908890859081106102ac576102ac610f2d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555061030f84838784815181106102ef576102ef610f2d565b60200260200101516001600160a01b03166108419092919063ffffffff16565b50836001600160a01b0316336001600160a01b031686838151811061033657610336610f2d565b60200260200101516001600160a01b03167f0fdfbfe3beb0fbd2f67e9471236264610d92e4b37777806fb082eed9d64005568560405161037891815260200190565b60405180910390a45b8061038b81610f59565b915050610220565b5050505050565b805160609060008167ffffffffffffffff8111156103ba576103ba610cee565b6040519080825280602002602001820160405280156103e3578160200160208202803683370190505b50905060005b8281101561048157600080876001600160a01b03166001600160a01b03168152602001908152602001600020600086838151811061042957610429610f2d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061046457610464610f2d565b60209081029190910101528061047981610f59565b9150506103e9565b50949350505050565b6002546001600160a01b031633146104d25760405162461bcd60e51b815260206004820152600660248201526510b7bbb732b960d11b60448201526064015b60405180910390fd5b600280546001600160a01b0319166001600160a01b03831690811790915560405133907fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c90600090a350565b805160609060008167ffffffffffffffff81111561053e5761053e610cee565b604051908082528060200260200182016040528015610567578160200160208202803683370190505b50905060005b828110156105e3576001600086838151811061058b5761058b610f2d565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106105c6576105c6610f2d565b6020908102919091010152806105db81610f59565b91505061056d565b509392505050565b6002546001600160a01b0316331461062e5760405162461bcd60e51b815260206004820152600660248201526510b7bbb732b960d11b60448201526064016104c9565b81516000805b82811015610393576001600086838151811061065257610652610f2d565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020549150816000141561068b57610758565b6000600160008784815181106106a3576106a3610f2d565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055506106e684838784815181106102ef576102ef610f2d565b50836001600160a01b0316336001600160a01b031686838151811061070d5761070d610f2d565b60200260200101516001600160a01b03167f538974e1df528273e5e78db277fe1811fcf8a78b3d9eaf5c3dac6d3e7fc38e338560405161074f91815260200190565b60405180910390a45b8061076281610f59565b915050610634565b61078b33306107798587610f74565b6001600160a01b0388169291906108bd565b6001600160a01b03808216600090815260208181526040808320938816835292905290812080548592906107c0908490610f74565b90915550506001600160a01b038416600090815260016020526040812080548492906107ed908490610f74565b909155505060408051848152602081018490526001600160a01b0380841692908716917f28a87b6059180e46de5fb9ab35eb043e8fe00ab45afcc7789e3934ecbbcde3ea910160405180910390a350505050565b600081610850575060016108b6565b610859846109b5565b1561089e576040516001600160a01b0384169083156108fc029084906000818181858888f19350505050158015610894573d6000803e3d6000fd5b50600190506108b6565b6108b26001600160a01b03851684846109ef565b5060015b9392505050565b806108c7576109af565b6108d0846109b5565b1561099a576001600160a01b038316331480156108ed5750803410155b61094d5760405162461bcd60e51b815260206004820152602b60248201527f57726f6e6720757365616765206f66204554482e756e6976657273616c54726160448201526a6e7366657246726f6d282960a81b60648201526084016104c9565b6001600160a01b0382163014610995576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610993573d6000803e3d6000fd5b505b6109af565b6109af6001600160a01b038516848484610a57565b50505050565b60006001600160a01b03821615806109e957506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b92915050565b6040516001600160a01b038316602482015260448101829052610a5290849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610a8f565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526109af9085906323b872dd60e01b90608401610a1b565b6000610ae4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b619092919063ffffffff16565b805190915015610a525780806020019051810190610b029190610f8c565b610a525760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104c9565b6060610b708484600085610b78565b949350505050565b606082471015610bd95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104c9565b600080866001600160a01b03168587604051610bf59190610fda565b60006040518083038185875af1925050503d8060008114610c32576040519150601f19603f3d011682016040523d82523d6000602084013e610c37565b606091505b5091509150610c4887838387610c53565b979650505050505050565b60608315610cbf578251610cb8576001600160a01b0385163b610cb85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104c9565b5081610b70565b610b708383815115610cd45781518083602001fd5b8060405162461bcd60e51b81526004016104c99190610ff6565b634e487b7160e01b600052604160045260246000fd5b80356001600160a01b0381168114610d1b57600080fd5b919050565b600082601f830112610d3157600080fd5b8135602067ffffffffffffffff80831115610d4e57610d4e610cee565b8260051b604051601f19603f83011681018181108482111715610d7357610d73610cee565b604052938452858101830193838101925087851115610d9157600080fd5b83870191505b84821015610c4857610da882610d04565b83529183019190830190610d97565b60008060408385031215610dca57600080fd5b823567ffffffffffffffff811115610de157600080fd5b610ded85828601610d20565b925050610dfc60208401610d04565b90509250929050565b60008060408385031215610e1857600080fd5b610e2183610d04565b9150602083013567ffffffffffffffff811115610e3d57600080fd5b610e4985828601610d20565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015610e8b57835183529284019291840191600101610e6f565b50909695505050505050565b600060208284031215610ea957600080fd5b6108b682610d04565b600060208284031215610ec457600080fd5b813567ffffffffffffffff811115610edb57600080fd5b610b7084828501610d20565b60008060008060808587031215610efd57600080fd5b610f0685610d04565b93506020850135925060408501359150610f2260608601610d04565b905092959194509250565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415610f6d57610f6d610f43565b5060010190565b60008219821115610f8757610f87610f43565b500190565b600060208284031215610f9e57600080fd5b815180151581146108b657600080fd5b60005b83811015610fc9578181015183820152602001610fb1565b838111156109af5750506000910152565b60008251610fec818460208701610fae565b9190910192915050565b6020815260008251806020840152611015816040850160208701610fae565b601f01601f1916919091016040019291505056fea2646970667358221220b457615f78a55c8352aa99d260187edd422bc754e329d2ef13e77fd4691fc32164736f6c63430008090033000000000000000000000000e2b6f88dcc3c95f1b0c0682eaa2efa03e1f2d6f7

Deployed Bytecode

0x60806040526004361061009c5760003560e01c8063a574de0a11610064578063a574de0a14610164578063a6f9dae114610191578063ac3ce65a146101b1578063b1615307146101d1578063ec342ad0146101f1578063eedd56e11461020757600080fd5b80630676c1b7146100a1578063576168fc146100de57806361afb61b146100fe57806367b8a7d6146101205780638da5cb5b14610144575b600080fd5b3480156100ad57600080fd5b506004546100c1906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100ea57600080fd5b506003546100c1906001600160a01b031681565b34801561010a57600080fd5b5061011e610119366004610db7565b61021a565b005b34801561012c57600080fd5b5061013660055481565b6040519081526020016100d5565b34801561015057600080fd5b506002546100c1906001600160a01b031681565b34801561017057600080fd5b5061018461017f366004610e05565b61039a565b6040516100d59190610e53565b34801561019d57600080fd5b5061011e6101ac366004610e97565b61048a565b3480156101bd57600080fd5b506101846101cc366004610eb2565b61051e565b3480156101dd57600080fd5b5061011e6101ec366004610db7565b6105eb565b3480156101fd57600080fd5b5061013661271081565b61011e610215366004610ee7565b61076a565b81516000805b8281101561039357336000908152602081905260408120865190919087908490811061024e5761024e610f2d565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020549150816000141561028757610381565b336000908152602081905260408120865182908890859081106102ac576102ac610f2d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555061030f84838784815181106102ef576102ef610f2d565b60200260200101516001600160a01b03166108419092919063ffffffff16565b50836001600160a01b0316336001600160a01b031686838151811061033657610336610f2d565b60200260200101516001600160a01b03167f0fdfbfe3beb0fbd2f67e9471236264610d92e4b37777806fb082eed9d64005568560405161037891815260200190565b60405180910390a45b8061038b81610f59565b915050610220565b5050505050565b805160609060008167ffffffffffffffff8111156103ba576103ba610cee565b6040519080825280602002602001820160405280156103e3578160200160208202803683370190505b50905060005b8281101561048157600080876001600160a01b03166001600160a01b03168152602001908152602001600020600086838151811061042957610429610f2d565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061046457610464610f2d565b60209081029190910101528061047981610f59565b9150506103e9565b50949350505050565b6002546001600160a01b031633146104d25760405162461bcd60e51b815260206004820152600660248201526510b7bbb732b960d11b60448201526064015b60405180910390fd5b600280546001600160a01b0319166001600160a01b03831690811790915560405133907fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c90600090a350565b805160609060008167ffffffffffffffff81111561053e5761053e610cee565b604051908082528060200260200182016040528015610567578160200160208202803683370190505b50905060005b828110156105e3576001600086838151811061058b5761058b610f2d565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106105c6576105c6610f2d565b6020908102919091010152806105db81610f59565b91505061056d565b509392505050565b6002546001600160a01b0316331461062e5760405162461bcd60e51b815260206004820152600660248201526510b7bbb732b960d11b60448201526064016104c9565b81516000805b82811015610393576001600086838151811061065257610652610f2d565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020549150816000141561068b57610758565b6000600160008784815181106106a3576106a3610f2d565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055506106e684838784815181106102ef576102ef610f2d565b50836001600160a01b0316336001600160a01b031686838151811061070d5761070d610f2d565b60200260200101516001600160a01b03167f538974e1df528273e5e78db277fe1811fcf8a78b3d9eaf5c3dac6d3e7fc38e338560405161074f91815260200190565b60405180910390a45b8061076281610f59565b915050610634565b61078b33306107798587610f74565b6001600160a01b0388169291906108bd565b6001600160a01b03808216600090815260208181526040808320938816835292905290812080548592906107c0908490610f74565b90915550506001600160a01b038416600090815260016020526040812080548492906107ed908490610f74565b909155505060408051848152602081018490526001600160a01b0380841692908716917f28a87b6059180e46de5fb9ab35eb043e8fe00ab45afcc7789e3934ecbbcde3ea910160405180910390a350505050565b600081610850575060016108b6565b610859846109b5565b1561089e576040516001600160a01b0384169083156108fc029084906000818181858888f19350505050158015610894573d6000803e3d6000fd5b50600190506108b6565b6108b26001600160a01b03851684846109ef565b5060015b9392505050565b806108c7576109af565b6108d0846109b5565b1561099a576001600160a01b038316331480156108ed5750803410155b61094d5760405162461bcd60e51b815260206004820152602b60248201527f57726f6e6720757365616765206f66204554482e756e6976657273616c54726160448201526a6e7366657246726f6d282960a81b60648201526084016104c9565b6001600160a01b0382163014610995576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610993573d6000803e3d6000fd5b505b6109af565b6109af6001600160a01b038516848484610a57565b50505050565b60006001600160a01b03821615806109e957506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b92915050565b6040516001600160a01b038316602482015260448101829052610a5290849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610a8f565b505050565b6040516001600160a01b03808516602483015283166044820152606481018290526109af9085906323b872dd60e01b90608401610a1b565b6000610ae4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b619092919063ffffffff16565b805190915015610a525780806020019051810190610b029190610f8c565b610a525760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104c9565b6060610b708484600085610b78565b949350505050565b606082471015610bd95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104c9565b600080866001600160a01b03168587604051610bf59190610fda565b60006040518083038185875af1925050503d8060008114610c32576040519150601f19603f3d011682016040523d82523d6000602084013e610c37565b606091505b5091509150610c4887838387610c53565b979650505050505050565b60608315610cbf578251610cb8576001600160a01b0385163b610cb85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104c9565b5081610b70565b610b708383815115610cd45781518083602001fd5b8060405162461bcd60e51b81526004016104c99190610ff6565b634e487b7160e01b600052604160045260246000fd5b80356001600160a01b0381168114610d1b57600080fd5b919050565b600082601f830112610d3157600080fd5b8135602067ffffffffffffffff80831115610d4e57610d4e610cee565b8260051b604051601f19603f83011681018181108482111715610d7357610d73610cee565b604052938452858101830193838101925087851115610d9157600080fd5b83870191505b84821015610c4857610da882610d04565b83529183019190830190610d97565b60008060408385031215610dca57600080fd5b823567ffffffffffffffff811115610de157600080fd5b610ded85828601610d20565b925050610dfc60208401610d04565b90509250929050565b60008060408385031215610e1857600080fd5b610e2183610d04565b9150602083013567ffffffffffffffff811115610e3d57600080fd5b610e4985828601610d20565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015610e8b57835183529284019291840191600101610e6f565b50909695505050505050565b600060208284031215610ea957600080fd5b6108b682610d04565b600060208284031215610ec457600080fd5b813567ffffffffffffffff811115610edb57600080fd5b610b7084828501610d20565b60008060008060808587031215610efd57600080fd5b610f0685610d04565b93506020850135925060408501359150610f2260608601610d04565b905092959194509250565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415610f6d57610f6d610f43565b5060010190565b60008219821115610f8757610f87610f43565b500190565b600060208284031215610f9e57600080fd5b815180151581146108b657600080fd5b60005b83811015610fc9578181015183820152602001610fb1565b838111156109af5750506000910152565b60008251610fec818460208701610fae565b9190910192915050565b6020815260008251806020840152611015816040850160208701610fae565b601f01601f1916919091016040019291505056fea2646970667358221220b457615f78a55c8352aa99d260187edd422bc754e329d2ef13e77fd4691fc32164736f6c63430008090033

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

000000000000000000000000e2b6f88dcc3c95f1b0c0682eaa2efa03e1f2d6f7

-----Decoded View---------------
Arg [0] : _owner (address): 0xE2B6F88dcC3c95f1b0C0682Eaa2EFa03E1F2D6f7

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000e2b6f88dcc3c95f1b0c0682eaa2efa03e1f2d6f7


Block Transaction 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
[ 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.