More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 8,611 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Clipper Swap | 14816536 | 828 days ago | IN | 0 ETH | 0.00077102 | ||||
Clipper Swap | 14608982 | 861 days ago | IN | 0 ETH | 0.00314833 | ||||
Clipper Swap | 14608578 | 861 days ago | IN | 0 ETH | 0.00619244 | ||||
Clipper Swap | 14603163 | 862 days ago | IN | 0 ETH | 0.00294987 | ||||
Clipper Swap | 14603132 | 862 days ago | IN | 0 ETH | 0.00445679 | ||||
Clipper Swap | 14603093 | 862 days ago | IN | 0 ETH | 0.00568938 | ||||
Clipper Swap | 14602561 | 862 days ago | IN | 0 ETH | 0.00390401 | ||||
Clipper Swap | 14602322 | 862 days ago | IN | 0 ETH | 0.00293016 | ||||
Clipper Swap | 14597028 | 863 days ago | IN | 0 ETH | 0.00525608 | ||||
Clipper Swap | 14596831 | 863 days ago | IN | 0 ETH | 0.00489924 | ||||
Clipper Swap | 14596343 | 863 days ago | IN | 0 ETH | 0.00337044 | ||||
Clipper Swap | 14595133 | 863 days ago | IN | 0 ETH | 0.00392946 | ||||
Clipper Swap | 14594933 | 863 days ago | IN | 0 ETH | 0.00361666 | ||||
Clipper Swap | 14594202 | 864 days ago | IN | 0 ETH | 0.00573975 | ||||
Clipper Swap | 14589870 | 864 days ago | IN | 0 ETH | 0.00828661 | ||||
Clipper Swap | 14589723 | 864 days ago | IN | 0 ETH | 0.00570553 | ||||
Clipper Swap | 14583111 | 865 days ago | IN | 0 ETH | 0.00454436 | ||||
Clipper Swap | 14582824 | 865 days ago | IN | 0 ETH | 0.00500646 | ||||
Clipper Swap | 14580718 | 866 days ago | IN | 0 ETH | 0.00706323 | ||||
Clipper Swap | 14577360 | 866 days ago | IN | 0 ETH | 0.00881604 | ||||
Clipper Swap | 14577336 | 866 days ago | IN | 0 ETH | 0.00946143 | ||||
Clipper Swap | 14576813 | 866 days ago | IN | 0 ETH | 0.00537549 | ||||
Clipper Swap | 14576804 | 866 days ago | IN | 0 ETH | 0.0046905 | ||||
Clipper Swap | 14571416 | 867 days ago | IN | 0 ETH | 0.01317265 | ||||
Clipper Swap | 14571161 | 867 days ago | IN | 0 ETH | 0.00737391 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
12820217 | 1140 days ago | 0.1 ETH | ||||
12820064 | 1140 days ago | 0.05 ETH | ||||
12820016 | 1140 days ago | 1 ETH | ||||
12820004 | 1140 days ago | 0.03 ETH | ||||
12819942 | 1140 days ago | 0.1 ETH | ||||
12819932 | 1140 days ago | 0.1 ETH | ||||
12819638 | 1140 days ago | 0.1 ETH | ||||
12819517 | 1140 days ago | 0.01 ETH | ||||
12819407 | 1140 days ago | 0.005 ETH | ||||
12819380 | 1140 days ago | 0.12 ETH | ||||
12818172 | 1140 days ago | 0.05 ETH | ||||
12816385 | 1141 days ago | 0.1 ETH | ||||
12772797 | 1147 days ago | 0.05 ETH | ||||
12772731 | 1147 days ago | 0.05 ETH | ||||
12768347 | 1148 days ago | 0.901 ETH | ||||
12758261 | 1150 days ago | 0.1 ETH | ||||
12751168 | 1151 days ago | 0.03 ETH | ||||
12749535 | 1151 days ago | 0.01 ETH | ||||
12749008 | 1151 days ago | 0.01 ETH | ||||
12746883 | 1151 days ago | 0.1 ETH | ||||
12746859 | 1151 days ago | 0.1 ETH | ||||
12745971 | 1152 days ago | 0.973 ETH | ||||
12745651 | 1152 days ago | 0.08 ETH | ||||
12745320 | 1152 days ago | 0.5 ETH | ||||
12745318 | 1152 days ago | 0.5 ETH |
Loading...
Loading
Contract Name:
ClipperRouter
Compiler Version
v0.8.5+commit.a4f2e591
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-06-22 */ // Sources flattened with hardhat v2.3.0 https://hardhat.org // SPDX-License-Identifier: Business Source License 1.1 see LICENSE.txt AND MIT // File @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File @openzeppelin/contracts/access/[email protected] pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File contracts/libraries/PLPAPIInterface.sol pragma solidity ^0.8.0; // PLP API interface PLPAPIInterface { function getSellQuote(address inputToken, address outputToken, uint256 sellAmount) external view returns (uint256 outputTokenAmount); function sellTokenForToken(address inputToken, address outputToken, address recipient, uint256 minBuyAmount, bytes calldata auxiliaryData) external returns (uint256 boughtAmount); function sellEthForToken(address outputToken, address recipient, uint256 minBuyAmount, bytes calldata auxiliaryData) external payable returns (uint256 boughtAmount); function sellTokenForEth(address inputToken, address payable recipient, uint256 minBuyAmount, bytes calldata auxiliaryData) external returns (uint256 boughtAmount); } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool); /** * @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); } // File @openzeppelin/contracts/token/ERC20/extensions/[email protected] pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The defaut value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= amount; emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity ^0.8.0; /** * @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 * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (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 functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // 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 // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] pragma solidity ^0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File contracts/libraries/UniERC20.sol pragma solidity ^0.8.0; // Unified library for interacting with native ETH and ERC20 // Design inspiration from Mooniswap library UniERC20 { using SafeERC20 for ERC20; function isETH(ERC20 token) internal pure returns (bool) { return (address(token) == address(0)); } function uniCheckAllowance(ERC20 token, uint256 amount, address owner, address spender) internal view returns (bool) { if(isETH(token)){ return msg.value==amount; } else { return token.allowance(owner, spender) >= amount; } } function uniBalanceOf(ERC20 token, address account) internal view returns (uint256) { if (isETH(token)) { return account.balance-msg.value; } else { return token.balanceOf(account); } } function uniTransfer(ERC20 token, address to, uint256 amount) internal { if (amount > 0) { if (isETH(token)) { (bool success, ) = payable(to).call{value: amount}(""); require(success, "Transfer failed."); } else { token.safeTransfer(to, amount); } } } function uniTransferFromSender(ERC20 token, uint256 amount, address sendTo) internal { if (amount > 0) { if (isETH(token)) { require(msg.value == amount, "Incorrect value"); payable(sendTo).transfer(msg.value); } else { token.safeTransferFrom(msg.sender, sendTo, amount); } } } } // File contracts/ClipperRouter.sol pragma solidity ^0.8.0; // Simple router contract ClipperRouter is Ownable { using UniERC20 for ERC20; address payable public clipperPool; PLPAPIInterface public clipperExchange; bytes auxiliaryData; constructor(address payable poolAddress, address exchangeAddress, string memory theData) { clipperPool = poolAddress; clipperExchange = PLPAPIInterface(exchangeAddress); auxiliaryData = bytes(theData); } function modifyContractAddresses(address payable poolAddress, address exchangeAddress) external onlyOwner { require((poolAddress!=address(0)) && exchangeAddress!=address(0), "Clipper Router: Invalid contract addresses"); clipperPool = poolAddress; clipperExchange = PLPAPIInterface(exchangeAddress); } // Executes the "transfer-then-swap" modality in a single transaction function clipperSwap(address inputToken, uint256 sellAmount, address outputToken, address recipient, uint256 minBuyAmount) external payable { ERC20 _input = ERC20(inputToken); ERC20 _output = ERC20(outputToken); require(_input.uniCheckAllowance(sellAmount, msg.sender, address(this)), "Clipper Router: Allowance check failed"); require(recipient != address(0), "Clipper Router: Invalid recipient"); _input.uniTransferFromSender(sellAmount, clipperPool); if(_input.isETH()){ clipperExchange.sellEthForToken(outputToken, recipient, minBuyAmount, auxiliaryData); } else if(_output.isETH()){ clipperExchange.sellTokenForEth(inputToken, payable(recipient), minBuyAmount, auxiliaryData); } else { clipperExchange.sellTokenForToken(inputToken, outputToken, recipient, minBuyAmount, auxiliaryData); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"poolAddress","type":"address"},{"internalType":"address","name":"exchangeAddress","type":"address"},{"internalType":"string","name":"theData","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"clipperExchange","outputs":[{"internalType":"contract PLPAPIInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"clipperPool","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"inputToken","type":"address"},{"internalType":"uint256","name":"sellAmount","type":"uint256"},{"internalType":"address","name":"outputToken","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"minBuyAmount","type":"uint256"}],"name":"clipperSwap","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"poolAddress","type":"address"},{"internalType":"address","name":"exchangeAddress","type":"address"}],"name":"modifyContractAddresses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b50604051620013a5380380620013a583398101604081905262000034916200016a565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b038086166001600160a01b03199283161790925560028054928516929091169190911790558051620000ba906003906020840190620000c4565b50505050620002e0565b828054620000d29062000274565b90600052602060002090601f016020900481019282620000f6576000855562000141565b82601f106200011157805160ff191683800117855562000141565b8280016001018555821562000141579182015b828111156200014157825182559160200191906001019062000124565b506200014f92915062000153565b5090565b5b808211156200014f576000815560010162000154565b6000806000606084860312156200018057600080fd5b83516200018d81620002c7565b80935050602080850151620001a281620002c7565b60408601519093506001600160401b0380821115620001c057600080fd5b818701915087601f830112620001d557600080fd5b815181811115620001ea57620001ea620002b1565b604051601f8201601f19908116603f01168101908382118183101715620002155762000215620002b1565b816040528281528a868487010111156200022e57600080fd5b600093505b8284101562000252578484018601518185018701529285019262000233565b82841115620002645760008684830101525b8096505050505050509250925092565b600181811c908216806200028957607f821691505b60208210811415620002ab57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114620002dd57600080fd5b50565b6110b580620002f06000396000f3fe6080604052600436106100705760003560e01c806394e93d8d1161004e57806394e93d8d146100fc57806395b790d11461010f578063f2fde38b1461013c578063f851272b1461015c57600080fd5b806311b2f51114610075578063715018a6146100975780638da5cb5b146100ac575b600080fd5b34801561008157600080fd5b50610095610090366004610d8b565b610189565b005b3480156100a357600080fd5b506100956102f4565b3480156100b857600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b61009561010a366004610dc4565b6103ca565b34801561011b57600080fd5b506002546100d39073ffffffffffffffffffffffffffffffffffffffff1681565b34801561014857600080fd5b50610095610157366004610d6e565b610715565b34801561016857600080fd5b506001546100d39073ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633146101f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82161580159061022f575073ffffffffffffffffffffffffffffffffffffffff811615155b6102a15760405162461bcd60e51b815260206004820152602a60248201527f436c697070657220526f757465723a20496e76616c696420636f6e747261637460448201527f206164647265737365730000000000000000000000000000000000000000000060648201526084016101ec565b6001805473ffffffffffffffffffffffffffffffffffffffff9384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560028054929093169116179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461035b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101ec565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b84836103ee73ffffffffffffffffffffffffffffffffffffffff8316873330610892565b6104605760405162461bcd60e51b815260206004820152602660248201527f436c697070657220526f757465723a20416c6c6f77616e636520636865636b2060448201527f6661696c6564000000000000000000000000000000000000000000000000000060648201526084016101ec565b73ffffffffffffffffffffffffffffffffffffffff84166104e95760405162461bcd60e51b815260206004820152602160248201527f436c697070657220526f757465723a20496e76616c696420726563697069656e60448201527f740000000000000000000000000000000000000000000000000000000000000060648201526084016101ec565b6001546105119073ffffffffffffffffffffffffffffffffffffffff8481169189911661096f565b73ffffffffffffffffffffffffffffffffffffffff82166105e1576002546040517fb52e845800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063b52e84589061058990889088908890600390600401610f4d565b602060405180830381600087803b1580156105a357600080fd5b505af11580156105b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105db9190610e41565b5061070c565b73ffffffffffffffffffffffffffffffffffffffff8116610659576002546040517f69be90ec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906369be90ec90610589908a9088908890600390600401610f4d565b6002546040517f65d02b0400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906365d02b04906106b8908a90899089908990600390600401610f96565b602060405180830381600087803b1580156106d257600080fd5b505af11580156106e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070a9190610e41565b505b50505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461077c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101ec565b73ffffffffffffffffffffffffffffffffffffffff81166108055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016101ec565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600073ffffffffffffffffffffffffffffffffffffffff85166108b85750348314610967565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152838116602483015285919087169063dd62ed3e9060440160206040518083038186803b15801561092a57600080fd5b505afa15801561093e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109629190610e41565b101590505b949350505050565b8115610a495773ffffffffffffffffffffffffffffffffffffffff8316610a27578134146109df5760405162461bcd60e51b815260206004820152600f60248201527f496e636f72726563742076616c7565000000000000000000000000000000000060448201526064016101ec565b60405173ffffffffffffffffffffffffffffffffffffffff8216903480156108fc02916000818181858888f19350505050158015610a21573d6000803e3d6000fd5b50505050565b610a4973ffffffffffffffffffffffffffffffffffffffff8416338385610a4e565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610a219085906000610b40826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610bd09092919063ffffffff16565b805190915015610a495780806020019051810190610b5e9190610e1f565b610a495760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016101ec565b6060610bdf8484600085610be9565b90505b9392505050565b606082471015610c615760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101ec565b843b610caf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101ec565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610cd89190610f31565b60006040518083038185875af1925050503d8060008114610d15576040519150601f19603f3d011682016040523d82523d6000602084013e610d1a565b606091505b5091509150610d2a828286610d35565b979650505050505050565b60608315610d44575081610be2565b825115610d545782518084602001fd5b8160405162461bcd60e51b81526004016101ec9190610fdd565b600060208284031215610d8057600080fd5b8135610be28161105a565b60008060408385031215610d9e57600080fd5b8235610da98161105a565b91506020830135610db98161105a565b809150509250929050565b600080600080600060a08688031215610ddc57600080fd5b8535610de78161105a565b9450602086013593506040860135610dfe8161105a565b92506060860135610e0e8161105a565b949793965091946080013592915050565b600060208284031215610e3157600080fd5b81518015158114610be257600080fd5b600060208284031215610e5357600080fd5b5051919050565b8054600090600181811c9080831680610e7457607f831692505b6020808410821415610eaf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b83885260208801828015610eca5760018114610ef957610f24565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00871682528282019750610f24565b60008981526020902060005b87811015610f1e57815484820152908601908401610f05565b83019850505b5050505050505092915050565b60008251610f4381846020870161102e565b9190910192915050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152610f8c6080830184610e5a565b9695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff8088168352808716602084015280861660408401525083606083015260a06080830152610d2a60a0830184610e5a565b6020815260008251806020840152610ffc81604085016020870161102e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60005b83811015611049578181015183820152602001611031565b83811115610a215750506000910152565b73ffffffffffffffffffffffffffffffffffffffff8116811461107c57600080fd5b5056fea26469706673582212208b081f21ae20f53854c6d25b712b6921d8a8c9f9fd9c8c91108fdd16817551ce64736f6c63430008050033000000000000000000000000e82906b6b1b04f631d126c974af57a3a7b6a99d90000000000000000000000002e9c6dcdca22a5952a88c4b18edb5b54c5155bc90000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000d436c6970706572526f7574657200000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106100705760003560e01c806394e93d8d1161004e57806394e93d8d146100fc57806395b790d11461010f578063f2fde38b1461013c578063f851272b1461015c57600080fd5b806311b2f51114610075578063715018a6146100975780638da5cb5b146100ac575b600080fd5b34801561008157600080fd5b50610095610090366004610d8b565b610189565b005b3480156100a357600080fd5b506100956102f4565b3480156100b857600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b61009561010a366004610dc4565b6103ca565b34801561011b57600080fd5b506002546100d39073ffffffffffffffffffffffffffffffffffffffff1681565b34801561014857600080fd5b50610095610157366004610d6e565b610715565b34801561016857600080fd5b506001546100d39073ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633146101f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82161580159061022f575073ffffffffffffffffffffffffffffffffffffffff811615155b6102a15760405162461bcd60e51b815260206004820152602a60248201527f436c697070657220526f757465723a20496e76616c696420636f6e747261637460448201527f206164647265737365730000000000000000000000000000000000000000000060648201526084016101ec565b6001805473ffffffffffffffffffffffffffffffffffffffff9384167fffffffffffffffffffffffff00000000000000000000000000000000000000009182161790915560028054929093169116179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461035b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101ec565b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b84836103ee73ffffffffffffffffffffffffffffffffffffffff8316873330610892565b6104605760405162461bcd60e51b815260206004820152602660248201527f436c697070657220526f757465723a20416c6c6f77616e636520636865636b2060448201527f6661696c6564000000000000000000000000000000000000000000000000000060648201526084016101ec565b73ffffffffffffffffffffffffffffffffffffffff84166104e95760405162461bcd60e51b815260206004820152602160248201527f436c697070657220526f757465723a20496e76616c696420726563697069656e60448201527f740000000000000000000000000000000000000000000000000000000000000060648201526084016101ec565b6001546105119073ffffffffffffffffffffffffffffffffffffffff8481169189911661096f565b73ffffffffffffffffffffffffffffffffffffffff82166105e1576002546040517fb52e845800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091169063b52e84589061058990889088908890600390600401610f4d565b602060405180830381600087803b1580156105a357600080fd5b505af11580156105b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105db9190610e41565b5061070c565b73ffffffffffffffffffffffffffffffffffffffff8116610659576002546040517f69be90ec00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906369be90ec90610589908a9088908890600390600401610f4d565b6002546040517f65d02b0400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff909116906365d02b04906106b8908a90899089908990600390600401610f96565b602060405180830381600087803b1580156106d257600080fd5b505af11580156106e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061070a9190610e41565b505b50505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461077c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101ec565b73ffffffffffffffffffffffffffffffffffffffff81166108055760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016101ec565b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600073ffffffffffffffffffffffffffffffffffffffff85166108b85750348314610967565b6040517fdd62ed3e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152838116602483015285919087169063dd62ed3e9060440160206040518083038186803b15801561092a57600080fd5b505afa15801561093e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109629190610e41565b101590505b949350505050565b8115610a495773ffffffffffffffffffffffffffffffffffffffff8316610a27578134146109df5760405162461bcd60e51b815260206004820152600f60248201527f496e636f72726563742076616c7565000000000000000000000000000000000060448201526064016101ec565b60405173ffffffffffffffffffffffffffffffffffffffff8216903480156108fc02916000818181858888f19350505050158015610a21573d6000803e3d6000fd5b50505050565b610a4973ffffffffffffffffffffffffffffffffffffffff8416338385610a4e565b505050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610a219085906000610b40826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610bd09092919063ffffffff16565b805190915015610a495780806020019051810190610b5e9190610e1f565b610a495760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016101ec565b6060610bdf8484600085610be9565b90505b9392505050565b606082471015610c615760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016101ec565b843b610caf5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016101ec565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610cd89190610f31565b60006040518083038185875af1925050503d8060008114610d15576040519150601f19603f3d011682016040523d82523d6000602084013e610d1a565b606091505b5091509150610d2a828286610d35565b979650505050505050565b60608315610d44575081610be2565b825115610d545782518084602001fd5b8160405162461bcd60e51b81526004016101ec9190610fdd565b600060208284031215610d8057600080fd5b8135610be28161105a565b60008060408385031215610d9e57600080fd5b8235610da98161105a565b91506020830135610db98161105a565b809150509250929050565b600080600080600060a08688031215610ddc57600080fd5b8535610de78161105a565b9450602086013593506040860135610dfe8161105a565b92506060860135610e0e8161105a565b949793965091946080013592915050565b600060208284031215610e3157600080fd5b81518015158114610be257600080fd5b600060208284031215610e5357600080fd5b5051919050565b8054600090600181811c9080831680610e7457607f831692505b6020808410821415610eaf577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b83885260208801828015610eca5760018114610ef957610f24565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00871682528282019750610f24565b60008981526020902060005b87811015610f1e57815484820152908601908401610f05565b83019850505b5050505050505092915050565b60008251610f4381846020870161102e565b9190910192915050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152610f8c6080830184610e5a565b9695505050505050565b600073ffffffffffffffffffffffffffffffffffffffff8088168352808716602084015280861660408401525083606083015260a06080830152610d2a60a0830184610e5a565b6020815260008251806020840152610ffc81604085016020870161102e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60005b83811015611049578181015183820152602001611031565b83811115610a215750506000910152565b73ffffffffffffffffffffffffffffffffffffffff8116811461107c57600080fd5b5056fea26469706673582212208b081f21ae20f53854c6d25b712b6921d8a8c9f9fd9c8c91108fdd16817551ce64736f6c63430008050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000e82906b6b1b04f631d126c974af57a3a7b6a99d90000000000000000000000002e9c6dcdca22a5952a88c4b18edb5b54c5155bc90000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000d436c6970706572526f7574657200000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : poolAddress (address): 0xe82906b6B1B04f631D126c974Af57a3A7B6a99d9
Arg [1] : exchangeAddress (address): 0x2e9c6Dcdca22A5952A88C4b18EDB5B54C5155BC9
Arg [2] : theData (string): ClipperRouter
-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000e82906b6b1b04f631d126c974af57a3a7b6a99d9
Arg [1] : 0000000000000000000000002e9c6dcdca22a5952a88c4b18edb5b54c5155bc9
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [3] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [4] : 436c6970706572526f7574657200000000000000000000000000000000000000
Deployed Bytecode Sourcemap
32136:1773:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32571:333;;;;;;;;;;-1:-1:-1;32571:333:0;;;;;:::i;:::-;;:::i;:::-;;2872:148;;;;;;;;;;;;;:::i;2221:87::-;;;;;;;;;;-1:-1:-1;2267:7:0;2294:6;;;2221:87;;;3424:42:1;3412:55;;;3394:74;;3382:2;3367:18;2221:87:0;;;;;;;32987:919;;;;;;:::i;:::-;;:::i;32255:38::-;;;;;;;;;;-1:-1:-1;32255:38:0;;;;;;;;3175:244;;;;;;;;;;-1:-1:-1;3175:244:0;;;;;:::i;:::-;;:::i;32214:34::-;;;;;;;;;;-1:-1:-1;32214:34:0;;;;;;;;32571:333;2267:7;2294:6;2441:23;2294:6;855:10;2441:23;2433:68;;;;-1:-1:-1;;;2433:68:0;;9000:2:1;2433:68:0;;;8982:21:1;;;9019:18;;;9012:30;9078:34;9058:18;;;9051:62;9130:18;;2433:68:0;;;;;;;;;32697:23:::1;::::0;::::1;::::0;;::::1;::::0;32696:56:::1;;-1:-1:-1::0;32725:27:0::1;::::0;::::1;::::0;::::1;32696:56;32688:111;;;::::0;-1:-1:-1;;;32688:111:0;;8245:2:1;32688:111:0::1;::::0;::::1;8227:21:1::0;8284:2;8264:18;;;8257:30;8323:34;8303:18;;;8296:62;8394:12;8374:18;;;8367:40;8424:19;;32688:111:0::1;8217:232:1::0;32688:111:0::1;32810:11;:25:::0;;::::1;::::0;;::::1;::::0;;;::::1;;::::0;;;32846:15:::1;:50:::0;;;;;::::1;::::0;::::1;;::::0;;32571:333::o;2872:148::-;2267:7;2294:6;2441:23;2294:6;855:10;2441:23;2433:68;;;;-1:-1:-1;;;2433:68:0;;9000:2:1;2433:68:0;;;8982:21:1;;;9019:18;;;9012:30;9078:34;9058:18;;;9051:62;9130:18;;2433:68:0;8972:182:1;2433:68:0;2979:1:::1;2963:6:::0;;2942:40:::1;::::0;::::1;2963:6:::0;;::::1;::::0;2942:40:::1;::::0;2979:1;;2942:40:::1;3010:1;2993:19:::0;;;::::1;::::0;;2872:148::o;32987:919::-;33159:10;33203:11;33234:63;:24;;;33259:10;33271;33291:4;33234:24;:63::i;:::-;33226:114;;;;-1:-1:-1;;;33226:114:0;;7431:2:1;33226:114:0;;;7413:21:1;7470:2;7450:18;;;7443:30;7509:34;7489:18;;;7482:62;7580:8;7560:18;;;7553:36;7606:19;;33226:114:0;7403:228:1;33226:114:0;33359:23;;;33351:69;;;;-1:-1:-1;;;33351:69:0;;10130:2:1;33351:69:0;;;10112:21:1;10169:2;10149:18;;;10142:30;10208:34;10188:18;;;10181:62;10279:3;10259:18;;;10252:31;10300:19;;33351:69:0;10102:223:1;33351:69:0;33472:11;;33431:53;;33472:11;33431:28;;;;33460:10;;33472:11;33431:28;:53::i;:::-;33498:12;;;33495:404;;33528:15;;:84;;;;;:15;;;;;:31;;:84;;33560:11;;33573:9;;33584:12;;33598:13;;33528:84;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;33495:404;;;33633:13;;;33630:269;;33664:15;;:92;;;;;:15;;;;;:31;;:92;;33696:10;;33716:9;;33728:12;;33742:13;;33664:92;;;:::i;33630:269::-;33789:15;;:98;;;;;:15;;;;;:33;;:98;;33823:10;;33835:11;;33848:9;;33859:12;;33873:13;;33789:98;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;33630:269;33127:779;;32987:919;;;;;:::o;3175:244::-;2267:7;2294:6;2441:23;2294:6;855:10;2441:23;2433:68;;;;-1:-1:-1;;;2433:68:0;;9000:2:1;2433:68:0;;;8982:21:1;;;9019:18;;;9012:30;9078:34;9058:18;;;9051:62;9130:18;;2433:68:0;8972:182:1;2433:68:0;3264:22:::1;::::0;::::1;3256:73;;;::::0;-1:-1:-1;;;3256:73:0;;7024:2:1;3256:73:0::1;::::0;::::1;7006:21:1::0;7063:2;7043:18;;;7036:30;7102:34;7082:18;;;7075:62;7173:8;7153:18;;;7146:36;7199:19;;3256:73:0::1;6996:228:1::0;3256:73:0::1;3366:6;::::0;;3345:38:::1;::::0;::::1;::::0;;::::1;::::0;3366:6;::::1;::::0;3345:38:::1;::::0;::::1;3394:6;:17:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;3175:244::o;30737:283::-;30848:4;30692:28;;;30865:148;;-1:-1:-1;30903:9:0;:17;;30896:24;;30865:148;30960:31;;;;;:15;3979::1;;;30960:31:0;;;3961:34:1;4031:15;;;4011:18;;;4004:43;30995:6:0;;30960:15;;;;;;3873:18:1;;30960:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:41;;30953:48;;30865:148;30737:283;;;;;;:::o;31651:390::-;31751:10;;31747:287;;30692:28;;;31778:245;;31836:6;31823:9;:19;31815:47;;;;-1:-1:-1;;;31815:47:0;;8656:2:1;31815:47:0;;;8638:21:1;8695:2;8675:18;;;8668:30;8734:17;8714:18;;;8707:45;8769:18;;31815:47:0;8628:165:1;31815:47:0;31881:35;;:24;;;;31906:9;31881:35;;;;;;;;;31906:9;31881:24;:35;;;;;;;;;;;;;;;;;;;;;31651:390;;;:::o;31778:245::-;31957:50;:22;;;31980:10;31992:6;32000;31957:22;:50::i;:::-;31651:390;;;:::o;27366:205::-;27494:68;;;5409:42:1;5478:15;;;27494:68:0;;;5460:34:1;5530:15;;5510:18;;;5503:43;5562:18;;;;5555:34;;;27494:68:0;;;;;;;;;;5372:18:1;;;;27494:68:0;;;;;;;;;;27517:27;27494:68;;;27467:96;;27487:5;;30039:23;30065:69;30093:4;30065:69;;;;;;;;;;;;;;;;;30073:5;30065:27;;;;:69;;;;;:::i;:::-;30149:17;;30039:95;;-1:-1:-1;30149:21:0;30145:224;;30291:10;30280:30;;;;;;;;;;;;:::i;:::-;30272:85;;;;-1:-1:-1;;;30272:85:0;;9719:2:1;30272:85:0;;;9701:21:1;9758:2;9738:18;;;9731:30;9797:34;9777:18;;;9770:62;9868:12;9848:18;;;9841:40;9898:19;;30272:85:0;9691:232:1;22209:195:0;22312:12;22344:52;22366:6;22374:4;22380:1;22383:12;22344:21;:52::i;:::-;22337:59;;22209:195;;;;;;:::o;23261:530::-;23388:12;23446:5;23421:21;:30;;23413:81;;;;-1:-1:-1;;;23413:81:0;;7838:2:1;23413:81:0;;;7820:21:1;7877:2;7857:18;;;7850:30;7916:34;7896:18;;;7889:62;7987:8;7967:18;;;7960:36;8013:19;;23413:81:0;7810:228:1;23413:81:0;19658:20;;23505:60;;;;-1:-1:-1;;;23505:60:0;;9361:2:1;23505:60:0;;;9343:21:1;9400:2;9380:18;;;9373:30;9439:31;9419:18;;;9412:59;9488:18;;23505:60:0;9333:179:1;23505:60:0;23639:12;23653:23;23680:6;:11;;23700:5;23708:4;23680:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23638:75;;;;23731:52;23749:7;23758:10;23770:12;23731:17;:52::i;:::-;23724:59;23261:530;-1:-1:-1;;;;;;;23261:530:0:o;25801:742::-;25916:12;25945:7;25941:595;;;-1:-1:-1;25976:10:0;25969:17;;25941:595;26090:17;;:21;26086:439;;26353:10;26347:17;26414:15;26401:10;26397:2;26393:19;26386:44;26086:439;26496:12;26489:20;;-1:-1:-1;;;26489:20:0;;;;;;;;:::i;14:247:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:2;;;142:1;139;132:12;94:2;181:9;168:23;200:31;225:5;200:31;:::i;266:396::-;342:6;350;403:2;391:9;382:7;378:23;374:32;371:2;;;419:1;416;409:12;371:2;458:9;445:23;477:31;502:5;477:31;:::i;:::-;527:5;-1:-1:-1;584:2:1;569:18;;556:32;597:33;556:32;597:33;:::i;:::-;649:7;639:17;;;361:301;;;;;:::o;667:667::-;762:6;770;778;786;794;847:3;835:9;826:7;822:23;818:33;815:2;;;864:1;861;854:12;815:2;903:9;890:23;922:31;947:5;922:31;:::i;:::-;972:5;-1:-1:-1;1024:2:1;1009:18;;996:32;;-1:-1:-1;1080:2:1;1065:18;;1052:32;1093:33;1052:32;1093:33;:::i;:::-;1145:7;-1:-1:-1;1204:2:1;1189:18;;1176:32;1217:33;1176:32;1217:33;:::i;:::-;805:529;;;;-1:-1:-1;805:529:1;;1323:3;1308:19;1295:33;;805:529;-1:-1:-1;;805:529:1:o;1339:277::-;1406:6;1459:2;1447:9;1438:7;1434:23;1430:32;1427:2;;;1475:1;1472;1465:12;1427:2;1507:9;1501:16;1560:5;1553:13;1546:21;1539:5;1536:32;1526:2;;1582:1;1579;1572:12;1621:184;1691:6;1744:2;1732:9;1723:7;1719:23;1715:32;1712:2;;;1760:1;1757;1750:12;1712:2;-1:-1:-1;1783:16:1;;1702:103;-1:-1:-1;1702:103:1:o;1810:1154::-;1894:12;;1859:3;;1949:1;1969:18;;;;2022;;;;2049:2;;2103:4;2095:6;2091:17;2081:27;;2049:2;2129;2177;2169:6;2166:14;2146:18;2143:38;2140:2;;;2214:77;2211:1;2204:88;2315:4;2312:1;2305:15;2343:4;2340:1;2333:15;2140:2;10541:19;;;10593:4;10584:14;;2443:18;2470:162;;;;2646:1;2641:317;;;;2436:522;;2470:162;2520:66;2509:9;2505:82;2498:5;2491:97;2619:2;2612:5;2608:14;2601:21;;2470:162;;2641:317;10402:1;10395:14;;;10439:4;10426:18;;2734:1;2748:167;2762:6;2759:1;2756:13;2748:167;;;2842:14;;2827:13;;;2820:37;2885:16;;;;2777:10;;2748:167;;;2935:13;;;-1:-1:-1;;2436:522:1;;;;;;;;1867:1097;;;;:::o;2969:274::-;3098:3;3136:6;3130:13;3152:53;3198:6;3193:3;3186:4;3178:6;3174:17;3152:53;:::i;:::-;3221:16;;;;;3106:137;-1:-1:-1;;3106:137:1:o;4058:532::-;4265:4;4294:42;4375:2;4367:6;4363:15;4352:9;4345:34;4427:2;4419:6;4415:15;4410:2;4399:9;4395:18;4388:43;;4467:6;4462:2;4451:9;4447:18;4440:34;4510:3;4505:2;4494:9;4490:18;4483:31;4531:53;4579:3;4568:9;4564:19;4556:6;4531:53;:::i;:::-;4523:61;4274:316;-1:-1:-1;;;;;;4274:316:1:o;4595:597::-;4814:4;4843:42;4924:2;4916:6;4912:15;4901:9;4894:34;4976:2;4968:6;4964:15;4959:2;4948:9;4944:18;4937:43;5028:2;5020:6;5016:15;5011:2;5000:9;4996:18;4989:43;;5068:6;5063:2;5052:9;5048:18;5041:34;5112:3;5106;5095:9;5091:19;5084:32;5133:53;5181:3;5170:9;5166:19;5158:6;5133:53;:::i;6375:442::-;6524:2;6513:9;6506:21;6487:4;6556:6;6550:13;6599:6;6594:2;6583:9;6579:18;6572:34;6615:66;6674:6;6669:2;6658:9;6654:18;6649:2;6641:6;6637:15;6615:66;:::i;:::-;6733:2;6721:15;6738:66;6717:88;6702:104;;;;6808:2;6698:113;;6496:321;-1:-1:-1;;6496:321:1:o;10609:258::-;10681:1;10691:113;10705:6;10702:1;10699:13;10691:113;;;10781:11;;;10775:18;10762:11;;;10755:39;10727:2;10720:10;10691:113;;;10822:6;10819:1;10816:13;10813:2;;;-1:-1:-1;;10857:1:1;10839:16;;10832:27;10662:205::o;10872:154::-;10958:42;10951:5;10947:54;10940:5;10937:65;10927:2;;11016:1;11013;11006:12;10927:2;10917:109;:::o
Swarm Source
ipfs://8b081f21ae20f53854c6d25b712b6921d8a8c9f9fd9c8c91108fdd16817551ce
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.999406 | 110.4342 | $110.37 |
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.