Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 370 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Zap In | 12441592 | 1350 days ago | IN | 2.1229195 ETH | 0.01191232 | ||||
Zap In | 12441580 | 1350 days ago | IN | 1.50789695 ETH | 0.01101096 | ||||
Zap In | 12441573 | 1350 days ago | IN | 5.78896592 ETH | 0.01158185 | ||||
Zap In | 12441565 | 1350 days ago | IN | 0 ETH | 0.0161886 | ||||
Zap In | 12441564 | 1350 days ago | IN | 0.42565782 ETH | 0.01075184 | ||||
Zap In | 12441490 | 1350 days ago | IN | 0.42565782 ETH | 0.01157891 | ||||
Zap In | 12441464 | 1350 days ago | IN | 1.53398819 ETH | 0.01158101 | ||||
Zap In | 12441452 | 1350 days ago | IN | 0 ETH | 0.0164526 | ||||
Zap In | 12441433 | 1350 days ago | IN | 0.04256578 ETH | 0.01023276 | ||||
Zap In | 12441433 | 1350 days ago | IN | 1.48980239 ETH | 0.01273726 | ||||
Zap In | 12441425 | 1350 days ago | IN | 0.04162345 ETH | 0.01141473 | ||||
Zap In | 12441414 | 1350 days ago | IN | 0 ETH | 0.01809193 | ||||
Zap In | 12441394 | 1350 days ago | IN | 0.59056302 ETH | 0.01383103 | ||||
Zap In | 12441352 | 1350 days ago | IN | 2.81128692 ETH | 0.0120769 | ||||
Zap In | 12441312 | 1350 days ago | IN | 0.2067 ETH | 0.01158136 | ||||
Zap In | 12441304 | 1350 days ago | IN | 5.15091932 ETH | 0.01216094 | ||||
Zap In | 12441299 | 1350 days ago | IN | 1.065 ETH | 0.01257404 | ||||
Zap In | 12441271 | 1350 days ago | IN | 0.2883581 ETH | 0.01422551 | ||||
Zap In | 12441204 | 1350 days ago | IN | 0.5642727 ETH | 0.01125128 | ||||
Zap In | 12441204 | 1350 days ago | IN | 0 ETH | 0.01834864 | ||||
Zap In | 12441179 | 1350 days ago | IN | 4 ETH | 0.01157975 | ||||
Zap In | 12441179 | 1350 days ago | IN | 0.70644832 ETH | 0.01158101 | ||||
Zap In | 12441149 | 1350 days ago | IN | 0.42895727 ETH | 0.01174474 | ||||
Zap In | 12441111 | 1350 days ago | IN | 0.3405171 ETH | 0.01125012 | ||||
Zap In | 12441107 | 1350 days ago | IN | 0.12205561 ETH | 0.01373127 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
12441592 | 1350 days ago | 2.1229195 ETH | ||||
12441580 | 1350 days ago | 1.50789695 ETH | ||||
12441573 | 1350 days ago | 5.78896592 ETH | ||||
12441564 | 1350 days ago | 0.42565782 ETH | ||||
12441490 | 1350 days ago | 0.42565782 ETH | ||||
12441464 | 1350 days ago | 1.53398819 ETH | ||||
12441433 | 1350 days ago | 0.04256578 ETH | ||||
12441433 | 1350 days ago | 1.48980239 ETH | ||||
12441425 | 1350 days ago | 0.04162345 ETH | ||||
12441394 | 1350 days ago | 0.59056302 ETH | ||||
12441352 | 1350 days ago | 2.81128692 ETH | ||||
12441312 | 1350 days ago | 0.2067 ETH | ||||
12441304 | 1350 days ago | 5.15091932 ETH | ||||
12441299 | 1350 days ago | 1.065 ETH | ||||
12441271 | 1350 days ago | 0.2883581 ETH | ||||
12441204 | 1350 days ago | 0.5642727 ETH | ||||
12441179 | 1350 days ago | 4 ETH | ||||
12441179 | 1350 days ago | 0.70644832 ETH | ||||
12441149 | 1350 days ago | 0.42895727 ETH | ||||
12441111 | 1350 days ago | 0.3405171 ETH | ||||
12441107 | 1350 days ago | 0.12205561 ETH | ||||
12441105 | 1350 days ago | 0.89806312 ETH | ||||
12441061 | 1350 days ago | 0.01261892 ETH | ||||
12441061 | 1350 days ago | 0.25017479 ETH | ||||
12441043 | 1350 days ago | 6.84496899 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
FloatMintingCeremonyZapInV1
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 999999 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗ // ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║ // ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║ // ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║ // ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██║░░░░░██║ // ╚══════╝╚═╝░░╚═╝╚═╝░░░░░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝╚═╝░░░░░╚═╝ // Copyright (C) 2021 zapper // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // ///@author Zapper // SPDX-License-Identifier: GPLv2 // Changes: // - Uses msg.sender / removes the transfer from the zap contract. // - Uses IMintingCeremony over IVault pragma solidity =0.7.6; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; import "../funds/interfaces/IMintingCeremony.sol"; import "../external-lib/zapper/ZapInBaseV2.sol"; contract FloatMintingCeremonyZapInV1 is ZapInBaseV2 { using SafeMath for uint256; // calldata only accepted for approved zap contracts mapping(address => bool) public approvedTargets; event zapIn(address sender, address pool, uint256 tokensRec); constructor(uint256 _goodwill, uint256 _affiliateSplit) ZapBaseV1(_goodwill, _affiliateSplit) {} /** @notice This function commits to the Float Minting Ceremony with ETH or ERC20 tokens @param fromToken The token used for entry (address(0) if ether) @param amountIn The amount of fromToken to invest @param ceremony Float Protocol: Minting Ceremony address @param minFloatTokens The minimum acceptable quantity Float tokens to receive. Reverts otherwise @param intermediateToken Token to swap fromToken to before entering ceremony @param swapTarget Excecution target for the swap or zap @param swapData DEX or Zap data @param affiliate Affiliate address @return tokensReceived - Quantity of FLOAT that will be received */ function ZapIn( address fromToken, uint256 amountIn, address ceremony, uint256 minFloatTokens, address intermediateToken, address swapTarget, bytes calldata swapData, address affiliate, bool shouldSellEntireBalance ) external payable stopInEmergency returns (uint256 tokensReceived) { require( approvedTargets[swapTarget] || swapTarget == address(0), "Target not Authorized" ); // get incoming tokens uint256 toInvest = _pullTokens( fromToken, amountIn, affiliate, true, shouldSellEntireBalance ); // get intermediate token uint256 intermediateAmt = _fillQuote(fromToken, intermediateToken, toInvest, swapTarget, swapData); // Deposit to Minting Ceremony tokensReceived = _ceremonyCommit(intermediateAmt, ceremony, minFloatTokens); } function _ceremonyCommit( uint256 amount, address toCeremony, uint256 minTokensRec ) internal returns (uint256 tokensReceived) { address underlyingVaultToken = IMintingCeremony(toCeremony).underlying(); _approveToken(underlyingVaultToken, toCeremony); uint256 initialBal = IERC20(toCeremony).balanceOf(msg.sender); IMintingCeremony(toCeremony).commit(msg.sender, amount, minTokensRec); tokensReceived = IERC20(toCeremony).balanceOf(msg.sender).sub(initialBal); require(tokensReceived >= minTokensRec, "Err: High Slippage"); // Note that tokens are gifted directly, so we don't transfer from vault. // IERC20(toCeremony).safeTransfer(msg.sender, tokensReceived); emit zapIn(msg.sender, toCeremony, tokensReceived); } function _fillQuote( address _fromTokenAddress, address toToken, uint256 _amount, address _swapTarget, bytes memory swapCallData ) internal returns (uint256 amtBought) { uint256 valueToSend; if (_fromTokenAddress == toToken) { return _amount; } if (_fromTokenAddress == address(0)) { valueToSend = _amount; } else { _approveToken(_fromTokenAddress, _swapTarget); } uint256 iniBal = _getBalance(toToken); (bool success, ) = _swapTarget.call{value: valueToSend}(swapCallData); require(success, "Error Swapping Tokens 1"); uint256 finalBal = _getBalance(toToken); amtBought = finalBal.sub(iniBal); } function setApprovedTargets( address[] calldata targets, bool[] calldata isApproved ) external onlyOwner { require(targets.length == isApproved.length, "Invalid Input length"); for (uint256 i = 0; i < targets.length; i++) { approvedTargets[targets[i]] = isApproved[i]; } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "./IERC20.sol"; import "../../math/SafeMath.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 SafeMath for uint256; 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).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _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"); } } }
// SPDX-License-Identifier: MIT pragma solidity =0.7.6; /** * @title Minting Ceremony */ interface IMintingCeremony { function allowance(address account) external view returns (uint256 remainingAllowance); function underlying() external view returns (address); function commit( address recipient, uint256 underlyingIn, uint256 floatOutMin ) external returns (uint256 floatOut); function mint() external; }
// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗ // ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║ // ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║ // ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║ // ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██║░░░░░██║ // ╚══════╝╚═╝░░╚═╝╚═╝░░░░░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝╚═╝░░░░░╚═╝ // Copyright (C) 2021 zapper // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // ///@author Zapper // SPDX-License-Identifier: GPLv2 // Changes: // - Conversion to 0.7.6 // - abstract type // - library imports throughout pragma solidity ^0.7.6; import "./ZapBaseV1.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; abstract contract ZapInBaseV2 is ZapBaseV1 { using SafeMath for uint256; using SafeERC20 for IERC20; function _pullTokens( address token, uint256 amount, address affiliate, bool enableGoodwill, bool shouldSellEntireBalance ) internal returns (uint256 value) { uint256 totalGoodwillPortion; if (token == address(0)) { require(msg.value > 0, "No eth sent"); // subtract goodwill totalGoodwillPortion = _subtractGoodwill( ETHAddress, msg.value, affiliate, enableGoodwill ); return msg.value.sub(totalGoodwillPortion); } require(amount > 0, "Invalid token amount"); require(msg.value == 0, "Eth sent with token"); //transfer token if (shouldSellEntireBalance) { require( Address.isContract(msg.sender), "ERR: shouldSellEntireBalance is true for EOA" ); amount = IERC20(token).allowance(msg.sender, address(this)); } IERC20(token).safeTransferFrom(msg.sender, address(this), amount); // subtract goodwill totalGoodwillPortion = _subtractGoodwill( token, amount, affiliate, enableGoodwill ); return amount.sub(totalGoodwillPortion); } function _subtractGoodwill( address token, uint256 amount, address affiliate, bool enableGoodwill ) internal returns (uint256 totalGoodwillPortion) { bool whitelisted = feeWhitelist[msg.sender]; if (enableGoodwill && !whitelisted && goodwill > 0) { totalGoodwillPortion = SafeMath.div( SafeMath.mul(amount, goodwill), 10000 ); if (affiliates[affiliate]) { if (token == address(0)) { token = ETHAddress; } uint256 affiliatePortion = totalGoodwillPortion.mul(affiliateSplit).div(100); affiliateBalance[affiliate][token] = affiliateBalance[affiliate][token] .add(affiliatePortion); totalAffiliateBalance[token] = totalAffiliateBalance[token].add( affiliatePortion ); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <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); } } } }
// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗ // ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║ // ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║ // ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║ // ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██║░░░░░██║ // ╚══════╝╚═╝░░╚═╝╚═╝░░░░░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝╚═╝░░░░░╚═╝ // Copyright (C) 2021 zapper // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // ///@author Zapper // SPDX-License-Identifier: GPLv2 // Changes: // - Conversion to 0.7.6 // - library imports throughout // - remove revert fallback as now default import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol"; pragma solidity ^0.7.6; contract ZapBaseV1 is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; bool public stopped = false; // if true, goodwill is not deducted mapping(address => bool) public feeWhitelist; uint256 public goodwill; // % share of goodwill (0-100 %) uint256 affiliateSplit; // restrict affiliates mapping(address => bool) public affiliates; // affiliate => token => amount mapping(address => mapping(address => uint256)) public affiliateBalance; // token => amount mapping(address => uint256) public totalAffiliateBalance; address internal constant ETHAddress = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE; constructor(uint256 _goodwill, uint256 _affiliateSplit) { goodwill = _goodwill; affiliateSplit = _affiliateSplit; } // circuit breaker modifiers modifier stopInEmergency { if (stopped) { revert("Temporarily Paused"); } else { _; } } function _getBalance(address token) internal view returns (uint256 balance) { if (token == address(0)) { balance = address(this).balance; } else { balance = IERC20(token).balanceOf(address(this)); } } function _approveToken(address token, address spender) internal { IERC20 _token = IERC20(token); if (_token.allowance(address(this), spender) > 0) return; else { _token.safeApprove(spender, uint256(-1)); } } function _approveToken( address token, address spender, uint256 amount ) internal { IERC20 _token = IERC20(token); _token.safeApprove(spender, 0); _token.safeApprove(spender, amount); } // - to Pause the contract function toggleContractActive() public onlyOwner { stopped = !stopped; } function set_feeWhitelist(address zapAddress, bool status) external onlyOwner { feeWhitelist[zapAddress] = status; } function set_new_goodwill(uint256 _new_goodwill) public onlyOwner { require( _new_goodwill >= 0 && _new_goodwill <= 100, "GoodWill Value not allowed" ); goodwill = _new_goodwill; } function set_new_affiliateSplit(uint256 _new_affiliateSplit) external onlyOwner { require(_new_affiliateSplit <= 100, "Affiliate Split Value not allowed"); affiliateSplit = _new_affiliateSplit; } function set_affiliate(address _affiliate, bool _status) external onlyOwner { affiliates[_affiliate] = _status; } ///@notice Withdraw goodwill share, retaining affilliate share function withdrawTokens(address[] calldata tokens) external onlyOwner { for (uint256 i = 0; i < tokens.length; i++) { uint256 qty; if (tokens[i] == ETHAddress) { qty = address(this).balance.sub(totalAffiliateBalance[tokens[i]]); Address.sendValue(payable(owner()), qty); } else { qty = IERC20(tokens[i]).balanceOf(address(this)).sub( totalAffiliateBalance[tokens[i]] ); IERC20(tokens[i]).safeTransfer(owner(), qty); } } } ///@notice Withdraw affilliate share, retaining goodwill share function affilliateWithdraw(address[] calldata tokens) external { uint256 tokenBal; for (uint256 i = 0; i < tokens.length; i++) { tokenBal = affiliateBalance[msg.sender][tokens[i]]; affiliateBalance[msg.sender][tokens[i]] = 0; totalAffiliateBalance[tokens[i]] = totalAffiliateBalance[tokens[i]].sub( tokenBal ); if (tokens[i] == ETHAddress) { Address.sendValue(msg.sender, tokenBal); } else { IERC20(tokens[i]).safeTransfer(msg.sender, tokenBal); } } } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol"; /** * @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 () internal { 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; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <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 GSN 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 payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 999999 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "bytecodeHash": "none", "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_goodwill","type":"uint256"},{"internalType":"uint256","name":"_affiliateSplit","type":"uint256"}],"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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokensRec","type":"uint256"}],"name":"zapIn","type":"event"},{"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"ceremony","type":"address"},{"internalType":"uint256","name":"minFloatTokens","type":"uint256"},{"internalType":"address","name":"intermediateToken","type":"address"},{"internalType":"address","name":"swapTarget","type":"address"},{"internalType":"bytes","name":"swapData","type":"bytes"},{"internalType":"address","name":"affiliate","type":"address"},{"internalType":"bool","name":"shouldSellEntireBalance","type":"bool"}],"name":"ZapIn","outputs":[{"internalType":"uint256","name":"tokensReceived","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"affiliateBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"affiliates","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"affilliateWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedTargets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"feeWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"goodwill","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"bool[]","name":"isApproved","type":"bool[]"}],"name":"setApprovedTargets","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_affiliate","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"set_affiliate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"zapAddress","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"set_feeWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new_affiliateSplit","type":"uint256"}],"name":"set_new_affiliateSplit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new_goodwill","type":"uint256"}],"name":"set_new_goodwill","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleContractActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalAffiliateBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526000805460ff60a01b191690553480156200001e57600080fd5b5060405162002ef938038062002ef9833981810160405260408110156200004457600080fd5b508051602090910151818160006200005b620000b7565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060029190915560035550620000bb9050565b3390565b612e2e80620000cb6000396000f3fe6080604052600436106101445760003560e01c80635ecb16cd116100c05780639779d1a611610074578063d408f65711610059578063d408f65714610641578063f2fde38b14610681578063fbec27bf146106c157610144565b80639779d1a614610530578063c0a8346e1461057057610144565b806375f12b21116100a557806375f12b211461040e5780638da5cb5b146104235780639735a6341461046157610144565b80635ecb16cd1461037c578063715018a6146103f957610144565b806318b135e3116101175780634f51e294116100fc5780634f51e294146102e9578063550bfa561461033d5780635de0398e1461036757610144565b806318b135e3146102615780633ff428c7146102a157610144565b806301e980d4146101495780630dc9de85146101755780631385d24c146101f25780631781261f14610207575b600080fd5b34801561015557600080fd5b506101736004803603602081101561016c57600080fd5b5035610709565b005b34801561018157600080fd5b506101736004803603602081101561019857600080fd5b8101906020810181356401000000008111156101b357600080fd5b8201836020820111156101c557600080fd5b803590602001918460208302840111640100000000831117156101e757600080fd5b509092509050610810565b3480156101fe57600080fd5b50610173610ac0565b34801561021357600080fd5b5061024f6004803603604081101561022a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610bb5565b60408051918252519081900360200190f35b34801561026d57600080fd5b5061024f6004803603602081101561028457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610bd2565b3480156102ad57600080fd5b50610173600480360360408110156102c457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001351515610be4565b3480156102f557600080fd5b506103296004803603602081101561030c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610ce2565b604080519115158252519081900360200190f35b34801561034957600080fd5b506101736004803603602081101561036057600080fd5b5035610cf7565b34801561037357600080fd5b5061024f610e14565b34801561038857600080fd5b506101736004803603602081101561039f57600080fd5b8101906020810181356401000000008111156103ba57600080fd5b8201836020820111156103cc57600080fd5b803590602001918460208302840111640100000000831117156103ee57600080fd5b509092509050610e1a565b34801561040557600080fd5b5061017361110f565b34801561041a57600080fd5b50610329611226565b34801561042f57600080fd5b50610438611247565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561046d57600080fd5b506101736004803603604081101561048457600080fd5b81019060208101813564010000000081111561049f57600080fd5b8201836020820111156104b157600080fd5b803590602001918460208302840111640100000000831117156104d357600080fd5b9193909290916020810190356401000000008111156104f157600080fd5b82018360208201111561050357600080fd5b8035906020019184602083028401116401000000008311171561052557600080fd5b509092509050611263565b34801561053c57600080fd5b506103296004803603602081101561055357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611414565b61024f600480360361012081101561058757600080fd5b73ffffffffffffffffffffffffffffffffffffffff82358116926020810135926040820135831692606083013592608081013582169260a08201359092169181019060e0810160c08201356401000000008111156105e457600080fd5b8201836020820111156105f657600080fd5b8035906020019184600183028401116401000000008311171561061857600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff81351690602001351515611429565b34801561064d57600080fd5b506103296004803603602081101561066457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115dc565b34801561068d57600080fd5b50610173600480360360208110156106a457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115f1565b3480156106cd57600080fd5b50610173600480360360408110156106e457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001351515611792565b610711611890565b73ffffffffffffffffffffffffffffffffffffffff1661072f611247565b73ffffffffffffffffffffffffffffffffffffffff16146107b157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b606481111561080b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612d756021913960400191505060405180910390fd5b600355565b6000805b82811015610aba573360009081526005602052604081209085858481811061083857fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205491506000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008686858181106108e157fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109b6826006600087878681811061095057fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461189490919063ffffffff16565b600660008686858181106109c657fe5b6020908102929092013573ffffffffffffffffffffffffffffffffffffffff168352508101919091526040016000205573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee848483818110610a1757fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610a5f57610a5a3383611910565b610ab2565b610ab23383868685818110610a7057fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a369092919063ffffffff16565b600101610814565b50505050565b610ac8611890565b73ffffffffffffffffffffffffffffffffffffffff16610ae6611247565b73ffffffffffffffffffffffffffffffffffffffff1614610b6857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b600560209081526000928352604080842090915290825290205481565b60066020526000908152604090205481565b610bec611890565b73ffffffffffffffffffffffffffffffffffffffff16610c0a611247565b73ffffffffffffffffffffffffffffffffffffffff1614610c8c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260046020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60046020526000908152604090205460ff1681565b610cff611890565b73ffffffffffffffffffffffffffffffffffffffff16610d1d611247565b73ffffffffffffffffffffffffffffffffffffffff1614610d9f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6064811115610e0f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f476f6f6457696c6c2056616c7565206e6f7420616c6c6f776564000000000000604482015290519081900360640190fd5b600255565b60025481565b610e22611890565b73ffffffffffffffffffffffffffffffffffffffff16610e40611247565b73ffffffffffffffffffffffffffffffffffffffff1614610ec257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60005b8181101561110a57600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee848484818110610ef057fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610fbb57610fa360066000868686818110610f3c57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020544761189490919063ffffffff16565b9050610fb6610fb0611247565b82611910565b611101565b6110e760066000868686818110610fce57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485858581811061103257fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156110b557600080fd5b505afa1580156110c9573d6000803e3d6000fd5b505050506040513d60208110156110df57600080fd5b505190611894565b90506111016110f4611247565b82868686818110610a7057fe5b50600101610ec5565b505050565b611117611890565b73ffffffffffffffffffffffffffffffffffffffff16611135611247565b73ffffffffffffffffffffffffffffffffffffffff16146111b757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60005474010000000000000000000000000000000000000000900460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61126b611890565b73ffffffffffffffffffffffffffffffffffffffff16611289611247565b73ffffffffffffffffffffffffffffffffffffffff161461130b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b82811461137957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f496e76616c696420496e707574206c656e677468000000000000000000000000604482015290519081900360640190fd5b60005b8381101561140d5782828281811061139057fe5b905060200201351515600760008787858181106113a957fe5b6020908102929092013573ffffffffffffffffffffffffffffffffffffffff1683525081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905560010161137c565b5050505050565b60076020526000908152604090205460ff1681565b6000805474010000000000000000000000000000000000000000900460ff16156114b457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f54656d706f726172696c79205061757365640000000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff861660009081526007602052604090205460ff16806114fc575073ffffffffffffffffffffffffffffffffffffffff8616155b61156757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f546172676574206e6f7420417574686f72697a65640000000000000000000000604482015290519081900360640190fd5b60006115778c8c86600187611ac3565b905060006115be8d8a848b8b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611dac92505050565b90506115cb818c8c611f89565b9d9c50505050505050505050505050565b60016020526000908152604090205460ff1681565b6115f9611890565b73ffffffffffffffffffffffffffffffffffffffff16611617611247565b73ffffffffffffffffffffffffffffffffffffffff161461169957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611705576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612cce6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61179a611890565b73ffffffffffffffffffffffffffffffffffffffff166117b8611247565b73ffffffffffffffffffffffffffffffffffffffff161461183a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b3390565b60008282111561190557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b8047101561197f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b60405160009073ffffffffffffffffffffffffffffffffffffffff84169083908381818185875af1925050503d80600081146119d7576040519150601f19603f3d011682016040523d82523d6000602084013e6119dc565b606091505b505090508061110a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603a815260200180612cf4603a913960400191505060405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261110a90849061228c565b60008073ffffffffffffffffffffffffffffffffffffffff8716611b845760003411611b5057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4e6f206574682073656e74000000000000000000000000000000000000000000604482015290519081900360640190fd5b611b7073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee348787612364565b9050611b7c3482611894565b915050611da3565b60008611611bf357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f496e76616c696420746f6b656e20616d6f756e74000000000000000000000000604482015290519081900360640190fd5b3415611c6057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4574682073656e74207769746820746f6b656e00000000000000000000000000604482015290519081900360640190fd5b8215611d6557611c6f336124ed565b611cc4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180612d96602c913960400191505060405180910390fd5b604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152336004820152306024820152905173ffffffffffffffffffffffffffffffffffffffff89169163dd62ed3e916044808301926020929190829003018186803b158015611d3657600080fd5b505afa158015611d4a573d6000803e3d6000fd5b505050506040513d6020811015611d6057600080fd5b505195505b611d8773ffffffffffffffffffffffffffffffffffffffff88163330896124f7565b611d9387878787612364565b9050611d9f8682611894565b9150505b95945050505050565b6000808573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161415611dec5784915050611da3565b73ffffffffffffffffffffffffffffffffffffffff8716611e0e575083611e18565b611e18878561258c565b6000611e2387612684565b905060008573ffffffffffffffffffffffffffffffffffffffff1683866040518082805190602001908083835b60208310611e8d57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611e50565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611eef576040519150601f19603f3d011682016040523d82523d6000602084013e611ef4565b606091505b5050905080611f6457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4572726f72205377617070696e6720546f6b656e732031000000000000000000604482015290519081900360640190fd5b6000611f6f89612684565b9050611f7b8184611894565b9a9950505050505050505050565b6000808373ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b158015611fd257600080fd5b505afa158015611fe6573d6000803e3d6000fd5b505050506040513d6020811015611ffc57600080fd5b5051905061200a818561258c565b60008473ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561207357600080fd5b505afa158015612087573d6000803e3d6000fd5b505050506040513d602081101561209d57600080fd5b5051604080517fc74e907b0000000000000000000000000000000000000000000000000000000081523360048201526024810189905260448101879052905191925073ffffffffffffffffffffffffffffffffffffffff87169163c74e907b916064808201926020929091908290030181600087803b15801561211f57600080fd5b505af1158015612133573d6000803e3d6000fd5b505050506040513d602081101561214957600080fd5b5050604080517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015290516121bd91839173ffffffffffffffffffffffffffffffffffffffff8916916370a08231916024808301926020929190829003018186803b1580156110b557600080fd5b92508383101561222e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4572723a204869676820536c6970706167650000000000000000000000000000604482015290519081900360640190fd5b6040805133815273ffffffffffffffffffffffffffffffffffffffff8716602082015280820185905290517f7f31d76771556dce5ab39ba5b60664743da2629a75c474e9445734b7ad34087d9181900360600190a150509392505050565b60006122ee826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166127469092919063ffffffff16565b80519091501561110a5780806020019051602081101561230d57600080fd5b505161110a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612dc2602a913960400191505060405180910390fd5b3360009081526001602052604081205460ff16828015612382575080155b801561239057506000600254115b156124e4576123ac6123a48660025461275f565b6127106127d2565b73ffffffffffffffffffffffffffffffffffffffff851660009081526004602052604090205490925060ff16156124e45773ffffffffffffffffffffffffffffffffffffffff86166124105773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee95505b6000612432606461242c6003548661275f90919063ffffffff16565b906127d2565b73ffffffffffffffffffffffffffffffffffffffff8087166000908152600560209081526040808320938c16835292905220549091506124729082612853565b73ffffffffffffffffffffffffffffffffffffffff8087166000908152600560209081526040808320938c1683529281528282209390935560069092529020546124bc9082612853565b73ffffffffffffffffffffffffffffffffffffffff8816600090815260066020526040902055505b50949350505050565b803b15155b919050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610aba90859061228c565b604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8381166024830152915184926000929084169163dd62ed3e91604480820192602092909190829003018186803b15801561260757600080fd5b505afa15801561261b573d6000803e3d6000fd5b505050506040513d602081101561263157600080fd5b5051111561263f5750612680565b61110a73ffffffffffffffffffffffffffffffffffffffff8216837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6128c7565b5050565b600073ffffffffffffffffffffffffffffffffffffffff82166126a85750476124f2565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8416916370a08231916024808301926020929190829003018186803b15801561271457600080fd5b505afa158015612728573d6000803e3d6000fd5b505050506040513d602081101561273e57600080fd5b505192915050565b60606127558484600085612a55565b90505b9392505050565b60008261276e5750600061190a565b8282028284828161277b57fe5b0414612758576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612d546021913960400191505060405180910390fd5b600080821161284257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161284b57fe5b049392505050565b60008282018381101561275857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b8015806129735750604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561294557600080fd5b505afa158015612959573d6000803e3d6000fd5b505050506040513d602081101561296f57600080fd5b5051155b6129c8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526036815260200180612dec6036913960400191505060405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905261110a90849061228c565b606082471015612ab0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612d2e6026913960400191505060405180910390fd5b612ab9856124ed565b612b2457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310612b8d57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612b50565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612bef576040519150601f19603f3d011682016040523d82523d6000602084013e612bf4565b606091505b5091509150612c04828286612c0f565b979650505050505050565b60608315612c1e575081612758565b825115612c2e5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612c92578181015183820152602001612c7a565b50505050905090810190601f168015612cbf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77416666696c696174652053706c69742056616c7565206e6f7420616c6c6f7765644552523a2073686f756c6453656c6c456e7469726542616c616e6365206973207472756520666f7220454f415361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a164736f6c6343000706000a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101445760003560e01c80635ecb16cd116100c05780639779d1a611610074578063d408f65711610059578063d408f65714610641578063f2fde38b14610681578063fbec27bf146106c157610144565b80639779d1a614610530578063c0a8346e1461057057610144565b806375f12b21116100a557806375f12b211461040e5780638da5cb5b146104235780639735a6341461046157610144565b80635ecb16cd1461037c578063715018a6146103f957610144565b806318b135e3116101175780634f51e294116100fc5780634f51e294146102e9578063550bfa561461033d5780635de0398e1461036757610144565b806318b135e3146102615780633ff428c7146102a157610144565b806301e980d4146101495780630dc9de85146101755780631385d24c146101f25780631781261f14610207575b600080fd5b34801561015557600080fd5b506101736004803603602081101561016c57600080fd5b5035610709565b005b34801561018157600080fd5b506101736004803603602081101561019857600080fd5b8101906020810181356401000000008111156101b357600080fd5b8201836020820111156101c557600080fd5b803590602001918460208302840111640100000000831117156101e757600080fd5b509092509050610810565b3480156101fe57600080fd5b50610173610ac0565b34801561021357600080fd5b5061024f6004803603604081101561022a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610bb5565b60408051918252519081900360200190f35b34801561026d57600080fd5b5061024f6004803603602081101561028457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610bd2565b3480156102ad57600080fd5b50610173600480360360408110156102c457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001351515610be4565b3480156102f557600080fd5b506103296004803603602081101561030c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610ce2565b604080519115158252519081900360200190f35b34801561034957600080fd5b506101736004803603602081101561036057600080fd5b5035610cf7565b34801561037357600080fd5b5061024f610e14565b34801561038857600080fd5b506101736004803603602081101561039f57600080fd5b8101906020810181356401000000008111156103ba57600080fd5b8201836020820111156103cc57600080fd5b803590602001918460208302840111640100000000831117156103ee57600080fd5b509092509050610e1a565b34801561040557600080fd5b5061017361110f565b34801561041a57600080fd5b50610329611226565b34801561042f57600080fd5b50610438611247565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561046d57600080fd5b506101736004803603604081101561048457600080fd5b81019060208101813564010000000081111561049f57600080fd5b8201836020820111156104b157600080fd5b803590602001918460208302840111640100000000831117156104d357600080fd5b9193909290916020810190356401000000008111156104f157600080fd5b82018360208201111561050357600080fd5b8035906020019184602083028401116401000000008311171561052557600080fd5b509092509050611263565b34801561053c57600080fd5b506103296004803603602081101561055357600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611414565b61024f600480360361012081101561058757600080fd5b73ffffffffffffffffffffffffffffffffffffffff82358116926020810135926040820135831692606083013592608081013582169260a08201359092169181019060e0810160c08201356401000000008111156105e457600080fd5b8201836020820111156105f657600080fd5b8035906020019184600183028401116401000000008311171561061857600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff81351690602001351515611429565b34801561064d57600080fd5b506103296004803603602081101561066457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115dc565b34801561068d57600080fd5b50610173600480360360208110156106a457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166115f1565b3480156106cd57600080fd5b50610173600480360360408110156106e457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001351515611792565b610711611890565b73ffffffffffffffffffffffffffffffffffffffff1661072f611247565b73ffffffffffffffffffffffffffffffffffffffff16146107b157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b606481111561080b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612d756021913960400191505060405180910390fd5b600355565b6000805b82811015610aba573360009081526005602052604081209085858481811061083857fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205491506000600560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008686858181106108e157fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109b6826006600087878681811061095057fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461189490919063ffffffff16565b600660008686858181106109c657fe5b6020908102929092013573ffffffffffffffffffffffffffffffffffffffff168352508101919091526040016000205573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee848483818110610a1757fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610a5f57610a5a3383611910565b610ab2565b610ab23383868685818110610a7057fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a369092919063ffffffff16565b600101610814565b50505050565b610ac8611890565b73ffffffffffffffffffffffffffffffffffffffff16610ae6611247565b73ffffffffffffffffffffffffffffffffffffffff1614610b6857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff8116740100000000000000000000000000000000000000009182900460ff1615909102179055565b600560209081526000928352604080842090915290825290205481565b60066020526000908152604090205481565b610bec611890565b73ffffffffffffffffffffffffffffffffffffffff16610c0a611247565b73ffffffffffffffffffffffffffffffffffffffff1614610c8c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260046020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60046020526000908152604090205460ff1681565b610cff611890565b73ffffffffffffffffffffffffffffffffffffffff16610d1d611247565b73ffffffffffffffffffffffffffffffffffffffff1614610d9f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6064811115610e0f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f476f6f6457696c6c2056616c7565206e6f7420616c6c6f776564000000000000604482015290519081900360640190fd5b600255565b60025481565b610e22611890565b73ffffffffffffffffffffffffffffffffffffffff16610e40611247565b73ffffffffffffffffffffffffffffffffffffffff1614610ec257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60005b8181101561110a57600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee848484818110610ef057fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610fbb57610fa360066000868686818110610f3c57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020544761189490919063ffffffff16565b9050610fb6610fb0611247565b82611910565b611101565b6110e760066000868686818110610fce57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205485858581811061103257fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b1580156110b557600080fd5b505afa1580156110c9573d6000803e3d6000fd5b505050506040513d60208110156110df57600080fd5b505190611894565b90506111016110f4611247565b82868686818110610a7057fe5b50600101610ec5565b505050565b611117611890565b73ffffffffffffffffffffffffffffffffffffffff16611135611247565b73ffffffffffffffffffffffffffffffffffffffff16146111b757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60005474010000000000000000000000000000000000000000900460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b61126b611890565b73ffffffffffffffffffffffffffffffffffffffff16611289611247565b73ffffffffffffffffffffffffffffffffffffffff161461130b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b82811461137957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f496e76616c696420496e707574206c656e677468000000000000000000000000604482015290519081900360640190fd5b60005b8381101561140d5782828281811061139057fe5b905060200201351515600760008787858181106113a957fe5b6020908102929092013573ffffffffffffffffffffffffffffffffffffffff1683525081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905560010161137c565b5050505050565b60076020526000908152604090205460ff1681565b6000805474010000000000000000000000000000000000000000900460ff16156114b457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f54656d706f726172696c79205061757365640000000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff861660009081526007602052604090205460ff16806114fc575073ffffffffffffffffffffffffffffffffffffffff8616155b61156757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f546172676574206e6f7420417574686f72697a65640000000000000000000000604482015290519081900360640190fd5b60006115778c8c86600187611ac3565b905060006115be8d8a848b8b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250611dac92505050565b90506115cb818c8c611f89565b9d9c50505050505050505050505050565b60016020526000908152604090205460ff1681565b6115f9611890565b73ffffffffffffffffffffffffffffffffffffffff16611617611247565b73ffffffffffffffffffffffffffffffffffffffff161461169957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116611705576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612cce6026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b61179a611890565b73ffffffffffffffffffffffffffffffffffffffff166117b8611247565b73ffffffffffffffffffffffffffffffffffffffff161461183a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b3390565b60008282111561190557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b508082035b92915050565b8047101561197f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b60405160009073ffffffffffffffffffffffffffffffffffffffff84169083908381818185875af1925050503d80600081146119d7576040519150601f19603f3d011682016040523d82523d6000602084013e6119dc565b606091505b505090508061110a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603a815260200180612cf4603a913960400191505060405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261110a90849061228c565b60008073ffffffffffffffffffffffffffffffffffffffff8716611b845760003411611b5057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f4e6f206574682073656e74000000000000000000000000000000000000000000604482015290519081900360640190fd5b611b7073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee348787612364565b9050611b7c3482611894565b915050611da3565b60008611611bf357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f496e76616c696420746f6b656e20616d6f756e74000000000000000000000000604482015290519081900360640190fd5b3415611c6057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4574682073656e74207769746820746f6b656e00000000000000000000000000604482015290519081900360640190fd5b8215611d6557611c6f336124ed565b611cc4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602c815260200180612d96602c913960400191505060405180910390fd5b604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152336004820152306024820152905173ffffffffffffffffffffffffffffffffffffffff89169163dd62ed3e916044808301926020929190829003018186803b158015611d3657600080fd5b505afa158015611d4a573d6000803e3d6000fd5b505050506040513d6020811015611d6057600080fd5b505195505b611d8773ffffffffffffffffffffffffffffffffffffffff88163330896124f7565b611d9387878787612364565b9050611d9f8682611894565b9150505b95945050505050565b6000808573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff161415611dec5784915050611da3565b73ffffffffffffffffffffffffffffffffffffffff8716611e0e575083611e18565b611e18878561258c565b6000611e2387612684565b905060008573ffffffffffffffffffffffffffffffffffffffff1683866040518082805190602001908083835b60208310611e8d57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611e50565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611eef576040519150601f19603f3d011682016040523d82523d6000602084013e611ef4565b606091505b5050905080611f6457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4572726f72205377617070696e6720546f6b656e732031000000000000000000604482015290519081900360640190fd5b6000611f6f89612684565b9050611f7b8184611894565b9a9950505050505050505050565b6000808373ffffffffffffffffffffffffffffffffffffffff16636f307dc36040518163ffffffff1660e01b815260040160206040518083038186803b158015611fd257600080fd5b505afa158015611fe6573d6000803e3d6000fd5b505050506040513d6020811015611ffc57600080fd5b5051905061200a818561258c565b60008473ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561207357600080fd5b505afa158015612087573d6000803e3d6000fd5b505050506040513d602081101561209d57600080fd5b5051604080517fc74e907b0000000000000000000000000000000000000000000000000000000081523360048201526024810189905260448101879052905191925073ffffffffffffffffffffffffffffffffffffffff87169163c74e907b916064808201926020929091908290030181600087803b15801561211f57600080fd5b505af1158015612133573d6000803e3d6000fd5b505050506040513d602081101561214957600080fd5b5050604080517f70a0823100000000000000000000000000000000000000000000000000000000815233600482015290516121bd91839173ffffffffffffffffffffffffffffffffffffffff8916916370a08231916024808301926020929190829003018186803b1580156110b557600080fd5b92508383101561222e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f4572723a204869676820536c6970706167650000000000000000000000000000604482015290519081900360640190fd5b6040805133815273ffffffffffffffffffffffffffffffffffffffff8716602082015280820185905290517f7f31d76771556dce5ab39ba5b60664743da2629a75c474e9445734b7ad34087d9181900360600190a150509392505050565b60006122ee826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166127469092919063ffffffff16565b80519091501561110a5780806020019051602081101561230d57600080fd5b505161110a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180612dc2602a913960400191505060405180910390fd5b3360009081526001602052604081205460ff16828015612382575080155b801561239057506000600254115b156124e4576123ac6123a48660025461275f565b6127106127d2565b73ffffffffffffffffffffffffffffffffffffffff851660009081526004602052604090205490925060ff16156124e45773ffffffffffffffffffffffffffffffffffffffff86166124105773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee95505b6000612432606461242c6003548661275f90919063ffffffff16565b906127d2565b73ffffffffffffffffffffffffffffffffffffffff8087166000908152600560209081526040808320938c16835292905220549091506124729082612853565b73ffffffffffffffffffffffffffffffffffffffff8087166000908152600560209081526040808320938c1683529281528282209390935560069092529020546124bc9082612853565b73ffffffffffffffffffffffffffffffffffffffff8816600090815260066020526040902055505b50949350505050565b803b15155b919050565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610aba90859061228c565b604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff8381166024830152915184926000929084169163dd62ed3e91604480820192602092909190829003018186803b15801561260757600080fd5b505afa15801561261b573d6000803e3d6000fd5b505050506040513d602081101561263157600080fd5b5051111561263f5750612680565b61110a73ffffffffffffffffffffffffffffffffffffffff8216837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6128c7565b5050565b600073ffffffffffffffffffffffffffffffffffffffff82166126a85750476124f2565b604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905173ffffffffffffffffffffffffffffffffffffffff8416916370a08231916024808301926020929190829003018186803b15801561271457600080fd5b505afa158015612728573d6000803e3d6000fd5b505050506040513d602081101561273e57600080fd5b505192915050565b60606127558484600085612a55565b90505b9392505050565b60008261276e5750600061190a565b8282028284828161277b57fe5b0414612758576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180612d546021913960400191505060405180910390fd5b600080821161284257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161284b57fe5b049392505050565b60008282018381101561275857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b8015806129735750604080517fdd62ed3e00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b15801561294557600080fd5b505afa158015612959573d6000803e3d6000fd5b505050506040513d602081101561296f57600080fd5b5051155b6129c8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526036815260200180612dec6036913960400191505060405180910390fd5b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b30000000000000000000000000000000000000000000000000000000017905261110a90849061228c565b606082471015612ab0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180612d2e6026913960400191505060405180910390fd5b612ab9856124ed565b612b2457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310612b8d57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101612b50565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114612bef576040519150601f19603f3d011682016040523d82523d6000602084013e612bf4565b606091505b5091509150612c04828286612c0f565b979650505050505050565b60608315612c1e575081612758565b825115612c2e5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612c92578181015183820152602001612c7a565b50505050905090810190601f168015612cbf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77416666696c696174652053706c69742056616c7565206e6f7420616c6c6f7765644552523a2073686f756c6453656c6c456e7469726542616c616e6365206973207472756520666f7220454f415361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a164736f6c6343000706000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _goodwill (uint256): 0
Arg [1] : _affiliateSplit (uint256): 0
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.