Overview
ETH Balance
4.739829041524026125 ETH
Eth Value
$16,596.57 (@ $3,501.51/ETH)Token Holdings
More Info
Private Name Tags
ContractCreator
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21474595 | 11 hrs ago | 0.0017 ETH | ||||
21474526 | 11 hrs ago | 0.0038 ETH | ||||
21474500 | 11 hrs ago | 0.0065 ETH | ||||
21473986 | 13 hrs ago | 0.0055 ETH | ||||
21473960 | 13 hrs ago | 0.0055 ETH | ||||
21473107 | 16 hrs ago | 0.000054 ETH | ||||
21469586 | 28 hrs ago | 0.000258 ETH | ||||
21469253 | 29 hrs ago | 0.00563 ETH | ||||
21469222 | 29 hrs ago | 0.0058 ETH | ||||
21465001 | 43 hrs ago | 0.003 ETH | ||||
21463909 | 47 hrs ago | 0.00045 ETH | ||||
21463893 | 47 hrs ago | 0.0004 ETH | ||||
21463887 | 47 hrs ago | 0.0009 ETH | ||||
21463882 | 47 hrs ago | 0.0009 ETH | ||||
21463876 | 47 hrs ago | 0.0009 ETH | ||||
21463869 | 47 hrs ago | 0.0009 ETH | ||||
21457396 | 2 days ago | 0.00045 ETH | ||||
21456454 | 3 days ago | 0.0027 ETH | ||||
21456387 | 3 days ago | 0.0026 ETH | ||||
21454641 | 3 days ago | 0.0003009 ETH | ||||
21454147 | 3 days ago | 0.0005 ETH | ||||
21454045 | 3 days ago | 0.00754 ETH | ||||
21450246 | 3 days ago | 0.0021 ETH | ||||
21450236 | 3 days ago | 0.002 ETH | ||||
21450229 | 3 days ago | 0.002 ETH |
Loading...
Loading
Contract Name:
FeeCollector
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 50 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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"); _; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (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. */ 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT 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)); // } }
{ "optimizer": { "enabled": true, "runs": 50, "details": { "yul": false } }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200149838038062001498833981016040819052620000349162000094565b600380546001600160a01b0319166001600160a01b0392909216919091179055620000c1565b60006001600160a01b0382165b92915050565b62000078816200005a565b81146200008457600080fd5b50565b805162000067816200006d565b600060208284031215620000ab57620000ab600080fd5b6000620000b9848462000087565b949350505050565b6113c780620000d16000396000f3fe6080604052600436106100a25760003560e01c80630676c1b7146100a7578063576168fc146100dd57806361afb61b146100fd57806367b8a7d61461011f5780637803c2e5146101425780637b8c4cdf146101625780638da5cb5b14610198578063a574de0a146101b8578063a6f9dae1146101e5578063ac3ce65a14610205578063b161530714610225578063ec342ad014610245578063eedd56e11461025b575b600080fd5b3480156100b357600080fd5b506005546100c7906001600160a01b031681565b6040516100d49190610ccb565b60405180910390f35b3480156100e957600080fd5b506004546100c7906001600160a01b031681565b34801561010957600080fd5b5061011d610118366004610e0b565b61026e565b005b34801561012b57600080fd5b5061013560065481565b6040516100d49190610e67565b34801561014e57600080fd5b5061011d61015d366004610e86565b6103ec565b34801561016e57600080fd5b5061013561017d366004610eb9565b6001600160a01b031660009081526002602052604090205490565b3480156101a457600080fd5b506003546100c7906001600160a01b031681565b3480156101c457600080fd5b506101d86101d3366004610eda565b6104a2565b6040516100d49190610f84565b3480156101f157600080fd5b5061011d610200366004610eb9565b610593565b34801561021157600080fd5b506101d8610220366004610f95565b610609565b34801561023157600080fd5b5061011d610240366004610e0b565b6106d5565b34801561025157600080fd5b5061013561271081565b61011d610269366004610fcf565b610839565b81516000805b828110156103e55733600090815260208190526040812086519091908790849081106102a2576102a2611033565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054915081600014156102db576103d3565b3360009081526020819052604081208651829088908590811061030057610300611033565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550610363848387848151811061034357610343611033565b60200260200101516001600160a01b03166109169092919063ffffffff16565b50836001600160a01b0316336001600160a01b031686838151811061038a5761038a611033565b60200260200101516001600160a01b03167f0fdfbfe3beb0fbd2f67e9471236264610d92e4b37777806fb082eed9d6400556856040516103ca9190610e67565b60405180910390a45b806103dd8161105f565b915050610274565b5050505050565b6003546001600160a01b0316331461041f5760405162461bcd60e51b81526004016104169061109a565b60405180910390fd5b61042c60026127106110c0565b81111561044b5760405162461bcd60e51b8152600401610416906110fc565b6001600160a01b03821660008181526002602052604090819020839055517fddd3d92b95eae9c47de9578143b92cce49c3ad2db4e9ebb3908d0c8697f9063990610496908490610e67565b60405180910390a25050565b80516060906000816001600160401b038111156104c1576104c1610ce3565b6040519080825280602002602001820160405280156104ea578160200160208202803683370190505b50905060005b8281101561058857600080876001600160a01b03166001600160a01b03168152602001908152602001600020600086838151811061053057610530611033565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061056b5761056b611033565b6020908102919091010152806105808161105f565b9150506104f0565b509150505b92915050565b6003546001600160a01b031633146105bd5760405162461bcd60e51b81526004016104169061109a565b600380546001600160a01b0319166001600160a01b03831690811790915560405133907fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c90600090a350565b80516060906000816001600160401b0381111561062857610628610ce3565b604051908082528060200260200182016040528015610651578160200160208202803683370190505b50905060005b828110156106cd576001600086838151811061067557610675611033565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106106b0576106b0611033565b6020908102919091010152806106c58161105f565b915050610657565b509392505050565b6003546001600160a01b031633146106ff5760405162461bcd60e51b81526004016104169061109a565b81516000805b828110156103e5576001600086838151811061072357610723611033565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020549150816000141561075c57610827565b60006001600087848151811061077457610774611033565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055506107b7848387848151811061034357610343611033565b50836001600160a01b0316336001600160a01b03168683815181106107de576107de611033565b60200260200101516001600160a01b03167f538974e1df528273e5e78db277fe1811fcf8a78b3d9eaf5c3dac6d3e7fc38e338560405161081e9190610e67565b60405180910390a45b806108318161105f565b915050610705565b61085a3330610848858761110c565b6001600160a01b038816929190610992565b6001600160a01b038082166000908152602081815260408083209388168352929052908120805485929061088f90849061110c565b90915550506001600160a01b038416600090815260016020526040812080548492906108bc90849061110c565b92505081905550806001600160a01b0316846001600160a01b03167f28a87b6059180e46de5fb9ab35eb043e8fe00ab45afcc7789e3934ecbbcde3ea8585604051610908929190611124565b60405180910390a350505050565b6000816109255750600161098b565b61092e84610a46565b15610973576040516001600160a01b0384169083156108fc029084906000818181858888f19350505050158015610969573d6000803e3d6000fd5b506001905061098b565b6109876001600160a01b0385168484610a7f565b5060015b9392505050565b8061099c57610a40565b6109a584610a46565b15610a2b576001600160a01b038316331480156109c25750803410155b6109de5760405162461bcd60e51b81526004016104169061118a565b6001600160a01b0382163014610a26576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610a24573d6000803e3d6000fd5b505b610a40565b610a406001600160a01b038516848484610ada565b50505050565b60006001600160a01b038216158061058d57506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1492915050565b610ad58363a9059cbb60e01b8484604051602401610a9e92919061119a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610afb565b505050565b610a40846323b872dd60e01b858585604051602401610a9e939291906111a8565b6000610b50826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b8d9092919063ffffffff16565b9050805160001480610b71575080806020019051810190610b7191906111e3565b610ad55760405162461bcd60e51b81526004016104169061124b565b6060610b9c8484600085610ba4565b949350505050565b606082471015610bc65760405162461bcd60e51b81526004016104169061129e565b600080866001600160a01b03168587604051610be291906112fc565b60006040518083038185875af1925050503d8060008114610c1f576040519150601f19603f3d011682016040523d82523d6000602084013e610c24565b606091505b5091509150610c3587838387610c40565b979650505050505050565b60608315610c7c578251610c75576001600160a01b0385163b610c755760405162461bcd60e51b81526004016104169061133c565b5081610b9c565b610b9c8383815115610c915781518083602001fd5b8060405162461bcd60e51b81526004016104169190611380565b60006001600160a01b03821661058d565b610cc581610cab565b82525050565b6020810161058d8284610cbc565b601f01601f191690565b634e487b7160e01b600052604160045260246000fd5b610d0282610cd9565b81018181106001600160401b0382111715610d1f57610d1f610ce3565b6040525050565b6000610d3160405190565b9050610d3d8282610cf9565b919050565b60006001600160401b03821115610d5b57610d5b610ce3565b5060209081020190565b610d6e81610cab565b8114610d7957600080fd5b50565b803561058d81610d65565b6000610d9a610d9584610d42565b610d26565b83815290506020808201908402830185811115610db957610db9600080fd5b835b81811015610ddd5780610dce8882610d7c565b84525060209283019201610dbb565b5050509392505050565b600082601f830112610dfb57610dfb600080fd5b8135610b9c848260208601610d87565b60008060408385031215610e2157610e21600080fd5b82356001600160401b03811115610e3a57610e3a600080fd5b610e4685828601610de7565b9250506020610e5785828601610d7c565b9150509250929050565b80610cc5565b6020810161058d8284610e61565b80610d6e565b803561058d81610e75565b60008060408385031215610e9c57610e9c600080fd5b6000610ea88585610d7c565b9250506020610e5785828601610e7b565b600060208284031215610ece57610ece600080fd5b6000610b9c8484610d7c565b60008060408385031215610ef057610ef0600080fd5b6000610efc8585610d7c565b92505060208301356001600160401b03811115610f1b57610f1b600080fd5b610e5785828601610de7565b6000610f338383610e61565b505060200190565b6000610f45825190565b80845260209384019383018060005b83811015610f79578151610f688882610f27565b975060208301925050600101610f54565b509495945050505050565b6020808252810161098b8184610f3b565b600060208284031215610faa57610faa600080fd5b81356001600160401b03811115610fc357610fc3600080fd5b610b9c84828501610de7565b60008060008060808587031215610fe857610fe8600080fd5b6000610ff48787610d7c565b945050602061100587828801610e7b565b935050604061101687828801610e7b565b925050606061102787828801610d7c565b91505092959194509250565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561107357611073611049565b5060010190565b600681526000602082016510b7bbb732b960d11b815291505b5060200190565b6020808252810161058d8161107a565b634e487b7160e01b600052601260045260246000fd5b6000826110cf576110cf6110aa565b500490565b60118152600060208201700e6eed2dcce86eae840e8dede40d0d2ced607b1b81529150611093565b6020808252810161058d816110d4565b6000821982111561111f5761111f611049565b500190565b604081016111328285610e61565b61098b6020830184610e61565b602b81526000602082017f57726f6e6720757365616765206f66204554482e756e6976657273616c54726181526a6e7366657246726f6d282960a81b602082015291505b5060400190565b6020808252810161058d8161113f565b604081016111328285610cbc565b606081016111b68286610cbc565b6111c36020830185610cbc565b610b9c6040830184610e61565b801515610d6e565b805161058d816111d0565b6000602082840312156111f8576111f8600080fd5b6000610b9c84846111d8565b602a81526000602082017f5361666545524332303a204552433230206f7065726174696f6e20646964206e8152691bdd081cdd58d8d9595960b21b60208201529150611183565b6020808252810161058d81611204565b602681526000602082017f416464726573733a20696e73756666696369656e742062616c616e636520666f8152651c8818d85b1b60d21b60208201529150611183565b6020808252810161058d8161125b565b60005b838110156112c95781810151838201526020016112b1565b83811115610a405750506000910152565b60006112e4825190565b6112f28185602086016112ae565b9290920192915050565b600061098b82846112da565b601d81526000602082017f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081529150611093565b6020808252810161058d81611308565b6000611356825190565b80845260208401935061136d8185602086016112ae565b61137681610cd9565b9093019392505050565b6020808252810161098b818461134c56fea2646970667358221220a6f12f2c5eb3b709535e5d60bfe719d228a2e5a24672d3bbf53be42cbe29e94f64736f6c63430008090033000000000000000000000000e2b6f88dcc3c95f1b0c0682eaa2efa03e1f2d6f7
Deployed Bytecode
0x6080604052600436106100a25760003560e01c80630676c1b7146100a7578063576168fc146100dd57806361afb61b146100fd57806367b8a7d61461011f5780637803c2e5146101425780637b8c4cdf146101625780638da5cb5b14610198578063a574de0a146101b8578063a6f9dae1146101e5578063ac3ce65a14610205578063b161530714610225578063ec342ad014610245578063eedd56e11461025b575b600080fd5b3480156100b357600080fd5b506005546100c7906001600160a01b031681565b6040516100d49190610ccb565b60405180910390f35b3480156100e957600080fd5b506004546100c7906001600160a01b031681565b34801561010957600080fd5b5061011d610118366004610e0b565b61026e565b005b34801561012b57600080fd5b5061013560065481565b6040516100d49190610e67565b34801561014e57600080fd5b5061011d61015d366004610e86565b6103ec565b34801561016e57600080fd5b5061013561017d366004610eb9565b6001600160a01b031660009081526002602052604090205490565b3480156101a457600080fd5b506003546100c7906001600160a01b031681565b3480156101c457600080fd5b506101d86101d3366004610eda565b6104a2565b6040516100d49190610f84565b3480156101f157600080fd5b5061011d610200366004610eb9565b610593565b34801561021157600080fd5b506101d8610220366004610f95565b610609565b34801561023157600080fd5b5061011d610240366004610e0b565b6106d5565b34801561025157600080fd5b5061013561271081565b61011d610269366004610fcf565b610839565b81516000805b828110156103e55733600090815260208190526040812086519091908790849081106102a2576102a2611033565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002054915081600014156102db576103d3565b3360009081526020819052604081208651829088908590811061030057610300611033565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550610363848387848151811061034357610343611033565b60200260200101516001600160a01b03166109169092919063ffffffff16565b50836001600160a01b0316336001600160a01b031686838151811061038a5761038a611033565b60200260200101516001600160a01b03167f0fdfbfe3beb0fbd2f67e9471236264610d92e4b37777806fb082eed9d6400556856040516103ca9190610e67565b60405180910390a45b806103dd8161105f565b915050610274565b5050505050565b6003546001600160a01b0316331461041f5760405162461bcd60e51b81526004016104169061109a565b60405180910390fd5b61042c60026127106110c0565b81111561044b5760405162461bcd60e51b8152600401610416906110fc565b6001600160a01b03821660008181526002602052604090819020839055517fddd3d92b95eae9c47de9578143b92cce49c3ad2db4e9ebb3908d0c8697f9063990610496908490610e67565b60405180910390a25050565b80516060906000816001600160401b038111156104c1576104c1610ce3565b6040519080825280602002602001820160405280156104ea578160200160208202803683370190505b50905060005b8281101561058857600080876001600160a01b03166001600160a01b03168152602001908152602001600020600086838151811061053057610530611033565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020016000205482828151811061056b5761056b611033565b6020908102919091010152806105808161105f565b9150506104f0565b509150505b92915050565b6003546001600160a01b031633146105bd5760405162461bcd60e51b81526004016104169061109a565b600380546001600160a01b0319166001600160a01b03831690811790915560405133907fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c90600090a350565b80516060906000816001600160401b0381111561062857610628610ce3565b604051908082528060200260200182016040528015610651578160200160208202803683370190505b50905060005b828110156106cd576001600086838151811061067557610675611033565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020548282815181106106b0576106b0611033565b6020908102919091010152806106c58161105f565b915050610657565b509392505050565b6003546001600160a01b031633146106ff5760405162461bcd60e51b81526004016104169061109a565b81516000805b828110156103e5576001600086838151811061072357610723611033565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020549150816000141561075c57610827565b60006001600087848151811061077457610774611033565b60200260200101516001600160a01b03166001600160a01b03168152602001908152602001600020819055506107b7848387848151811061034357610343611033565b50836001600160a01b0316336001600160a01b03168683815181106107de576107de611033565b60200260200101516001600160a01b03167f538974e1df528273e5e78db277fe1811fcf8a78b3d9eaf5c3dac6d3e7fc38e338560405161081e9190610e67565b60405180910390a45b806108318161105f565b915050610705565b61085a3330610848858761110c565b6001600160a01b038816929190610992565b6001600160a01b038082166000908152602081815260408083209388168352929052908120805485929061088f90849061110c565b90915550506001600160a01b038416600090815260016020526040812080548492906108bc90849061110c565b92505081905550806001600160a01b0316846001600160a01b03167f28a87b6059180e46de5fb9ab35eb043e8fe00ab45afcc7789e3934ecbbcde3ea8585604051610908929190611124565b60405180910390a350505050565b6000816109255750600161098b565b61092e84610a46565b15610973576040516001600160a01b0384169083156108fc029084906000818181858888f19350505050158015610969573d6000803e3d6000fd5b506001905061098b565b6109876001600160a01b0385168484610a7f565b5060015b9392505050565b8061099c57610a40565b6109a584610a46565b15610a2b576001600160a01b038316331480156109c25750803410155b6109de5760405162461bcd60e51b81526004016104169061118a565b6001600160a01b0382163014610a26576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015610a24573d6000803e3d6000fd5b505b610a40565b610a406001600160a01b038516848484610ada565b50505050565b60006001600160a01b038216158061058d57506001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1492915050565b610ad58363a9059cbb60e01b8484604051602401610a9e92919061119a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152610afb565b505050565b610a40846323b872dd60e01b858585604051602401610a9e939291906111a8565b6000610b50826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b8d9092919063ffffffff16565b9050805160001480610b71575080806020019051810190610b7191906111e3565b610ad55760405162461bcd60e51b81526004016104169061124b565b6060610b9c8484600085610ba4565b949350505050565b606082471015610bc65760405162461bcd60e51b81526004016104169061129e565b600080866001600160a01b03168587604051610be291906112fc565b60006040518083038185875af1925050503d8060008114610c1f576040519150601f19603f3d011682016040523d82523d6000602084013e610c24565b606091505b5091509150610c3587838387610c40565b979650505050505050565b60608315610c7c578251610c75576001600160a01b0385163b610c755760405162461bcd60e51b81526004016104169061133c565b5081610b9c565b610b9c8383815115610c915781518083602001fd5b8060405162461bcd60e51b81526004016104169190611380565b60006001600160a01b03821661058d565b610cc581610cab565b82525050565b6020810161058d8284610cbc565b601f01601f191690565b634e487b7160e01b600052604160045260246000fd5b610d0282610cd9565b81018181106001600160401b0382111715610d1f57610d1f610ce3565b6040525050565b6000610d3160405190565b9050610d3d8282610cf9565b919050565b60006001600160401b03821115610d5b57610d5b610ce3565b5060209081020190565b610d6e81610cab565b8114610d7957600080fd5b50565b803561058d81610d65565b6000610d9a610d9584610d42565b610d26565b83815290506020808201908402830185811115610db957610db9600080fd5b835b81811015610ddd5780610dce8882610d7c565b84525060209283019201610dbb565b5050509392505050565b600082601f830112610dfb57610dfb600080fd5b8135610b9c848260208601610d87565b60008060408385031215610e2157610e21600080fd5b82356001600160401b03811115610e3a57610e3a600080fd5b610e4685828601610de7565b9250506020610e5785828601610d7c565b9150509250929050565b80610cc5565b6020810161058d8284610e61565b80610d6e565b803561058d81610e75565b60008060408385031215610e9c57610e9c600080fd5b6000610ea88585610d7c565b9250506020610e5785828601610e7b565b600060208284031215610ece57610ece600080fd5b6000610b9c8484610d7c565b60008060408385031215610ef057610ef0600080fd5b6000610efc8585610d7c565b92505060208301356001600160401b03811115610f1b57610f1b600080fd5b610e5785828601610de7565b6000610f338383610e61565b505060200190565b6000610f45825190565b80845260209384019383018060005b83811015610f79578151610f688882610f27565b975060208301925050600101610f54565b509495945050505050565b6020808252810161098b8184610f3b565b600060208284031215610faa57610faa600080fd5b81356001600160401b03811115610fc357610fc3600080fd5b610b9c84828501610de7565b60008060008060808587031215610fe857610fe8600080fd5b6000610ff48787610d7c565b945050602061100587828801610e7b565b935050604061101687828801610e7b565b925050606061102787828801610d7c565b91505092959194509250565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561107357611073611049565b5060010190565b600681526000602082016510b7bbb732b960d11b815291505b5060200190565b6020808252810161058d8161107a565b634e487b7160e01b600052601260045260246000fd5b6000826110cf576110cf6110aa565b500490565b60118152600060208201700e6eed2dcce86eae840e8dede40d0d2ced607b1b81529150611093565b6020808252810161058d816110d4565b6000821982111561111f5761111f611049565b500190565b604081016111328285610e61565b61098b6020830184610e61565b602b81526000602082017f57726f6e6720757365616765206f66204554482e756e6976657273616c54726181526a6e7366657246726f6d282960a81b602082015291505b5060400190565b6020808252810161058d8161113f565b604081016111328285610cbc565b606081016111b68286610cbc565b6111c36020830185610cbc565b610b9c6040830184610e61565b801515610d6e565b805161058d816111d0565b6000602082840312156111f8576111f8600080fd5b6000610b9c84846111d8565b602a81526000602082017f5361666545524332303a204552433230206f7065726174696f6e20646964206e8152691bdd081cdd58d8d9595960b21b60208201529150611183565b6020808252810161058d81611204565b602681526000602082017f416464726573733a20696e73756666696369656e742062616c616e636520666f8152651c8818d85b1b60d21b60208201529150611183565b6020808252810161058d8161125b565b60005b838110156112c95781810151838201526020016112b1565b83811115610a405750506000910152565b60006112e4825190565b6112f28185602086016112ae565b9290920192915050565b600061098b82846112da565b601d81526000602082017f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081529150611093565b6020808252810161058d81611308565b6000611356825190565b80845260208401935061136d8185602086016112ae565b61137681610cd9565b9093019392505050565b6020808252810161098b818461134c56fea2646970667358221220a6f12f2c5eb3b709535e5d60bfe719d228a2e5a24672d3bbf53be42cbe29e94f64736f6c63430008090033
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 72.32% | $3,502.8 | 4.7398 | $16,602.66 |
ETH | 9.30% | $0.999818 | 2,134.323 | $2,133.93 | |
ETH | 9.10% | $1 | 2,087.6703 | $2,089.76 | |
ETH | 1.45% | $0.044358 | 7,490.1631 | $332.25 | |
ETH | 1.24% | $0.998322 | 285 | $284.52 | |
ETH | 1.20% | $97,607 | 0.00283052 | $276.28 | |
ETH | 1.17% | $3,484.87 | 0.0768 | $267.76 | |
ETH | 0.87% | $1 | 199.4755 | $199.67 | |
ETH | 0.73% | $3,502.8 | 0.048 | $168.06 | |
ETH | 0.51% | $5.85 | 19.9708 | $116.83 | |
ETH | 0.49% | $0.028091 | 4,000 | $112.36 | |
ETH | 0.46% | $0.848684 | 125.484 | $106.5 | |
ETH | 0.37% | $36.4 | 2.3621 | $85.98 | |
ETH | 0.28% | $0.124596 | 515.0637 | $64.17 | |
ETH | 0.11% | $4,151.59 | 0.006 | $24.91 | |
ETH | 0.07% | $12.2 | 1.4 | $17.08 | |
ETH | 0.06% | $0.226548 | 59.5739 | $13.5 | |
ETH | 0.06% | $0.243177 | 53.7644 | $13.07 | |
ETH | 0.02% | $1 | 4.9358 | $4.94 | |
ETH | 0.02% | $24.83 | 0.1881 | $4.67 | |
ETH | 0.02% | $0.000003 | 1,508,086.714 | $3.83 | |
ETH | 0.02% | $0.529313 | 7.081 | $3.75 | |
ETH | 0.01% | $0.591462 | 5.15 | $3.05 | |
ETH | 0.01% | $0.000023 | 128,630.716 | $2.97 | |
ETH | 0.01% | $0.065374 | 45 | $2.94 | |
ETH | 0.01% | $0.518047 | 4.9817 | $2.58 | |
ETH | <0.01% | $3,684.63 | 0.0005537 | $2.04 | |
ETH | <0.01% | $3.77 | 0.51 | $1.92 | |
ETH | <0.01% | $0.022541 | 82.1931 | $1.85 | |
ETH | <0.01% | $123.3 | 0.0147 | $1.81 | |
ETH | <0.01% | $1 | 1.1459 | $1.15 | |
ETH | <0.01% | $1.24 | 0.9219 | $1.14 | |
ETH | <0.01% | $0.99917 | 1.0188 | $1.02 | |
ETH | <0.01% | $0.000019 | 40,000 | $0.754 | |
ETH | <0.01% | $2.01 | 0.3678 | $0.7398 | |
ETH | <0.01% | $2,777.63 | 0.00022125 | $0.6145 | |
ETH | <0.01% | $92,454 | 0.000006 | $0.5547 | |
ETH | <0.01% | $1.12 | 0.4 | $0.448 | |
ETH | <0.01% | $3,917.75 | 0.0001 | $0.3917 | |
ETH | <0.01% | $0.000207 | 1,527.742 | $0.3161 | |
ETH | <0.01% | $3,784.24 | 0.000078 | $0.2951 | |
ETH | <0.01% | $0.1163 | 2.4 | $0.2791 | |
ETH | <0.01% | $0.134899 | 2 | $0.2697 | |
BASE | 0.01% | $0.028441 | 100 | $2.84 |
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.