Source Code
Latest 25 from a total of 3,274 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer Ownersh... | 12858008 | 1678 days ago | IN | 0 ETH | 0.00100558 | ||||
| Zap In | 12847099 | 1680 days ago | IN | 0 ETH | 0.00035119 | ||||
| Zap In | 12655457 | 1710 days ago | IN | 0 ETH | 0.00100964 | ||||
| Toggle Contract ... | 12599384 | 1719 days ago | IN | 0 ETH | 0.00039853 | ||||
| Zap In | 12577124 | 1722 days ago | IN | 0 ETH | 0.00872467 | ||||
| Zap In | 12577106 | 1722 days ago | IN | 5 ETH | 0.00388788 | ||||
| Zap In | 12577102 | 1722 days ago | IN | 0 ETH | 0.00935452 | ||||
| Zap In | 12576998 | 1722 days ago | IN | 9 ETH | 0.01976496 | ||||
| Zap In | 12576978 | 1722 days ago | IN | 0 ETH | 0.0018732 | ||||
| Zap In | 12576952 | 1722 days ago | IN | 0 ETH | 0.01043885 | ||||
| Zap In | 12576838 | 1722 days ago | IN | 0 ETH | 0.00743947 | ||||
| Zap In | 12576825 | 1722 days ago | IN | 0 ETH | 0.00053455 | ||||
| Zap In | 12576818 | 1722 days ago | IN | 0 ETH | 0.00693718 | ||||
| Zap In | 12576796 | 1722 days ago | IN | 0 ETH | 0.00548227 | ||||
| Zap In | 12576777 | 1722 days ago | IN | 0 ETH | 0.0056177 | ||||
| Zap In | 12576754 | 1722 days ago | IN | 32.01 ETH | 0.00388845 | ||||
| Zap In | 12576754 | 1722 days ago | IN | 10 ETH | 0.00396594 | ||||
| Zap In | 12576641 | 1722 days ago | IN | 0 ETH | 0.01239014 | ||||
| Zap In | 12576485 | 1722 days ago | IN | 0 ETH | 0.00169197 | ||||
| Zap In | 12576442 | 1722 days ago | IN | 0 ETH | 0.00505116 | ||||
| Zap In | 12576405 | 1722 days ago | IN | 0 ETH | 0.00872055 | ||||
| Zap In | 12576362 | 1722 days ago | IN | 0.08 ETH | 0.00583091 | ||||
| Zap In | 12576346 | 1722 days ago | IN | 0 ETH | 0.00632702 | ||||
| Zap In | 12576323 | 1722 days ago | IN | 0 ETH | 0.00656812 | ||||
| Zap In | 12576295 | 1722 days ago | IN | 15.5 ETH | 0.01381513 |
Latest 25 internal transactions (View All)
Advanced mode:
| Parent Transaction Hash | Method | Block |
From
|
|
To
|
||
|---|---|---|---|---|---|---|---|
| - | 12577106 | 1722 days ago | 5 ETH | ||||
| - | 12576998 | 1722 days ago | 9 ETH | ||||
| - | 12576754 | 1722 days ago | 32.01 ETH | ||||
| - | 12576754 | 1722 days ago | 10 ETH | ||||
| - | 12576362 | 1722 days ago | 0.08 ETH | ||||
| - | 12576295 | 1722 days ago | 15.5 ETH | ||||
| - | 12576006 | 1722 days ago | 4.85 ETH | ||||
| - | 12575990 | 1722 days ago | 0.3 ETH | ||||
| - | 12575957 | 1722 days ago | 11 ETH | ||||
| - | 12575633 | 1722 days ago | 0.12 ETH | ||||
| - | 12575591 | 1722 days ago | 0.25 ETH | ||||
| - | 12575125 | 1723 days ago | 10.1 ETH | ||||
| - | 12575048 | 1723 days ago | 11 ETH | ||||
| - | 12574879 | 1723 days ago | 0.1 ETH | ||||
| - | 12574526 | 1723 days ago | 0.9 ETH | ||||
| - | 12574384 | 1723 days ago | 1.2 ETH | ||||
| - | 12574205 | 1723 days ago | 0.2 ETH | ||||
| - | 12573655 | 1723 days ago | 0.01745816 ETH | ||||
| - | 12572934 | 1723 days ago | 2.5 ETH | ||||
| - | 12572927 | 1723 days ago | 1.1 ETH | ||||
| - | 12572898 | 1723 days ago | 1 ETH | ||||
| - | 12572616 | 1723 days ago | 1 ETH | ||||
| - | 12572442 | 1723 days ago | 0.265 ETH | ||||
| - | 12572267 | 1723 days ago | 4.97318778 ETH | ||||
| - | 12572174 | 1723 days ago | 70 ETH |
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
yVault_ZapIn_V3
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2021-04-11
*/
// ███████╗░█████╗░██████╗░██████╗░███████╗██████╗░░░░███████╗██╗
// ╚════██║██╔══██╗██╔══██╗██╔══██╗██╔════╝██╔══██╗░░░██╔════╝██║
// ░░███╔═╝███████║██████╔╝██████╔╝█████╗░░██████╔╝░░░█████╗░░██║
// ██╔══╝░░██╔══██║██╔═══╝░██╔═══╝░██╔══╝░░██╔══██╗░░░██╔══╝░░██║
// ███████╗██║░░██║██║░░░░░██║░░░░░███████╗██║░░██║██╗██║░░░░░██║
// ╚══════╝╚═╝░░╚═╝╚═╝░░░░░╚═╝░░░░░╚══════╝╚═╝░░╚═╝╚═╝╚═╝░░░░░╚═╝
// 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
///@notice This contract adds liquidity to Yearn Vaults using ETH or ERC20 Tokens.
// SPDX-License-Identifier: GPLv2
// File: contracts/oz/GSN/Context.sol
pragma solidity ^0.5.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.
*/
contract Context {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
constructor() internal {}
// solhint-disable-previous-line no-empty-blocks
function _msgSender() internal view returns (address payable) {
return msg.sender;
}
function _msgData() internal view returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
}
// File: contracts/oz/ownership/Ownable.sol
pragma solidity ^0.5.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.
*
* 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.
*/
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 returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(isOwner(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Returns true if the caller is the current owner.
*/
function isOwner() public view returns (bool) {
return _msgSender() == _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 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 onlyOwner {
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
*/
function _transferOwnership(address newOwner) internal {
require(
newOwner != address(0),
"Ownable: new owner is the zero address"
);
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
// File: contracts/oz/token/ERC20/IERC20.sol
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see {ERC20Detailed}.
*/
interface IERC20 {
function decimals() external view returns (uint8);
/**
* @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: contracts/oz/math/SafeMath.sol
pragma solidity ^0.5.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, 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) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*
* _Available since v2.4.0._
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @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) {
// 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 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts 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) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message 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.
*
* _Available since v2.4.0._
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts 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) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message 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.
*
* _Available since v2.4.0._
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
// File: contracts/oz/utils/Address.sol
pragma solidity ^0.5.5;
/**
* @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) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash =
0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly {
codehash := extcodehash(account)
}
return (codehash != accountHash && codehash != 0x0);
}
/**
* @dev Converts an `address` into `address payable`. Note that this is
* simply a type cast: the actual underlying value is not changed.
*
* _Available since v2.4.0._
*/
function toPayable(address account)
internal
pure
returns (address payable)
{
return address(uint160(account));
}
/**
* @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].
*
* _Available since v2.4.0._
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(
address(this).balance >= amount,
"Address: insufficient balance"
);
// solhint-disable-next-line avoid-call-value
(bool success, ) = recipient.call.value(amount)("");
require(
success,
"Address: unable to send value, recipient may have reverted"
);
}
}
// File: contracts/oz/token/ERC20/SafeERC20.sol
pragma solidity ^0.5.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 ERC20;` 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)
);
}
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.
// A Solidity high level call has three parts:
// 1. The target address is checked to verify it contains contract code
// 2. The call itself is made, and success asserted
// 3. The return value is decoded, which in turn checks the size of the returned data.
// solhint-disable-next-line max-line-length
require(address(token).isContract(), "SafeERC20: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = address(token).call(data);
require(success, "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/_base/ZapBaseV1.sol
pragma solidity ^0.5.7;
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) public {
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));
}
}
// - 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(Address.toPayable(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);
}
}
}
function() external payable {
require(msg.sender != tx.origin, "Do not send ETH directly");
}
}
// File: contracts/_base/ZapInBaseV1.sol
pragma solidity ^0.5.7;
contract ZapInBaseV1 is ZapBaseV1 {
function _pullTokens(
address token,
uint256 amount,
address affiliate,
bool enableGoodwill
) 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
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
);
}
}
}
}
// File: contracts/yEarn/yVault_ZapIn_V3.sol
pragma solidity ^0.5.7;
interface IYVault {
function deposit(uint256) external;
function withdraw(uint256) external;
function getPricePerFullShare() external view returns (uint256);
function token() external view returns (address);
// V2
function pricePerShare() external view returns (uint256);
}
// -- Aave --
interface IAaveLendingPoolAddressesProvider {
function getLendingPool() external view returns (address);
function getLendingPoolCore() external view returns (address payable);
}
interface IAaveLendingPoolCore {
function getReserveATokenAddress(address _reserve)
external
view
returns (address);
}
interface IAaveLendingPool {
function deposit(
address _reserve,
uint256 _amount,
uint16 _referralCode
) external payable;
}
contract yVault_ZapIn_V3 is ZapInBaseV1 {
// calldata only accepted for approved zap contracts
mapping(address => bool) public approvedTargets;
IAaveLendingPoolAddressesProvider
private constant lendingPoolAddressProvider =
IAaveLendingPoolAddressesProvider(
0x24a42fD28C976A61Df5D00D0599C34c4f90748c8
);
event zapIn(address sender, address pool, uint256 tokensRec);
constructor(
address _curveZapIn,
uint256 _goodwill,
uint256 _affiliateSplit
) public ZapBaseV1(_goodwill, _affiliateSplit) {}
/**
@notice This function adds liquidity to a Yearn vaults 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 toVault Yearn vault address
@param superVault Super vault to depoist toVault tokens into (address(0) if none)
@param isAaveUnderlying True if vault contains aave token
@param minYVTokens The minimum acceptable quantity vault tokens to receive. Reverts otherwise
@param intermediateToken Token to swap fromToken to before entering vault
@param swapTarget Excecution target for the swap or Zap
@param swapData DEX quote or Zap data
@param affiliate Affiliate address
@return tokensReceived- Quantity of Vault tokens received
*/
function ZapIn(
address fromToken,
uint256 amountIn,
address toVault,
address superVault,
bool isAaveUnderlying,
uint256 minYVTokens,
address intermediateToken,
address swapTarget,
bytes calldata swapData,
address affiliate
) 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);
// get intermediate token
uint256 intermediateAmt =
_fillQuote(
fromToken,
intermediateToken,
toInvest,
swapTarget,
swapData
);
// get 'aIntermediateToken'
if (isAaveUnderlying) {
address aaveLendingPoolCore =
lendingPoolAddressProvider.getLendingPoolCore();
_approveToken(intermediateToken, aaveLendingPoolCore);
IAaveLendingPool(lendingPoolAddressProvider.getLendingPool())
.deposit(intermediateToken, intermediateAmt, 0);
intermediateToken = IAaveLendingPoolCore(aaveLendingPoolCore)
.getReserveATokenAddress(intermediateToken);
}
return
_zapIn(
toVault,
superVault,
minYVTokens,
intermediateToken,
intermediateAmt
);
}
function _zapIn(
address toVault,
address superVault,
uint256 minYVTokens,
address intermediateToken,
uint256 intermediateAmt
) internal returns (uint256 tokensReceived) {
// Deposit to Vault
if (superVault == address(0)) {
tokensReceived = _vaultDeposit(
intermediateToken,
intermediateAmt,
toVault,
minYVTokens,
true
);
} else {
uint256 intermediateYVTokens =
_vaultDeposit(
intermediateToken,
intermediateAmt,
toVault,
0,
false
);
// deposit to super vault
tokensReceived = _vaultDeposit(
IYVault(superVault).token(),
intermediateYVTokens,
superVault,
minYVTokens,
true
);
}
}
function _vaultDeposit(
address underlyingVaultToken,
uint256 amount,
address toVault,
uint256 minTokensRec,
bool shouldTransfer
) internal returns (uint256 tokensReceived) {
_approveToken(underlyingVaultToken, toVault);
uint256 iniYVaultBal = IERC20(toVault).balanceOf(address(this));
IYVault(toVault).deposit(amount);
tokensReceived = IERC20(toVault).balanceOf(address(this)).sub(
iniYVaultBal
);
require(tokensReceived >= minTokensRec, "Err: High Slippage");
if (shouldTransfer) {
IERC20(toVault).safeTransfer(msg.sender, tokensReceived);
emit zapIn(msg.sender, toVault, 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];
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_curveZapIn","type":"address"},{"internalType":"uint256","name":"_goodwill","type":"uint256"},{"internalType":"uint256","name":"_affiliateSplit","type":"uint256"}],"payable":false,"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"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"constant":false,"inputs":[{"internalType":"address","name":"fromToken","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address","name":"toVault","type":"address"},{"internalType":"address","name":"superVault","type":"address"},{"internalType":"bool","name":"isAaveUnderlying","type":"bool"},{"internalType":"uint256","name":"minYVTokens","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"}],"name":"ZapIn","outputs":[{"internalType":"uint256","name":"tokensReceived","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"affiliateBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"affiliates","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"affilliateWithdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedTargets","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"feeWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"goodwill","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"targets","type":"address[]"},{"internalType":"bool[]","name":"isApproved","type":"bool[]"}],"name":"setApprovedTargets","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_affiliate","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"set_affiliate","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"zapAddress","type":"address"},{"internalType":"bool","name":"status","type":"bool"}],"name":"set_feeWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_new_affiliateSplit","type":"uint256"}],"name":"set_new_affiliateSplit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_new_goodwill","type":"uint256"}],"name":"set_new_goodwill","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"stopped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"toggleContractActive","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalAffiliateBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"withdrawTokens","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040526000805460ff60a01b1916905534801561001d57600080fd5b506040516124b63803806124b68339818101604052606081101561004057600080fd5b5080516020820151604090920151909190818160006100666001600160e01b036100c216565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600291909155600355506100c6915050565b3390565b6123e1806100d56000396000f3fe60806040526004361061011f5760003560e01c8063715018a6116100a05780639735a634116100645780639735a6341461051b5780639779d1a6146105e6578063d408f65714610619578063f2fde38b1461064c578063fbec27bf1461067f5761011f565b8063715018a6146103ec57806375f12b211461040157806382650b10146104165780638da5cb5b146104d55780638f32d59b146105065761011f565b80633ff428c7116100e75780633ff428c7146102b05780634f51e294146102eb578063550bfa56146103325780635de0398e1461035c5780635ecb16cd146103715761011f565b806301e980d4146101765780630dc9de85146101a05780631385d24c1461021b5780631781261f1461023057806318b135e31461027d575b33321415610174576040805162461bcd60e51b815260206004820152601860248201527f446f206e6f742073656e6420455448206469726563746c790000000000000000604482015290519081900360640190fd5b005b34801561018257600080fd5b506101746004803603602081101561019957600080fd5b50356106ba565b3480156101ac57600080fd5b50610174600480360360208110156101c357600080fd5b810190602081018135600160201b8111156101dd57600080fd5b8201836020820111156101ef57600080fd5b803590602001918460208302840111600160201b8311171561021057600080fd5b509092509050610746565b34801561022757600080fd5b50610174610926565b34801561023c57600080fd5b5061026b6004803603604081101561025357600080fd5b506001600160a01b038135811691602001351661098e565b60408051918252519081900360200190f35b34801561028957600080fd5b5061026b600480360360208110156102a057600080fd5b50356001600160a01b03166109ab565b3480156102bc57600080fd5b50610174600480360360408110156102d357600080fd5b506001600160a01b03813516906020013515156109bd565b3480156102f757600080fd5b5061031e6004803603602081101561030e57600080fd5b50356001600160a01b0316610a2f565b604080519115158252519081900360200190f35b34801561033e57600080fd5b506101746004803603602081101561035557600080fd5b5035610a44565b34801561036857600080fd5b5061026b610ae6565b34801561037d57600080fd5b506101746004803603602081101561039457600080fd5b810190602081018135600160201b8111156103ae57600080fd5b8201836020820111156103c057600080fd5b803590602001918460208302840111600160201b831117156103e157600080fd5b509092509050610aec565b3480156103f857600080fd5b50610174610cef565b34801561040d57600080fd5b5061031e610d80565b61026b600480360361014081101561042d57600080fd5b6001600160a01b03823581169260208101359260408201358316926060830135811692608081013515159260a08201359260c083013581169260e0810135909116918101906101208101610100820135600160201b81111561048e57600080fd5b8201836020820111156104a057600080fd5b803590602001918460018302840111600160201b831117156104c157600080fd5b9193509150356001600160a01b0316610d90565b3480156104e157600080fd5b506104ea6110ce565b604080516001600160a01b039092168252519081900360200190f35b34801561051257600080fd5b5061031e6110dd565b34801561052757600080fd5b506101746004803603604081101561053e57600080fd5b810190602081018135600160201b81111561055857600080fd5b82018360208201111561056a57600080fd5b803590602001918460208302840111600160201b8311171561058b57600080fd5b919390929091602081019035600160201b8111156105a857600080fd5b8201836020820111156105ba57600080fd5b803590602001918460208302840111600160201b831117156105db57600080fd5b509092509050611101565b3480156105f257600080fd5b5061031e6004803603602081101561060957600080fd5b50356001600160a01b0316611203565b34801561062557600080fd5b5061031e6004803603602081101561063c57600080fd5b50356001600160a01b0316611218565b34801561065857600080fd5b506101746004803603602081101561066f57600080fd5b50356001600160a01b031661122d565b34801561068b57600080fd5b50610174600480360360408110156106a257600080fd5b506001600160a01b0381351690602001351515611280565b6106c26110dd565b610701576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b60648111156107415760405162461bcd60e51b815260040180806020018281038252602181526020018061230c6021913960400191505060405180910390fd5b600355565b6000805b82811015610920573360009081526005602052604081209085858481811061076e57fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020549150600060056000336001600160a01b03166001600160a01b0316815260200190815260200160002060008686858181106107d657fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b031681526020019081526020016000208190555061085d826006600087878681811061081e57fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020546112f290919063ffffffff16565b6006600086868581811061086d57fe5b602090810292909201356001600160a01b03168352508101919091526040016000205573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8484838181106108b157fe5b905060200201356001600160a01b03166001600160a01b031614156108df576108da338361133d565b610918565b61091833838686858181106108f057fe5b905060200201356001600160a01b03166001600160a01b03166114229092919063ffffffff16565b60010161074a565b50505050565b61092e6110dd565b61096d576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b600560209081526000928352604080842090915290825290205481565b60066020526000908152604090205481565b6109c56110dd565b610a04576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b60046020526000908152604090205460ff1681565b610a4c6110dd565b610a8b576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b6064811115610ae1576040805162461bcd60e51b815260206004820152601a60248201527f476f6f6457696c6c2056616c7565206e6f7420616c6c6f776564000000000000604482015290519081900360640190fd5b600255565b60025481565b610af46110dd565b610b33576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b60005b81811015610cea57600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee848484818110610b6157fe5b905060200201356001600160a01b03166001600160a01b03161415610bf357610bd360066000868686818110610b9357fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002054476112f290919063ffffffff16565b9050610bee610be8610be36110ce565b611474565b8261133d565b610ce1565b610cc760066000868686818110610c0657fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002054858585818110610c4357fe5b604080516370a0823160e01b81523060048201529051602092830294909401356001600160a01b0316936370a08231935060248083019392829003018186803b158015610c8f57600080fd5b505afa158015610ca3573d6000803e3d6000fd5b505050506040513d6020811015610cb957600080fd5b50519063ffffffff6112f216565b9050610ce1610cd46110ce565b828686868181106108f057fe5b50600101610b36565b505050565b610cf76110dd565b610d36576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600054600160a01b900460ff1681565b60008054600160a01b900460ff1615610de5576040805162461bcd60e51b815260206004820152601260248201527115195b5c1bdc985c9a5b1e4814185d5cd95960721b604482015290519081900360640190fd5b6001600160a01b03851660009081526007602052604090205460ff1680610e1357506001600160a01b038516155b610e5c576040805162461bcd60e51b815260206004820152601560248201527415185c99d95d081b9bdd08105d5d1a1bdc9a5e9959605a1b604482015290519081900360640190fd5b6000610e6b8d8d85600161147b565b90506000610eb28e89848a8a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506115e392505050565b905089156110af5760007324a42fd28c976a61df5d00d0599c34c4f90748c86001600160a01b031663ed6ff7606040518163ffffffff1660e01b815260040160206040518083038186803b158015610f0957600080fd5b505afa158015610f1d573d6000803e3d6000fd5b505050506040513d6020811015610f3357600080fd5b50519050610f41898261175c565b7324a42fd28c976a61df5d00d0599c34c4f90748c86001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f8e57600080fd5b505afa158015610fa2573d6000803e3d6000fd5b505050506040513d6020811015610fb857600080fd5b505160408051636968703360e11b81526001600160a01b038c8116600483015260248201869052600060448301819052925193169263d2d0e0669260648084019391929182900301818387803b15801561101157600080fd5b505af1158015611025573d6000803e3d6000fd5b50505050806001600160a01b03166334b3beee8a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561107f57600080fd5b505afa158015611093573d6000803e3d6000fd5b505050506040513d60208110156110a957600080fd5b50519850505b6110bc8c8c8b8b85611809565b9e9d5050505050505050505050505050565b6000546001600160a01b031690565b600080546001600160a01b03166110f26118bd565b6001600160a01b031614905090565b6111096110dd565b611148576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b828114611193576040805162461bcd60e51b8152602060048201526014602482015273092dcecc2d8d2c84092dce0eae840d8cadccee8d60631b604482015290519081900360640190fd5b60005b838110156111fc578282828181106111aa57fe5b905060200201351515600760008787858181106111c357fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101611196565b5050505050565b60076020526000908152604090205460ff1681565b60016020526000908152604090205460ff1681565b6112356110dd565b611274576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b61127d816118c1565b50565b6112886110dd565b6112c7576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b600061133483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611961565b90505b92915050565b80471015611392576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d80600081146113dd576040519150601f19603f3d011682016040523d82523d6000602084013e6113e2565b606091505b5050905080610cea5760405162461bcd60e51b815260040180806020018281038252603a8152602001806122b1603a913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610cea9084906119f8565b805b919050565b6000806001600160a01b03861661150957600034116114cf576040805162461bcd60e51b815260206004820152600b60248201526a139bc8195d1a081cd95b9d60aa1b604482015290519081900360640190fd5b6114ef73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee348686611bb0565b9050611501348263ffffffff6112f216565b9150506115db565b60008511611555576040805162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081d1bdad95b88185b5bdd5b9d60621b604482015290519081900360640190fd5b341561159e576040805162461bcd60e51b815260206004820152601360248201527222ba341039b2b73a103bb4ba34103a37b5b2b760691b604482015290519081900360640190fd5b6115b96001600160a01b03871633308863ffffffff611d0a16565b6115c586868686611bb0565b90506115d7858263ffffffff6112f216565b9150505b949350505050565b600080856001600160a01b0316876001600160a01b031614156116095784915050611753565b6001600160a01b03871661161e575083611628565b611628878561175c565b600061163387611d64565b90506000856001600160a01b031683866040518082805190602001908083835b602083106116725780518252601f199092019160209182019101611653565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146116d4576040519150601f19603f3d011682016040523d82523d6000602084013e6116d9565b606091505b505090508061172f576040805162461bcd60e51b815260206004820152601760248201527f4572726f72205377617070696e6720546f6b656e732031000000000000000000604482015290519081900360640190fd5b600061173a89611d64565b905061174c818463ffffffff6112f216565b9450505050505b95945050505050565b60408051636eb1769f60e11b81523060048201526001600160a01b038381166024830152915184926000929084169163dd62ed3e91604480820192602092909190829003018186803b1580156117b157600080fd5b505afa1580156117c5573d6000803e3d6000fd5b505050506040513d60208110156117db57600080fd5b505111156117e95750611805565b610cea6001600160a01b0382168360001963ffffffff611df316565b5050565b60006001600160a01b03851661182e57611827838388876001611f06565b9050611753565b600061183e848489600080611f06565b90506118b2866001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561187c57600080fd5b505afa158015611890573d6000803e3d6000fd5b505050506040513d60208110156118a657600080fd5b50518288886001611f06565b979650505050505050565b3390565b6001600160a01b0381166119065760405162461bcd60e51b815260040180806020018281038252602681526020018061228b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600081848411156119f05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156119b557818101518382015260200161199d565b50505050905090810190601f1680156119e25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b611a0a826001600160a01b03166120f7565b611a5b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611a995780518252601f199092019160209182019101611a7a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611afb576040519150601f19603f3d011682016040523d82523d6000602084013e611b00565b606091505b509150915081611b57576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561092057808060200190516020811015611b7357600080fd5b50516109205760405162461bcd60e51b815260040180806020018281038252602a81526020018061234d602a913960400191505060405180910390fd5b3360009081526001602052604081205460ff16828015611bce575080155b8015611bdc57506000600254115b15611d0157611bf8611bf086600254612130565b612710612189565b6001600160a01b03851660009081526004602052604090205490925060ff1615611d01576001600160a01b038616611c425773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee95505b6000611c6a6064611c5e6003548661213090919063ffffffff16565b9063ffffffff61218916565b6001600160a01b038087166000908152600560209081526040808320938c1683529290522054909150611ca3908263ffffffff6121cb16565b6001600160a01b038087166000908152600560209081526040808320938c168352928152828220939093556006909252902054611ce6908263ffffffff6121cb16565b6001600160a01b038816600090815260066020526040902055505b50949350505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526109209085906119f8565b60006001600160a01b038216611d7b575047611476565b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b158015611dc157600080fd5b505afa158015611dd5573d6000803e3d6000fd5b505050506040513d6020811015611deb57600080fd5b505192915050565b801580611e79575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611e4b57600080fd5b505afa158015611e5f573d6000803e3d6000fd5b505050506040513d6020811015611e7557600080fd5b5051155b611eb45760405162461bcd60e51b81526004018080602001828103825260368152602001806123776036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610cea9084906119f8565b6000611f12868561175c565b604080516370a0823160e01b815230600482015290516000916001600160a01b038716916370a0823191602480820192602092909190829003018186803b158015611f5c57600080fd5b505afa158015611f70573d6000803e3d6000fd5b505050506040513d6020811015611f8657600080fd5b50516040805163b6b55f2560e01b81526004810189905290519192506001600160a01b0387169163b6b55f259160248082019260009290919082900301818387803b158015611fd457600080fd5b505af1158015611fe8573d6000803e3d6000fd5b5050604080516370a0823160e01b8152306004820152905161203893508492506001600160a01b038916916370a08231916024808301926020929190829003018186803b158015610c8f57600080fd5b915083821015612084576040805162461bcd60e51b81526020600482015260126024820152714572723a204869676820536c69707061676560701b604482015290519081900360640190fd5b82156120ed576120a46001600160a01b038616338463ffffffff61142216565b604080513381526001600160a01b038716602082015280820184905290517f7f31d76771556dce5ab39ba5b60664743da2629a75c474e9445734b7ad34087d9181900360600190a15b5095945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906115db575050151592915050565b60008261213f57506000611337565b8282028284828161214c57fe5b04146113345760405162461bcd60e51b81526004018080602001828103825260218152602001806122eb6021913960400191505060405180910390fd5b600061133483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612225565b600082820183811015611334576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600081836122745760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156119b557818101518382015260200161199d565b50600083858161228057fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77416666696c696174652053706c69742056616c7565206e6f7420616c6c6f7765644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a72315820776af32dbd29c457e06245a1ceae041235dee7c1ab17a6209934d411c703cef564736f6c6343000511003200000000000000000000000077ed360e62ca6f2d1582f00da8b0b8489ca1e2e200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x60806040526004361061011f5760003560e01c8063715018a6116100a05780639735a634116100645780639735a6341461051b5780639779d1a6146105e6578063d408f65714610619578063f2fde38b1461064c578063fbec27bf1461067f5761011f565b8063715018a6146103ec57806375f12b211461040157806382650b10146104165780638da5cb5b146104d55780638f32d59b146105065761011f565b80633ff428c7116100e75780633ff428c7146102b05780634f51e294146102eb578063550bfa56146103325780635de0398e1461035c5780635ecb16cd146103715761011f565b806301e980d4146101765780630dc9de85146101a05780631385d24c1461021b5780631781261f1461023057806318b135e31461027d575b33321415610174576040805162461bcd60e51b815260206004820152601860248201527f446f206e6f742073656e6420455448206469726563746c790000000000000000604482015290519081900360640190fd5b005b34801561018257600080fd5b506101746004803603602081101561019957600080fd5b50356106ba565b3480156101ac57600080fd5b50610174600480360360208110156101c357600080fd5b810190602081018135600160201b8111156101dd57600080fd5b8201836020820111156101ef57600080fd5b803590602001918460208302840111600160201b8311171561021057600080fd5b509092509050610746565b34801561022757600080fd5b50610174610926565b34801561023c57600080fd5b5061026b6004803603604081101561025357600080fd5b506001600160a01b038135811691602001351661098e565b60408051918252519081900360200190f35b34801561028957600080fd5b5061026b600480360360208110156102a057600080fd5b50356001600160a01b03166109ab565b3480156102bc57600080fd5b50610174600480360360408110156102d357600080fd5b506001600160a01b03813516906020013515156109bd565b3480156102f757600080fd5b5061031e6004803603602081101561030e57600080fd5b50356001600160a01b0316610a2f565b604080519115158252519081900360200190f35b34801561033e57600080fd5b506101746004803603602081101561035557600080fd5b5035610a44565b34801561036857600080fd5b5061026b610ae6565b34801561037d57600080fd5b506101746004803603602081101561039457600080fd5b810190602081018135600160201b8111156103ae57600080fd5b8201836020820111156103c057600080fd5b803590602001918460208302840111600160201b831117156103e157600080fd5b509092509050610aec565b3480156103f857600080fd5b50610174610cef565b34801561040d57600080fd5b5061031e610d80565b61026b600480360361014081101561042d57600080fd5b6001600160a01b03823581169260208101359260408201358316926060830135811692608081013515159260a08201359260c083013581169260e0810135909116918101906101208101610100820135600160201b81111561048e57600080fd5b8201836020820111156104a057600080fd5b803590602001918460018302840111600160201b831117156104c157600080fd5b9193509150356001600160a01b0316610d90565b3480156104e157600080fd5b506104ea6110ce565b604080516001600160a01b039092168252519081900360200190f35b34801561051257600080fd5b5061031e6110dd565b34801561052757600080fd5b506101746004803603604081101561053e57600080fd5b810190602081018135600160201b81111561055857600080fd5b82018360208201111561056a57600080fd5b803590602001918460208302840111600160201b8311171561058b57600080fd5b919390929091602081019035600160201b8111156105a857600080fd5b8201836020820111156105ba57600080fd5b803590602001918460208302840111600160201b831117156105db57600080fd5b509092509050611101565b3480156105f257600080fd5b5061031e6004803603602081101561060957600080fd5b50356001600160a01b0316611203565b34801561062557600080fd5b5061031e6004803603602081101561063c57600080fd5b50356001600160a01b0316611218565b34801561065857600080fd5b506101746004803603602081101561066f57600080fd5b50356001600160a01b031661122d565b34801561068b57600080fd5b50610174600480360360408110156106a257600080fd5b506001600160a01b0381351690602001351515611280565b6106c26110dd565b610701576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b60648111156107415760405162461bcd60e51b815260040180806020018281038252602181526020018061230c6021913960400191505060405180910390fd5b600355565b6000805b82811015610920573360009081526005602052604081209085858481811061076e57fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020549150600060056000336001600160a01b03166001600160a01b0316815260200190815260200160002060008686858181106107d657fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b031681526020019081526020016000208190555061085d826006600087878681811061081e57fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b03168152602001908152602001600020546112f290919063ffffffff16565b6006600086868581811061086d57fe5b602090810292909201356001600160a01b03168352508101919091526040016000205573eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee8484838181106108b157fe5b905060200201356001600160a01b03166001600160a01b031614156108df576108da338361133d565b610918565b61091833838686858181106108f057fe5b905060200201356001600160a01b03166001600160a01b03166114229092919063ffffffff16565b60010161074a565b50505050565b61092e6110dd565b61096d576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b6000805460ff60a01b198116600160a01b9182900460ff1615909102179055565b600560209081526000928352604080842090915290825290205481565b60066020526000908152604090205481565b6109c56110dd565b610a04576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b60046020526000908152604090205460ff1681565b610a4c6110dd565b610a8b576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b6064811115610ae1576040805162461bcd60e51b815260206004820152601a60248201527f476f6f6457696c6c2056616c7565206e6f7420616c6c6f776564000000000000604482015290519081900360640190fd5b600255565b60025481565b610af46110dd565b610b33576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b60005b81811015610cea57600073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee848484818110610b6157fe5b905060200201356001600160a01b03166001600160a01b03161415610bf357610bd360066000868686818110610b9357fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002054476112f290919063ffffffff16565b9050610bee610be8610be36110ce565b611474565b8261133d565b610ce1565b610cc760066000868686818110610c0657fe5b905060200201356001600160a01b03166001600160a01b03166001600160a01b0316815260200190815260200160002054858585818110610c4357fe5b604080516370a0823160e01b81523060048201529051602092830294909401356001600160a01b0316936370a08231935060248083019392829003018186803b158015610c8f57600080fd5b505afa158015610ca3573d6000803e3d6000fd5b505050506040513d6020811015610cb957600080fd5b50519063ffffffff6112f216565b9050610ce1610cd46110ce565b828686868181106108f057fe5b50600101610b36565b505050565b610cf76110dd565b610d36576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b600054600160a01b900460ff1681565b60008054600160a01b900460ff1615610de5576040805162461bcd60e51b815260206004820152601260248201527115195b5c1bdc985c9a5b1e4814185d5cd95960721b604482015290519081900360640190fd5b6001600160a01b03851660009081526007602052604090205460ff1680610e1357506001600160a01b038516155b610e5c576040805162461bcd60e51b815260206004820152601560248201527415185c99d95d081b9bdd08105d5d1a1bdc9a5e9959605a1b604482015290519081900360640190fd5b6000610e6b8d8d85600161147b565b90506000610eb28e89848a8a8a8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506115e392505050565b905089156110af5760007324a42fd28c976a61df5d00d0599c34c4f90748c86001600160a01b031663ed6ff7606040518163ffffffff1660e01b815260040160206040518083038186803b158015610f0957600080fd5b505afa158015610f1d573d6000803e3d6000fd5b505050506040513d6020811015610f3357600080fd5b50519050610f41898261175c565b7324a42fd28c976a61df5d00d0599c34c4f90748c86001600160a01b0316630261bf8b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f8e57600080fd5b505afa158015610fa2573d6000803e3d6000fd5b505050506040513d6020811015610fb857600080fd5b505160408051636968703360e11b81526001600160a01b038c8116600483015260248201869052600060448301819052925193169263d2d0e0669260648084019391929182900301818387803b15801561101157600080fd5b505af1158015611025573d6000803e3d6000fd5b50505050806001600160a01b03166334b3beee8a6040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561107f57600080fd5b505afa158015611093573d6000803e3d6000fd5b505050506040513d60208110156110a957600080fd5b50519850505b6110bc8c8c8b8b85611809565b9e9d5050505050505050505050505050565b6000546001600160a01b031690565b600080546001600160a01b03166110f26118bd565b6001600160a01b031614905090565b6111096110dd565b611148576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b828114611193576040805162461bcd60e51b8152602060048201526014602482015273092dcecc2d8d2c84092dce0eae840d8cadccee8d60631b604482015290519081900360640190fd5b60005b838110156111fc578282828181106111aa57fe5b905060200201351515600760008787858181106111c357fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101611196565b5050505050565b60076020526000908152604090205460ff1681565b60016020526000908152604090205460ff1681565b6112356110dd565b611274576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b61127d816118c1565b50565b6112886110dd565b6112c7576040805162461bcd60e51b8152602060048201819052602482015260008051602061232d833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b600061133483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611961565b90505b92915050565b80471015611392576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d80600081146113dd576040519150601f19603f3d011682016040523d82523d6000602084013e6113e2565b606091505b5050905080610cea5760405162461bcd60e51b815260040180806020018281038252603a8152602001806122b1603a913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610cea9084906119f8565b805b919050565b6000806001600160a01b03861661150957600034116114cf576040805162461bcd60e51b815260206004820152600b60248201526a139bc8195d1a081cd95b9d60aa1b604482015290519081900360640190fd5b6114ef73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee348686611bb0565b9050611501348263ffffffff6112f216565b9150506115db565b60008511611555576040805162461bcd60e51b8152602060048201526014602482015273125b9d985b1a59081d1bdad95b88185b5bdd5b9d60621b604482015290519081900360640190fd5b341561159e576040805162461bcd60e51b815260206004820152601360248201527222ba341039b2b73a103bb4ba34103a37b5b2b760691b604482015290519081900360640190fd5b6115b96001600160a01b03871633308863ffffffff611d0a16565b6115c586868686611bb0565b90506115d7858263ffffffff6112f216565b9150505b949350505050565b600080856001600160a01b0316876001600160a01b031614156116095784915050611753565b6001600160a01b03871661161e575083611628565b611628878561175c565b600061163387611d64565b90506000856001600160a01b031683866040518082805190602001908083835b602083106116725780518252601f199092019160209182019101611653565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146116d4576040519150601f19603f3d011682016040523d82523d6000602084013e6116d9565b606091505b505090508061172f576040805162461bcd60e51b815260206004820152601760248201527f4572726f72205377617070696e6720546f6b656e732031000000000000000000604482015290519081900360640190fd5b600061173a89611d64565b905061174c818463ffffffff6112f216565b9450505050505b95945050505050565b60408051636eb1769f60e11b81523060048201526001600160a01b038381166024830152915184926000929084169163dd62ed3e91604480820192602092909190829003018186803b1580156117b157600080fd5b505afa1580156117c5573d6000803e3d6000fd5b505050506040513d60208110156117db57600080fd5b505111156117e95750611805565b610cea6001600160a01b0382168360001963ffffffff611df316565b5050565b60006001600160a01b03851661182e57611827838388876001611f06565b9050611753565b600061183e848489600080611f06565b90506118b2866001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b15801561187c57600080fd5b505afa158015611890573d6000803e3d6000fd5b505050506040513d60208110156118a657600080fd5b50518288886001611f06565b979650505050505050565b3390565b6001600160a01b0381166119065760405162461bcd60e51b815260040180806020018281038252602681526020018061228b6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600081848411156119f05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156119b557818101518382015260200161199d565b50505050905090810190601f1680156119e25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b611a0a826001600160a01b03166120f7565b611a5b576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b60208310611a995780518252601f199092019160209182019101611a7a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114611afb576040519150601f19603f3d011682016040523d82523d6000602084013e611b00565b606091505b509150915081611b57576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561092057808060200190516020811015611b7357600080fd5b50516109205760405162461bcd60e51b815260040180806020018281038252602a81526020018061234d602a913960400191505060405180910390fd5b3360009081526001602052604081205460ff16828015611bce575080155b8015611bdc57506000600254115b15611d0157611bf8611bf086600254612130565b612710612189565b6001600160a01b03851660009081526004602052604090205490925060ff1615611d01576001600160a01b038616611c425773eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee95505b6000611c6a6064611c5e6003548661213090919063ffffffff16565b9063ffffffff61218916565b6001600160a01b038087166000908152600560209081526040808320938c1683529290522054909150611ca3908263ffffffff6121cb16565b6001600160a01b038087166000908152600560209081526040808320938c168352928152828220939093556006909252902054611ce6908263ffffffff6121cb16565b6001600160a01b038816600090815260066020526040902055505b50949350505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526109209085906119f8565b60006001600160a01b038216611d7b575047611476565b604080516370a0823160e01b815230600482015290516001600160a01b038416916370a08231916024808301926020929190829003018186803b158015611dc157600080fd5b505afa158015611dd5573d6000803e3d6000fd5b505050506040513d6020811015611deb57600080fd5b505192915050565b801580611e79575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015611e4b57600080fd5b505afa158015611e5f573d6000803e3d6000fd5b505050506040513d6020811015611e7557600080fd5b5051155b611eb45760405162461bcd60e51b81526004018080602001828103825260368152602001806123776036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b179052610cea9084906119f8565b6000611f12868561175c565b604080516370a0823160e01b815230600482015290516000916001600160a01b038716916370a0823191602480820192602092909190829003018186803b158015611f5c57600080fd5b505afa158015611f70573d6000803e3d6000fd5b505050506040513d6020811015611f8657600080fd5b50516040805163b6b55f2560e01b81526004810189905290519192506001600160a01b0387169163b6b55f259160248082019260009290919082900301818387803b158015611fd457600080fd5b505af1158015611fe8573d6000803e3d6000fd5b5050604080516370a0823160e01b8152306004820152905161203893508492506001600160a01b038916916370a08231916024808301926020929190829003018186803b158015610c8f57600080fd5b915083821015612084576040805162461bcd60e51b81526020600482015260126024820152714572723a204869676820536c69707061676560701b604482015290519081900360640190fd5b82156120ed576120a46001600160a01b038616338463ffffffff61142216565b604080513381526001600160a01b038716602082015280820184905290517f7f31d76771556dce5ab39ba5b60664743da2629a75c474e9445734b7ad34087d9181900360600190a15b5095945050505050565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906115db575050151592915050565b60008261213f57506000611337565b8282028284828161214c57fe5b04146113345760405162461bcd60e51b81526004018080602001828103825260218152602001806122eb6021913960400191505060405180910390fd5b600061133483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250612225565b600082820183811015611334576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600081836122745760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156119b557818101518382015260200161199d565b50600083858161228057fe5b049594505050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77416666696c696174652053706c69742056616c7565206e6f7420616c6c6f7765644f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a72315820776af32dbd29c457e06245a1ceae041235dee7c1ab17a6209934d411c703cef564736f6c63430005110032
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000077ed360e62ca6f2d1582f00da8b0b8489ca1e2e200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _curveZapIn (address): 0x77eD360E62cA6f2D1582F00da8B0b8489cA1e2E2
Arg [1] : _goodwill (uint256): 0
Arg [2] : _affiliateSplit (uint256): 0
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000077ed360e62ca6f2d1582f00da8b0b8489ca1e2e2
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
29250:6055:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26023:10;26037:9;26023:23;;26015:60;;;;;-1:-1:-1;;;26015:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;29250:6055;24112:278;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24112:278:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;24112:278:0;;:::i;25354:614::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;25354:614:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;25354:614:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;25354:614:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;25354:614:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;25354:614:0;;-1:-1:-1;25354:614:0;-1:-1:-1;25354:614:0;:::i;23611:86::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23611:86:0;;;:::i;22406:71::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22406:71:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;22406:71:0;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;22508:56;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22508:56:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22508:56:0;-1:-1:-1;;;;;22508:56:0;;:::i;24398:150::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24398:150:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;24398:150:0;;;;;;;;;;:::i;22320:42::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22320:42:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22320:42:0;-1:-1:-1;;;;;22320:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;23866:238;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23866:238:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23866:238:0;;:::i;22195:23::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22195:23:0;;;:::i;24624:654::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;24624:654:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;24624:654:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;24624:654:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;24624:654:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;24624:654:0;;-1:-1:-1;24624:654:0;-1:-1:-1;24624:654:0;:::i;4813:140::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4813:140:0;;;:::i;22064:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22064:27:0;;;:::i;30656:1655::-;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;30656:1655:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;30656:1655:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;30656:1655:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;-1:-1;;;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;30656:1655:0;;-1:-1:-1;30656:1655:0;-1:-1:-1;30656:1655:0;-1:-1:-1;;;;;30656:1655:0;;:::i;4002:79::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4002:79:0;;;:::i;:::-;;;;-1:-1:-1;;;;;4002:79:0;;;;;;;;;;;;;;4368:94;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4368:94:0;;;:::i;34960:342::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;34960:342:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;34960:342:0;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;34960:342:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;34960:342:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;34960:342:0;;;;;;;;;;;-1:-1:-1;;;5:28;;2:2;;;46:1;43;36:12;2:2;34960:342:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;34960:342:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;-1:-1;;;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;-1:-1;34960:342:0;;-1:-1:-1;34960:342:0;-1:-1:-1;34960:342:0;:::i;29355:47::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;29355:47:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29355:47:0;-1:-1:-1;;;;;29355:47:0;;:::i;22142:44::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22142:44:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22142:44:0;-1:-1:-1;;;;;22142:44:0;;:::i;5108:109::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5108:109:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;5108:109:0;-1:-1:-1;;;;;5108:109:0;;:::i;23705:153::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;23705:153:0;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;23705:153:0;;;;;;;;;;:::i;24112:278::-;4214:9;:7;:9::i;:::-;4206:54;;;;;-1:-1:-1;;;4206:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4206:54:0;;;;;;;;;;;;;;;24271:3;24248:19;:26;;24226:109;;;;-1:-1:-1;;;24226:109:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24346:14;:36;24112:278::o;25354:614::-;25429:16;;25456:505;25476:17;;;25456:505;;;25543:10;25526:28;;;;:16;:28;;;;;;25555:6;;25562:1;25555:9;;;;;;;;;;;;;-1:-1:-1;;;;;25555:9:0;-1:-1:-1;;;;;25526:39:0;-1:-1:-1;;;;;25526:39:0;;;;;;;;;;;;;25515:50;;25622:1;25580:16;:28;25597:10;-1:-1:-1;;;;;25580:28:0;-1:-1:-1;;;;;25580:28:0;;;;;;;;;;;;:39;25609:6;;25616:1;25609:9;;;;;;;;;;;;;-1:-1:-1;;;;;25609:9:0;-1:-1:-1;;;;;25580:39:0;-1:-1:-1;;;;;25580:39:0;;;;;;;;;;;;:43;;;;25673:64;25728:8;25673:21;:32;25695:6;;25702:1;25695:9;;;;;;;;;;;;;-1:-1:-1;;;;;25695:9:0;-1:-1:-1;;;;;25673:32:0;-1:-1:-1;;;;;25673:32:0;;;;;;;;;;;;;:54;;:64;;;;:::i;:::-;25638:21;:32;25660:6;;25667:1;25660:9;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25660:9:0;25638:32;;-1:-1:-1;25638:32:0;;;;;;;;-1:-1:-1;25638:32:0;:99;22621:42;25758:6;;25765:1;25758:9;;;;;;;;;;;;;-1:-1:-1;;;;;25758:9:0;-1:-1:-1;;;;;25758:23:0;;25754:196;;;25802:39;25820:10;25832:8;25802:17;:39::i;:::-;25754:196;;;25882:52;25913:10;25925:8;25889:6;;25896:1;25889:9;;;;;;;;;;;;;-1:-1:-1;;;;;25889:9:0;-1:-1:-1;;;;;25882:30:0;;;:52;;;;;:::i;:::-;25495:3;;25456:505;;;;25354:614;;;:::o;23611:86::-;4214:9;:7;:9::i;:::-;4206:54;;;;;-1:-1:-1;;;4206:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4206:54:0;;;;;;;;;;;;;;;23682:7;;;-1:-1:-1;;;;23671:18:0;;-1:-1:-1;;;23682:7:0;;;;;;23681:8;23671:18;;;;;;23611:86::o;22406:71::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;22508:56::-;;;;;;;;;;;;;:::o;24398:150::-;4214:9;:7;:9::i;:::-;4206:54;;;;;-1:-1:-1;;;4206:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4206:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;24508:22:0;;;;;;;;:10;:22;;;;;:32;;-1:-1:-1;;24508:32:0;;;;;;;;;;24398:150::o;22320:42::-;;;;;;;;;;;;;;;:::o;23866:238::-;4214:9;:7;:9::i;:::-;4206:54;;;;;-1:-1:-1;;;4206:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4206:54:0;;;;;;;;;;;;;;;24004:3;23987:13;:20;;23943:118;;;;;-1:-1:-1;;;23943:118:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24072:8;:24;23866:238::o;22195:23::-;;;;:::o;24624:654::-;4214:9;:7;:9::i;:::-;4206:54;;;;;-1:-1:-1;;;4206:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4206:54:0;;;;;;;;;;;;;;;24710:9;24705:566;24725:17;;;24705:566;;;24764:11;22621:42;24796:6;;24803:1;24796:9;;;;;;;;;;;;;-1:-1:-1;;;;;24796:9:0;-1:-1:-1;;;;;24796:23:0;;24792:468;;;24846:99;24894:21;:32;24916:6;;24923:1;24916:9;;;;;;;;;;;;;-1:-1:-1;;;;;24916:9:0;-1:-1:-1;;;;;24894:32:0;-1:-1:-1;;;;;24894:32:0;;;;;;;;;;;;;24846:21;:25;;:99;;;;:::i;:::-;24840:105;;24964:50;24982:26;25000:7;:5;:7::i;:::-;24982:17;:26::i;:::-;25010:3;24964:17;:50::i;:::-;24792:468;;;25061:120;25130:21;:32;25152:6;;25159:1;25152:9;;;;;;;;;;;;;-1:-1:-1;;;;;25152:9:0;-1:-1:-1;;;;;25130:32:0;-1:-1:-1;;;;;25130:32:0;;;;;;;;;;;;;25068:6;;25075:1;25068:9;;;;;;;25061:42;;;-1:-1:-1;;;25061:42:0;;25097:4;25061:42;;;;;;25068:9;;;;;;;;;-1:-1:-1;;;;;25068:9:0;;25061:27;;-1:-1:-1;25061:42:0;;;;;25068:9;25061:42;;;;;25068:9;25061:42;;;5:2:-1;;;;30:1;27;20:12;5:2;25061:42:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;25061:42:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;25061:42:0;;:120;:46;:120;:::i;:::-;25055:126;;25200:44;25231:7;:5;:7::i;:::-;25240:3;25207:6;;25214:1;25207:9;;;;;;25200:44;-1:-1:-1;24744:3:0;;24705:566;;;;24624:654;;:::o;4813:140::-;4214:9;:7;:9::i;:::-;4206:54;;;;;-1:-1:-1;;;4206:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4206:54:0;;;;;;;;;;;;;;;4912:1;4896:6;;4875:40;;-1:-1:-1;;;;;4896:6:0;;;;4875:40;;4912:1;;4875:40;4943:1;4926:19;;-1:-1:-1;;;;;;4926:19:0;;;4813:140::o;22064:27::-;;;-1:-1:-1;;;22064:27:0;;;;;:::o;30656:1655::-;31019:22;22899:7;;-1:-1:-1;;;22899:7:0;;;;22895:102;;;22923:28;;;-1:-1:-1;;;22923:28:0;;;;;;;;;;;;-1:-1:-1;;;22923:28:0;;;;;;;;;;;;;;22895:102;-1:-1:-1;;;;;31076:27:0;;;;;;:15;:27;;;;;;;;;:55;;-1:-1:-1;;;;;;31107:24:0;;;31076:55;31054:126;;;;;-1:-1:-1;;;31054:126:0;;;;;;;;;;;;-1:-1:-1;;;31054:126:0;;;;;;;;;;;;;;;31225:16;31244:49;31256:9;31267:8;31277:9;31288:4;31244:11;:49::i;:::-;31225:68;;31341:23;31380:172;31409:9;31437:17;31473:8;31500:10;31529:8;;31380:172;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;31380:10:0;;-1:-1:-1;;;31380:172:0:i;:::-;31341:211;;31606:16;31602:493;;;31639:27;29557:42;-1:-1:-1;;;;;31686:45:0;;:47;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31686:47:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;31686:47:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31686:47:0;;-1:-1:-1;31748:53:0;31762:17;31686:47;31748:13;:53::i;:::-;29557:42;-1:-1:-1;;;;;31835:41:0;;:43;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31835:43:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;31835:43:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31835:43:0;31818:126;;;-1:-1:-1;;;31818:126:0;;-1:-1:-1;;;;;31818:126:0;;;;;;;;;;;;;31942:1;31818:126;;;;;;;;:87;;;;;:126;;;;;31942:1;;31818:126;;;;;;31942:1;31818:87;:126;;;5:2:-1;;;;30:1;27;20:12;5:2;31818:126:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;31818:126:0;;;;32002:19;-1:-1:-1;;;;;31981:83:0;;32065:17;31981:102;;;;;;;;;;;;;-1:-1:-1;;;;;31981:102:0;-1:-1:-1;;;;;31981:102:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;31981:102:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;31981:102:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31981:102:0;;-1:-1:-1;;31602:493:0;32127:176;32152:7;32178:10;32207:11;32237:17;32273:15;32127:6;:176::i;:::-;32107:196;30656:1655;-1:-1:-1;;;;;;;;;;;;;;30656:1655:0:o;4002:79::-;4040:7;4067:6;-1:-1:-1;;;;;4067:6:0;4002:79;:::o;4368:94::-;4408:4;4448:6;;-1:-1:-1;;;;;4448:6:0;4432:12;:10;:12::i;:::-;-1:-1:-1;;;;;4432:22:0;;4425:29;;4368:94;:::o;34960:342::-;4214:9;:7;:9::i;:::-;4206:54;;;;;-1:-1:-1;;;4206:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4206:54:0;;;;;;;;;;;;;;;35107:35;;;35099:68;;;;;-1:-1:-1;;;35099:68:0;;;;;;;;;;;;-1:-1:-1;;;35099:68:0;;;;;;;;;;;;;;;35185:9;35180:115;35200:18;;;35180:115;;;35270:10;;35281:1;35270:13;;;;;;;;;;;;;;;35240:15;:27;35256:7;;35264:1;35256:10;;;;;;;;;;;;;;;;-1:-1:-1;;;;;35256:10:0;35240:27;;-1:-1:-1;35240:27:0;;;;;;;;-1:-1:-1;35240:27:0;:43;;-1:-1:-1;;35240:43:0;;;;;;;;;;-1:-1:-1;35220:3:0;35180:115;;;;34960:342;;;;:::o;29355:47::-;;;;;;;;;;;;;;;:::o;22142:44::-;;;;;;;;;;;;;;;:::o;5108:109::-;4214:9;:7;:9::i;:::-;4206:54;;;;;-1:-1:-1;;;4206:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4206:54:0;;;;;;;;;;;;;;;5181:28;5200:8;5181:18;:28::i;:::-;5108:109;:::o;23705:153::-;4214:9;:7;:9::i;:::-;4206:54;;;;;-1:-1:-1;;;4206:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4206:54:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;23817:24:0;;;;;;;;:12;:24;;;;;:33;;-1:-1:-1;;23817:33:0;;;;;;;;;;23705:153::o;9994:136::-;10052:7;10079:43;10083:1;10086;10079:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;10072:50;;9994:136;;;;;:::o;16997:445::-;17126:6;17101:21;:31;;17079:110;;;;;-1:-1:-1;;;17079:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;17276:32;;17258:12;;-1:-1:-1;;;;;17276:14:0;;;17297:6;;17258:12;17276:32;17258:12;17276:32;17297:6;17276:14;:32;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;17257:51:0;;;17341:7;17319:115;;;;-1:-1:-1;;;17319:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18085:247;18255:58;;;-1:-1:-1;;;;;18255:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;18255:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;18202:122:0;;18235:5;;18202:18;:122::i;15861:159::-;16003:7;15861:159;;;;:::o;26202:1054::-;26355:13;;-1:-1:-1;;;;;26426:19:0;;26422:372;;26482:1;26470:9;:13;26462:37;;;;;-1:-1:-1;;;26462:37:0;;;;;;;;;;;;-1:-1:-1;;;26462:37:0;;;;;;;;;;;;;;;26573:150;22621:42;26638:9;26666;26694:14;26573:17;:150::i;:::-;26550:173;-1:-1:-1;26747:35:0;:9;26550:173;26747:35;:13;:35;:::i;:::-;26740:42;;;;;26422:372;26821:1;26812:6;:10;26804:43;;;;;-1:-1:-1;;;26804:43:0;;;;;;;;;;;;-1:-1:-1;;;26804:43:0;;;;;;;;;;;;;;;26866:9;:14;26858:46;;;;;-1:-1:-1;;;26858:46:0;;;;;;;;;;;;-1:-1:-1;;;26858:46:0;;;;;;;;;;;;;;;26943:65;-1:-1:-1;;;;;26943:30:0;;26974:10;26994:4;27001:6;26943:65;:30;:65;:::i;:::-;27074:122;27106:5;27126:6;27147:9;27171:14;27074:17;:122::i;:::-;27051:145;-1:-1:-1;27216:32:0;:6;27051:145;27216:32;:10;:32;:::i;:::-;27209:39;;;26202:1054;;;;;;;:::o;34156:796::-;34355:17;34385:19;34442:7;-1:-1:-1;;;;;34421:28:0;:17;-1:-1:-1;;;;;34421:28:0;;34417:75;;;34473:7;34466:14;;;;;34417:75;-1:-1:-1;;;;;34508:31:0;;34504:163;;-1:-1:-1;34570:7:0;34504:163;;;34610:45;34624:17;34643:11;34610:13;:45::i;:::-;34679:14;34696:20;34708:7;34696:11;:20::i;:::-;34679:37;;34728:12;34746:11;-1:-1:-1;;;;;34746:16:0;34769:11;34782:12;34746:49;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;34746:49:0;;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;34727:68:0;;;34814:7;34806:43;;;;;-1:-1:-1;;;34806:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;34860:16;34879:20;34891:7;34879:11;:20::i;:::-;34860:39;-1:-1:-1;34924:20:0;34860:39;34937:6;34924:20;:12;:20;:::i;:::-;34912:32;;34156:796;;;;;;;;;;;;:::o;23310:261::-;23429:40;;;-1:-1:-1;;;23429:40:0;;23454:4;23429:40;;;;-1:-1:-1;;;;;23429:40:0;;;;;;;;;23408:5;;23385:13;;23429:16;;;;;;:40;;;;;;;;;;;;;;;:16;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;23429:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23429:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23429:40:0;:44;23425:139;;;23475:7;;;23425:139;23512:40;-1:-1:-1;;;;;23512:18:0;;23531:7;-1:-1:-1;;23512:40:0;:18;:40;:::i;23310:261::-;;;:::o;32319:1057::-;32515:22;-1:-1:-1;;;;;32583:24:0;;32579:790;;32641:177;32673:17;32709:15;32743:7;32769:11;32799:4;32641:13;:177::i;:::-;32624:194;;32579:790;;;32851:28;32899:192;32935:17;32975:15;33013:7;33043:1;33067:5;32899:13;:192::i;:::-;32851:240;;33162:195;33202:10;-1:-1:-1;;;;;33194:25:0;;:27;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;33194:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33194:27:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33194:27:0;33240:20;33279:10;33308:11;33338:4;33162:13;:195::i;:::-;33145:212;32319:1057;-1:-1:-1;;;;;;;32319:1057:0:o;2695:98::-;2775:10;2695:98;:::o;5323:266::-;-1:-1:-1;;;;;5411:22:0;;5389:110;;;;-1:-1:-1;;;5389:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5536:6;;;5515:38;;-1:-1:-1;;;;;5515:38:0;;;;5536:6;;;5515:38;;;5564:6;:17;;-1:-1:-1;;;;;;5564:17:0;-1:-1:-1;;;;;5564:17:0;;;;;;;;;;5323:266::o;10467:226::-;10587:7;10623:12;10615:6;;;;10607:29;;;;-1:-1:-1;;;10607:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;10607:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;10659:5:0;;;10467:226::o;20709:1176::-;21313:27;21321:5;-1:-1:-1;;;;;21313:25:0;;:27::i;:::-;21305:71;;;;;-1:-1:-1;;;21305:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21450:12;21464:23;21499:5;-1:-1:-1;;;;;21491:19:0;21511:4;21491:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;21491:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;21449:67:0;;;;21535:7;21527:52;;;;;-1:-1:-1;;;21527:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21596:17;;:21;21592:286;;21769:10;21758:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21758:30:0;21732:134;;;;-1:-1:-1;;;21732:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27264:1058;27496:10;27423:28;27483:24;;;:12;:24;;;;;;;;27522:14;:30;;;;;27541:11;27540:12;27522:30;:46;;;;;27567:1;27556:8;;:12;27522:46;27518:797;;;27608:100;27639:30;27652:6;27660:8;;27639:12;:30::i;:::-;27688:5;27608:12;:100::i;:::-;-1:-1:-1;;;;;27729:21:0;;;;;;:10;:21;;;;;;27585:123;;-1:-1:-1;27729:21:0;;27725:579;;;-1:-1:-1;;;;;27775:19:0;;27771:86;;22621:42;27819:18;;27771:86;27877:24;27925:49;27970:3;27925:40;27950:14;;27925:20;:24;;:40;;;;:::i;:::-;:44;:49;:44;:49;:::i;:::-;-1:-1:-1;;;;;28030:67:0;;;;;;;:16;:67;;;;;;;;:74;;;;;;;;;;27877:97;;-1:-1:-1;28030:118:0;;27877:97;28030:118;:100;:118;:::i;:::-;-1:-1:-1;;;;;27993:27:0;;;;;;;:16;:27;;;;;;;;:34;;;;;;;;;;;:155;;;;28198:21;:28;;;;;;:90;;28253:16;28198:90;:32;:90;:::i;:::-;-1:-1:-1;;;;;28167:28:0;;;;;;:21;:28;;;;;:121;-1:-1:-1;27725:579:0;27264:1058;;;;;;;:::o;18340:284::-;18537:68;;;-1:-1:-1;;;;;18537:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;18537:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;18484:132:0;;18517:5;;18484:18;:132::i;23012:290::-;23098:15;-1:-1:-1;;;;;23135:19:0;;23131:164;;-1:-1:-1;23181:21:0;23131:164;;;23245:38;;;-1:-1:-1;;;23245:38:0;;23277:4;23245:38;;;;;;-1:-1:-1;;;;;23245:23:0;;;;;:38;;;;;;;;;;;;;;:23;:38;;;5:2:-1;;;;30:1;27;20:12;5:2;23245:38:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23245:38:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;23245:38:0;;23012:290;-1:-1:-1;;23012:290:0:o;18632:706::-;19050:10;;;19049:62;;-1:-1:-1;19066:39:0;;;-1:-1:-1;;;19066:39:0;;19090:4;19066:39;;;;-1:-1:-1;;;;;19066:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;19066:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19066:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19066:39:0;:44;19049:62;19027:166;;;;-1:-1:-1;;;19027:166:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19257:62;;;-1:-1:-1;;;;;19257:62:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;19257:62:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;19204:126:0;;19237:5;;19204:18;:126::i;33384:764::-;33583:22;33618:44;33632:20;33654:7;33618:13;:44::i;:::-;33698:40;;;-1:-1:-1;;;33698:40:0;;33732:4;33698:40;;;;;;33675:20;;-1:-1:-1;;;;;33698:25:0;;;;;:40;;;;;;;;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;5:2;33698:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;33698:40:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;33698:40:0;33749:32;;;-1:-1:-1;;;33749:32:0;;;;;;;;;;33698:40;;-1:-1:-1;;;;;;33749:24:0;;;;;:32;;;;;-1:-1:-1;;33749:32:0;;;;;;;;-1:-1:-1;33749:24:0;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;33749:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;33809:40:0;;;-1:-1:-1;;;33809:40:0;;33843:4;33809:40;;;;;;:82;;-1:-1:-1;33868:12:0;;-1:-1:-1;;;;;;33809:25:0;;;;;:40;;;;;;;;;;;;;;:25;:40;;;5:2:-1;;;;30:1;27;20:12;33809:82:0;33792:99;;33928:12;33910:14;:30;;33902:61;;;;;-1:-1:-1;;;33902:61:0;;;;;;;;;;;;-1:-1:-1;;;33902:61:0;;;;;;;;;;;;;;;33980:14;33976:165;;;34011:56;-1:-1:-1;;;;;34011:28:0;;34040:10;34052:14;34011:56;:28;:56;:::i;:::-;34087:42;;;34093:10;34087:42;;-1:-1:-1;;;;;34087:42:0;;;;;;;;;;;;;;;;;;;;;;;33976:165;33384:764;;;;;;;;:::o;14988:656::-;15048:4;15544:20;;15374:66;15593:23;;;;;;:42;;-1:-1:-1;;15620:15:0;;;15585:51;-1:-1:-1;;14988:656:0:o;10944:471::-;11002:7;11247:6;11243:47;;-1:-1:-1;11277:1:0;11270:8;;11243:47;11314:5;;;11318:1;11314;:5;:1;11338:5;;;;;:10;11330:56;;;;-1:-1:-1;;;11330:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11883:132;11941:7;11968:39;11972:1;11975;11968:39;;;;;;;;;;;;;;;;;:3;:39::i;9538:181::-;9596:7;9628:5;;;9652:6;;;;9644:46;;;;;-1:-1:-1;;;9644:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;12545:379;12665:7;12767:12;12760:5;12752:28;;;;-1:-1:-1;;;12752:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;12752:28:0;;12791:9;12807:1;12803;:5;;;;;;;12545:379;-1:-1:-1;;;;;12545:379:0:o
Swarm Source
bzzr://776af32dbd29c457e06245a1ceae041235dee7c1ab17a6209934d411c703cef5
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.