More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,449 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Swap From Eth Wi... | 22289340 | 3 hrs ago | IN | 0.5 ETH | 0.00057412 | ||||
Swap To Eth With... | 22284546 | 19 hrs ago | IN | 0 ETH | 0.00002599 | ||||
Swap From Eth Wi... | 22278332 | 39 hrs ago | IN | 0.13895 ETH | 0.000212 | ||||
Swap To Eth With... | 22269566 | 2 days ago | IN | 0 ETH | 0.00010993 | ||||
Swap From Eth Wi... | 22267866 | 3 days ago | IN | 0.23 ETH | 0.0002954 | ||||
Swap From Eth Wi... | 22264424 | 3 days ago | IN | 0.05574622 ETH | 0.00007602 | ||||
Swap With Fees O... | 22264019 | 3 days ago | IN | 0 ETH | 0.0000567 | ||||
Swap From Eth Wi... | 22263245 | 3 days ago | IN | 0.06555 ETH | 0.0000847 | ||||
Swap With Fees O... | 22261583 | 4 days ago | IN | 0 ETH | 0.0000849 | ||||
Swap With Fees O... | 22247888 | 5 days ago | IN | 0 ETH | 0.00006821 | ||||
Swap To Eth With... | 22231138 | 8 days ago | IN | 0 ETH | 0.00070031 | ||||
Swap To Eth With... | 22231129 | 8 days ago | IN | 0 ETH | 0.00112 | ||||
Swap To Eth With... | 22219466 | 9 days ago | IN | 0 ETH | 0.00046765 | ||||
Swap With Fees O... | 22218684 | 9 days ago | IN | 0 ETH | 0.00028534 | ||||
Swap To Eth With... | 22218669 | 9 days ago | IN | 0 ETH | 0.00031189 | ||||
Swap To Eth With... | 22218637 | 9 days ago | IN | 0 ETH | 0.0007084 | ||||
Swap To Eth With... | 22217549 | 10 days ago | IN | 0 ETH | 0.00311741 | ||||
Swap From Eth Wi... | 22216165 | 10 days ago | IN | 0.24 ETH | 0.00051991 | ||||
Swap From Eth Wi... | 22215351 | 10 days ago | IN | 0.882094 ETH | 0.00886572 | ||||
Swap With Fees O... | 22215220 | 10 days ago | IN | 0 ETH | 0.00054453 | ||||
Swap From Eth Wi... | 22213130 | 10 days ago | IN | 0.01 ETH | 0.00054666 | ||||
Swap From Eth Wi... | 22212663 | 10 days ago | IN | 0.13 ETH | 0.0003472 | ||||
Swap From Eth Wi... | 22212653 | 10 days ago | IN | 0.13 ETH | 0.00038007 | ||||
Swap With Fees O... | 22212559 | 10 days ago | IN | 0 ETH | 0.00230994 | ||||
Swap With Fees O... | 22212389 | 10 days ago | IN | 0 ETH | 0.00175886 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Transfer | 22290103 | 32 mins ago | 0.00000474 ETH | ||||
0x000001b6 | 22289340 | 3 hrs ago | 0.49701789 ETH | ||||
Transfer | 22279433 | 36 hrs ago | 0.00004548 ETH | ||||
0x000001b6 | 22278332 | 39 hrs ago | 0.13812127 ETH | ||||
Transfer | 22269566 | 2 days ago | 0.04172067 ETH | ||||
Transfer | 22269566 | 2 days ago | 0.04197099 ETH | ||||
Uniswap V3Swap T... | 22267866 | 3 days ago | 0.22862823 ETH | ||||
Swap | 22264424 | 3 days ago | 0.05541374 ETH | ||||
Uniswap V3Swap T... | 22263245 | 3 days ago | 0.06515904 ETH | ||||
Transfer | 22257025 | 4 days ago | 0.00009 ETH | ||||
Transfer | 22254998 | 4 days ago | 0.00003 ETH | ||||
Transfer | 22254972 | 4 days ago | 0.000015 ETH | ||||
Transfer | 22252532 | 5 days ago | 0.00003384 ETH | ||||
Transfer | 22252414 | 5 days ago | 0.00003384 ETH | ||||
Transfer | 22219466 | 9 days ago | 0.94842557 ETH | ||||
Transfer | 22219466 | 9 days ago | 0.95411612 ETH | ||||
Transfer | 22218669 | 9 days ago | 1.00259581 ETH | ||||
Transfer | 22218669 | 9 days ago | 1.00861139 ETH | ||||
Transfer | 22218637 | 9 days ago | 2.60251524 ETH | ||||
Transfer | 22218637 | 9 days ago | 2.61813033 ETH | ||||
Transfer | 22217549 | 10 days ago | 2.50198687 ETH | ||||
Transfer | 22217549 | 10 days ago | 2.51699879 ETH | ||||
Uniswap V3Swap T... | 22216165 | 10 days ago | 0.23856858 ETH | ||||
Uniswap V3Swap T... | 22215351 | 10 days ago | 0.876833 ETH | ||||
0x000001ae | 22213130 | 10 days ago | 0.00994035 ETH |
Loading...
Loading
Contract Name:
SwapFeeRouter
Compiler Version
v0.8.16+commit.07a7930e
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.16; import { IERC20, SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import { Ownable } from "./Ownable.sol"; // NOTE: There is no non-arbitrary upper-limit for the `feeBasisPoints`, and setting it above 10_000 just pauses the swap functions. contract SwapFeeRouter is Ownable { error ETHTransferFailed(bytes errorData); error FeeBasisPointsNotRespected(uint256 expectedFeeBasisPoints_, uint256 actualFeeBasisPoints_); error ContractNotWhitelisted(address callee); error RenterAttempted(); error SwapCallFailed(bytes errorData); event ContractAddedToWhitelist(address indexed contract_); event ContractRemovedFromWhitelist(address indexed contract_); event ETHPulled(address indexed destination_, uint256 amount_); event FeeSet(uint256 feeBasisPoints_); event TokensPulled(address indexed token_, address indexed destination_, uint256 amount_); uint256 internal _locked = 1; uint256 public feeBasisPoints; // 1 = 0.01%, 100 = 1%, 10_000 = 100% mapping(address => bool) public isWhitelisted; constructor(address owner_, uint256 feeBasisPoints_, address[] memory whitelist_) { _setOwner(owner_); _setFees(feeBasisPoints_); _addToWhitelist(whitelist_); } modifier noRenter() { if (_locked == 2) revert RenterAttempted(); _locked = 2; _; _locked = 1; } modifier feeBasisPointsRespected(uint256 feeBasisPoints_) { // Revert if the expected fee is less than the current fee. if (feeBasisPoints_ < feeBasisPoints) revert FeeBasisPointsNotRespected(feeBasisPoints_, feeBasisPoints); _; } function swapWithFeesOnInput( address inAsset_, uint256 swapAmount_, uint256 feeBasisPoints_, address swapContract_, address tokenPuller_, bytes calldata swapCallData_ ) public payable noRenter feeBasisPointsRespected(feeBasisPoints_) { // Pull funds plus fees from caller. // NOTE: Assuming `swapCallData_` is correct, fees will remain in this contract. // NOTE: Worst case, assuming `swapCallData_` is incorrect/malicious, this contract loses nothing, but gains nothing. SafeERC20.safeTransferFrom(IERC20(inAsset_), msg.sender, address(this), getAmountWithFees(swapAmount_, feeBasisPoints_)); // Perform the swap (set allowance, swap, unset allowance). // NOTE: This assume that the `swapCallData_` instructs the swapContract to send outAsset to correct destination. _performSwap(inAsset_, swapAmount_, swapContract_, tokenPuller_, swapCallData_); } function swapWithFeesOnOutput( address inAsset_, uint256 swapAmount_, address outAsset_, uint256 feeBasisPoints_, address swapContract_, address tokenPuller_, bytes calldata swapCallData_ ) external noRenter feeBasisPointsRespected(feeBasisPoints_) { // Track this contract's starting outAsset balance to determine its increase later. uint256 startingOutAssetBalance = IERC20(outAsset_).balanceOf(address(this)); // Pull funds from caller. SafeERC20.safeTransferFrom(IERC20(inAsset_), msg.sender, address(this), swapAmount_); // Perform the swap (set allowance, swap, unset allowance). // NOTE: This assume that the `swapCallData_` instructs the swapContract to send outAsset to this contract. _performSwap(inAsset_, swapAmount_, swapContract_, tokenPuller_, swapCallData_); // Send the amount of outAsset the swap produced, minus fees, to the destination. SafeERC20.safeTransfer( IERC20(outAsset_), msg.sender, getAmountWithoutFees( IERC20(outAsset_).balanceOf(address(this)) - startingOutAssetBalance, feeBasisPoints_ ) ); } function swapFromEthWithFeesOnInput( uint256 feeBasisPoints_, address swapContract_, bytes calldata swapCallData_ ) external payable noRenter feeBasisPointsRespected(feeBasisPoints_) { // Perform the swap (attaching ETH minus fees to call). // NOTE: This assume that the `swapCallData_` instructs the swapContract to send outAsset to correct destination. _performSwap(getAmountWithoutFees(msg.value, feeBasisPoints_), swapContract_, swapCallData_); } function swapFromEthWithFeesOnOutput( address outAsset_, uint256 feeBasisPoints_, address swapContract_, bytes calldata swapCallData_ ) external payable noRenter feeBasisPointsRespected(feeBasisPoints_) { // Track this contract's starting outAsset balance to determine its increase later. uint256 startingOutAssetBalance = IERC20(outAsset_).balanceOf(address(this)); // Perform the swap (attaching ETH to call). // NOTE: This assume that the `swapCallData_` instructs the swapContract to send outAsset to this contract. _performSwap(msg.value, swapContract_, swapCallData_); // Send the amount of outAsset the swap produced, minus fees, to the destination. SafeERC20.safeTransfer( IERC20(outAsset_), msg.sender, getAmountWithoutFees( IERC20(outAsset_).balanceOf(address(this)) - startingOutAssetBalance, feeBasisPoints_ ) ); } function swapToEthWithFeesOnInput( address inAsset_, uint256 swapAmount_, uint256 feeBasisPoints_, address swapContract_, address tokenPuller_, bytes calldata swapCallData_ ) external feeBasisPointsRespected(feeBasisPoints_) { // NOTE: Ths is functionally the same as `swapWithFeesOnInput` since the output is irrelevant. // NOTE: No `noRenter` needed since `swapWithFeesOnInput` will check that. swapWithFeesOnInput(inAsset_, swapAmount_, feeBasisPoints_, swapContract_, tokenPuller_, swapCallData_); } function swapToEthWithFeesOnOutput( address inAsset_, uint256 swapAmount_, uint256 feeBasisPoints_, address swapContract_, address tokenPuller_, bytes calldata swapCallData_ ) external noRenter feeBasisPointsRespected(feeBasisPoints_) { // Track this contract's starting ETH balance to determine its increase later. uint256 startingETHBalance = address(this).balance; // Pull funds from caller. SafeERC20.safeTransferFrom(IERC20(inAsset_), msg.sender, address(this), swapAmount_); // Perform the swap (set allowance, swap, unset allowance). // NOTE: This assume that the `swapCallData_` instructs the swapContract to send ETH to this contract. _performSwap(inAsset_, swapAmount_, swapContract_, tokenPuller_, swapCallData_); // Send the amount of ETH the swap produced, minus fees, to the destination, and revert if it fails. _transferETH( msg.sender, getAmountWithoutFees( address(this).balance - startingETHBalance, feeBasisPoints_ ) ); } function addToWhitelist(address[] calldata whitelist_) external onlyOwner { _addToWhitelist(whitelist_); } function removeFromWhitelist(address[] calldata whitelist_) external onlyOwner { _removeFromWhitelist(whitelist_); } function setFee(uint256 feeBasisPoints_) external onlyOwner { _setFees(feeBasisPoints_); } function pullToken(address token_, address destination_) public onlyOwner { if (destination_ == address(0)) revert ZeroAddress(); uint256 amount = IERC20(token_).balanceOf(address(this)); emit TokensPulled(token_, destination_, amount); SafeERC20.safeTransfer(IERC20(token_), destination_, amount); } function pullTokens(address[] calldata tokens_, address destination_) external onlyOwner { for (uint256 i; i < tokens_.length; ++i) { pullToken(tokens_[i], destination_); } } function pullETH(address destination_) external onlyOwner { if (destination_ == address(0)) revert ZeroAddress(); uint256 amount = address(this).balance; emit ETHPulled(destination_, amount); _transferETH(destination_, amount); } function getAmountWithFees(uint256 amountWithoutFees_, uint256 feeBasisPoints_) public pure returns (uint256 amountWithFees_) { amountWithFees_ = (amountWithoutFees_ * (10_000 + feeBasisPoints_)) / 10_000; } function getAmountWithoutFees(uint256 amountWithFees_, uint256 feeBasisPoints_) public pure returns (uint256 amountWithoutFees_) { amountWithoutFees_ = (10_000 * amountWithFees_) / (10_000 + feeBasisPoints_); } function _addToWhitelist(address[] memory whitelist_) internal { for (uint256 i; i < whitelist_.length; ++i) { address account = whitelist_[i]; isWhitelisted[whitelist_[i]] = true; emit ContractAddedToWhitelist(account); } } function _performSwap(address inAsset_, uint256 swapAmount_, address swapContract_, address tokenPuller_, bytes calldata swapCallData_) internal { // Prevent calling contracts that are not whitelisted. if (!isWhitelisted[swapContract_]) revert ContractNotWhitelisted(swapContract_); // Approve the contract that will pull inAsset. SafeERC20.forceApprove(IERC20(inAsset_), tokenPuller_, swapAmount_); // Call the swap contract as defined by `swapCallData_`, and revert if it fails. ( bool success, bytes memory errorData ) = swapContract_.call{ value: msg.value }(swapCallData_); if (!success) revert SwapCallFailed(errorData); // Un-approve the contract that pulled inAsset. // NOTE: This is important to prevent exploits that rely on allowances to arbitrary swapContracts to be non-zero after swap calls. SafeERC20.forceApprove(IERC20(inAsset_), tokenPuller_, 0); } function _performSwap(uint256 swapAmount_, address swapContract_, bytes calldata swapCallData_) internal { // Prevent calling contracts that are not whitelisted. if (!isWhitelisted[swapContract_]) revert ContractNotWhitelisted(swapContract_); // Call the swap contract as defined by `swapCallData_`, and revert if it fails. ( bool success, bytes memory errorData ) = swapContract_.call{ value: swapAmount_ }(swapCallData_); if (!success) revert SwapCallFailed(errorData); } function _removeFromWhitelist(address[] memory whitelist_) internal { for (uint256 i; i < whitelist_.length; ++i) { address account = whitelist_[i]; isWhitelisted[whitelist_[i]] = false; emit ContractRemovedFromWhitelist(account); } } function _setFees(uint256 feeBasisPoints_) internal { emit FeeSet(feeBasisPoints = feeBasisPoints_); } function _transferETH(address destination_, uint256 amount_) internal { // NOTE: callers of this function are validating `destination_` to not be zero. ( bool success, bytes memory errorData ) = destination_.call{ value: amount_ }(""); if (!success) revert ETHTransferFailed(errorData); } receive() external payable {} }
// 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.16; abstract contract Ownable { error Unauthorized(); error ZeroAddress(); event OwnerSet(address indexed newOwner_); event PendingOwnerSet(address indexed pendingOwner_); address public owner; address public pendingOwner; modifier onlyOwner() { if (msg.sender != owner) revert Unauthorized(); _; } function setPendingOwner(address pendingOwner_) external onlyOwner { _setPendingOwner(pendingOwner_); } function acceptOwnership() external { if (msg.sender != pendingOwner) revert Unauthorized(); _setPendingOwner(address(0)); _setOwner(msg.sender); } function _setOwner(address owner_) internal { if (owner_ == address(0)) revert ZeroAddress(); emit OwnerSet(owner = owner_); } function _setPendingOwner(address pendingOwner_) internal { emit PendingOwnerSet(pendingOwner = pendingOwner_); } }
{ "evmVersion": "london", "optimizer": { "enabled": true, "runs": 200, "details": { "peephole": true, "inliner": true, "jumpdestRemover": true, "orderLiterals": true, "deduplicate": true, "cse": true, "constantOptimizer": true, "yul": true, "yulDetails": { "stackAllocation": true } } }, "metadata": { "bytecodeHash": "none" }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"owner_","type":"address"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address[]","name":"whitelist_","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"callee","type":"address"}],"name":"ContractNotWhitelisted","type":"error"},{"inputs":[{"internalType":"bytes","name":"errorData","type":"bytes"}],"name":"ETHTransferFailed","type":"error"},{"inputs":[{"internalType":"uint256","name":"expectedFeeBasisPoints_","type":"uint256"},{"internalType":"uint256","name":"actualFeeBasisPoints_","type":"uint256"}],"name":"FeeBasisPointsNotRespected","type":"error"},{"inputs":[],"name":"RenterAttempted","type":"error"},{"inputs":[{"internalType":"bytes","name":"errorData","type":"bytes"}],"name":"SwapCallFailed","type":"error"},{"inputs":[],"name":"Unauthorized","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contract_","type":"address"}],"name":"ContractAddedToWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"contract_","type":"address"}],"name":"ContractRemovedFromWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"destination_","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"ETHPulled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"}],"name":"FeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newOwner_","type":"address"}],"name":"OwnerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pendingOwner_","type":"address"}],"name":"PendingOwnerSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token_","type":"address"},{"indexed":true,"internalType":"address","name":"destination_","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount_","type":"uint256"}],"name":"TokensPulled","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"whitelist_","type":"address[]"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeBasisPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountWithoutFees_","type":"uint256"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"}],"name":"getAmountWithFees","outputs":[{"internalType":"uint256","name":"amountWithFees_","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountWithFees_","type":"uint256"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"}],"name":"getAmountWithoutFees","outputs":[{"internalType":"uint256","name":"amountWithoutFees_","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"destination_","type":"address"}],"name":"pullETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"address","name":"destination_","type":"address"}],"name":"pullToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens_","type":"address[]"},{"internalType":"address","name":"destination_","type":"address"}],"name":"pullTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"whitelist_","type":"address[]"}],"name":"removeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"}],"name":"setFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pendingOwner_","type":"address"}],"name":"setPendingOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address","name":"swapContract_","type":"address"},{"internalType":"bytes","name":"swapCallData_","type":"bytes"}],"name":"swapFromEthWithFeesOnInput","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"outAsset_","type":"address"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address","name":"swapContract_","type":"address"},{"internalType":"bytes","name":"swapCallData_","type":"bytes"}],"name":"swapFromEthWithFeesOnOutput","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"inAsset_","type":"address"},{"internalType":"uint256","name":"swapAmount_","type":"uint256"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address","name":"swapContract_","type":"address"},{"internalType":"address","name":"tokenPuller_","type":"address"},{"internalType":"bytes","name":"swapCallData_","type":"bytes"}],"name":"swapToEthWithFeesOnInput","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"inAsset_","type":"address"},{"internalType":"uint256","name":"swapAmount_","type":"uint256"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address","name":"swapContract_","type":"address"},{"internalType":"address","name":"tokenPuller_","type":"address"},{"internalType":"bytes","name":"swapCallData_","type":"bytes"}],"name":"swapToEthWithFeesOnOutput","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"inAsset_","type":"address"},{"internalType":"uint256","name":"swapAmount_","type":"uint256"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address","name":"swapContract_","type":"address"},{"internalType":"address","name":"tokenPuller_","type":"address"},{"internalType":"bytes","name":"swapCallData_","type":"bytes"}],"name":"swapWithFeesOnInput","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"inAsset_","type":"address"},{"internalType":"uint256","name":"swapAmount_","type":"uint256"},{"internalType":"address","name":"outAsset_","type":"address"},{"internalType":"uint256","name":"feeBasisPoints_","type":"uint256"},{"internalType":"address","name":"swapContract_","type":"address"},{"internalType":"address","name":"tokenPuller_","type":"address"},{"internalType":"bytes","name":"swapCallData_","type":"bytes"}],"name":"swapWithFeesOnOutput","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405260016002553480156200001657600080fd5b5060405162001dfa38038062001dfa833981016040819052620000399162000217565b620000448362000063565b6200004f82620000d3565b6200005a816200010e565b50505062000347565b6001600160a01b0381166200008b5760405163d92e233d60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b038316908117825560405190917f50146d0e3c60aa1d17a70635b05494f864e86144a2201275021014fbf08bafe291a250565b60038190556040518181527f20461e09b8e557b77e107939f9ce6544698123aad0fc964ac5cc59b7df2e608f9060200160405180910390a150565b60005b8151811015620001e057600082828151811062000132576200013262000309565b6020026020010151905060016004600085858151811062000157576200015762000309565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550806001600160a01b03167f6e52dd2f27ea2ff599396dc0473c7f182d40ad3a9efe860f37f0c3fce64a851460405160405180910390a250620001d8816200031f565b905062000111565b5050565b80516001600160a01b0381168114620001fc57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156200022d57600080fd5b6200023884620001e4565b60208581015160408701519295509350906001600160401b03808211156200025f57600080fd5b818701915087601f8301126200027457600080fd5b81518181111562000289576200028962000201565b8060051b604051601f19603f83011681018181108582111715620002b157620002b162000201565b60405291825284820192508381018501918a831115620002d057600080fd5b938501935b82851015620002f957620002e985620001e4565b84529385019392850192620002d5565b8096505050505050509250925092565b634e487b7160e01b600052603260045260246000fd5b6000600182016200034057634e487b7160e01b600052601160045260246000fd5b5060010190565b611aa380620003576000396000f3fe6080604052600436106101235760003560e01c806379ba5097116100a0578063b8606eef11610064578063b8606eef14610337578063c42069ec1461034d578063e30c39781461036d578063e3d90acf1461038d578063e679b6f5146103a057600080fd5b806379ba50971461028a5780637f6497831461029f578063871bb2c9146102bf5780638bf6e374146102df5780638da5cb5b146102ff57600080fd5b806358d18b3f116100e757806358d18b3f146101f757806359856af01461021757806368443f2e14610237578063685c587a1461025757806369fe0e2d1461026a57600080fd5b806313bfbc4d1461012f5780631640ff3e146101625780632c0f0e87146101775780633af32abf14610197578063548db174146101d757600080fd5b3661012a57005b600080fd5b34801561013b57600080fd5b5061014f61014a36600461156c565b6103c0565b6040519081526020015b60405180910390f35b6101756101703660046115f3565b6103eb565b005b34801561018357600080fd5b5061014f61019236600461156c565b61046f565b3480156101a357600080fd5b506101c76101b236600461164d565b60046020526000908152604090205460ff1681565b6040519015158152602001610159565b3480156101e357600080fd5b506101756101f23660046116ad565b610488565b34801561020357600080fd5b506101756102123660046116ef565b6104f2565b34801561022357600080fd5b506101756102323660046116ef565b61053d565b34801561024357600080fd5b50610175610252366004611778565b6105de565b6101756102653660046117cc565b610659565b34801561027657600080fd5b5061017561028536600461183b565b6107bf565b34801561029657600080fd5b506101756107f5565b3480156102ab57600080fd5b506101756102ba3660046116ad565b610834565b3480156102cb57600080fd5b506101756102da366004611854565b61089a565b3480156102eb57600080fd5b506101756102fa366004611887565b6109b5565b34801561030b57600080fd5b5060005461031f906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b34801561034357600080fd5b5061014f60035481565b34801561035957600080fd5b5061017561036836600461164d565b610b2d565b34801561037957600080fd5b5060015461031f906001600160a01b031681565b61017561039b3660046116ef565b610b60565b3480156103ac57600080fd5b506101756103bb36600461164d565b610bec565b60006103ce82612710611936565b6103da84612710611949565b6103e49190611968565b9392505050565b60025460020361040e5760405163729668f560e11b815260040160405180910390fd5b60028055600354849081101561044e576003546040516306a215ad60e21b8152610445918391600401918252602082015260400190565b60405180910390fd5b61046361045b34876103c0565b858585610c87565b50506001600255505050565b600061271061047e8382611936565b6103da9085611949565b6000546001600160a01b031633146104b2576040516282b42960e81b815260040160405180910390fd5b6104ee828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250610d5892505050565b5050565b84600354811015610524576003546040516306a215ad60e21b8152610445918391600401918252602082015260400190565b61053388888888888888610b60565b5050505050505050565b6002546002036105605760405163729668f560e11b815260040160405180910390fd5b600280556003548590811015610597576003546040516306a215ad60e21b8152610445918391600401918252602082015260400190565b476105a48933308b610e20565b6105b2898988888888610e8b565b6105ce336105c96105c3844761198a565b8a6103c0565b610f6b565b5050600160025550505050505050565b6000546001600160a01b03163314610608576040516282b42960e81b815260040160405180910390fd5b60005b82811015610653576106438484838181106106285761062861199d565b905060200201602081019061063d919061164d565b8361089a565b61064c816119b3565b905061060b565b50505050565b60025460020361067c5760405163729668f560e11b815260040160405180910390fd5b6002805560035484908110156106b3576003546040516306a215ad60e21b8152610445918391600401918252602082015260400190565b6040516370a0823160e01b81523060048201526000906001600160a01b038816906370a0823190602401602060405180830381865afa1580156106fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071e91906119cc565b905061072c34868686610c87565b6040516370a0823160e01b81523060048201526107b190889033906107ac9085906001600160a01b038516906370a0823190602401602060405180830381865afa15801561077e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a291906119cc565b6105c3919061198a565b610fe3565b505060016002555050505050565b6000546001600160a01b031633146107e9576040516282b42960e81b815260040160405180910390fd5b6107f281611013565b50565b6001546001600160a01b0316331461081f576040516282b42960e81b815260040160405180910390fd5b610829600061104e565b61083233611098565b565b6000546001600160a01b0316331461085e576040516282b42960e81b815260040160405180910390fd5b6104ee82828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061110792505050565b6000546001600160a01b031633146108c4576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0381166108eb5760405163d92e233d60e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610932573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095691906119cc565b9050816001600160a01b0316836001600160a01b03167ff247aed45b8afd5ae54bd3f6f884eb78df14bc00208ca905e6ae335ffe678d8c8360405161099d91815260200190565b60405180910390a36109b0838383610fe3565b505050565b6002546002036109d85760405163729668f560e11b815260040160405180910390fd5b600280556003548590811015610a0f576003546040516306a215ad60e21b8152610445918391600401918252602082015260400190565b6040516370a0823160e01b81523060048201526000906001600160a01b038916906370a0823190602401602060405180830381865afa158015610a56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7a91906119cc565b9050610a888a33308c610e20565b610a968a8a88888888610e8b565b6040516370a0823160e01b8152306004820152610b1c90899033906107ac9085906001600160a01b038516906370a0823190602401602060405180830381865afa158015610ae8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0c91906119cc565b610b16919061198a565b8b6103c0565b505060016002555050505050505050565b6000546001600160a01b03163314610b57576040516282b42960e81b815260040160405180910390fd5b6107f28161104e565b600254600203610b835760405163729668f560e11b815260040160405180910390fd5b600280556003548590811015610bba576003546040516306a215ad60e21b8152610445918391600401918252602082015260400190565b610bcf883330610bca8b8b61046f565b610e20565b610bdd888887878787610e8b565b50506001600255505050505050565b6000546001600160a01b03163314610c16576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116610c3d5760405163d92e233d60e01b815260040160405180910390fd5b60405147808252906001600160a01b038316907f9f15f0df128ea65ddf3aaa8d614e5f49a3c1e64d78f072b28aabdc36c9d27bf29060200160405180910390a26104ee8282610f6b565b6001600160a01b03831660009081526004602052604090205460ff16610ccb576040516340d53e3360e11b81526001600160a01b0384166004820152602401610445565b600080846001600160a01b0316868585604051610ce99291906119e5565b60006040518083038185875af1925050503d8060008114610d26576040519150601f19603f3d011682016040523d82523d6000602084013e610d2b565b606091505b509150915081610d50578060405163729a0b5b60e01b81526004016104459190611a45565b505050505050565b60005b81518110156104ee576000828281518110610d7857610d7861199d565b60200260200101519050600060046000858581518110610d9a57610d9a61199d565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550806001600160a01b03167ffb8b462bd4e3db069eb434596fcfb88044cfe688f7329d1c4bdfbb113257b1ac60405160405180910390a250610e19816119b3565b9050610d5b565b6040516001600160a01b03808516602483015283166044820152606481018290526106539085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526111cf565b6001600160a01b03841660009081526004602052604090205460ff16610ecf576040516340d53e3360e11b81526001600160a01b0385166004820152602401610445565b610eda8684876112a4565b600080856001600160a01b0316348585604051610ef89291906119e5565b60006040518083038185875af1925050503d8060008114610f35576040519150601f19603f3d011682016040523d82523d6000602084013e610f3a565b606091505b509150915081610f5f578060405163729a0b5b60e01b81526004016104459190611a45565b610533888660006112a4565b600080836001600160a01b03168360405160006040518083038185875af1925050503d8060008114610fb9576040519150601f19603f3d011682016040523d82523d6000602084013e610fbe565b606091505b50915091508161065357806040516311c9b8f560e01b81526004016104459190611a45565b6040516001600160a01b0383166024820152604481018290526109b090849063a9059cbb60e01b90606401610e54565b60038190556040518181527f20461e09b8e557b77e107939f9ce6544698123aad0fc964ac5cc59b7df2e608f9060200160405180910390a150565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f68f49b346b94582a8b5f9d10e3fe3365318fe8f191ff8dce7c59c6cad06b02f590600090a250565b6001600160a01b0381166110bf5760405163d92e233d60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b038316908117825560405190917f50146d0e3c60aa1d17a70635b05494f864e86144a2201275021014fbf08bafe291a250565b60005b81518110156104ee5760008282815181106111275761112761199d565b602002602001015190506001600460008585815181106111495761114961199d565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550806001600160a01b03167f6e52dd2f27ea2ff599396dc0473c7f182d40ad3a9efe860f37f0c3fce64a851460405160405180910390a2506111c8816119b3565b905061110a565b6000611224826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113339092919063ffffffff16565b90508051600014806112455750808060200190518101906112459190611a58565b6109b05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610445565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526112f5848261134a565b610653576040516001600160a01b03841660248201526000604482015261132990859063095ea7b360e01b90606401610e54565b61065384826111cf565b606061134284846000856113f3565b949350505050565b6000806000846001600160a01b0316846040516113679190611a7a565b6000604051808303816000865af19150503d80600081146113a4576040519150601f19603f3d011682016040523d82523d6000602084013e6113a9565b606091505b50915091508180156113d35750805115806113d35750808060200190518101906113d39190611a58565b80156113e857506001600160a01b0385163b15155b925050505b92915050565b6060824710156114545760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610445565b600080866001600160a01b031685876040516114709190611a7a565b60006040518083038185875af1925050503d80600081146114ad576040519150601f19603f3d011682016040523d82523d6000602084013e6114b2565b606091505b50915091506114c3878383876114ce565b979650505050505050565b6060831561153d578251600003611536576001600160a01b0385163b6115365760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610445565b5081611342565b61134283838151156115525781518083602001fd5b8060405162461bcd60e51b81526004016104459190611a45565b6000806040838503121561157f57600080fd5b50508035926020909101359150565b80356001600160a01b03811681146115a557600080fd5b919050565b60008083601f8401126115bc57600080fd5b50813567ffffffffffffffff8111156115d457600080fd5b6020830191508360208285010111156115ec57600080fd5b9250929050565b6000806000806060858703121561160957600080fd5b843593506116196020860161158e565b9250604085013567ffffffffffffffff81111561163557600080fd5b611641878288016115aa565b95989497509550505050565b60006020828403121561165f57600080fd5b6103e48261158e565b60008083601f84011261167a57600080fd5b50813567ffffffffffffffff81111561169257600080fd5b6020830191508360208260051b85010111156115ec57600080fd5b600080602083850312156116c057600080fd5b823567ffffffffffffffff8111156116d757600080fd5b6116e385828601611668565b90969095509350505050565b600080600080600080600060c0888a03121561170a57600080fd5b6117138861158e565b9650602088013595506040880135945061172f6060890161158e565b935061173d6080890161158e565b925060a088013567ffffffffffffffff81111561175957600080fd5b6117658a828b016115aa565b989b979a50959850939692959293505050565b60008060006040848603121561178d57600080fd5b833567ffffffffffffffff8111156117a457600080fd5b6117b086828701611668565b90945092506117c390506020850161158e565b90509250925092565b6000806000806000608086880312156117e457600080fd5b6117ed8661158e565b9450602086013593506118026040870161158e565b9250606086013567ffffffffffffffff81111561181e57600080fd5b61182a888289016115aa565b969995985093965092949392505050565b60006020828403121561184d57600080fd5b5035919050565b6000806040838503121561186757600080fd5b6118708361158e565b915061187e6020840161158e565b90509250929050565b60008060008060008060008060e0898b0312156118a357600080fd5b6118ac8961158e565b9750602089013596506118c160408a0161158e565b9550606089013594506118d660808a0161158e565b93506118e460a08a0161158e565b925060c089013567ffffffffffffffff81111561190057600080fd5b61190c8b828c016115aa565b999c989b5096995094979396929594505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156113ed576113ed611920565b600081600019048311821515161561196357611963611920565b500290565b60008261198557634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156113ed576113ed611920565b634e487b7160e01b600052603260045260246000fd5b6000600182016119c5576119c5611920565b5060010190565b6000602082840312156119de57600080fd5b5051919050565b8183823760009101908152919050565b60005b83811015611a105781810151838201526020016119f8565b50506000910152565b60008151808452611a318160208601602086016119f5565b601f01601f19169290920160200192915050565b6020815260006103e46020830184611a19565b600060208284031215611a6a57600080fd5b815180151581146103e457600080fd5b60008251611a8c8184602087016119f5565b919091019291505056fea164736f6c6343000810000a0000000000000000000000008597a795366eb248e081418b6fa7b1ffb788796d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000080000000000000000000000001111111254eeb25477b68fb85ed929f73a9605820000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e64000000000000000000000000bd3fa81b58ba92a82136038b25adec7066af3155000000000000000000000000def1c0ded9bec7f1a1670819833240f027b25eff000000000000000000000000def171fe48cf0115b1d80b88dc8eab59176fee570000000000000000000000003a23f943181408eac424116af7b7790c94cb97a5000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d6660000000000000000000000006777f6ebec76d796cb3999a69cd5980bd86ccfe5
Deployed Bytecode
0x6080604052600436106101235760003560e01c806379ba5097116100a0578063b8606eef11610064578063b8606eef14610337578063c42069ec1461034d578063e30c39781461036d578063e3d90acf1461038d578063e679b6f5146103a057600080fd5b806379ba50971461028a5780637f6497831461029f578063871bb2c9146102bf5780638bf6e374146102df5780638da5cb5b146102ff57600080fd5b806358d18b3f116100e757806358d18b3f146101f757806359856af01461021757806368443f2e14610237578063685c587a1461025757806369fe0e2d1461026a57600080fd5b806313bfbc4d1461012f5780631640ff3e146101625780632c0f0e87146101775780633af32abf14610197578063548db174146101d757600080fd5b3661012a57005b600080fd5b34801561013b57600080fd5b5061014f61014a36600461156c565b6103c0565b6040519081526020015b60405180910390f35b6101756101703660046115f3565b6103eb565b005b34801561018357600080fd5b5061014f61019236600461156c565b61046f565b3480156101a357600080fd5b506101c76101b236600461164d565b60046020526000908152604090205460ff1681565b6040519015158152602001610159565b3480156101e357600080fd5b506101756101f23660046116ad565b610488565b34801561020357600080fd5b506101756102123660046116ef565b6104f2565b34801561022357600080fd5b506101756102323660046116ef565b61053d565b34801561024357600080fd5b50610175610252366004611778565b6105de565b6101756102653660046117cc565b610659565b34801561027657600080fd5b5061017561028536600461183b565b6107bf565b34801561029657600080fd5b506101756107f5565b3480156102ab57600080fd5b506101756102ba3660046116ad565b610834565b3480156102cb57600080fd5b506101756102da366004611854565b61089a565b3480156102eb57600080fd5b506101756102fa366004611887565b6109b5565b34801561030b57600080fd5b5060005461031f906001600160a01b031681565b6040516001600160a01b039091168152602001610159565b34801561034357600080fd5b5061014f60035481565b34801561035957600080fd5b5061017561036836600461164d565b610b2d565b34801561037957600080fd5b5060015461031f906001600160a01b031681565b61017561039b3660046116ef565b610b60565b3480156103ac57600080fd5b506101756103bb36600461164d565b610bec565b60006103ce82612710611936565b6103da84612710611949565b6103e49190611968565b9392505050565b60025460020361040e5760405163729668f560e11b815260040160405180910390fd5b60028055600354849081101561044e576003546040516306a215ad60e21b8152610445918391600401918252602082015260400190565b60405180910390fd5b61046361045b34876103c0565b858585610c87565b50506001600255505050565b600061271061047e8382611936565b6103da9085611949565b6000546001600160a01b031633146104b2576040516282b42960e81b815260040160405180910390fd5b6104ee828280806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250610d5892505050565b5050565b84600354811015610524576003546040516306a215ad60e21b8152610445918391600401918252602082015260400190565b61053388888888888888610b60565b5050505050505050565b6002546002036105605760405163729668f560e11b815260040160405180910390fd5b600280556003548590811015610597576003546040516306a215ad60e21b8152610445918391600401918252602082015260400190565b476105a48933308b610e20565b6105b2898988888888610e8b565b6105ce336105c96105c3844761198a565b8a6103c0565b610f6b565b5050600160025550505050505050565b6000546001600160a01b03163314610608576040516282b42960e81b815260040160405180910390fd5b60005b82811015610653576106438484838181106106285761062861199d565b905060200201602081019061063d919061164d565b8361089a565b61064c816119b3565b905061060b565b50505050565b60025460020361067c5760405163729668f560e11b815260040160405180910390fd5b6002805560035484908110156106b3576003546040516306a215ad60e21b8152610445918391600401918252602082015260400190565b6040516370a0823160e01b81523060048201526000906001600160a01b038816906370a0823190602401602060405180830381865afa1580156106fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061071e91906119cc565b905061072c34868686610c87565b6040516370a0823160e01b81523060048201526107b190889033906107ac9085906001600160a01b038516906370a0823190602401602060405180830381865afa15801561077e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a291906119cc565b6105c3919061198a565b610fe3565b505060016002555050505050565b6000546001600160a01b031633146107e9576040516282b42960e81b815260040160405180910390fd5b6107f281611013565b50565b6001546001600160a01b0316331461081f576040516282b42960e81b815260040160405180910390fd5b610829600061104e565b61083233611098565b565b6000546001600160a01b0316331461085e576040516282b42960e81b815260040160405180910390fd5b6104ee82828080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061110792505050565b6000546001600160a01b031633146108c4576040516282b42960e81b815260040160405180910390fd5b6001600160a01b0381166108eb5760405163d92e233d60e01b815260040160405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015610932573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095691906119cc565b9050816001600160a01b0316836001600160a01b03167ff247aed45b8afd5ae54bd3f6f884eb78df14bc00208ca905e6ae335ffe678d8c8360405161099d91815260200190565b60405180910390a36109b0838383610fe3565b505050565b6002546002036109d85760405163729668f560e11b815260040160405180910390fd5b600280556003548590811015610a0f576003546040516306a215ad60e21b8152610445918391600401918252602082015260400190565b6040516370a0823160e01b81523060048201526000906001600160a01b038916906370a0823190602401602060405180830381865afa158015610a56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a7a91906119cc565b9050610a888a33308c610e20565b610a968a8a88888888610e8b565b6040516370a0823160e01b8152306004820152610b1c90899033906107ac9085906001600160a01b038516906370a0823190602401602060405180830381865afa158015610ae8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0c91906119cc565b610b16919061198a565b8b6103c0565b505060016002555050505050505050565b6000546001600160a01b03163314610b57576040516282b42960e81b815260040160405180910390fd5b6107f28161104e565b600254600203610b835760405163729668f560e11b815260040160405180910390fd5b600280556003548590811015610bba576003546040516306a215ad60e21b8152610445918391600401918252602082015260400190565b610bcf883330610bca8b8b61046f565b610e20565b610bdd888887878787610e8b565b50506001600255505050505050565b6000546001600160a01b03163314610c16576040516282b42960e81b815260040160405180910390fd5b6001600160a01b038116610c3d5760405163d92e233d60e01b815260040160405180910390fd5b60405147808252906001600160a01b038316907f9f15f0df128ea65ddf3aaa8d614e5f49a3c1e64d78f072b28aabdc36c9d27bf29060200160405180910390a26104ee8282610f6b565b6001600160a01b03831660009081526004602052604090205460ff16610ccb576040516340d53e3360e11b81526001600160a01b0384166004820152602401610445565b600080846001600160a01b0316868585604051610ce99291906119e5565b60006040518083038185875af1925050503d8060008114610d26576040519150601f19603f3d011682016040523d82523d6000602084013e610d2b565b606091505b509150915081610d50578060405163729a0b5b60e01b81526004016104459190611a45565b505050505050565b60005b81518110156104ee576000828281518110610d7857610d7861199d565b60200260200101519050600060046000858581518110610d9a57610d9a61199d565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550806001600160a01b03167ffb8b462bd4e3db069eb434596fcfb88044cfe688f7329d1c4bdfbb113257b1ac60405160405180910390a250610e19816119b3565b9050610d5b565b6040516001600160a01b03808516602483015283166044820152606481018290526106539085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526111cf565b6001600160a01b03841660009081526004602052604090205460ff16610ecf576040516340d53e3360e11b81526001600160a01b0385166004820152602401610445565b610eda8684876112a4565b600080856001600160a01b0316348585604051610ef89291906119e5565b60006040518083038185875af1925050503d8060008114610f35576040519150601f19603f3d011682016040523d82523d6000602084013e610f3a565b606091505b509150915081610f5f578060405163729a0b5b60e01b81526004016104459190611a45565b610533888660006112a4565b600080836001600160a01b03168360405160006040518083038185875af1925050503d8060008114610fb9576040519150601f19603f3d011682016040523d82523d6000602084013e610fbe565b606091505b50915091508161065357806040516311c9b8f560e01b81526004016104459190611a45565b6040516001600160a01b0383166024820152604481018290526109b090849063a9059cbb60e01b90606401610e54565b60038190556040518181527f20461e09b8e557b77e107939f9ce6544698123aad0fc964ac5cc59b7df2e608f9060200160405180910390a150565b600180546001600160a01b0319166001600160a01b0383169081179091556040517f68f49b346b94582a8b5f9d10e3fe3365318fe8f191ff8dce7c59c6cad06b02f590600090a250565b6001600160a01b0381166110bf5760405163d92e233d60e01b815260040160405180910390fd5b600080546001600160a01b0319166001600160a01b038316908117825560405190917f50146d0e3c60aa1d17a70635b05494f864e86144a2201275021014fbf08bafe291a250565b60005b81518110156104ee5760008282815181106111275761112761199d565b602002602001015190506001600460008585815181106111495761114961199d565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550806001600160a01b03167f6e52dd2f27ea2ff599396dc0473c7f182d40ad3a9efe860f37f0c3fce64a851460405160405180910390a2506111c8816119b3565b905061110a565b6000611224826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166113339092919063ffffffff16565b90508051600014806112455750808060200190518101906112459190611a58565b6109b05760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610445565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526112f5848261134a565b610653576040516001600160a01b03841660248201526000604482015261132990859063095ea7b360e01b90606401610e54565b61065384826111cf565b606061134284846000856113f3565b949350505050565b6000806000846001600160a01b0316846040516113679190611a7a565b6000604051808303816000865af19150503d80600081146113a4576040519150601f19603f3d011682016040523d82523d6000602084013e6113a9565b606091505b50915091508180156113d35750805115806113d35750808060200190518101906113d39190611a58565b80156113e857506001600160a01b0385163b15155b925050505b92915050565b6060824710156114545760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610445565b600080866001600160a01b031685876040516114709190611a7a565b60006040518083038185875af1925050503d80600081146114ad576040519150601f19603f3d011682016040523d82523d6000602084013e6114b2565b606091505b50915091506114c3878383876114ce565b979650505050505050565b6060831561153d578251600003611536576001600160a01b0385163b6115365760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610445565b5081611342565b61134283838151156115525781518083602001fd5b8060405162461bcd60e51b81526004016104459190611a45565b6000806040838503121561157f57600080fd5b50508035926020909101359150565b80356001600160a01b03811681146115a557600080fd5b919050565b60008083601f8401126115bc57600080fd5b50813567ffffffffffffffff8111156115d457600080fd5b6020830191508360208285010111156115ec57600080fd5b9250929050565b6000806000806060858703121561160957600080fd5b843593506116196020860161158e565b9250604085013567ffffffffffffffff81111561163557600080fd5b611641878288016115aa565b95989497509550505050565b60006020828403121561165f57600080fd5b6103e48261158e565b60008083601f84011261167a57600080fd5b50813567ffffffffffffffff81111561169257600080fd5b6020830191508360208260051b85010111156115ec57600080fd5b600080602083850312156116c057600080fd5b823567ffffffffffffffff8111156116d757600080fd5b6116e385828601611668565b90969095509350505050565b600080600080600080600060c0888a03121561170a57600080fd5b6117138861158e565b9650602088013595506040880135945061172f6060890161158e565b935061173d6080890161158e565b925060a088013567ffffffffffffffff81111561175957600080fd5b6117658a828b016115aa565b989b979a50959850939692959293505050565b60008060006040848603121561178d57600080fd5b833567ffffffffffffffff8111156117a457600080fd5b6117b086828701611668565b90945092506117c390506020850161158e565b90509250925092565b6000806000806000608086880312156117e457600080fd5b6117ed8661158e565b9450602086013593506118026040870161158e565b9250606086013567ffffffffffffffff81111561181e57600080fd5b61182a888289016115aa565b969995985093965092949392505050565b60006020828403121561184d57600080fd5b5035919050565b6000806040838503121561186757600080fd5b6118708361158e565b915061187e6020840161158e565b90509250929050565b60008060008060008060008060e0898b0312156118a357600080fd5b6118ac8961158e565b9750602089013596506118c160408a0161158e565b9550606089013594506118d660808a0161158e565b93506118e460a08a0161158e565b925060c089013567ffffffffffffffff81111561190057600080fd5b61190c8b828c016115aa565b999c989b5096995094979396929594505050565b634e487b7160e01b600052601160045260246000fd5b808201808211156113ed576113ed611920565b600081600019048311821515161561196357611963611920565b500290565b60008261198557634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156113ed576113ed611920565b634e487b7160e01b600052603260045260246000fd5b6000600182016119c5576119c5611920565b5060010190565b6000602082840312156119de57600080fd5b5051919050565b8183823760009101908152919050565b60005b83811015611a105781810151838201526020016119f8565b50506000910152565b60008151808452611a318160208601602086016119f5565b601f01601f19169290920160200192915050565b6020815260006103e46020830184611a19565b600060208284031215611a6a57600080fd5b815180151581146103e457600080fd5b60008251611a8c8184602087016119f5565b919091019291505056fea164736f6c6343000810000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000008597a795366eb248e081418b6fa7b1ffb788796d0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000080000000000000000000000001111111254eeb25477b68fb85ed929f73a9605820000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e64000000000000000000000000bd3fa81b58ba92a82136038b25adec7066af3155000000000000000000000000def1c0ded9bec7f1a1670819833240f027b25eff000000000000000000000000def171fe48cf0115b1d80b88dc8eab59176fee570000000000000000000000003a23f943181408eac424116af7b7790c94cb97a5000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d6660000000000000000000000006777f6ebec76d796cb3999a69cd5980bd86ccfe5
-----Decoded View---------------
Arg [0] : owner_ (address): 0x8597a795366eB248E081418B6fa7B1FfB788796D
Arg [1] : feeBasisPoints_ (uint256): 0
Arg [2] : whitelist_ (address[]): 0x1111111254EEB25477B68fb85Ed929f73A960582,0x6352a56caadC4F1E25CD6c75970Fa768A3304e64,0xBd3fa81B58Ba92a82136038B25aDec7066af3155,0xDef1C0ded9bec7F1a1670819833240f027b25EfF,0xDEF171Fe48CF0115B1d80b88dc8eAB59176FEe57,0x3a23F943181408EAC424116Af7b7790c94Cb97a5,0xce16F69375520ab01377ce7B88f5BA8C48F8D666,0x6777f6ebEC76D796CB3999A69cd5980bD86cCfe5
-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000008597a795366eb248e081418b6fa7b1ffb788796d
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [4] : 0000000000000000000000001111111254eeb25477b68fb85ed929f73a960582
Arg [5] : 0000000000000000000000006352a56caadc4f1e25cd6c75970fa768a3304e64
Arg [6] : 000000000000000000000000bd3fa81b58ba92a82136038b25adec7066af3155
Arg [7] : 000000000000000000000000def1c0ded9bec7f1a1670819833240f027b25eff
Arg [8] : 000000000000000000000000def171fe48cf0115b1d80b88dc8eab59176fee57
Arg [9] : 0000000000000000000000003a23f943181408eac424116af7b7790c94cb97a5
Arg [10] : 000000000000000000000000ce16f69375520ab01377ce7b88f5ba8c48f8d666
Arg [11] : 0000000000000000000000006777f6ebec76d796cb3999a69cd5980bd86ccfe5
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 22.60% | $1,809.5 | 1.3423 | $2,428.84 | |
ETH | 9.49% | $84,924 | 0.012 | $1,019.66 | |
ETH | 8.60% | $1,608.42 | 0.5748 | $924.55 | |
ETH | 3.89% | $0.99992 | 418.1014 | $418.07 | |
ETH | 2.60% | $4.08 | 68.5616 | $279.73 | |
ETH | 1.79% | $0.999895 | 192.7654 | $192.75 | |
ETH | 1.79% | $135.34 | 1.421 | $192.31 | |
ETH | 1.47% | $12.62 | 12.5 | $157.75 | |
ETH | 1.34% | $84,682 | 0.00169508 | $143.54 | |
ETH | 1.22% | $85,016 | 0.00154284 | $131.17 | |
ETH | 1.13% | $1 | 121.5949 | $121.59 | |
ETH | 0.97% | $0.008773 | 11,853.4604 | $103.98 | |
ETH | 0.91% | $140.15 | 0.6957 | $97.5 | |
ETH | 0.86% | $1,608.42 | 0.0574 | $92.38 | |
ETH | 0.76% | $0.077819 | 1,053.995 | $82.02 | |
ETH | 0.72% | $0.217859 | 353.4281 | $77 | |
ETH | 0.46% | $0.000007 | 6,696,611.4017 | $49.62 | |
ETH | 0.44% | $0.049967 | 952.6219 | $47.6 | |
ETH | 0.33% | $2.54 | 13.829 | $35.13 | |
ETH | 0.32% | $1,605.41 | 0.0217 | $34.8 | |
ETH | 0.26% | $0.365912 | 75.0922 | $27.48 | |
ETH | 0.23% | $0.007074 | 3,504.1234 | $24.79 | |
ETH | 0.21% | $11.4 | 1.9778 | $22.55 | |
ETH | 0.18% | $1 | 19.4663 | $19.49 | |
ETH | 0.18% | $0.846196 | 22.8557 | $19.34 | |
ETH | 0.16% | $0.533372 | 31.7328 | $16.93 | |
ETH | 0.15% | $0.05717 | 288.2524 | $16.48 | |
ETH | 0.13% | $0.008632 | 1,605.1646 | $13.86 | |
ETH | 0.13% | $0.134175 | 101.6159 | $13.63 | |
ETH | 0.11% | $0.47416 | 24.1943 | $11.47 | |
ETH | 0.10% | $0.417851 | 25.1689 | $10.52 | |
ETH | 0.10% | $0.027014 | 382.4978 | $10.33 | |
ETH | 0.09% | $0.444703 | 22.5339 | $10.02 | |
ETH | 0.09% | $0.239948 | 41.4 | $9.93 | |
ETH | 0.09% | $1,926.06 | 0.00511987 | $9.86 | |
ETH | 0.07% | <$0.000001 | 16,983,027.2597 | $7.5 | |
ETH | 0.07% | <$0.000001 | 136,645,898.8847 | $7.14 | |
ETH | 0.06% | $84,153 | 0.00007765 | $6.53 | |
ETH | 0.06% | $5.25 | 1.2158 | $6.38 | |
ETH | 0.06% | $1 | 6.139 | $6.15 | |
ETH | 0.06% | $0.001808 | 3,367.7938 | $6.09 | |
ETH | 0.05% | $7.81 | 0.728 | $5.68 | |
ETH | 0.05% | $0.492809 | 10.8976 | $5.37 | |
ETH | 0.05% | $4,485.39 | 0.00118449 | $5.31 | |
ETH | 0.05% | $2.07 | 2.549 | $5.28 | |
ETH | 0.05% | $0.000036 | 136,417.8159 | $4.88 | |
ETH | 0.04% | $0.145595 | 29.9103 | $4.35 | |
ETH | 0.04% | $0.293302 | 14.4138 | $4.23 | |
ETH | 0.04% | $0.001584 | 2,622.168 | $4.15 | |
ETH | 0.04% | $137.81 | 0.0287 | $3.95 | |
ETH | 0.04% | $0.566041 | 6.8611 | $3.88 | |
ETH | 0.04% | $0.183663 | 20.7725 | $3.82 | |
ETH | 0.03% | $0.009123 | 380.9328 | $3.48 | |
ETH | 0.03% | $1.05 | 3.1589 | $3.32 | |
ETH | 0.03% | $0.000148 | 20,686.439 | $3.06 | |
ETH | 0.03% | $0.013471 | 219.4723 | $2.96 | |
ETH | 0.03% | $0.000028 | 96,493.856 | $2.73 | |
ETH | 0.02% | $0.001448 | 1,674.9901 | $2.43 | |
ETH | 0.02% | $0.129772 | 17.505 | $2.27 | |
ETH | 0.02% | $0.168308 | 12.7706 | $2.15 | |
ETH | 0.02% | $1,369.14 | 0.00150248 | $2.06 | |
ETH | 0.02% | $0.45573 | 4.1039 | $1.87 | |
ETH | 0.02% | $0.02087 | 79.9477 | $1.67 | |
ETH | 0.01% | $0.065494 | 22.7893 | $1.49 | |
ETH | 0.01% | $0.04583 | 31.2579 | $1.43 | |
ETH | 0.01% | $3.11 | 0.4318 | $1.34 | |
ETH | 0.01% | $0.769991 | 1.5457 | $1.19 | |
ETH | 0.01% | $0.03523 | 33.0734 | $1.17 | |
ETH | <0.01% | $0.014062 | 59.5408 | $0.8372 | |
ETH | <0.01% | $13.23 | 0.0617 | $0.8168 | |
ETH | <0.01% | <$0.000001 | 3,204,027.7478 | $0.714 | |
ETH | <0.01% | $0.001889 | 369.0643 | $0.6973 | |
ETH | <0.01% | $23.26 | 0.0273 | $0.6356 | |
ETH | <0.01% | $0.03991 | 15.4698 | $0.6173 | |
ETH | <0.01% | $66.07 | 0.00883848 | $0.5839 | |
ETH | <0.01% | $0.000174 | 3,167.5445 | $0.551 | |
ETH | <0.01% | $3,336.56 | 0.00016297 | $0.5437 | |
ETH | <0.01% | $0.797385 | 0.6561 | $0.5231 | |
ETH | <0.01% | $0.014587 | 29.219 | $0.4262 | |
ETH | <0.01% | $0.215074 | 1.8443 | $0.3966 | |
ETH | <0.01% | $2.33 | 0.1569 | $0.3652 | |
ETH | <0.01% | $0.138413 | 2.626 | $0.3634 | |
ETH | <0.01% | $39.71 | 0.00913252 | $0.3626 | |
ETH | <0.01% | $0.006765 | 51.374 | $0.3475 | |
ETH | <0.01% | $0.022078 | 15.5732 | $0.3438 | |
ETH | <0.01% | $0.000012 | 27,259.992 | $0.3254 | |
ETH | <0.01% | $0.125801 | 2.4557 | $0.3089 | |
ETH | <0.01% | $0.000298 | 1,023.036 | $0.3053 | |
ETH | <0.01% | $0.227648 | 1.3153 | $0.2994 | |
ETH | <0.01% | $0.91463 | 0.268 | $0.2451 | |
ETH | <0.01% | $0.000055 | 4,296.7943 | $0.2359 | |
ETH | <0.01% | $0.013511 | 17.0339 | $0.2301 | |
ETH | <0.01% | $0.005901 | 35.7421 | $0.2109 | |
ETH | <0.01% | $0.025473 | 8.0857 | $0.2059 | |
ETH | <0.01% | $0.240865 | 0.7364 | $0.1773 | |
ETH | <0.01% | $9.04 | 0.0196 | $0.1772 | |
ETH | <0.01% | $3.23 | 0.0518 | $0.1673 | |
ETH | <0.01% | $0.054339 | 3.0587 | $0.1662 | |
ETH | <0.01% | $0.004862 | 32.6065 | $0.1585 | |
ETH | <0.01% | $0.068089 | 1.6211 | $0.1103 | |
ARB | 7.07% | $0.999894 | 759.7805 | $759.7 | |
ARB | 6.40% | $84,831 | 0.00810424 | $687.49 | |
ARB | 1.82% | $0.999918 | 195.0794 | $195.06 | |
ARB | 0.21% | $0.28405 | 78.7842 | $22.38 | |
ARB | 0.20% | $1.34 | 16.1146 | $21.59 | |
ARB | 0.16% | $1,603.19 | 0.0104 | $16.75 | |
ARB | 0.10% | $12.62 | 0.8164 | $10.3 | |
ARB | 0.07% | $1,608.51 | 0.0049438 | $7.95 | |
ARB | 0.05% | $3.1 | 1.7821 | $5.52 | |
ARB | 0.05% | $1 | 5.2606 | $5.26 | |
ARB | 0.04% | $0.55339 | 8.4857 | $4.7 | |
ARB | 0.04% | $0.026955 | 174 | $4.69 | |
ARB | 0.04% | $0.999894 | 3.8377 | $3.84 | |
ARB | 0.03% | $1.13 | 2.9821 | $3.37 | |
ARB | 0.03% | $0.000526 | 5,688.2639 | $2.99 | |
ARB | <0.01% | $0.077765 | 9.7323 | $0.7568 | |
ARB | <0.01% | $139.86 | 0.00525655 | $0.7351 | |
ARB | <0.01% | $0.241187 | 2.2333 | $0.5386 | |
ARB | <0.01% | $1 | 0.2622 | $0.2621 | |
AVAX | 8.06% | $19.43 | 44.5807 | $866.21 | |
AVAX | 0.50% | $0.999977 | 54.0141 | $54.01 | |
AVAX | 0.15% | $0.999547 | 15.7339 | $15.73 | |
AVAX | 0.14% | $0.999977 | 15.4476 | $15.45 | |
AVAX | 0.08% | $0.008021 | 1,137.6254 | $9.12 | |
AVAX | 0.06% | $1,603.19 | 0.00369188 | $5.92 | |
AVAX | <0.01% | $0.000001 | 1,213,748.1496 | $0.7413 | |
AVAX | <0.01% | $12.62 | 0.0318 | $0.4015 | |
BSC | 2.23% | $0.999916 | 240.1041 | $240.08 | |
BSC | 1.00% | $2.09 | 51.5693 | $107.75 | |
BSC | 0.61% | $0.999848 | 65.4125 | $65.4 | |
BSC | 0.41% | $591.9 | 0.0741 | $43.88 | |
BSC | 0.23% | $3.65 | 6.6898 | $24.41 | |
BSC | 0.14% | $1 | 14.8491 | $14.85 | |
BSC | 0.11% | $5.05 | 2.3653 | $11.94 | |
BSC | 0.05% | $12.6 | 0.4437 | $5.59 | |
BSC | 0.04% | $0.659482 | 6.0484 | $3.99 | |
BSC | 0.03% | $1,604.51 | 0.00198044 | $3.18 | |
BSC | 0.02% | $0.925526 | 2.7989 | $2.59 | |
BSC | 0.02% | $0.020479 | 120.0329 | $2.46 | |
BSC | 0.02% | $591.73 | 0.00410118 | $2.43 | |
BSC | 0.02% | $0.071906 | 30.0001 | $2.16 | |
BSC | 0.02% | $1.82 | 0.9695 | $1.76 | |
BSC | 0.01% | $7.81 | 0.1881 | $1.47 | |
BSC | 0.01% | $0.231419 | 6.021 | $1.39 | |
BSC | 0.01% | $134.89 | 0.00914768 | $1.23 | |
BSC | 0.01% | $84,824.47 | 0.00001295 | $1.1 | |
BSC | <0.01% | $0.065967 | 16.1861 | $1.07 | |
BSC | <0.01% | $0.000055 | 18,883.9816 | $1.04 | |
BSC | <0.01% | $1.3 | 0.6929 | $0.9027 | |
BSC | <0.01% | $0.157961 | 3.6962 | $0.5838 | |
BSC | <0.01% | $0.263633 | 2.15 | $0.5668 | |
BSC | <0.01% | $4.15 | 0.1272 | $0.5279 | |
BSC | <0.01% | $0.069119 | 6.9299 | $0.4789 | |
BSC | <0.01% | $0.028465 | 14.2544 | $0.4057 | |
BSC | <0.01% | $0.62737 | 0.53 | $0.3325 | |
BSC | <0.01% | $0.998869 | 0.3129 | $0.3125 | |
BSC | <0.01% | $0.017722 | 16.9681 | $0.3007 | |
BSC | <0.01% | $0.250021 | 1.0651 | $0.2662 | |
BSC | <0.01% | $0.293431 | 0.8412 | $0.2468 | |
BSC | <0.01% | $1 | 0.2074 | $0.2073 | |
BSC | <0.01% | $5.23 | 0.0316 | $0.1654 | |
BSC | <0.01% | $0.082246 | 1.4656 | $0.1205 | |
BSC | <0.01% | $139.51 | 0.00085149 | $0.1187 | |
POL | 2.25% | $0.999946 | 241.6395 | $241.63 | |
POL | 0.71% | $0.999916 | 75.9678 | $75.96 | |
POL | 0.10% | $1,604.51 | 0.00673883 | $10.81 | |
POL | 0.08% | $0.077719 | 111.279 | $8.65 | |
POL | 0.07% | $1 | 7.8932 | $7.89 | |
POL | 0.04% | $0.30928 | 14.9641 | $4.63 | |
POL | 0.04% | $0.999946 | 4.4318 | $4.43 | |
POL | 0.04% | $0.613625 | 6.7532 | $4.14 | |
POL | 0.04% | $0.659482 | 5.8569 | $3.86 | |
POL | 0.03% | $84,779 | 0.00003548 | $3.01 | |
POL | 0.02% | $0.250028 | 6.9781 | $1.74 | |
POL | 0.01% | $4.06 | 0.3612 | $1.47 | |
POL | 0.01% | $0.183722 | 6.6317 | $1.22 | |
POL | 0.01% | $5.24 | 0.2265 | $1.19 | |
POL | <0.01% | $12.62 | 0.0711 | $0.897 | |
POL | <0.01% | $0.183672 | 4.4225 | $0.8122 | |
POL | <0.01% | $1.34 | 0.5168 | $0.6925 | |
POL | <0.01% | $139.66 | 0.00364925 | $0.5096 | |
POL | <0.01% | $0.021976 | 12.6591 | $0.2781 | |
POL | <0.01% | $0.212478 | 1.1179 | $0.2375 | |
POL | <0.01% | $3,336.82 | 0.00006972 | $0.2326 | |
POL | <0.01% | $0.392496 | 0.3589 | $0.1408 | |
POL | <0.01% | $0.273879 | 0.4392 | $0.1202 | |
POL | <0.01% | $1,929.77 | 0.00006204 | $0.1197 | |
OP | 0.78% | $0.999894 | 83.9968 | $83.99 | |
OP | 0.07% | $0.652123 | 11.3021 | $7.37 | |
OP | 0.04% | $0.99992 | 4.7626 | $4.76 | |
OP | <0.01% | $1,608.01 | 0.00048205 | $0.775138 | |
OP | <0.01% | $0.632946 | 0.8978 | $0.5682 | |
OP | <0.01% | $0.999894 | 0.1209 | $0.1209 | |
BASE | 0.01% | $1,608.6 | 0.00082527 | $1.33 | |
GNO | <0.01% | $1 | 0.1699 | $0.169872 | |
GNO | <0.01% | $109.39 | 0.00119887 | $0.1311 | |
CRONOS | <0.01% | $0.083347 | 0.3005 | $0.025042 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.