ETH Price: $4,042.58 (+4.72%)

Contract

0xbFB35d10e9C2ADff2F08d2A2ebae880F7006469B

Overview

ETH Balance

Taiko Mainnet  LogoTaiko Mainnet  LogoTaiko Mainnet  Logo0.195883331239475628 ETH

ETH Value

$791.87 (@ $4,042.58/ETH)

Token Holdings

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
5513442024-11-10 19:40:5926 days ago1731267659
0xbFB35d10...F7006469B
0.00034056 ETH
5425362024-11-08 16:47:4728 days ago1731084467
0xbFB35d10...F7006469B
0.0003696 ETH
5070832024-10-31 18:39:3536 days ago1730399975
0xbFB35d10...F7006469B
0.000458 ETH
4784552024-10-22 20:59:3545 days ago1729630775
0xbFB35d10...F7006469B
0.00039072 ETH
4708452024-10-19 13:06:4748 days ago1729343207
0xbFB35d10...F7006469B
0.0004046 ETH
4695092024-10-18 23:45:4748 days ago1729295147
0xbFB35d10...F7006469B
0.0003908 ETH
4693152024-10-18 21:29:2349 days ago1729286963
0xbFB35d10...F7006469B
0.0003966 ETH
4690972024-10-18 18:44:2349 days ago1729277063
0xbFB35d10...F7006469B
0.00050184 ETH
4688902024-10-18 15:47:2349 days ago1729266443
0xbFB35d10...F7006469B
0.000825 ETH
4688052024-10-18 14:30:2349 days ago1729261823
0xbFB35d10...F7006469B
0.0005 ETH
4688042024-10-18 14:29:2349 days ago1729261763
0xbFB35d10...F7006469B
0.00053 ETH
4683552024-10-18 8:20:1149 days ago1729239611
0xbFB35d10...F7006469B
0.00053 ETH
4683252024-10-18 7:49:4749 days ago1729237787
0xbFB35d10...F7006469B
0.0003978 ETH
4677562024-10-18 0:26:5949 days ago1729211219
0xbFB35d10...F7006469B
0.0005704 ETH
4676292024-10-17 23:10:2349 days ago1729206623
0xbFB35d10...F7006469B
0.0004046 ETH
4675312024-10-17 22:13:1150 days ago1729203191
0xbFB35d10...F7006469B
0.00050737 ETH
4675302024-10-17 22:12:1150 days ago1729203131
0xbFB35d10...F7006469B
0.00046944 ETH
4674992024-10-17 21:52:3550 days ago1729201955
0xbFB35d10...F7006469B
0.000504 ETH
4674602024-10-17 21:32:3550 days ago1729200755
0xbFB35d10...F7006469B
0.000402 ETH
4672492024-10-17 19:11:4750 days ago1729192307
0xbFB35d10...F7006469B
0.001125 ETH
4670122024-10-17 16:13:5950 days ago1729181639
0xbFB35d10...F7006469B
0.0003965 ETH
4665612024-10-17 10:10:5950 days ago1729159859
0xbFB35d10...F7006469B
0.0016 ETH
4654222024-10-16 22:10:3551 days ago1729116635
0xbFB35d10...F7006469B
0.0003882 ETH
4653772024-10-16 21:44:4751 days ago1729115087
0xbFB35d10...F7006469B
0.0004002 ETH
4648102024-10-16 15:39:5951 days ago1729093199
0xbFB35d10...F7006469B
0.0005126 ETH
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

Contract Source Code (Solidity Standard Json-Input format)

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;
    mapping(address => uint256) private _swingCuts;
    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 SetPartnerSwingCut(address indexed partnerAddress, uint256 swingCut);
    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 getPartnerSwingCut(address partnerAddress) external view returns (uint256) {
        return _swingCuts[partnerAddress];
    }

    function setPartnerSwingCut(address partnerAddress, uint256 swingCut) external onlyOwner {
        require(swingCut <= BASE / 2, "swingCut too high");
        _swingCuts[partnerAddress] = swingCut;
        emit SetPartnerSwingCut(partnerAddress, swingCut);
    }

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

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

}

File 2 of 6 : IERC20Permit.sol
// 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);
}

File 3 of 6 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

File 4 of 6 : SafeERC20.sol
// 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));
    }
}

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

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

