Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 12 from a total of 12 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Add Period | 11641793 | 1362 days ago | IN | 0 ETH | 0.01161129 | ||||
New Pool | 11615166 | 1366 days ago | IN | 0 ETH | 0.32809572 | ||||
New Pool | 11614728 | 1366 days ago | IN | 0 ETH | 0.34757283 | ||||
New Pool | 11528352 | 1380 days ago | IN | 0 ETH | 0.17607189 | ||||
Add Revenue | 11528288 | 1380 days ago | IN | 0 ETH | 0.01282209 | ||||
Add Revenue | 11528280 | 1380 days ago | IN | 0 ETH | 0.01003535 | ||||
Add Revenue | 11528213 | 1380 days ago | IN | 0 ETH | 0.00307315 | ||||
Add Revenue | 11515987 | 1381 days ago | IN | 0 ETH | 0.00974362 | ||||
Add Revenue | 11515977 | 1381 days ago | IN | 0 ETH | 0.01028811 | ||||
New Pool | 11497730 | 1384 days ago | IN | 0 ETH | 0.22637815 | ||||
New Pool | 11497700 | 1384 days ago | IN | 0 ETH | 0.21354966 | ||||
0x60806040 | 11463164 | 1390 days ago | IN | 0 ETH | 0.13132712 |
Latest 5 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
11615166 | 1366 days ago | Contract Creation | 0 ETH | |||
11614728 | 1366 days ago | Contract Creation | 0 ETH | |||
11528352 | 1380 days ago | Contract Creation | 0 ETH | |||
11497730 | 1384 days ago | Contract Creation | 0 ETH | |||
11497700 | 1384 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
PoolController
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2020-12-16 */ // SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } 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(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: node_modules\@openzeppelin\contracts\token\ERC20\IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: node_modules\@openzeppelin\contracts\math\SafeMath.sol pragma solidity ^0.6.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. */ 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. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { 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. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: node_modules\@openzeppelin\contracts\utils\Address.sol pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: node_modules\@openzeppelin\contracts\token\ERC20\ERC20.sol pragma solidity ^0.6.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; using Address for address; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name, string memory symbol) public { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal { _decimals = decimals_; } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be to transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { } } // File: @openzeppelin\contracts\token\ERC20\ERC20Burnable.sol pragma solidity ^0.6.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), decreasedAllowance); _burn(account, amount); } } contract DuckToken is ERC20Burnable, Ownable { uint public constant PRESALE_SUPPLY = 20000000e18; uint public constant TEAM_SUPPLY = 10000000e18; uint public constant MAX_FARMING_POOL = 70000000e18; uint public currentFarmingPool; constructor(address presaleWallet, address teamWallet) public ERC20("DuckToken", "DLC") { _mint(presaleWallet, PRESALE_SUPPLY); _mint(teamWallet, TEAM_SUPPLY); } function mint(address to, uint256 amount) public onlyOwner { require(currentFarmingPool.add(amount) <= MAX_FARMING_POOL, "exceed farming amount"); currentFarmingPool += amount; _mint(to, amount); } } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } abstract contract IUniswapPool { address public token0; address public token1; } abstract contract IUniswapRouter { function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) virtual external returns (uint amountA, uint amountB); } contract Pool { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We do some fancy math here. Basically, any point in time, the amount of SUSHIs // entitled to a user but is pending to be distributed is: // // pending reward = (user.amount * pool.accSushiPerShare) - user.rewardDebt // // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: // 1. The pool's `accSushiPerShare` (and `lastRewardBlock`) gets updated. // 2. User receives the pending reward sent to his/her address. // 3. User's `amount` gets updated. // 4. User's `rewardDebt` gets updated. } // Info of each period. struct Period { uint startingBlock; uint blocks; uint farmingSupply; uint tokensPerBlock; } // Info of each period. Period[] public periods; // Controller address PoolController public controller; // Last block number that DUCKs distribution occurs. uint public lastRewardBlock; // The DUCK TOKEN ERC20Burnable public duck; // Address of LP token contract. IERC20 public lpToken; // Accumulated DUCKs per share, times 1e18. See below. uint public accDuckPerShare; // Info of each user that stakes LP tokens. mapping(address => UserInfo) public userInfo; IUniswapRouter public uniswapRouter = IUniswapRouter(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); //Revenue part struct Revenue { address tokenAddress; uint totalSupply; uint amount; } // Array of created revenues Revenue[] public revenues; // mapping of claimed user revenues mapping(address => mapping(uint => bool)) revenuesClaimed; event Deposit(address indexed from, uint amount); event Withdraw(address indexed to, uint amount); event NewPeriod(uint indexed startingBlock, uint indexed blocks, uint farmingSupply); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); modifier onlyController() { require(msg.sender == address(controller), "onlyController"); _; } constructor(address _lpToken, uint _startingBlock, uint[] memory _blocks, uint[] memory _farmingSupplies) public { require(_blocks.length > 0, "emply data"); require(_blocks.length == _farmingSupplies.length, "invalid data"); controller = PoolController(msg.sender); duck = ERC20Burnable(controller.duck()); lpToken = IERC20(_lpToken); addPeriod(_startingBlock, _blocks[0], _farmingSupplies[0]); uint _bufStartingBlock = _startingBlock.add(_blocks[0]); for(uint i = 1; i < _blocks.length; i++) { addPeriod(_bufStartingBlock, _blocks[i], _farmingSupplies[i]); _bufStartingBlock = _bufStartingBlock.add(_blocks[i]); } IERC20(_lpToken).approve(address(uniswapRouter), uint256(-1)); lastRewardBlock = _startingBlock; } // Update a pool by adding NEW period. Can only be called by the controller. function addPeriod(uint startingBlock, uint blocks, uint farmingSupply) public onlyController { require(startingBlock >= block.number, "startingBlock should be greater than now"); if(periods.length > 0) { require(startingBlock > periods[periods.length-1].startingBlock.add(periods[periods.length-1].blocks), "two periods in the same time"); } uint tokensPerBlock = farmingSupply.div(blocks); Period memory newPeriod = Period({ startingBlock: startingBlock, blocks: blocks.sub(1), farmingSupply: farmingSupply, tokensPerBlock: tokensPerBlock }); periods.push(newPeriod); emit NewPeriod(startingBlock, blocks, farmingSupply); } // Update reward variables of the given pool to be up-to-date. function updatePool() public { if (block.number <= lastRewardBlock) { return; } claimRevenue(msg.sender); uint256 lpSupply = lpToken.balanceOf(address(this)); if (lpSupply == 0) { lastRewardBlock = block.number; return; } uint256 duckReward = calculateDuckTokensForMint(); if (duckReward > 0) { controller.mint(controller.devAddress(), duckReward.mul(7).div(100)); controller.mint(address(this), duckReward.mul(93).div(100)); accDuckPerShare = accDuckPerShare.add(duckReward.mul(1e18).mul(93).div(100).div(lpSupply)); } lastRewardBlock = block.number; } // Deposit LP tokens to Pool for DUCK allocation. function deposit(uint256 amount) public { require(amount > 0, "amount must be more than zero"); UserInfo storage user = userInfo[msg.sender]; updatePool(); if (user.amount > 0) { uint256 pending = user.amount.mul(accDuckPerShare).div(1e18).sub(user.rewardDebt); if(pending > 0) { safeDuckTransfer(msg.sender, pending); } } user.amount = user.amount.add(amount); lpToken.safeTransferFrom(msg.sender, address(this), amount); user.rewardDebt = user.amount.mul(accDuckPerShare).div(1e18); emit Deposit(msg.sender, amount); } // Withdraw LP tokens from the Pool. function withdraw(uint256 amount) public { UserInfo storage user = userInfo[msg.sender]; require(user.amount >= amount, "withdraw: not good"); updatePool(); uint256 pending = user.amount.mul(accDuckPerShare).div(1e18).sub(user.rewardDebt); if(pending > 0) { safeDuckTransfer(msg.sender, pending); } if(amount > 0) { // lpToken.safeTransfer(address(msg.sender), amount); user.amount = user.amount.sub(amount); uniWithdraw(msg.sender, amount); } user.rewardDebt = user.amount.mul(accDuckPerShare).div(1e18); emit Withdraw(msg.sender, amount); } function uniWithdraw(address receiver, uint lpTokenAmount) internal { IUniswapPool uniswapPool = IUniswapPool(address(lpToken)); address token0 = uniswapPool.token0(); address token1 = uniswapPool.token1(); (uint amountA, uint amountB) = uniswapRouter.removeLiquidity(token0, token1, lpTokenAmount, 1, 1, address(this), block.timestamp + 100); bool isDuckBurned; bool token0Sent; bool token1Sent; if(token0 == address(duck)) { duck.burn(amountA); isDuckBurned = true; token0Sent = true; } if(token1 == address(duck)) { duck.burn(amountB); isDuckBurned = true; token1Sent = true; } if(!token0Sent) { if(token0 == controller.ddimTokenAddress() && !isDuckBurned) { IERC20(controller.ddimTokenAddress()).transfer(address(0), amountA); } else { IERC20(token0).transfer(receiver, amountA); } } if(!token1Sent) { if(token1 == controller.ddimTokenAddress() && !isDuckBurned) { IERC20(controller.ddimTokenAddress()).transfer(address(0), amountB); } else { IERC20(token1).transfer(receiver, amountB); } } } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 pid) public { UserInfo storage user = userInfo[msg.sender]; lpToken.safeTransfer(address(msg.sender), user.amount); emit EmergencyWithdraw(msg.sender, pid, user.amount); user.amount = 0; user.rewardDebt = 0; } // Get user pending reward. Frontend function.. function getUserPendingReward(address userAddress) public view returns(uint) { UserInfo storage user = userInfo[userAddress]; uint256 duckReward = calculateDuckTokensForMint(); uint256 lpSupply = lpToken.balanceOf(address(this)); if (lpSupply == 0) { return 0; } uint _accDuckPerShare = accDuckPerShare.add(duckReward.mul(1e18).mul(93).div(100).div(lpSupply)); return user.amount.mul(_accDuckPerShare).div(1e18).sub(user.rewardDebt); } // Get current period index. function getCurrentPeriodIndex() public view returns(uint) { for(uint i = 0; i < periods.length; i++) { if(block.number > periods[i].startingBlock && block.number < periods[i].startingBlock.add(periods[i].blocks)) { return i; } } } // Calculate DUCK Tokens for mint near current time. function calculateDuckTokensForMint() public view returns(uint) { uint totalTokens; bool overflown; for(uint i = 0; i < periods.length; i++) { if(block.number < periods[i].startingBlock) { break; } uint buf = periods[i].startingBlock.add(periods[i].blocks); if(lastRewardBlock > buf) { continue; } if(block.number > buf) { totalTokens += buf.sub(max(lastRewardBlock, periods[i].startingBlock-1)).mul(periods[i].tokensPerBlock); overflown = true; } else { if(overflown) { totalTokens += block.number.sub(periods[i].startingBlock-1).mul(periods[i].tokensPerBlock); } else { totalTokens += block.number.sub(max(lastRewardBlock, periods[i].startingBlock-1)).mul(periods[i].tokensPerBlock); } break; } } return totalTokens; } // Safe duck transfer function, just in case if rounding error causes pool to not have enough DUCKs. function safeDuckTransfer(address to, uint256 amount) internal { uint256 duckBal = duck.balanceOf(address(this)); if (amount > duckBal) { duck.transfer(to, duckBal); } else { duck.transfer(to, amount); } } //-------------------------------------------------------------------------------------- //---------------------------------REVENUE PART----------------------------------------- //-------------------------------------------------------------------------------------- // Add new Revenue, can be called only by controller function addRevenue(address _tokenAddress, uint _amount, address _revenueSource) public onlyController { require(revenues.length < 50, "exceed revenue limit"); uint revenueBefore = IERC20(_tokenAddress).balanceOf(address(this)); IERC20(_tokenAddress).transferFrom(_revenueSource, address(this), _amount); uint revenueAfter = IERC20(_tokenAddress).balanceOf(address(this)); _amount = revenueAfter.sub(revenueBefore); Revenue memory revenue = Revenue({ tokenAddress: _tokenAddress, totalSupply: lpToken.balanceOf(address(this)), amount: _amount }); revenues.push(revenue); } // Get user last revenue. Frontend function. function getUserLastRevenue(address userAddress) public view returns(address, uint) { UserInfo storage user = userInfo[userAddress]; for(uint i = 0; i < revenues.length; i++) { if(!revenuesClaimed[userAddress][i]) { uint userRevenue = revenues[i].amount.mul(user.amount).div(revenues[i].totalSupply); return (revenues[i].tokenAddress, userRevenue); } } } // claimRevenue is private function, called on updatePool for transaction caller function claimRevenue(address userAddress) private { UserInfo storage user = userInfo[userAddress]; for(uint i = 0; i < revenues.length; i++) { if(!revenuesClaimed[userAddress][i]) { revenuesClaimed[userAddress][i] = true; uint userRevenue = revenues[i].amount.mul(user.amount).div(revenues[i].totalSupply); safeRevenueTransfer(revenues[i].tokenAddress, userAddress, userRevenue); } } } // Safe revenue transfer for avoid misscalculations function safeRevenueTransfer(address tokenAddress, address to, uint amount) private { uint balance = IERC20(tokenAddress).balanceOf(address(this)); if(balance == 0 || amount == 0) { return; } if(balance >= amount) { IERC20(tokenAddress).transfer(to, amount); } else { IERC20(tokenAddress).transfer(to, balance); } } function max(uint a, uint b) public pure returns(uint) { if(a > b) { return a; } return b; } } contract PoolController is Ownable { // DUCK TOKEN DuckToken public duck; // Array of pools Pool[] public pools; address public devAddress; address public ddimTokenAddress; // Mapping is address is pool mapping(address => bool) public canMint; event NewPool(address indexed poolAddress, address lpToken); constructor(address _duckTokenAddress, address _devAddress, address _ddimTokenAddress) public { duck = DuckToken(_duckTokenAddress); devAddress = _devAddress; ddimTokenAddress = _ddimTokenAddress; } // Add a new pool. Can only be called by the owner. function newPool(address lpToken, uint startingBlock, uint[] memory blocks, uint[] memory farmingSupplies) public onlyOwner { Pool pool = new Pool(lpToken, startingBlock, blocks, farmingSupplies); pools.push(pool); canMint[address(pool)] = true; emit NewPool(address(pool), lpToken); } // Update already created pool by adding NEW period. Can only be called by the owner. function addPeriod(uint poolIndex, uint startingBlock, uint blocks, uint farmingSupply) public onlyOwner { pools[poolIndex].addPeriod(startingBlock, blocks, farmingSupply); } // Add new revenue for a pool. Can only be called by the owner. function addRevenue(uint poolIndex, address tokenAddress, uint amount, address _revenueSource) public onlyOwner { pools[poolIndex].addRevenue(tokenAddress, amount, _revenueSource); } // Mint DUCK TOKEN. Can be called by pools only function mint(address to, uint value) public { require(canMint[msg.sender], "only pools"); duck.mint(to, value); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_duckTokenAddress","type":"address"},{"internalType":"address","name":"_devAddress","type":"address"},{"internalType":"address","name":"_ddimTokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"poolAddress","type":"address"},{"indexed":false,"internalType":"address","name":"lpToken","type":"address"}],"name":"NewPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"poolIndex","type":"uint256"},{"internalType":"uint256","name":"startingBlock","type":"uint256"},{"internalType":"uint256","name":"blocks","type":"uint256"},{"internalType":"uint256","name":"farmingSupply","type":"uint256"}],"name":"addPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"poolIndex","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_revenueSource","type":"address"}],"name":"addRevenue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"canMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ddimTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"duck","outputs":[{"internalType":"contract DuckToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"lpToken","type":"address"},{"internalType":"uint256","name":"startingBlock","type":"uint256"},{"internalType":"uint256[]","name":"blocks","type":"uint256[]"},{"internalType":"uint256[]","name":"farmingSupplies","type":"uint256[]"}],"name":"newPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pools","outputs":[{"internalType":"contract Pool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516139cd3803806139cd8339818101604052606081101561003357600080fd5b5080516020820151604090920151909190600061004e6100da565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b039485166001600160a01b0319918216179091556003805493851693821693909317909255600480549190931691161790556100de565b3390565b6138e0806100ed6000396000f3fe60806040523480156200001157600080fd5b5060043610620000c45760003560e01c8063970d20e9116200007b578063970d20e91462000170578063ac4afa3814620001af578063ad34487714620001cf578063c2ba47441462000314578063d5226a1c1462000351578063f2fde38b146200035b57620000c4565b80633ad10ef614620000c957806340c10f1914620000ef578063526003441462000120578063715018a6146200012a5780638da5cb5b146200013457806395899a83146200013e575b600080fd5b620000d362000384565b604080516001600160a01b039092168252519081900360200190f35b6200011e600480360360408110156200010757600080fd5b506001600160a01b03813516906020013562000393565b005b620000d362000458565b6200011e62000467565b620000d36200050d565b6200011e600480360360808110156200015657600080fd5b50803590602081013590604081013590606001356200051c565b6200011e600480360360808110156200018857600080fd5b508035906001600160a01b0360208201358116916040810135916060909101351662000603565b620000d360048036036020811015620001c757600080fd5b5035620006cf565b6200011e60048036036080811015620001e757600080fd5b6001600160a01b03823516916020810135918101906060810160408201356401000000008111156200021857600080fd5b8201836020820111156200022b57600080fd5b803590602001918460208302840111640100000000831117156200024e57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156200029f57600080fd5b820183602082011115620002b257600080fd5b80359060200191846020830284011164010000000083111715620002d557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550620006f7945050505050565b6200033d600480360360208110156200032c57600080fd5b50356001600160a01b0316620008d4565b604080519115158252519081900360200190f35b620000d3620008e9565b6200011e600480360360208110156200037357600080fd5b50356001600160a01b0316620008f8565b6003546001600160a01b031681565b3360009081526005602052604090205460ff16620003e5576040805162461bcd60e51b815260206004820152600a6024820152696f6e6c7920706f6f6c7360b01b604482015290519081900360640190fd5b600154604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b1580156200043b57600080fd5b505af115801562000450573d6000803e3d6000fd5b505050505050565b6004546001600160a01b031681565b62000471620009f6565b6000546001600160a01b03908116911614620004c3576040805162461bcd60e51b815260206004820181905260248201526000805160206200388b833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b62000526620009f6565b6000546001600160a01b0390811691161462000578576040805162461bcd60e51b815260206004820181905260248201526000805160206200388b833981519152604482015290519081900360640190fd5b600284815481106200058657fe5b600091825260208220015460408051633be64ed760e01b815260048101879052602481018690526044810185905290516001600160a01b0390921692633be64ed79260648084019382900301818387803b158015620005e457600080fd5b505af1158015620005f9573d6000803e3d6000fd5b5050505050505050565b6200060d620009f6565b6000546001600160a01b039081169116146200065f576040805162461bcd60e51b815260206004820181905260248201526000805160206200388b833981519152604482015290519081900360640190fd5b600284815481106200066d57fe5b6000918252602082200154604080516317949d5f60e21b81526001600160a01b03878116600483015260248201879052858116604483015291519190921692635e52757c926064808201939182900301818387803b158015620005e457600080fd5b60028181548110620006dd57fe5b6000918252602090912001546001600160a01b0316905081565b62000701620009f6565b6000546001600160a01b0390811691161462000753576040805162461bcd60e51b815260206004820181905260248201526000805160206200388b833981519152604482015290519081900360640190fd5b6000848484846040516200076790620009fa565b80856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015620007bf578181015183820152602001620007a5565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101562000800578181015183820152602001620007e6565b505050509050019650505050505050604051809103906000f0801580156200082c573d6000803e3d6000fd5b506002805460018082019092557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b03848116918217909255600081815260056020908152604091829020805460ff19169095179094558051928a16835251939450927f77948cb83ef3caff9ac13dfab1ea1f8a6875c98370287ce587f5dbc74cc5b6b0929181900390910190a25050505050565b60056020526000908152604090205460ff1681565b6001546001600160a01b031681565b62000902620009f6565b6000546001600160a01b0390811691161462000954576040805162461bcd60e51b815260206004820181905260248201526000805160206200388b833981519152604482015290519081900360640190fd5b6001600160a01b0381166200099b5760405162461bcd60e51b8152600401808060200182810382526026815260200180620038656026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b612e5c8062000a098339019056fe6080604052600780546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d1790553480156200003757600080fd5b5060405162002e5c38038062002e5c833981810160405260808110156200005d57600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200008957600080fd5b9083019060208201858111156200009f57600080fd5b8251866020820283011164010000000082111715620000bd57600080fd5b82525081516020918201928201910280838360005b83811015620000ec578181015183820152602001620000d2565b50505050905001604052602001805160405193929190846401000000008211156200011657600080fd5b9083019060208201858111156200012c57600080fd5b82518660208202830111640100000000821117156200014a57600080fd5b82525081516020918201928201910280838360005b83811015620001795781810151838201526020016200015f565b505050509050016040525050506000825111620001ca576040805162461bcd60e51b815260206004820152600a602482015269656d706c79206461746160b01b604482015290519081900360640190fd5b805182511462000210576040805162461bcd60e51b815260206004820152600c60248201526b696e76616c6964206461746160a01b604482015290519081900360640190fd5b600180546001600160a01b031916331790819055604080516335489a8760e21b815290516001600160a01b03929092169163d5226a1c91600480820192602092909190829003018186803b1580156200026857600080fd5b505afa1580156200027d573d6000803e3d6000fd5b505050506040513d60208110156200029457600080fd5b5051600380546001600160a01b03199081166001600160a01b0393841617909155600480549091169186169190911790558151620003049084908490600090620002da57fe5b602002602001015183600081518110620002f057fe5b60200260200101516200043c60201b60201c565b600062000335836000815181106200031857fe5b602002602001015185620006e960201b620013f11790919060201c565b905060015b8351811015620003a4576200036b828583815181106200035657fe5b6020026020010151858481518110620002f057fe5b620003998482815181106200037c57fe5b602002602001015183620006e960201b620013f11790919060201c565b91506001016200033a565b506007546040805163095ea7b360e01b81526001600160a01b039283166004820152600019602482015290519187169163095ea7b3916044808201926020929091908290030181600087803b158015620003fd57600080fd5b505af115801562000412573d6000803e3d6000fd5b505050506040513d60208110156200042957600080fd5b505050600292909255506200090b915050565b6001546001600160a01b031633146200048d576040805162461bcd60e51b815260206004820152600e60248201526d37b7363ca1b7b73a3937b63632b960911b604482015290519081900360640190fd5b43831015620004ce5760405162461bcd60e51b815260040180806020018281038252602881526020018062002e346028913960400191505060405180910390fd5b600054156200059257600080546200053e91906000198101908110620004f057fe5b9060005260206000209060040201600101546000600160008054905003815481106200051857fe5b906000526020600020906004020160000154620006e960201b620013f11790919060201c565b831162000592576040805162461bcd60e51b815260206004820152601c60248201527f74776f20706572696f647320696e207468652073616d652074696d6500000000604482015290519081900360640190fd5b6000620005ae83836200074b60201b620014521790919060201c565b9050620005ba620008e3565b6040518060800160405280868152602001620005e66001876200079560201b620014941790919060201c565b8152602080820186905260409182018590526000805460018101825590805283517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563600490920291820155838201517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e564820155838301517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56582015560608401517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5669091015581518681529151929350869288927f2c1ba73d1c003cfaa21fc5841652471b22221e83b5b01a9f7dc54de46e8ed64392908290030190a35050505050565b60008282018381101562000744576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60006200074483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250620007df60201b60201c565b60006200074483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506200088660201b60201c565b600081836200086f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200083357818101518382015260200162000819565b50505050905090810190601f168015620008615780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816200087c57fe5b0495945050505050565b60008184841115620008db5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156200083357818101518382015260200162000819565b505050900390565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b612519806200091b6000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063a9f8d181116100ad578063d95894d811610071578063d95894d814610318578063da62fc281461035d578063e3161ddd14610365578063ea4a11041461036d578063f77c4791146103b05761012c565b8063a9f8d181146102bd578063b4f5a21a146102c5578063b6b55f25146102cd578063c6710629146102ea578063d5226a1c146103105761012c565b80635fcbd285116100f45780635fcbd2851461020b578063614ad28a1461022f5780636d5433e614610278578063735de9f7146102ad5780639f331649146102b55761012c565b80631959a002146101315780632e1a7d4d146101705780633be64ed71461018f5780635312ea8e146101b85780635e52757c146101d5575b600080fd5b6101576004803603602081101561014757600080fd5b50356001600160a01b03166103b8565b6040805192835260208301919091528051918290030190f35b61018d6004803603602081101561018657600080fd5b50356103d1565b005b61018d600480360360608110156101a557600080fd5b50803590602081013590604001356104fa565b61018d600480360360208110156101ce57600080fd5b503561076f565b61018d600480360360608110156101eb57600080fd5b506001600160a01b038135811691602081013591604090910135166107de565b610213610b54565b604080516001600160a01b039092168252519081900360200190f35b6102556004803603602081101561024557600080fd5b50356001600160a01b0316610b63565b604080516001600160a01b03909316835260208301919091528051918290030190f35b61029b6004803603604081101561028e57600080fd5b5080359060200135610c52565b60408051918252519081900360200190f35b610213610c6c565b61029b610c7b565b61029b610e31565b61029b610e37565b61018d600480360360208110156102e357600080fd5b5035610eb7565b61029b6004803603602081101561030057600080fd5b50356001600160a01b0316610fee565b610213611105565b6103356004803603602081101561032e57600080fd5b5035611114565b604080516001600160a01b039094168452602084019290925282820152519081900360600190f35b61029b61114e565b61018d611154565b61038a6004803603602081101561038357600080fd5b50356113ab565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6102136113e2565b6006602052600090815260409020805460019091015482565b336000908152600660205260409020805482111561042b576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610433611154565b600061046e8260010154610468670de0b6b3a764000061046260055487600001546114d690919063ffffffff16565b90611452565b90611494565b9050801561048057610480338261152f565b821561049e5781546104929084611494565b825561049e33846116c0565b60055482546104ba91670de0b6b3a764000091610462916114d6565b600183015560408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a2505050565b6001546001600160a01b0316331461054a576040805162461bcd60e51b815260206004820152600e60248201526d37b7363ca1b7b73a3937b63632b960911b604482015290519081900360640190fd5b438310156105895760405162461bcd60e51b81526004018080602001828103825260288152602001806124716028913960400191505060405180910390fd5b6000541561063957600080546105e6919060001981019081106105a857fe5b9060005260206000209060040201600101546000600160008054905003815481106105cf57fe5b6000918252602090912060049091020154906113f1565b8311610639576040805162461bcd60e51b815260206004820152601c60248201527f74776f20706572696f647320696e207468652073616d652074696d6500000000604482015290519081900360640190fd5b60006106458284611452565b905061064f61241e565b60408051608081019091528581526020810161066c866001611494565b8152602080820186905260409182018590526000805460018101825590805283517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563600490920291820155838201517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e564820155838301517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56582015560608401517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5669091015581518681529151929350869288927f2c1ba73d1c003cfaa21fc5841652471b22221e83b5b01a9f7dc54de46e8ed64392908290030190a35050505050565b33600081815260066020526040902080546004549192610798926001600160a01b031691611dbc565b80546040805191825251839133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a3600080825560019091015550565b6001546001600160a01b0316331461082e576040805162461bcd60e51b815260206004820152600e60248201526d37b7363ca1b7b73a3937b63632b960911b604482015290519081900360640190fd5b60085460321161087c576040805162461bcd60e51b8152602060048201526014602482015273195e18d95959081c995d995b9d59481b1a5b5a5d60621b604482015290519081900360640190fd5b6000836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156108cb57600080fd5b505afa1580156108df573d6000803e3d6000fd5b505050506040513d60208110156108f557600080fd5b5051604080516323b872dd60e01b81526001600160a01b038581166004830152306024830152604482018790529151929350908616916323b872dd916064808201926020929091908290030181600087803b15801561095357600080fd5b505af1158015610967573d6000803e3d6000fd5b505050506040513d602081101561097d57600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b038716916370a0823191602480820192602092909190829003018186803b1580156109c957600080fd5b505afa1580156109dd573d6000803e3d6000fd5b505050506040513d60208110156109f357600080fd5b50519050610a018183611494565b9350610a0b612446565b604080516060810182526001600160a01b0380891682526004805484516370a0823160e01b815230928101929092529351929360208086019491909316926370a082319260248082019391829003018186803b158015610a6a57600080fd5b505afa158015610a7e573d6000803e3d6000fd5b505050506040513d6020811015610a9457600080fd5b505181526020908101969096526008805460018101825560009190915281517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600390920291820180546001600160a01b0319166001600160a01b03909216919091179055958101517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4870155604001517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee5909501949094555050505050565b6004546001600160a01b031681565b6001600160a01b03811660009081526006602052604081208190815b600854811015610c4a576001600160a01b038516600090815260096020908152604080832084845290915290205460ff16610c42576000610c0d60088381548110610bc657fe5b906000526020600020906003020160010154610462856000015460088681548110610bed57fe5b9060005260206000209060030201600201546114d690919063ffffffff16565b905060088281548110610c1c57fe5b60009182526020909120600390910201546001600160a01b031694509250610c4d915050565b600101610b7f565b50505b915091565b600081831115610c63575081610c66565b50805b92915050565b6007546001600160a01b031681565b60008080805b600054811015610e285760008181548110610c9857fe5b906000526020600020906004020160000154431015610cb657610e28565b6000610ce760008381548110610cc857fe5b906000526020600020906004020160010154600084815481106105cf57fe5b9050806002541115610cf95750610e20565b80431115610d6d57610d6060008381548110610d1157fe5b906000526020600020906004020160030154610d5a610d53600254600160008881548110610d3b57fe5b90600052602060002090600402016000015403610c52565b8490611494565b906114d6565b8401935060019250610e1e565b8215610dd257610dc960008381548110610d8357fe5b906000526020600020906004020160030154610d5a600160008681548110610da757fe5b906000526020600020906004020160000154034361149490919063ffffffff16565b84019350610e18565b610e1360008381548110610de257fe5b906000526020600020906004020160030154610d5a610e0c600254600160008881548110610d3b57fe5b4390611494565b840193505b50610e28565b505b600101610c81565b50909150505b90565b60025481565b6000805b600054811015610eb35760008181548110610e5257fe5b90600052602060002090600402016000015443118015610e9f5750610e9c60008281548110610e7d57fe5b906000526020600020906004020160010154600083815481106105cf57fe5b43105b15610eab579050610e2e565b600101610e3b565b5090565b60008111610f0c576040805162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d757374206265206d6f7265207468616e207a65726f000000604482015290519081900360640190fd5b336000908152600660205260409020610f23611154565b805415610f6d576000610f598260010154610468670de0b6b3a764000061046260055487600001546114d690919063ffffffff16565b90508015610f6b57610f6b338261152f565b505b8054610f7990836113f1565b8155600454610f93906001600160a01b0316333085611e0e565b6005548154610faf91670de0b6b3a764000091610462916114d6565b600182015560408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a25050565b6001600160a01b03811660009081526006602052604081208161100f610c7b565b60048054604080516370a0823160e01b81523093810193909352519293506000926001600160a01b03909116916370a08231916024808301926020929190829003018186803b15801561106157600080fd5b505afa158015611075573d6000803e3d6000fd5b505050506040513d602081101561108b57600080fd5b50519050806110a05760009350505050611100565b60006110cc6110c383610462606481605d610d5a8a670de0b6b3a76400006114d6565b600554906113f1565b90506110f98460010154610468670de0b6b3a76400006104628589600001546114d690919063ffffffff16565b9450505050505b919050565b6003546001600160a01b031681565b6008818154811061112157fe5b60009182526020909120600390910201805460018201546002909201546001600160a01b03909116925083565b60055481565b6002544311611162576113a9565b61116b33611e6e565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156111ba57600080fd5b505afa1580156111ce573d6000803e3d6000fd5b505050506040513d60208110156111e457600080fd5b50519050806111f75750436002556113a9565b6000611201610c7b565b905080156113a25760015460408051631d68877b60e11b815290516001600160a01b03909216916340c10f19918391633ad10ef691600480820192602092909190829003018186803b15801561125657600080fd5b505afa15801561126a573d6000803e3d6000fd5b505050506040513d602081101561128057600080fd5b505161129260646104628660076114d6565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156112d857600080fd5b505af11580156112ec573d6000803e3d6000fd5b50506001546001600160a01b031691506340c10f19905030611314606461046286605d6114d6565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561135a57600080fd5b505af115801561136e573d6000803e3d6000fd5b5050505061139e6110c3836104626064610462605d610d5a670de0b6b3a7640000896114d690919063ffffffff16565b6005555b5050436002555b565b600081815481106113b857fe5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b6001546001600160a01b031681565b60008282018381101561144b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600061144b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611f3b565b600061144b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611fdd565b6000826114e557506000610c66565b828202828482816114f257fe5b041461144b5760405162461bcd60e51b81526004018080602001828103825260218152602001806124996021913960400191505060405180910390fd5b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561157a57600080fd5b505afa15801561158e573d6000803e3d6000fd5b505050506040513d60208110156115a457600080fd5b5051905080821115611638576003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561160657600080fd5b505af115801561161a573d6000803e3d6000fd5b505050506040513d602081101561163057600080fd5b506116bb9050565b6003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561168e57600080fd5b505af11580156116a2573d6000803e3d6000fd5b505050506040513d60208110156116b857600080fd5b50505b505050565b6004805460408051630dfe168160e01b815290516001600160a01b03909216926000928492630dfe16819281810192602092909190829003018186803b15801561170957600080fd5b505afa15801561171d573d6000803e3d6000fd5b505050506040513d602081101561173357600080fd5b50516040805163d21220a760e01b815290519192506000916001600160a01b0385169163d21220a7916004808301926020929190829003018186803b15801561177b57600080fd5b505afa15801561178f573d6000803e3d6000fd5b505050506040513d60208110156117a557600080fd5b505160075460408051635d5155ef60e11b81526001600160a01b0386811660048301528085166024830152604482018990526001606483810182905260848401919091523060a4840152420160c483015282519495506000948594919091169263baa2abde9260e4808201939182900301818787803b15801561182757600080fd5b505af115801561183b573d6000803e3d6000fd5b505050506040513d604081101561185157600080fd5b5080516020909101516003549193509150600090819081906001600160a01b03888116911614156118ea5760035460408051630852cd8d60e31b81526004810188905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b1580156118c957600080fd5b505af11580156118dd573d6000803e3d6000fd5b5050505060019250600191505b6003546001600160a01b038781169116141561196e5760035460408051630852cd8d60e31b81526004810187905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b15801561194d57600080fd5b505af1158015611961573d6000803e3d6000fd5b5050505060019250600190505b81611b8f57600160009054906101000a90046001600160a01b03166001600160a01b031663526003446040518163ffffffff1660e01b815260040160206040518083038186803b1580156119c157600080fd5b505afa1580156119d5573d6000803e3d6000fd5b505050506040513d60208110156119eb57600080fd5b50516001600160a01b038881169116148015611a05575082155b15611b0b57600160009054906101000a90046001600160a01b03166001600160a01b031663526003446040518163ffffffff1660e01b815260040160206040518083038186803b158015611a5857600080fd5b505afa158015611a6c573d6000803e3d6000fd5b505050506040513d6020811015611a8257600080fd5b50516040805163a9059cbb60e01b81526000600482018190526024820189905291516001600160a01b039093169263a9059cbb92604480840193602093929083900390910190829087803b158015611ad957600080fd5b505af1158015611aed573d6000803e3d6000fd5b505050506040513d6020811015611b0357600080fd5b50611b8f9050565b866001600160a01b031663a9059cbb8b876040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611b6257600080fd5b505af1158015611b76573d6000803e3d6000fd5b505050506040513d6020811015611b8c57600080fd5b50505b80611db057600160009054906101000a90046001600160a01b03166001600160a01b031663526003446040518163ffffffff1660e01b815260040160206040518083038186803b158015611be257600080fd5b505afa158015611bf6573d6000803e3d6000fd5b505050506040513d6020811015611c0c57600080fd5b50516001600160a01b038781169116148015611c26575082155b15611d2c57600160009054906101000a90046001600160a01b03166001600160a01b031663526003446040518163ffffffff1660e01b815260040160206040518083038186803b158015611c7957600080fd5b505afa158015611c8d573d6000803e3d6000fd5b505050506040513d6020811015611ca357600080fd5b50516040805163a9059cbb60e01b81526000600482018190526024820188905291516001600160a01b039093169263a9059cbb92604480840193602093929083900390910190829087803b158015611cfa57600080fd5b505af1158015611d0e573d6000803e3d6000fd5b505050506040513d6020811015611d2457600080fd5b50611db09050565b856001600160a01b031663a9059cbb8b866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611d8357600080fd5b505af1158015611d97573d6000803e3d6000fd5b505050506040513d6020811015611dad57600080fd5b50505b50505050505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526116bb908490612037565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611e68908590612037565b50505050565b6001600160a01b0381166000908152600660205260408120905b6008548110156116bb576001600160a01b038316600090815260096020908152604080832084845290915290205460ff16611f33576001600160a01b03831660009081526009602090815260408083208484529091528120805460ff1916600117905560088054611efe919084908110610bc657fe5b9050611f3160088381548110611f1057fe5b60009182526020909120600390910201546001600160a01b031685836120e8565b505b600101611e88565b60008183611fc75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f8c578181015183820152602001611f74565b50505050905090810190601f168015611fb95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611fd357fe5b0495945050505050565b6000818484111561202f5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611f8c578181015183820152602001611f74565b505050900390565b606061208c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122949092919063ffffffff16565b8051909150156116bb578080602001905160208110156120ab57600080fd5b50516116bb5760405162461bcd60e51b815260040180806020018281038252602a8152602001806124ba602a913960400191505060405180910390fd5b6000836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561213757600080fd5b505afa15801561214b573d6000803e3d6000fd5b505050506040513d602081101561216157600080fd5b50519050801580612170575081155b1561217b57506116bb565b81811061220b57836001600160a01b031663a9059cbb84846040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156121d957600080fd5b505af11580156121ed573d6000803e3d6000fd5b505050506040513d602081101561220357600080fd5b50611e689050565b836001600160a01b031663a9059cbb84836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561226257600080fd5b505af1158015612276573d6000803e3d6000fd5b505050506040513d602081101561228c57600080fd5b505050505050565b60606122a384846000856122ab565b949350505050565b60606122b685612418565b612307576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106123465780518252601f199092019160209182019101612327565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146123a8576040519150601f19603f3d011682016040523d82523d6000602084013e6123ad565b606091505b509150915081156123c15791506122a39050565b8051156123d15780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611f8c578181015183820152602001611f74565b3b151590565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b604051806060016040528060006001600160a01b031681526020016000815260200160008152509056fe7374617274696e67426c6f636b2073686f756c642062652067726561746572207468616e206e6f77536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220a674f3126eea91b988f39151b48d1b491c2af3a90737b312e8d933ed92b64ad864736f6c634300060c00337374617274696e67426c6f636b2073686f756c642062652067726561746572207468616e206e6f774f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212207aaf137894ed3cdad215af2347bf5a1998346cc3fe8b5cf46575bc127f5f300164736f6c634300060c0033000000000000000000000000c0ba369c8db6eb3924965e5c4fd0b4c1b91e305f0000000000000000000000005e977851f7a0a094d802fc072b743b2d1ca6b9cc000000000000000000000000fbeea1c75e4c4465cb2fccc9c6d6afe984558e20
Deployed Bytecode
0x60806040523480156200001157600080fd5b5060043610620000c45760003560e01c8063970d20e9116200007b578063970d20e91462000170578063ac4afa3814620001af578063ad34487714620001cf578063c2ba47441462000314578063d5226a1c1462000351578063f2fde38b146200035b57620000c4565b80633ad10ef614620000c957806340c10f1914620000ef578063526003441462000120578063715018a6146200012a5780638da5cb5b146200013457806395899a83146200013e575b600080fd5b620000d362000384565b604080516001600160a01b039092168252519081900360200190f35b6200011e600480360360408110156200010757600080fd5b506001600160a01b03813516906020013562000393565b005b620000d362000458565b6200011e62000467565b620000d36200050d565b6200011e600480360360808110156200015657600080fd5b50803590602081013590604081013590606001356200051c565b6200011e600480360360808110156200018857600080fd5b508035906001600160a01b0360208201358116916040810135916060909101351662000603565b620000d360048036036020811015620001c757600080fd5b5035620006cf565b6200011e60048036036080811015620001e757600080fd5b6001600160a01b03823516916020810135918101906060810160408201356401000000008111156200021857600080fd5b8201836020820111156200022b57600080fd5b803590602001918460208302840111640100000000831117156200024e57600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156200029f57600080fd5b820183602082011115620002b257600080fd5b80359060200191846020830284011164010000000083111715620002d557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550620006f7945050505050565b6200033d600480360360208110156200032c57600080fd5b50356001600160a01b0316620008d4565b604080519115158252519081900360200190f35b620000d3620008e9565b6200011e600480360360208110156200037357600080fd5b50356001600160a01b0316620008f8565b6003546001600160a01b031681565b3360009081526005602052604090205460ff16620003e5576040805162461bcd60e51b815260206004820152600a6024820152696f6e6c7920706f6f6c7360b01b604482015290519081900360640190fd5b600154604080516340c10f1960e01b81526001600160a01b03858116600483015260248201859052915191909216916340c10f1991604480830192600092919082900301818387803b1580156200043b57600080fd5b505af115801562000450573d6000803e3d6000fd5b505050505050565b6004546001600160a01b031681565b62000471620009f6565b6000546001600160a01b03908116911614620004c3576040805162461bcd60e51b815260206004820181905260248201526000805160206200388b833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b62000526620009f6565b6000546001600160a01b0390811691161462000578576040805162461bcd60e51b815260206004820181905260248201526000805160206200388b833981519152604482015290519081900360640190fd5b600284815481106200058657fe5b600091825260208220015460408051633be64ed760e01b815260048101879052602481018690526044810185905290516001600160a01b0390921692633be64ed79260648084019382900301818387803b158015620005e457600080fd5b505af1158015620005f9573d6000803e3d6000fd5b5050505050505050565b6200060d620009f6565b6000546001600160a01b039081169116146200065f576040805162461bcd60e51b815260206004820181905260248201526000805160206200388b833981519152604482015290519081900360640190fd5b600284815481106200066d57fe5b6000918252602082200154604080516317949d5f60e21b81526001600160a01b03878116600483015260248201879052858116604483015291519190921692635e52757c926064808201939182900301818387803b158015620005e457600080fd5b60028181548110620006dd57fe5b6000918252602090912001546001600160a01b0316905081565b62000701620009f6565b6000546001600160a01b0390811691161462000753576040805162461bcd60e51b815260206004820181905260248201526000805160206200388b833981519152604482015290519081900360640190fd5b6000848484846040516200076790620009fa565b80856001600160a01b031681526020018481526020018060200180602001838103835285818151815260200191508051906020019060200280838360005b83811015620007bf578181015183820152602001620007a5565b50505050905001838103825284818151815260200191508051906020019060200280838360005b8381101562000800578181015183820152602001620007e6565b505050509050019650505050505050604051809103906000f0801580156200082c573d6000803e3d6000fd5b506002805460018082019092557f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180546001600160a01b0319166001600160a01b03848116918217909255600081815260056020908152604091829020805460ff19169095179094558051928a16835251939450927f77948cb83ef3caff9ac13dfab1ea1f8a6875c98370287ce587f5dbc74cc5b6b0929181900390910190a25050505050565b60056020526000908152604090205460ff1681565b6001546001600160a01b031681565b62000902620009f6565b6000546001600160a01b0390811691161462000954576040805162461bcd60e51b815260206004820181905260248201526000805160206200388b833981519152604482015290519081900360640190fd5b6001600160a01b0381166200099b5760405162461bcd60e51b8152600401808060200182810382526026815260200180620038656026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b612e5c8062000a098339019056fe6080604052600780546001600160a01b031916737a250d5630b4cf539739df2c5dacb4c659f2488d1790553480156200003757600080fd5b5060405162002e5c38038062002e5c833981810160405260808110156200005d57600080fd5b815160208301516040808501805191519395929483019291846401000000008211156200008957600080fd5b9083019060208201858111156200009f57600080fd5b8251866020820283011164010000000082111715620000bd57600080fd5b82525081516020918201928201910280838360005b83811015620000ec578181015183820152602001620000d2565b50505050905001604052602001805160405193929190846401000000008211156200011657600080fd5b9083019060208201858111156200012c57600080fd5b82518660208202830111640100000000821117156200014a57600080fd5b82525081516020918201928201910280838360005b83811015620001795781810151838201526020016200015f565b505050509050016040525050506000825111620001ca576040805162461bcd60e51b815260206004820152600a602482015269656d706c79206461746160b01b604482015290519081900360640190fd5b805182511462000210576040805162461bcd60e51b815260206004820152600c60248201526b696e76616c6964206461746160a01b604482015290519081900360640190fd5b600180546001600160a01b031916331790819055604080516335489a8760e21b815290516001600160a01b03929092169163d5226a1c91600480820192602092909190829003018186803b1580156200026857600080fd5b505afa1580156200027d573d6000803e3d6000fd5b505050506040513d60208110156200029457600080fd5b5051600380546001600160a01b03199081166001600160a01b0393841617909155600480549091169186169190911790558151620003049084908490600090620002da57fe5b602002602001015183600081518110620002f057fe5b60200260200101516200043c60201b60201c565b600062000335836000815181106200031857fe5b602002602001015185620006e960201b620013f11790919060201c565b905060015b8351811015620003a4576200036b828583815181106200035657fe5b6020026020010151858481518110620002f057fe5b620003998482815181106200037c57fe5b602002602001015183620006e960201b620013f11790919060201c565b91506001016200033a565b506007546040805163095ea7b360e01b81526001600160a01b039283166004820152600019602482015290519187169163095ea7b3916044808201926020929091908290030181600087803b158015620003fd57600080fd5b505af115801562000412573d6000803e3d6000fd5b505050506040513d60208110156200042957600080fd5b505050600292909255506200090b915050565b6001546001600160a01b031633146200048d576040805162461bcd60e51b815260206004820152600e60248201526d37b7363ca1b7b73a3937b63632b960911b604482015290519081900360640190fd5b43831015620004ce5760405162461bcd60e51b815260040180806020018281038252602881526020018062002e346028913960400191505060405180910390fd5b600054156200059257600080546200053e91906000198101908110620004f057fe5b9060005260206000209060040201600101546000600160008054905003815481106200051857fe5b906000526020600020906004020160000154620006e960201b620013f11790919060201c565b831162000592576040805162461bcd60e51b815260206004820152601c60248201527f74776f20706572696f647320696e207468652073616d652074696d6500000000604482015290519081900360640190fd5b6000620005ae83836200074b60201b620014521790919060201c565b9050620005ba620008e3565b6040518060800160405280868152602001620005e66001876200079560201b620014941790919060201c565b8152602080820186905260409182018590526000805460018101825590805283517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563600490920291820155838201517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e564820155838301517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56582015560608401517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5669091015581518681529151929350869288927f2c1ba73d1c003cfaa21fc5841652471b22221e83b5b01a9f7dc54de46e8ed64392908290030190a35050505050565b60008282018381101562000744576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60006200074483836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250620007df60201b60201c565b60006200074483836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506200088660201b60201c565b600081836200086f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200083357818101518382015260200162000819565b50505050905090810190601f168015620008615780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816200087c57fe5b0495945050505050565b60008184841115620008db5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156200083357818101518382015260200162000819565b505050900390565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b612519806200091b6000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c8063a9f8d181116100ad578063d95894d811610071578063d95894d814610318578063da62fc281461035d578063e3161ddd14610365578063ea4a11041461036d578063f77c4791146103b05761012c565b8063a9f8d181146102bd578063b4f5a21a146102c5578063b6b55f25146102cd578063c6710629146102ea578063d5226a1c146103105761012c565b80635fcbd285116100f45780635fcbd2851461020b578063614ad28a1461022f5780636d5433e614610278578063735de9f7146102ad5780639f331649146102b55761012c565b80631959a002146101315780632e1a7d4d146101705780633be64ed71461018f5780635312ea8e146101b85780635e52757c146101d5575b600080fd5b6101576004803603602081101561014757600080fd5b50356001600160a01b03166103b8565b6040805192835260208301919091528051918290030190f35b61018d6004803603602081101561018657600080fd5b50356103d1565b005b61018d600480360360608110156101a557600080fd5b50803590602081013590604001356104fa565b61018d600480360360208110156101ce57600080fd5b503561076f565b61018d600480360360608110156101eb57600080fd5b506001600160a01b038135811691602081013591604090910135166107de565b610213610b54565b604080516001600160a01b039092168252519081900360200190f35b6102556004803603602081101561024557600080fd5b50356001600160a01b0316610b63565b604080516001600160a01b03909316835260208301919091528051918290030190f35b61029b6004803603604081101561028e57600080fd5b5080359060200135610c52565b60408051918252519081900360200190f35b610213610c6c565b61029b610c7b565b61029b610e31565b61029b610e37565b61018d600480360360208110156102e357600080fd5b5035610eb7565b61029b6004803603602081101561030057600080fd5b50356001600160a01b0316610fee565b610213611105565b6103356004803603602081101561032e57600080fd5b5035611114565b604080516001600160a01b039094168452602084019290925282820152519081900360600190f35b61029b61114e565b61018d611154565b61038a6004803603602081101561038357600080fd5b50356113ab565b604080519485526020850193909352838301919091526060830152519081900360800190f35b6102136113e2565b6006602052600090815260409020805460019091015482565b336000908152600660205260409020805482111561042b576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b610433611154565b600061046e8260010154610468670de0b6b3a764000061046260055487600001546114d690919063ffffffff16565b90611452565b90611494565b9050801561048057610480338261152f565b821561049e5781546104929084611494565b825561049e33846116c0565b60055482546104ba91670de0b6b3a764000091610462916114d6565b600183015560408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a2505050565b6001546001600160a01b0316331461054a576040805162461bcd60e51b815260206004820152600e60248201526d37b7363ca1b7b73a3937b63632b960911b604482015290519081900360640190fd5b438310156105895760405162461bcd60e51b81526004018080602001828103825260288152602001806124716028913960400191505060405180910390fd5b6000541561063957600080546105e6919060001981019081106105a857fe5b9060005260206000209060040201600101546000600160008054905003815481106105cf57fe5b6000918252602090912060049091020154906113f1565b8311610639576040805162461bcd60e51b815260206004820152601c60248201527f74776f20706572696f647320696e207468652073616d652074696d6500000000604482015290519081900360640190fd5b60006106458284611452565b905061064f61241e565b60408051608081019091528581526020810161066c866001611494565b8152602080820186905260409182018590526000805460018101825590805283517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563600490920291820155838201517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e564820155838301517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56582015560608401517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5669091015581518681529151929350869288927f2c1ba73d1c003cfaa21fc5841652471b22221e83b5b01a9f7dc54de46e8ed64392908290030190a35050505050565b33600081815260066020526040902080546004549192610798926001600160a01b031691611dbc565b80546040805191825251839133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a3600080825560019091015550565b6001546001600160a01b0316331461082e576040805162461bcd60e51b815260206004820152600e60248201526d37b7363ca1b7b73a3937b63632b960911b604482015290519081900360640190fd5b60085460321161087c576040805162461bcd60e51b8152602060048201526014602482015273195e18d95959081c995d995b9d59481b1a5b5a5d60621b604482015290519081900360640190fd5b6000836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156108cb57600080fd5b505afa1580156108df573d6000803e3d6000fd5b505050506040513d60208110156108f557600080fd5b5051604080516323b872dd60e01b81526001600160a01b038581166004830152306024830152604482018790529151929350908616916323b872dd916064808201926020929091908290030181600087803b15801561095357600080fd5b505af1158015610967573d6000803e3d6000fd5b505050506040513d602081101561097d57600080fd5b5050604080516370a0823160e01b815230600482015290516000916001600160a01b038716916370a0823191602480820192602092909190829003018186803b1580156109c957600080fd5b505afa1580156109dd573d6000803e3d6000fd5b505050506040513d60208110156109f357600080fd5b50519050610a018183611494565b9350610a0b612446565b604080516060810182526001600160a01b0380891682526004805484516370a0823160e01b815230928101929092529351929360208086019491909316926370a082319260248082019391829003018186803b158015610a6a57600080fd5b505afa158015610a7e573d6000803e3d6000fd5b505050506040513d6020811015610a9457600080fd5b505181526020908101969096526008805460018101825560009190915281517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee3600390920291820180546001600160a01b0319166001600160a01b03909216919091179055958101517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee4870155604001517ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee5909501949094555050505050565b6004546001600160a01b031681565b6001600160a01b03811660009081526006602052604081208190815b600854811015610c4a576001600160a01b038516600090815260096020908152604080832084845290915290205460ff16610c42576000610c0d60088381548110610bc657fe5b906000526020600020906003020160010154610462856000015460088681548110610bed57fe5b9060005260206000209060030201600201546114d690919063ffffffff16565b905060088281548110610c1c57fe5b60009182526020909120600390910201546001600160a01b031694509250610c4d915050565b600101610b7f565b50505b915091565b600081831115610c63575081610c66565b50805b92915050565b6007546001600160a01b031681565b60008080805b600054811015610e285760008181548110610c9857fe5b906000526020600020906004020160000154431015610cb657610e28565b6000610ce760008381548110610cc857fe5b906000526020600020906004020160010154600084815481106105cf57fe5b9050806002541115610cf95750610e20565b80431115610d6d57610d6060008381548110610d1157fe5b906000526020600020906004020160030154610d5a610d53600254600160008881548110610d3b57fe5b90600052602060002090600402016000015403610c52565b8490611494565b906114d6565b8401935060019250610e1e565b8215610dd257610dc960008381548110610d8357fe5b906000526020600020906004020160030154610d5a600160008681548110610da757fe5b906000526020600020906004020160000154034361149490919063ffffffff16565b84019350610e18565b610e1360008381548110610de257fe5b906000526020600020906004020160030154610d5a610e0c600254600160008881548110610d3b57fe5b4390611494565b840193505b50610e28565b505b600101610c81565b50909150505b90565b60025481565b6000805b600054811015610eb35760008181548110610e5257fe5b90600052602060002090600402016000015443118015610e9f5750610e9c60008281548110610e7d57fe5b906000526020600020906004020160010154600083815481106105cf57fe5b43105b15610eab579050610e2e565b600101610e3b565b5090565b60008111610f0c576040805162461bcd60e51b815260206004820152601d60248201527f616d6f756e74206d757374206265206d6f7265207468616e207a65726f000000604482015290519081900360640190fd5b336000908152600660205260409020610f23611154565b805415610f6d576000610f598260010154610468670de0b6b3a764000061046260055487600001546114d690919063ffffffff16565b90508015610f6b57610f6b338261152f565b505b8054610f7990836113f1565b8155600454610f93906001600160a01b0316333085611e0e565b6005548154610faf91670de0b6b3a764000091610462916114d6565b600182015560408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a25050565b6001600160a01b03811660009081526006602052604081208161100f610c7b565b60048054604080516370a0823160e01b81523093810193909352519293506000926001600160a01b03909116916370a08231916024808301926020929190829003018186803b15801561106157600080fd5b505afa158015611075573d6000803e3d6000fd5b505050506040513d602081101561108b57600080fd5b50519050806110a05760009350505050611100565b60006110cc6110c383610462606481605d610d5a8a670de0b6b3a76400006114d6565b600554906113f1565b90506110f98460010154610468670de0b6b3a76400006104628589600001546114d690919063ffffffff16565b9450505050505b919050565b6003546001600160a01b031681565b6008818154811061112157fe5b60009182526020909120600390910201805460018201546002909201546001600160a01b03909116925083565b60055481565b6002544311611162576113a9565b61116b33611e6e565b60048054604080516370a0823160e01b81523093810193909352516000926001600160a01b03909216916370a08231916024808301926020929190829003018186803b1580156111ba57600080fd5b505afa1580156111ce573d6000803e3d6000fd5b505050506040513d60208110156111e457600080fd5b50519050806111f75750436002556113a9565b6000611201610c7b565b905080156113a25760015460408051631d68877b60e11b815290516001600160a01b03909216916340c10f19918391633ad10ef691600480820192602092909190829003018186803b15801561125657600080fd5b505afa15801561126a573d6000803e3d6000fd5b505050506040513d602081101561128057600080fd5b505161129260646104628660076114d6565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b1580156112d857600080fd5b505af11580156112ec573d6000803e3d6000fd5b50506001546001600160a01b031691506340c10f19905030611314606461046286605d6114d6565b6040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050600060405180830381600087803b15801561135a57600080fd5b505af115801561136e573d6000803e3d6000fd5b5050505061139e6110c3836104626064610462605d610d5a670de0b6b3a7640000896114d690919063ffffffff16565b6005555b5050436002555b565b600081815481106113b857fe5b60009182526020909120600490910201805460018201546002830154600390930154919350919084565b6001546001600160a01b031681565b60008282018381101561144b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600061144b83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611f3b565b600061144b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611fdd565b6000826114e557506000610c66565b828202828482816114f257fe5b041461144b5760405162461bcd60e51b81526004018080602001828103825260218152602001806124996021913960400191505060405180910390fd5b600354604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561157a57600080fd5b505afa15801561158e573d6000803e3d6000fd5b505050506040513d60208110156115a457600080fd5b5051905080821115611638576003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561160657600080fd5b505af115801561161a573d6000803e3d6000fd5b505050506040513d602081101561163057600080fd5b506116bb9050565b6003546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561168e57600080fd5b505af11580156116a2573d6000803e3d6000fd5b505050506040513d60208110156116b857600080fd5b50505b505050565b6004805460408051630dfe168160e01b815290516001600160a01b03909216926000928492630dfe16819281810192602092909190829003018186803b15801561170957600080fd5b505afa15801561171d573d6000803e3d6000fd5b505050506040513d602081101561173357600080fd5b50516040805163d21220a760e01b815290519192506000916001600160a01b0385169163d21220a7916004808301926020929190829003018186803b15801561177b57600080fd5b505afa15801561178f573d6000803e3d6000fd5b505050506040513d60208110156117a557600080fd5b505160075460408051635d5155ef60e11b81526001600160a01b0386811660048301528085166024830152604482018990526001606483810182905260848401919091523060a4840152420160c483015282519495506000948594919091169263baa2abde9260e4808201939182900301818787803b15801561182757600080fd5b505af115801561183b573d6000803e3d6000fd5b505050506040513d604081101561185157600080fd5b5080516020909101516003549193509150600090819081906001600160a01b03888116911614156118ea5760035460408051630852cd8d60e31b81526004810188905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b1580156118c957600080fd5b505af11580156118dd573d6000803e3d6000fd5b5050505060019250600191505b6003546001600160a01b038781169116141561196e5760035460408051630852cd8d60e31b81526004810187905290516001600160a01b03909216916342966c689160248082019260009290919082900301818387803b15801561194d57600080fd5b505af1158015611961573d6000803e3d6000fd5b5050505060019250600190505b81611b8f57600160009054906101000a90046001600160a01b03166001600160a01b031663526003446040518163ffffffff1660e01b815260040160206040518083038186803b1580156119c157600080fd5b505afa1580156119d5573d6000803e3d6000fd5b505050506040513d60208110156119eb57600080fd5b50516001600160a01b038881169116148015611a05575082155b15611b0b57600160009054906101000a90046001600160a01b03166001600160a01b031663526003446040518163ffffffff1660e01b815260040160206040518083038186803b158015611a5857600080fd5b505afa158015611a6c573d6000803e3d6000fd5b505050506040513d6020811015611a8257600080fd5b50516040805163a9059cbb60e01b81526000600482018190526024820189905291516001600160a01b039093169263a9059cbb92604480840193602093929083900390910190829087803b158015611ad957600080fd5b505af1158015611aed573d6000803e3d6000fd5b505050506040513d6020811015611b0357600080fd5b50611b8f9050565b866001600160a01b031663a9059cbb8b876040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611b6257600080fd5b505af1158015611b76573d6000803e3d6000fd5b505050506040513d6020811015611b8c57600080fd5b50505b80611db057600160009054906101000a90046001600160a01b03166001600160a01b031663526003446040518163ffffffff1660e01b815260040160206040518083038186803b158015611be257600080fd5b505afa158015611bf6573d6000803e3d6000fd5b505050506040513d6020811015611c0c57600080fd5b50516001600160a01b038781169116148015611c26575082155b15611d2c57600160009054906101000a90046001600160a01b03166001600160a01b031663526003446040518163ffffffff1660e01b815260040160206040518083038186803b158015611c7957600080fd5b505afa158015611c8d573d6000803e3d6000fd5b505050506040513d6020811015611ca357600080fd5b50516040805163a9059cbb60e01b81526000600482018190526024820188905291516001600160a01b039093169263a9059cbb92604480840193602093929083900390910190829087803b158015611cfa57600080fd5b505af1158015611d0e573d6000803e3d6000fd5b505050506040513d6020811015611d2457600080fd5b50611db09050565b856001600160a01b031663a9059cbb8b866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015611d8357600080fd5b505af1158015611d97573d6000803e3d6000fd5b505050506040513d6020811015611dad57600080fd5b50505b50505050505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526116bb908490612037565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611e68908590612037565b50505050565b6001600160a01b0381166000908152600660205260408120905b6008548110156116bb576001600160a01b038316600090815260096020908152604080832084845290915290205460ff16611f33576001600160a01b03831660009081526009602090815260408083208484529091528120805460ff1916600117905560088054611efe919084908110610bc657fe5b9050611f3160088381548110611f1057fe5b60009182526020909120600390910201546001600160a01b031685836120e8565b505b600101611e88565b60008183611fc75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611f8c578181015183820152602001611f74565b50505050905090810190601f168015611fb95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611fd357fe5b0495945050505050565b6000818484111561202f5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315611f8c578181015183820152602001611f74565b505050900390565b606061208c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122949092919063ffffffff16565b8051909150156116bb578080602001905160208110156120ab57600080fd5b50516116bb5760405162461bcd60e51b815260040180806020018281038252602a8152602001806124ba602a913960400191505060405180910390fd5b6000836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561213757600080fd5b505afa15801561214b573d6000803e3d6000fd5b505050506040513d602081101561216157600080fd5b50519050801580612170575081155b1561217b57506116bb565b81811061220b57836001600160a01b031663a9059cbb84846040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156121d957600080fd5b505af11580156121ed573d6000803e3d6000fd5b505050506040513d602081101561220357600080fd5b50611e689050565b836001600160a01b031663a9059cbb84836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561226257600080fd5b505af1158015612276573d6000803e3d6000fd5b505050506040513d602081101561228c57600080fd5b505050505050565b60606122a384846000856122ab565b949350505050565b60606122b685612418565b612307576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106123465780518252601f199092019160209182019101612327565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146123a8576040519150601f19603f3d011682016040523d82523d6000602084013e6123ad565b606091505b509150915081156123c15791506122a39050565b8051156123d15780518082602001fd5b60405162461bcd60e51b8152602060048201818152865160248401528651879391928392604401919085019080838360008315611f8c578181015183820152602001611f74565b3b151590565b6040518060800160405280600081526020016000815260200160008152602001600081525090565b604051806060016040528060006001600160a01b031681526020016000815260200160008152509056fe7374617274696e67426c6f636b2073686f756c642062652067726561746572207468616e206e6f77536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220a674f3126eea91b988f39151b48d1b491c2af3a90737b312e8d933ed92b64ad864736f6c634300060c00337374617274696e67426c6f636b2073686f756c642062652067726561746572207468616e206e6f774f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a26469706673582212207aaf137894ed3cdad215af2347bf5a1998346cc3fe8b5cf46575bc127f5f300164736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c0ba369c8db6eb3924965e5c4fd0b4c1b91e305f0000000000000000000000005e977851f7a0a094d802fc072b743b2d1ca6b9cc000000000000000000000000fbeea1c75e4c4465cb2fccc9c6d6afe984558e20
-----Decoded View---------------
Arg [0] : _duckTokenAddress (address): 0xC0bA369c8Db6eB3924965e5c4FD0b4C1B91e305F
Arg [1] : _devAddress (address): 0x5E977851f7A0A094D802FC072b743b2D1Ca6b9cC
Arg [2] : _ddimTokenAddress (address): 0xFbEEa1C75E4c4465CB2FCCc9c6d6afe984558E20
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000c0ba369c8db6eb3924965e5c4fd0b4c1b91e305f
Arg [1] : 0000000000000000000000005e977851f7a0a094d802fc072b743b2d1ca6b9cc
Arg [2] : 000000000000000000000000fbeea1c75e4c4465cb2fccc9c6d6afe984558e20
Deployed Bytecode Sourcemap
45763:1624:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45892:25;;;:::i;:::-;;;;-1:-1:-1;;;;;45892:25:0;;;;;;;;;;;;;;47262:122;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;47262:122:0;;;;;;;;:::i;:::-;;45924:31;;;:::i;2100:148::-;;;:::i;1458:79::-;;;:::i;46765:179::-;;;;;;;;;;;;;;;;-1:-1:-1;46765:179:0;;;;;;;;;;;;;;;;;:::i;47017:190::-;;;;;;;;;;;;;;;;-1:-1:-1;47017:190:0;;;-1:-1:-1;;;;;47017:190:0;;;;;;;;;;;;;;;;;;;:::i;45866:19::-;;;;;;;;;;;;;;;;-1:-1:-1;45866:19:0;;:::i;46371:301::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46371:301:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46371:301:0;;;;;;;;-1:-1:-1;46371:301:0;;-1:-1:-1;;46371:301:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46371:301:0;;-1:-1:-1;46371:301:0;;-1:-1:-1;;;;;46371:301:0:i;45993:39::-;;;;;;;;;;;;;;;;-1:-1:-1;45993:39:0;-1:-1:-1;;;;;45993:39:0;;:::i;:::-;;;;;;;;;;;;;;;;;;45821:21;;;:::i;2403:244::-;;;;;;;;;;;;;;;;-1:-1:-1;2403:244:0;-1:-1:-1;;;;;2403:244:0;;:::i;45892:25::-;;;-1:-1:-1;;;;;45892:25:0;;:::o;47262:122::-;47328:10;47320:19;;;;:7;:19;;;;;;;;47312:42;;;;;-1:-1:-1;;;47312:42:0;;;;;;;;;;;;-1:-1:-1;;;47312:42:0;;;;;;;;;;;;;;;47359:4;;:20;;;-1:-1:-1;;;47359:20:0;;-1:-1:-1;;;;;47359:20:0;;;;;;;;;;;;;;;:4;;;;;:9;;:20;;;;;:4;;:20;;;;;;;:4;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47262:122;;:::o;45924:31::-;;;-1:-1:-1;;;;;45924:31:0;;:::o;2100:148::-;1680:12;:10;:12::i;:::-;1670:6;;-1:-1:-1;;;;;1670:6:0;;;:22;;;1662:67;;;;;-1:-1:-1;;;1662:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1662:67:0;;;;;;;;;;;;;;;2207:1:::1;2191:6:::0;;2170:40:::1;::::0;-1:-1:-1;;;;;2191:6:0;;::::1;::::0;2170:40:::1;::::0;2207:1;;2170:40:::1;2238:1;2221:19:::0;;-1:-1:-1;;;;;;2221:19:0::1;::::0;;2100:148::o;1458:79::-;1496:7;1523:6;-1:-1:-1;;;;;1523:6:0;1458:79;:::o;46765:179::-;1680:12;:10;:12::i;:::-;1670:6;;-1:-1:-1;;;;;1670:6:0;;;:22;;;1662:67;;;;;-1:-1:-1;;;1662:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1662:67:0;;;;;;;;;;;;;;;46875:5:::1;46881:9;46875:16;;;;;;;;;::::0;;;::::1;::::0;;::::1;::::0;:64:::1;::::0;;-1:-1:-1;;;46875:64:0;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46875:16:0;;::::1;::::0;:26:::1;::::0;:64;;;;;;;;;;:16;;:64;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;46765:179:::0;;;;:::o;47017:190::-;1680:12;:10;:12::i;:::-;1670:6;;-1:-1:-1;;;;;1670:6:0;;;:22;;;1662:67;;;;;-1:-1:-1;;;1662:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1662:67:0;;;;;;;;;;;;;;;47137:5:::1;47143:9;47137:16;;;;;;;;;::::0;;;::::1;::::0;;::::1;::::0;:65:::1;::::0;;-1:-1:-1;;;47137:65:0;;-1:-1:-1;;;;;47137:65:0;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;;;;;:16;;;::::1;::::0;:27:::1;::::0;:65;;;;;;;;;;;:16;;:65;::::1;;::::0;::::1;;;;::::0;::::1;45866:19:::0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;45866:19:0;;-1:-1:-1;45866:19:0;:::o;46371:301::-;1680:12;:10;:12::i;:::-;1670:6;;-1:-1:-1;;;;;1670:6:0;;;:22;;;1662:67;;;;;-1:-1:-1;;;1662:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1662:67:0;;;;;;;;;;;;;;;46500:9:::1;46521:7;46530:13;46545:6;46553:15;46512:57;;;;;:::i;:::-;;;-1:-1:-1::0;;;;;46512:57:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;46574:5:0::1;:16:::0;;::::1;::::0;;::::1;::::0;;;;::::1;::::0;;-1:-1:-1;;;;;;46574:16:0::1;-1:-1:-1::0;;;;;46574:16:0;;::::1;::::0;;::::1;::::0;;;-1:-1:-1;46597:22:0;;;:7:::1;46574:16;46597:22:::0;;;;;;;;:29;;-1:-1:-1;;46597:29:0::1;::::0;;::::1;::::0;;;46636:31;;;;::::1;::::0;;;46574:16;;-1:-1:-1;46574:16:0;46636:31:::1;::::0;;;;;;;;;::::1;1740:1;46371:301:::0;;;;:::o;45993:39::-;;;;;;;;;;;;;;;:::o;45821:21::-;;;-1:-1:-1;;;;;45821:21:0;;:::o;2403:244::-;1680:12;:10;:12::i;:::-;1670:6;;-1:-1:-1;;;;;1670:6:0;;;:22;;;1662:67;;;;;-1:-1:-1;;;1662:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1662:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;2492:22:0;::::1;2484:73;;;;-1:-1:-1::0;;;2484:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2594:6;::::0;;2573:38:::1;::::0;-1:-1:-1;;;;;2573:38:0;;::::1;::::0;2594:6;::::1;::::0;2573:38:::1;::::0;::::1;2622:6;:17:::0;;-1:-1:-1;;;;;;2622:17:0::1;-1:-1:-1::0;;;;;2622:17:0;;;::::1;::::0;;;::::1;::::0;;2403:244::o;603:106::-;691:10;603:106;:::o;-1:-1:-1:-;;;;;;;;:::o
Swarm Source
ipfs://7aaf137894ed3cdad215af2347bf5a1998346cc3fe8b5cf46575bc127f5f3001
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.