File 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":"partnerAddress","type":"address"},{"indexed":false,"internalType":"uint256","name":"swingCut","type":"uint256"}],"name":"SetPartnerSwingCut","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":"partnerAddress","type":"address"}],"name":"getPartnerSwingCut","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"partnerAddress","type":"address"},{"internalType":"uint256","name":"swingCut","type":"uint256"}],"name":"setPartnerSwingCut","outputs":[],"stateMutability":"nonpayable","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"}]

608060405234801561001057600080fd5b5060405161128238038061128283398101604081905261002f91610054565b600380546001600160a01b0319166001600160a01b0392909216919091179055610084565b60006020828403121561006657600080fd5b81516001600160a01b038116811461007d57600080fd5b9392505050565b6111ef806100936000396000f3fe6080604052600436106100c25760003560e01c80638da5cb5b1161007f578063ac3ce65a11610059578063ac3ce65a1461022d578063b16153071461024d578063ec342ad01461026d578063eedd56e11461028357600080fd5b80638da5cb5b146101c0578063a574de0a146101e0578063a6f9dae11461020d57600080fd5b80630676c1b7146100c7578063576168fc1461010457806361afb61b1461012457806367b8a7d6146101465780637803c2e51461016a5780637b8c4cdf1461018a575b600080fd5b3480156100d357600080fd5b506005546100e7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561011057600080fd5b506004546100e7906001600160a01b031681565b34801561013057600080fd5b5061014461013f366004610edb565b610296565b005b34801561015257600080fd5b5061015c60065481565b6040519081526020016100fb565b34801561017657600080fd5b50610144610185366004610f29565b610416565b34801561019657600080fd5b5061015c6101a5366004610f53565b6001600160a01b031660009081526002602052604090205490565b3480156101cc57600080fd5b506003546100e7906001600160a01b031681565b3480156101ec57600080fd5b506102006101fb366004610f6e565b6104f2565b6040516100fb9190610fbc565b34801561021957600080fd5b50610144610228366004610f53565b6105e2565b34801561023957600080fd5b50610200610248366004611000565b610658565b34801561025957600080fd5b50610144610268366004610edb565b610725565b34801561027957600080fd5b5061015c61271081565b610144610291366004611035565b61088b565b81516000805b8281101561040f5733600090815260208190526040812086519091908790849081106102ca576102ca61107b565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205491508160001415610303576103fd565b336000908152602081905260408120865182908890859081106103285761032861107b565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555061038b848387848151811061036b5761036b61107b565b60200260200101516001600160a01b03166109629092919063ffffffff16565b50836001600160a01b0316336001600160a01b03168683815181106103b2576103b261107b565b60200260200101516001600160a01b03167f0fdfbfe3beb0fbd2f67e9471236264610d92e4b37777806fb082eed9d6400556856040516103f491815260200190565b60405180910390a45b80610407816110a7565b91505061029c565b5050505050565b6003546001600160a01b031633146104495760405162461bcd60e51b8152600401610440906110c2565b60405180910390fd5b61045660026127106110e2565b8111156104995760405162461bcd60e51b81526020600482015260116024820152700e6eed2dcce86eae840e8dede40d0d2ced607b1b6044820152606401610440565b6001600160a01b03821660008181526002602052604090819020839055517fddd3d92b95eae9c47de9578143b92cce49c3ad2db4e9ebb3908d0c8697f90639906104e69084815260200190565b60405180910390a25050565b805160609060008167ffffffffffffffff81111561051257610512610e12565b60405190808252806020026020018201604052801561053b578160200160208202803683370190505b50905060005b828110156105d957600080876001600160a01b03166001600160a01b0316815260200190815260200160002060008683815181106105815761058161107b565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106105bc576105bc61107b565b6020908102919091010152806105d1816110a7565b915050610541565b50949350505050565b6003546001600160a01b0316331461060c5760405162461bcd60e51b8152600401610440906110c2565b600380546001600160a01b0319166001600160a01b03831690811790915560405133907fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c90600090a350565b805160609060008167ffffffffffffffff81111561067857610678610e12565b6040519080825280602002602001820160405280156106a1578160200160208202803683370190505b50905060005b8281101561071d57600160008683815181106106c5576106c561107b565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106107005761070061107b565b602090810291909101015280610715816110a7565b9150506106a7565b509392505050565b6003546001600160a01b0316331461074f5760405162461bcd60e51b8152600401610440906110c2565b81516000805b8281101561040f57600160008683815181106107735761077361107b565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054915081600014156107ac57610879565b6000600160008784815181106107c4576107c461107b565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550610807848387848151811061036b5761036b61107b565b50836001600160a01b0316336001600160a01b031686838151811061082e5761082e61107b565b60200260200101516001600160a01b03167f538974e1df528273e5e78db277fe1811fcf8a78b3d9eaf5c3dac6d3e7fc38e338560405161087091815260200190565b60405180910390a45b80610883816110a7565b915050610755565b6108ac333061089a8587611104565b6001600160a01b0388169291906109de565b6001600160a01b03808216600090815260208181526040808320938816835292905290812080548592906108e1908490611104565b90915550506001600160a01b0384166000908152600160205260408120805484929061090e908490611104565b909155505060408051848152602081018490526001600160a01b0380841692908716917f28a87b6059180e46de5fb9ab35eb043e8fe00ab45afcc7789e3934ecbbcde3ea910160405180910390a350505050565b600081610971575060016109d7565b61097a84610ad6565b156109bf576040516001600160a01b0384169083156108fc029084906000818181858888f193505050501580156109b5573d6000803e3d6000fd5b50600190506109d7565b6109d36001600160a01b0385168484610b10565b5060015b9392505050565b806109e857610ad0565b6109f184610ad6565b15610abb576001600160a01b03831633148015610a0e5750803410155b610a6e5760405162461bcd60e51b815260206004820152602b60248201527f57726f6e6720757365616765206f66204554482e756e6976657273616c54726160448201526a6e7366657246726f6d282960a81b6064820152608401610440565b6001600160a01b0382163014610ab6576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610ab4573d6000803e3d6000fd5b505b610ad0565b610ad06001600160a01b038516848484610b78565b50505050565b60006001600160a01b0382161580610b0a57506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b92915050565b6040516001600160a01b038316602482015260448101829052610b7390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610bb0565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610ad09085906323b872dd60e01b90608401610b3c565b6000610c05826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c859092919063ffffffff16565b9050805160001480610c26575080806020019051810190610c26919061111c565b610b735760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610440565b6060610c948484600085610c9c565b949350505050565b606082471015610cfd5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610440565b600080866001600160a01b03168587604051610d19919061116a565b60006040518083038185875af1925050503d8060008114610d56576040519150601f19603f3d011682016040523d82523d6000602084013e610d5b565b606091505b5091509150610d6c87838387610d77565b979650505050505050565b60608315610de3578251610ddc576001600160a01b0385163b610ddc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610440565b5081610c94565b610c948383815115610df85781518083602001fd5b8060405162461bcd60e51b81526004016104409190611186565b634e487b7160e01b600052604160045260246000fd5b80356001600160a01b0381168114610e3f57600080fd5b919050565b600082601f830112610e5557600080fd5b8135602067ffffffffffffffff80831115610e7257610e72610e12565b8260051b604051601f19603f83011681018181108482111715610e9757610e97610e12565b604052938452858101830193838101925087851115610eb557600080fd5b83870191505b84821015610d6c57610ecc82610e28565b83529183019190830190610ebb565b60008060408385031215610eee57600080fd5b823567ffffffffffffffff811115610f0557600080fd5b610f1185828601610e44565b925050610f2060208401610e28565b90509250929050565b60008060408385031215610f3c57600080fd5b610f4583610e28565b946020939093013593505050565b600060208284031215610f6557600080fd5b6109d782610e28565b60008060408385031215610f8157600080fd5b610f8a83610e28565b9150602083013567ffffffffffffffff811115610fa657600080fd5b610fb285828601610e44565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015610ff457835183529284019291840191600101610fd8565b50909695505050505050565b60006020828403121561101257600080fd5b813567ffffffffffffffff81111561102957600080fd5b610c9484828501610e44565b6000806000806080858703121561104b57600080fd5b61105485610e28565b9350602085013592506040850135915061107060608601610e28565b905092959194509250565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156110bb576110bb611091565b5060010190565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b6000826110ff57634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561111757611117611091565b500190565b60006020828403121561112e57600080fd5b815180151581146109d757600080fd5b60005b83811015611159578181015183820152602001611141565b83811115610ad05750506000910152565b6000825161117c81846020870161113e565b9190910192915050565b60208152600082518060208401526111a581604085016020870161113e565b601f01601f1916919091016040019291505056fea26469706673582212202f585653cc31f1dfed355f9914b5b93ca2521b106df93d695fb2e6d960bd72a364736f6c63430008090033000000000000000000000000e2b6f88dcc3c95f1b0c0682eaa2efa03e1f2d6f7

Deployed Bytecode

0x6080604052600436106100c25760003560e01c80638da5cb5b1161007f578063ac3ce65a11610059578063ac3ce65a1461022d578063b16153071461024d578063ec342ad01461026d578063eedd56e11461028357600080fd5b80638da5cb5b146101c0578063a574de0a146101e0578063a6f9dae11461020d57600080fd5b80630676c1b7146100c7578063576168fc1461010457806361afb61b1461012457806367b8a7d6146101465780637803c2e51461016a5780637b8c4cdf1461018a575b600080fd5b3480156100d357600080fd5b506005546100e7906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561011057600080fd5b506004546100e7906001600160a01b031681565b34801561013057600080fd5b5061014461013f366004610edb565b610296565b005b34801561015257600080fd5b5061015c60065481565b6040519081526020016100fb565b34801561017657600080fd5b50610144610185366004610f29565b610416565b34801561019657600080fd5b5061015c6101a5366004610f53565b6001600160a01b031660009081526002602052604090205490565b3480156101cc57600080fd5b506003546100e7906001600160a01b031681565b3480156101ec57600080fd5b506102006101fb366004610f6e565b6104f2565b6040516100fb9190610fbc565b34801561021957600080fd5b50610144610228366004610f53565b6105e2565b34801561023957600080fd5b50610200610248366004611000565b610658565b34801561025957600080fd5b50610144610268366004610edb565b610725565b34801561027957600080fd5b5061015c61271081565b610144610291366004611035565b61088b565b81516000805b8281101561040f5733600090815260208190526040812086519091908790849081106102ca576102ca61107b565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205491508160001415610303576103fd565b336000908152602081905260408120865182908890859081106103285761032861107b565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000208190555061038b848387848151811061036b5761036b61107b565b60200260200101516001600160a01b03166109629092919063ffffffff16565b50836001600160a01b0316336001600160a01b03168683815181106103b2576103b261107b565b60200260200101516001600160a01b03167f0fdfbfe3beb0fbd2f67e9471236264610d92e4b37777806fb082eed9d6400556856040516103f491815260200190565b60405180910390a45b80610407816110a7565b91505061029c565b5050505050565b6003546001600160a01b031633146104495760405162461bcd60e51b8152600401610440906110c2565b60405180910390fd5b61045660026127106110e2565b8111156104995760405162461bcd60e51b81526020600482015260116024820152700e6eed2dcce86eae840e8dede40d0d2ced607b1b6044820152606401610440565b6001600160a01b03821660008181526002602052604090819020839055517fddd3d92b95eae9c47de9578143b92cce49c3ad2db4e9ebb3908d0c8697f90639906104e69084815260200190565b60405180910390a25050565b805160609060008167ffffffffffffffff81111561051257610512610e12565b60405190808252806020026020018201604052801561053b578160200160208202803683370190505b50905060005b828110156105d957600080876001600160a01b03166001600160a01b0316815260200190815260200160002060008683815181106105815761058161107b565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106105bc576105bc61107b565b6020908102919091010152806105d1816110a7565b915050610541565b50949350505050565b6003546001600160a01b0316331461060c5760405162461bcd60e51b8152600401610440906110c2565b600380546001600160a01b0319166001600160a01b03831690811790915560405133907fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c90600090a350565b805160609060008167ffffffffffffffff81111561067857610678610e12565b6040519080825280602002602001820160405280156106a1578160200160208202803683370190505b50905060005b8281101561071d57600160008683815181106106c5576106c561107b565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106107005761070061107b565b602090810291909101015280610715816110a7565b9150506106a7565b509392505050565b6003546001600160a01b0316331461074f5760405162461bcd60e51b8152600401610440906110c2565b81516000805b8281101561040f57600160008683815181106107735761077361107b565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054915081600014156107ac57610879565b6000600160008784815181106107c4576107c461107b565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550610807848387848151811061036b5761036b61107b565b50836001600160a01b0316336001600160a01b031686838151811061082e5761082e61107b565b60200260200101516001600160a01b03167f538974e1df528273e5e78db277fe1811fcf8a78b3d9eaf5c3dac6d3e7fc38e338560405161087091815260200190565b60405180910390a45b80610883816110a7565b915050610755565b6108ac333061089a8587611104565b6001600160a01b0388169291906109de565b6001600160a01b03808216600090815260208181526040808320938816835292905290812080548592906108e1908490611104565b90915550506001600160a01b0384166000908152600160205260408120805484929061090e908490611104565b909155505060408051848152602081018490526001600160a01b0380841692908716917f28a87b6059180e46de5fb9ab35eb043e8fe00ab45afcc7789e3934ecbbcde3ea910160405180910390a350505050565b600081610971575060016109d7565b61097a84610ad6565b156109bf576040516001600160a01b0384169083156108fc029084906000818181858888f193505050501580156109b5573d6000803e3d6000fd5b50600190506109d7565b6109d36001600160a01b0385168484610b10565b5060015b9392505050565b806109e857610ad0565b6109f184610ad6565b15610abb576001600160a01b03831633148015610a0e5750803410155b610a6e5760405162461bcd60e51b815260206004820152602b60248201527f57726f6e6720757365616765206f66204554482e756e6976657273616c54726160448201526a6e7366657246726f6d282960a81b6064820152608401610440565b6001600160a01b0382163014610ab6576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610ab4573d6000803e3d6000fd5b505b610ad0565b610ad06001600160a01b038516848484610b78565b50505050565b60006001600160a01b0382161580610b0a57506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b92915050565b6040516001600160a01b038316602482015260448101829052610b7390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610bb0565b505050565b6040516001600160a01b0380851660248301528316604482015260648101829052610ad09085906323b872dd60e01b90608401610b3c565b6000610c05826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610c859092919063ffffffff16565b9050805160001480610c26575080806020019051810190610c26919061111c565b610b735760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610440565b6060610c948484600085610c9c565b949350505050565b606082471015610cfd5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610440565b600080866001600160a01b03168587604051610d19919061116a565b60006040518083038185875af1925050503d8060008114610d56576040519150601f19603f3d011682016040523d82523d6000602084013e610d5b565b606091505b5091509150610d6c87838387610d77565b979650505050505050565b60608315610de3578251610ddc576001600160a01b0385163b610ddc5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610440565b5081610c94565b610c948383815115610df85781518083602001fd5b8060405162461bcd60e51b81526004016104409190611186565b634e487b7160e01b600052604160045260246000fd5b80356001600160a01b0381168114610e3f57600080fd5b919050565b600082601f830112610e5557600080fd5b8135602067ffffffffffffffff80831115610e7257610e72610e12565b8260051b604051601f19603f83011681018181108482111715610e9757610e97610e12565b604052938452858101830193838101925087851115610eb557600080fd5b83870191505b84821015610d6c57610ecc82610e28565b83529183019190830190610ebb565b60008060408385031215610eee57600080fd5b823567ffffffffffffffff811115610f0557600080fd5b610f1185828601610e44565b925050610f2060208401610e28565b90509250929050565b60008060408385031215610f3c57600080fd5b610f4583610e28565b946020939093013593505050565b600060208284031215610f6557600080fd5b6109d782610e28565b60008060408385031215610f8157600080fd5b610f8a83610e28565b9150602083013567ffffffffffffffff811115610fa657600080fd5b610fb285828601610e44565b9150509250929050565b6020808252825182820181905260009190848201906040850190845b81811015610ff457835183529284019291840191600101610fd8565b50909695505050505050565b60006020828403121561101257600080fd5b813567ffffffffffffffff81111561102957600080fd5b610c9484828501610e44565b6000806000806080858703121561104b57600080fd5b61105485610e28565b9350602085013592506040850135915061107060608601610e28565b905092959194509250565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006000198214156110bb576110bb611091565b5060010190565b60208082526006908201526510b7bbb732b960d11b604082015260600190565b6000826110ff57634e487b7160e01b600052601260045260246000fd5b500490565b6000821982111561111757611117611091565b500190565b60006020828403121561112e57600080fd5b815180151581146109d757600080fd5b60005b83811015611159578181015183820152602001611141565b83811115610ad05750506000910152565b6000825161117c81846020870161113e565b9190910192915050565b60208152600082518060208401526111a581604085016020870161113e565b601f01601f1916919091016040019291505056fea26469706673582212202f585653cc31f1dfed355f9914b5b93ca2521b106df93d695fb2e6d960bd72a364736f6c63430008090033

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 sequenced

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.