Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00Latest 25 from a total of 44 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Transfer Ownersh... | 14837917 | 1386 days ago | IN | 0 ETH | 0.00103293 | ||||
| Set Free Partici... | 14278787 | 1473 days ago | IN | 0 ETH | 0.0019672 | ||||
| Set Free Partici... | 14278787 | 1473 days ago | IN | 0 ETH | 0.0019672 | ||||
| Set Free Partici... | 14278787 | 1473 days ago | IN | 0 ETH | 0.00197063 | ||||
| Set Free Partici... | 14278787 | 1473 days ago | IN | 0 ETH | 0.00197063 | ||||
| Set Free Partici... | 13961546 | 1522 days ago | IN | 0 ETH | 0.00522866 | ||||
| Set Free Partici... | 13961541 | 1522 days ago | IN | 0 ETH | 0.00472183 | ||||
| Set Fee Controll... | 13961537 | 1522 days ago | IN | 0 ETH | 0.00532564 | ||||
| Set Unrestricted... | 13961535 | 1522 days ago | IN | 0 ETH | 0.00559211 | ||||
| Set Unrestricted... | 13961533 | 1522 days ago | IN | 0 ETH | 0.00559618 | ||||
| Set Free Partici... | 13910428 | 1530 days ago | IN | 0 ETH | 0.00348697 | ||||
| Set Free Partici... | 13910424 | 1530 days ago | IN | 0 ETH | 0.00379311 | ||||
| Set Free Partici... | 13910421 | 1530 days ago | IN | 0 ETH | 0.00370374 | ||||
| Set Fee Controll... | 13910418 | 1530 days ago | IN | 0 ETH | 0.00412335 | ||||
| Set Unrestricted... | 13910415 | 1530 days ago | IN | 0 ETH | 0.00394945 | ||||
| Set Unrestricted... | 13910411 | 1530 days ago | IN | 0 ETH | 0.00422979 | ||||
| Set Free Partici... | 13884398 | 1534 days ago | IN | 0 ETH | 0.00335377 | ||||
| Set Free Partici... | 13861121 | 1538 days ago | IN | 0 ETH | 0.00287487 | ||||
| Set Unrestricted... | 13854372 | 1539 days ago | IN | 0 ETH | 0.00199818 | ||||
| Set Free Partici... | 13854368 | 1539 days ago | IN | 0 ETH | 0.00213161 | ||||
| Set Pool Tax Rat... | 12641804 | 1728 days ago | IN | 0 ETH | 0.00066891 | ||||
| Set Free Partici... | 12617593 | 1732 days ago | IN | 0 ETH | 0.00068614 | ||||
| Set Parameters | 12528475 | 1746 days ago | IN | 0 ETH | 0.00083467 | ||||
| Set Pool Tax Rat... | 12528414 | 1746 days ago | IN | 0 ETH | 0.00082817 | ||||
| Set Pool Tax Rat... | 12405546 | 1765 days ago | IN | 0 ETH | 0.00464027 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
RootKitTransferGate
Compiler Version
v0.7.4+commit.3f05b770
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
pragma experimental ABIEncoderV2;
/* ROOTKIT:
A transfer gate (GatedERC20) for use with RootKit tokens
It:
Allows customization of tax and burn rates
Allows transfer to/from approved UniswapV2 pools
Disallows transfer to/from non-approved UniswapV2 pools
Allows transfer to/from anywhere else
Allows for free transfers if permission granted
Allows for unrestricted transfers if permission granted
Provides a safe and tax-free liquidity adding function
*/
import "./Owned.sol";
import "./IUniswapV2Factory.sol";
import "./IERC20.sol";
import "./IUniswapV2Pair.sol";
import "./RootKit.sol";
import "./Address.sol";
import "./IUniswapV2Router02.sol";
import "./SafeERC20.sol";
import "./SafeMath.sol";
import "./TokensRecoverable.sol";
import "./ITransferGate.sol";
struct RootKitTransferGateParameters
{
address dev;
uint16 stakeRate; // 10000 = 100%
uint16 burnRate; // 10000 = 100%
uint16 devRate; // 10000 = 100%
address stake;
}
contract RootKitTransferGate is TokensRecoverable, ITransferGate
{
using Address for address;
using SafeERC20 for IERC20;
using SafeMath for uint256;
enum AddressState
{
Unknown,
NotPool,
DisallowedPool,
AllowedPool
}
RootKitTransferGateParameters public parameters;
IUniswapV2Router02 public uniswapV2Router;
IUniswapV2Factory public uniswapV2Factory;
RootKit immutable rootKit;
mapping (address => AddressState) public addressStates;
IERC20[] public allowedPoolTokens;
bool public unrestricted;
mapping (address => bool) public unrestrictedControllers;
mapping (address => bool) public feeControllers;
mapping (address => bool) public freeParticipantControllers;
mapping (address => bool) public freeParticipant;
mapping (address => uint16) public poolsTaxRates;
mapping (address => uint256) public liquiditySupply;
address public mustUpdate;
uint16 public dumpTaxStartRate;
uint256 public dumpTaxDurationInSeconds;
uint256 public dumpTaxEndTimestamp;
constructor(RootKit _rootKit, IUniswapV2Router02 _uniswapV2Router)
{
rootKit = _rootKit;
uniswapV2Router = _uniswapV2Router;
uniswapV2Factory = IUniswapV2Factory(_uniswapV2Router.factory());
}
function setRouterAndFactory(IUniswapV2Router02 _uniswapV2Router) public ownerOnly()
{
uniswapV2Router = _uniswapV2Router;
uniswapV2Factory = IUniswapV2Factory(_uniswapV2Router.factory());
}
function allowedPoolTokensCount() public view returns (uint256) { return allowedPoolTokens.length; }
function setUnrestrictedController(address unrestrictedController, bool allow) public ownerOnly()
{
unrestrictedControllers[unrestrictedController] = allow;
}
function setFreeParticipantController(address freeParticipantController, bool allow) public ownerOnly()
{
freeParticipantControllers[freeParticipantController] = allow;
}
function setFeeControllers(address feeController, bool allow) public ownerOnly()
{
feeControllers[feeController] = allow;
}
function setFreeParticipant(address participant, bool free) public
{
require (freeParticipantControllers[msg.sender] || msg.sender == owner, "Not an owner or fee controller");
freeParticipant[participant] = free;
}
function setUnrestricted(bool _unrestricted) public
{
require (unrestrictedControllers[msg.sender], "Not an unrestricted controller");
unrestricted = _unrestricted;
}
function setParameters(address _dev, address _stake, uint16 _stakeRate, uint16 _burnRate, uint16 _devRate) public ownerOnly()
{
require (_stakeRate <= 10000 && _burnRate <= 10000 && _devRate <= 10000 && _stakeRate + _burnRate + _devRate <= 10000, "> 100%");
require (_dev != address(0) && _stake != address(0));
require (_stakeRate <= 500 && _burnRate <= 500 && _devRate <= 10, "Sanity");
RootKitTransferGateParameters memory _parameters;
_parameters.dev = _dev;
_parameters.stakeRate = _stakeRate;
_parameters.burnRate = _burnRate;
_parameters.devRate = _devRate;
_parameters.stake = _stake;
parameters = _parameters;
}
function setPoolTaxRate(address pool, uint16 taxRate) public
{
require (feeControllers[msg.sender] || msg.sender == owner, "Not an owner or fee controller");
require (taxRate <= 10000, "Fee rate must be less than or equal to 100%");
poolsTaxRates[pool] = taxRate;
}
function setDumpTax(uint16 startTaxRate, uint256 durationInSeconds) public
{
require (feeControllers[msg.sender] || msg.sender == owner, "Not an owner or fee controller");
require (startTaxRate <= 2500, "Dump tax rate must be less than or equal to 25%");
dumpTaxStartRate = startTaxRate;
dumpTaxDurationInSeconds = durationInSeconds;
dumpTaxEndTimestamp = block.timestamp + durationInSeconds;
}
function getDumpTax() public view returns (uint256)
{
if (block.timestamp >= dumpTaxEndTimestamp)
{
return 0;
}
return dumpTaxStartRate*(dumpTaxEndTimestamp - block.timestamp)*1e18/dumpTaxDurationInSeconds/1e18;
}
function allowPool(IERC20 token) public ownerOnly()
{
address pool = uniswapV2Factory.getPair(address(rootKit), address(token));
if (pool == address(0)) {
pool = uniswapV2Factory.createPair(address(rootKit), address(token));
}
AddressState state = addressStates[pool];
require (state != AddressState.AllowedPool, "Already allowed");
addressStates[pool] = AddressState.AllowedPool;
allowedPoolTokens.push(token);
liquiditySupply[pool] = IERC20(pool).totalSupply();
}
function safeAddLiquidity(IERC20 token, uint256 tokenAmount, uint256 rootKitAmount, uint256 minTokenAmount, uint256 minRootKitAmount, address to, uint256 deadline) public
returns (uint256 rootKitUsed, uint256 tokenUsed, uint256 liquidity)
{
address pool = uniswapV2Factory.getPair(address(rootKit), address(token));
require (pool != address(0) && addressStates[pool] == AddressState.AllowedPool, "Pool not approved");
require (!unrestricted);
unrestricted = true;
uint256 tokenBalance = token.balanceOf(address(this));
token.safeTransferFrom(msg.sender, address(this), tokenAmount);
rootKit.transferFrom(msg.sender, address(this), rootKitAmount);
rootKit.approve(address(uniswapV2Router), rootKitAmount);
token.safeApprove(address(uniswapV2Router), tokenAmount);
(rootKitUsed, tokenUsed, liquidity) = uniswapV2Router.addLiquidity(address(rootKit), address(token), rootKitAmount, tokenAmount, minRootKitAmount, minTokenAmount, to, deadline);
liquiditySupply[pool] = IERC20(pool).totalSupply();
if (mustUpdate == pool) {
mustUpdate = address(0);
}
if (rootKitUsed < rootKitAmount) {
rootKit.transfer(msg.sender, rootKitAmount - rootKitUsed);
}
tokenBalance = token.balanceOf(address(this)).sub(tokenBalance); // we do it this way in case there's a burn
if (tokenBalance > 0) {
token.safeTransfer(msg.sender, tokenBalance);
}
unrestricted = false;
}
function handleTransfer(address, address from, address to, uint256 amount) external override
returns (uint256 burn, TransferGateTarget[] memory targets)
{
{
address mustUpdateAddress = mustUpdate;
if (mustUpdateAddress != address(0)) {
mustUpdate = address(0);
uint256 newSupply = IERC20(mustUpdateAddress).totalSupply();
uint256 oldSupply = liquiditySupply[mustUpdateAddress];
if (newSupply != oldSupply) {
liquiditySupply[mustUpdateAddress] = unrestricted ? newSupply : (newSupply > oldSupply ? newSupply : oldSupply);
}
}
}
{
AddressState fromState = addressStates[from];
AddressState toState = addressStates[to];
if (fromState != AddressState.AllowedPool && toState != AddressState.AllowedPool) {
if (fromState == AddressState.Unknown) { fromState = detectState(from); }
if (toState == AddressState.Unknown) { toState = detectState(to); }
require (unrestricted || (fromState != AddressState.DisallowedPool && toState != AddressState.DisallowedPool), "Pool not approved");
}
if (toState == AddressState.AllowedPool) {
mustUpdate = to;
}
if (fromState == AddressState.AllowedPool) {
if (unrestricted) {
liquiditySupply[from] = IERC20(from).totalSupply();
}
require (IERC20(from).totalSupply() >= liquiditySupply[from], "Cannot remove liquidity");
}
}
if (unrestricted || freeParticipant[from] || freeParticipant[to]) {
return (0, new TransferGateTarget[](0));
}
RootKitTransferGateParameters memory params = parameters;
burn = amount * (poolsTaxRates[to] > params.burnRate ? poolsTaxRates[to] + getDumpTax() : params.burnRate) / 10000;
targets = new TransferGateTarget[]((params.devRate > 0 ? 1 : 0) + (params.stakeRate > 0 ? 1 : 0));
uint256 index = 0;
if (params.stakeRate > 0) {
targets[index].destination = params.stake;
targets[index++].amount = amount * params.stakeRate / 10000;
}
if (params.devRate > 0) {
targets[index].destination = params.dev;
targets[index].amount = amount * params.devRate / 10000;
}
}
function setAddressState(address a, AddressState state) public ownerOnly()
{
addressStates[a] = state;
}
function detectState(address a) public returns (AddressState state)
{
state = AddressState.NotPool;
if (a.isContract()) {
try this.throwAddressState(a)
{
assert(false);
}
catch Error(string memory result) {
// if (bytes(result).length == 1) {
// state = AddressState.NotPool;
// }
if (bytes(result).length == 2) {
state = AddressState.DisallowedPool;
}
}
catch {
}
}
addressStates[a] = state;
return state;
}
// Not intended for external consumption
// Always throws
// We want to call functions to probe for things, but don't want to open ourselves up to
// possible state-changes
// So we return a value by reverting with a message
function throwAddressState(address a) external view
{
try IUniswapV2Pair(a).factory() returns (address factory)
{
// don't care if it's some crappy alt-amm
if (factory == address(uniswapV2Factory)) {
// these checks for token0/token1 are just for additional
// certainty that we're interacting with a uniswap pair
try IUniswapV2Pair(a).token0() returns (address token0)
{
if (token0 == address(rootKit)) {
revert("22");
}
try IUniswapV2Pair(a).token1() returns (address token1)
{
if (token1 == address(rootKit)) {
revert("22");
}
}
catch {
}
}
catch {
}
}
}
catch {
}
revert("1");
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: value }(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.3._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.3._
*/
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./IERC20.sol";
import "./SafeMath.sol";
import "./SafeERC20.sol";
import "./Address.sol";
contract DevSplitter
{
using SafeMath for uint256;
using SafeERC20 for IERC20;
using Address for address;
mapping (IERC20 => uint256) public totalPaid;
mapping (IERC20 => mapping(address => uint256)) public totalPaidToPayee;
mapping (address => uint256) public share;
uint256 immutable public totalShares;
constructor(address[] memory payees, uint256[] memory shares)
{
require (payees.length == shares.length && payees.length > 0);
uint256 total = 0;
for (uint256 x=0; x<payees.length; ++x) {
address payee = payees[x];
uint256 sh = shares[x];
require (payee != address(0) && sh > 0 && share[payee] == 0);
require (!payee.isContract(), "Cannot pay a contract");
total = total.add(sh);
share[payee] = sh;
}
totalShares = total;
}
receive() external payable {}
function owed(IERC20 token, address payee) public view returns (uint256) {
uint256 balance = address(token) == address(0) ? address(this).balance : token.balanceOf(address(this));
uint256 payeeShare = balance.add(totalPaid[token]).mul(share[payee]) / totalShares;
uint256 paid = totalPaidToPayee[token][payee];
return payeeShare > paid ? payeeShare - paid : 0;
}
function pay(IERC20 token, address payable payee) public {
uint256 toPay = owed(token, payee);
require (toPay > 0, "Nothing to pay");
totalPaid[token] = totalPaid[token].add(toPay);
totalPaidToPayee[token][payee] = totalPaidToPayee[token][payee].add(toPay);
if (address(token) == address(0)) {
(bool success,) = payee.call{ value: toPay }("");
require (success, "Transfer failed");
}
else {
token.safeTransfer(payee, toPay);
}
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity >=0.6.0 <0.8.0;
/**
* @dev Library for managing
* https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
* types.
*
* Sets have the following properties:
*
* - Elements are added, removed, and checked for existence in constant time
* (O(1)).
* - Elements are enumerated in O(n). No guarantees are made on the ordering.
*
* ```
* contract Example {
* // Add the library methods
* using EnumerableSet for EnumerableSet.AddressSet;
*
* // Declare a set state variable
* EnumerableSet.AddressSet private mySet;
* }
* ```
*
* As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
* and `uint256` (`UintSet`) are supported.
*/
library EnumerableSet {
// To implement this library for multiple types with as little code
// repetition as possible, we write it in terms of a generic Set type with
// bytes32 values.
// The Set implementation uses private functions, and user-facing
// implementations (such as AddressSet) are just wrappers around the
// underlying Set.
// This means that we can only create new EnumerableSets for types that fit
// in bytes32.
struct Set {
// Storage of set values
bytes32[] _values;
// Position of the value in the `values` array, plus 1 because index 0
// means a value is not in the set.
mapping (bytes32 => uint256) _indexes;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function _add(Set storage set, bytes32 value) private returns (bool) {
if (!_contains(set, value)) {
set._values.push(value);
// The value is stored at length-1, but we add 1 to all indexes
// and use 0 as a sentinel value
set._indexes[value] = set._values.length;
return true;
} else {
return false;
}
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function _remove(Set storage set, bytes32 value) private returns (bool) {
// We read and store the value's index to prevent multiple reads from the same storage slot
uint256 valueIndex = set._indexes[value];
if (valueIndex != 0) { // Equivalent to contains(set, value)
// To delete an element from the _values array in O(1), we swap the element to delete with the last one in
// the array, and then remove the last element (sometimes called as 'swap and pop').
// This modifies the order of the array, as noted in {at}.
uint256 toDeleteIndex = valueIndex - 1;
uint256 lastIndex = set._values.length - 1;
// When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
// so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.
bytes32 lastvalue = set._values[lastIndex];
// Move the last value to the index where the value to delete is
set._values[toDeleteIndex] = lastvalue;
// Update the index for the moved value
set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based
// Delete the slot where the moved value was stored
set._values.pop();
// Delete the index for the deleted slot
delete set._indexes[value];
return true;
} else {
return false;
}
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function _contains(Set storage set, bytes32 value) private view returns (bool) {
return set._indexes[value] != 0;
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function _length(Set storage set) private view returns (uint256) {
return set._values.length;
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function _at(Set storage set, uint256 index) private view returns (bytes32) {
require(set._values.length > index, "EnumerableSet: index out of bounds");
return set._values[index];
}
// Bytes32Set
struct Bytes32Set {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, value);
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, index);
}
// AddressSet
struct AddressSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(AddressSet storage set, address value) internal returns (bool) {
return _add(set._inner, bytes32(uint256(value)));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(AddressSet storage set, address value) internal returns (bool) {
return _remove(set._inner, bytes32(uint256(value)));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(AddressSet storage set, address value) internal view returns (bool) {
return _contains(set._inner, bytes32(uint256(value)));
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(AddressSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(AddressSet storage set, uint256 index) internal view returns (address) {
return address(uint256(_at(set._inner, index)));
}
// UintSet
struct UintSet {
Set _inner;
}
/**
* @dev Add a value to a set. O(1).
*
* Returns true if the value was added to the set, that is if it was not
* already present.
*/
function add(UintSet storage set, uint256 value) internal returns (bool) {
return _add(set._inner, bytes32(value));
}
/**
* @dev Removes a value from a set. O(1).
*
* Returns true if the value was removed from the set, that is if it was
* present.
*/
function remove(UintSet storage set, uint256 value) internal returns (bool) {
return _remove(set._inner, bytes32(value));
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(UintSet storage set, uint256 value) internal view returns (bool) {
return _contains(set._inner, bytes32(value));
}
/**
* @dev Returns the number of values on the set. O(1).
*/
function length(UintSet storage set) internal view returns (uint256) {
return _length(set._inner);
}
/**
* @dev Returns the value stored at position `index` in the set. O(1).
*
* Note that there are no guarantees on the ordering of values inside the
* array, and it may change when more values are added or removed.
*
* Requirements:
*
* - `index` must be strictly less than {length}.
*/
function at(UintSet storage set, uint256 index) internal view returns (uint256) {
return uint256(_at(set._inner, index));
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
Simplified thanks to higher solidity version
But same functionality
*/
import "./IERC20.sol";
import "./SafeMath.sol";
/**
* @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}.
*/
abstract contract ERC20 is IERC20
{
using SafeMath for uint256;
mapping (address => uint256) internal _balanceOf;
mapping (address => mapping (address => uint256)) public override allowance;
uint256 public override totalSupply;
string public override name;
string public override symbol;
uint8 public override decimals = 18;
/**
* @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)
{
name = _name;
symbol = _symbol;
}
function balanceOf(address a) public virtual override view returns (uint256) { return _balanceOf[a]; }
/**
* @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(msg.sender, recipient, amount);
return true;
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(msg.sender, spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
uint256 oldAllowance = allowance[sender][msg.sender];
if (oldAllowance != uint256(-1)) {
_approve(sender, msg.sender, oldAllowance.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(msg.sender, spender, allowance[msg.sender][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(msg.sender, spender, allowance[msg.sender][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);
_balanceOf[sender] = _balanceOf[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balanceOf[recipient] = _balanceOf[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);
_balanceOf[account] = _balanceOf[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);
_balanceOf[account] = _balanceOf[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");
allowance[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 { }
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
A wrapped token, where the underlying token can be swept
and used for other purposes
Governed by an installable floor calculator contract
Sweepable by designated sweeper addresses
*/
import "./IERC20.sol";
import "./SafeERC20.sol";
import "./Owned.sol";
import "./IFloorCalculator.sol";
import "./WrappedERC20.sol";
import "./IERC31337.sol";
contract ERC31337 is WrappedERC20, IERC31337
{
using SafeERC20 for IERC20;
IFloorCalculator public override floorCalculator;
mapping (address => bool) public override sweepers;
constructor(IERC20 _wrappedToken, string memory _name, string memory _symbol)
WrappedERC20(_wrappedToken, _name, _symbol)
{
}
function setFloorCalculator(IFloorCalculator _floorCalculator) public override ownerOnly()
{
floorCalculator = _floorCalculator;
}
function setSweeper(address sweeper, bool allow) public override ownerOnly()
{
sweepers[sweeper] = allow;
}
function sweepFloor(address to) public override returns (uint256 amountSwept)
{
require (to != address(0));
require (sweepers[msg.sender], "Sweepers only");
amountSwept = floorCalculator.calculateSubFloor(wrappedToken, this);
if (amountSwept > 0) {
wrappedToken.safeTransfer(to, amountSwept);
}
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
pragma experimental ABIEncoderV2;
/* ROOTKIT:
A standard ERC20 with an extra hook: An installable transfer
gate allowing for token tax and burn on transfer
*/
import "./ERC20.sol";
import "./ITransferGate.sol";
import "./Owned.sol";
import "./SafeMath.sol";
import "./TokensRecoverable.sol";
import "./IGatedERC20.sol";
abstract contract GatedERC20 is ERC20, TokensRecoverable, IGatedERC20
{
using SafeMath for uint256;
ITransferGate public override transferGate;
constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol)
{
}
function setTransferGate(ITransferGate _transferGate) public override ownerOnly()
{
transferGate = _transferGate;
}
function _transfer(address sender, address recipient, uint256 amount) internal virtual override
{
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
ITransferGate _transferGate = transferGate;
uint256 remaining = amount;
if (address(_transferGate) != address(0)) {
(uint256 burn, TransferGateTarget[] memory targets) = _transferGate.handleTransfer(msg.sender, sender, recipient, amount);
if (burn > 0) {
amount = remaining = remaining.sub(burn, "Burn too much");
_burn(sender, burn);
}
for (uint256 x = 0; x < targets.length; ++x) {
(address dest, uint256 amt) = (targets[x].destination, targets[x].amount);
remaining = remaining.sub(amt, "Transfer too much");
_balanceOf[dest] = _balanceOf[dest].add(amt);
}
}
_balanceOf[sender] = _balanceOf[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balanceOf[recipient] = _balanceOf[recipient].add(remaining);
emit Transfer(sender, recipient, amount);
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
interface IERC20
{
event Transfer(address indexed _from, address indexed _to, uint256 _value);
event Approval(address indexed _owner, address indexed _spender, uint256 _value);
function totalSupply() external view returns (uint256);
function balanceOf(address _account) external view returns (uint256);
function transfer(address _recipient, uint256 _amount) external returns (bool);
function allowance(address _owner, address _spender) external view returns (uint256);
function approve(address _spender, uint256 _amount) external returns (bool);
function transferFrom(address _sender, address _recipient, uint256 _amount) external returns (bool);
function name() external view returns (string memory);
function symbol() external view returns (string memory);
function decimals() external view returns (uint8);
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./IWrappedERC20.sol";
import "./IFloorCalculator.sol";
interface IERC31337 is IWrappedERC20
{
function floorCalculator() external view returns (IFloorCalculator);
function sweepers(address _sweeper) external view returns (bool);
function setFloorCalculator(IFloorCalculator _floorCalculator) external;
function setSweeper(address _sweeper, bool _allow) external;
function sweepFloor(address _to) external returns (uint256 amountSwept);
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./IERC20.sol";
interface IFloorCalculator
{
function calculateSubFloor(IERC20 wrappedToken, IERC20 backingToken) external view returns (uint256);
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./IERC20.sol";
import "./ITransferGate.sol";
interface IGatedERC20 is IERC20
{
function transferGate() external view returns (ITransferGate);
function setTransferGate(ITransferGate _transferGate) external;
}// SPDX-License-Identifier: P-P-P-PONZO!!!
pragma solidity ^0.7.4;
interface ILiquidityController
{
function balancePriceBase(uint256 amount) external;
function balancePriceElite(uint256 amount) external;
function removeBuyAndTax(uint256 amount, address token, uint16 tax, uint256 time) external;
function buyAndTax(address token, uint256 amountToSpend, uint16 tax, uint256 time) external;
function sweepFloor() external;
function zapEliteToBase(uint256 liquidity) external;
function zapBaseToElite(uint256 liquidity) external;
function wrapToElite(uint256 baseAmount) external;
function unwrapElite(uint256 eliteAmount) external;
function addLiquidity(address eliteOrBase, uint256 baseAmount) external;
function removeLiquidity(address eliteOrBase, uint256 tokens) external;
function buyRooted(address token, uint256 amountToSpend) external;
function sellRooted(address token, uint256 amountToSpend) external;
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
interface IOwned
{
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
function owner() external view returns (address);
function transferOwnership(address newOwner) external;
function claimOwnership() external;
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
interface IRootKitDistribution
{
function distributionComplete() external view returns (bool);
function distribute() external payable;
function claim(address _to, uint256 _contribution) external;
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
pragma experimental ABIEncoderV2;
import "./IOwned.sol";
import "./IRootKitDistribution.sol";
interface IStoneface
{
event PendingOwnershipTransfer(IOwned target, address newOwner, uint256 when);
struct TransferOwnership
{
uint256 when;
IOwned target;
address newOwner;
}
function delay() external view returns (uint256);
function pendingTransferOwnership(uint256 index) external view returns (TransferOwnership memory);
function pendingTransferOwnershipCount() external view returns (uint256);
function callTransferOwnership(IOwned target, address newOwner) external;
function callTransferOwnershipNow(uint256 index) external;
function callClaimOwnership(IOwned target) external;
function rootKitDistribution() external view returns (IRootKitDistribution);
function watchDistribution(IRootKitDistribution _rootKitDistribution) external;
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./IERC20.sol";
interface ITokensRecoverable
{
function recoverTokens(IERC20 token) external;
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
pragma experimental ABIEncoderV2;
struct TransferGateTarget
{
address destination;
uint256 amount;
}
interface ITransferGate
{
function handleTransfer(address msgSender, address from, address to, uint256 amount) external
returns (uint256 burn, TransferGateTarget[] memory targets);
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
interface IUniswapV2Factory {
event PairCreated(address indexed token0, address indexed token1, address pair, uint);
function feeTo() external view returns (address);
function feeToSetter() external view returns (address);
function getPair(address tokenA, address tokenB) external view returns (address pair);
function allPairs(uint) external view returns (address pair);
function allPairsLength() external view returns (uint);
function createPair(address tokenA, address tokenB) external returns (address pair);
function setFeeTo(address) external;
function setFeeToSetter(address) external;
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
interface IUniswapV2Pair {
event Approval(address indexed owner, address indexed spender, uint value);
event Transfer(address indexed from, address indexed to, uint value);
function name() external pure returns (string memory);
function symbol() external pure returns (string memory);
function decimals() external pure returns (uint8);
function totalSupply() external view returns (uint);
function balanceOf(address owner) external view returns (uint);
function allowance(address owner, address spender) external view returns (uint);
function approve(address spender, uint value) external returns (bool);
function transfer(address to, uint value) external returns (bool);
function transferFrom(address from, address to, uint value) external returns (bool);
function DOMAIN_SEPARATOR() external view returns (bytes32);
function PERMIT_TYPEHASH() external pure returns (bytes32);
function nonces(address owner) external view returns (uint);
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;
event Mint(address indexed sender, uint amount0, uint amount1);
event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
event Swap(
address indexed sender,
uint amount0In,
uint amount1In,
uint amount0Out,
uint amount1Out,
address indexed to
);
event Sync(uint112 reserve0, uint112 reserve1);
function MINIMUM_LIQUIDITY() external pure returns (uint);
function factory() external view returns (address);
function token0() external view returns (address);
function token1() external view returns (address);
function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
function price0CumulativeLast() external view returns (uint);
function price1CumulativeLast() external view returns (uint);
function kLast() external view returns (uint);
function mint(address to) external returns (uint liquidity);
function burn(address to) external returns (uint amount0, uint amount1);
function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
function skim(address to) external;
function sync() external;
function initialize(address, address) external;
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
interface IUniswapV2Router01 {
function factory() external pure returns (address);
function WETH() external pure returns (address);
function addLiquidity(
address tokenA,
address tokenB,
uint amountADesired,
uint amountBDesired,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB, uint liquidity);
function addLiquidityETH(
address token,
uint amountTokenDesired,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external payable returns (uint amountToken, uint amountETH, uint liquidity);
function removeLiquidity(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline
) external returns (uint amountA, uint amountB);
function removeLiquidityETH(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountToken, uint amountETH);
function removeLiquidityWithPermit(
address tokenA,
address tokenB,
uint liquidity,
uint amountAMin,
uint amountBMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountA, uint amountB);
function removeLiquidityETHWithPermit(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountToken, uint amountETH);
function swapExactTokensForTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapTokensForExactTokens(
uint amountOut,
uint amountInMax,
address[] calldata path,
address to,
uint deadline
) external returns (uint[] memory amounts);
function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
external
returns (uint[] memory amounts);
function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
external
payable
returns (uint[] memory amounts);
function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import './IUniswapV2Router01.sol';
interface IUniswapV2Router02 is IUniswapV2Router01 {
function removeLiquidityETHSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline
) external returns (uint amountETH);
function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
address token,
uint liquidity,
uint amountTokenMin,
uint amountETHMin,
address to,
uint deadline,
bool approveMax, uint8 v, bytes32 r, bytes32 s
) external returns (uint amountETH);
function swapExactTokensForTokensSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
function swapExactETHForTokensSupportingFeeOnTransferTokens(
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external payable;
function swapExactTokensForETHSupportingFeeOnTransferTokens(
uint amountIn,
uint amountOutMin,
address[] calldata path,
address to,
uint deadline
) external;
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./IERC20.sol";
import "./IWrappedERC20Events.sol";
interface IWETH is IERC20, IWrappedERC20Events
{
function deposit() external payable;
function withdraw(uint256 _amount) external;
}
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./IERC20.sol";
import "./IWrappedERC20Events.sol";
interface IWrappedERC20 is IERC20, IWrappedERC20Events
{
function wrappedToken() external view returns (IERC20);
function depositTokens(uint256 _amount) external;
function withdrawTokens(uint256 _amount) external;
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
interface IWrappedERC20Events
{
event Deposit(address indexed from, uint256 amount);
event Withdrawal(address indexed to, uint256 amount);
}
// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
Technically a wrapped WETH
So a wrapped wrapped ethereum
But also accepts raw ETH
Also functions exactly like WETH (deposit/withdraw/direct send)
*/
import "./ERC31337.sol";
import "./IWETH.sol";
import "./SafeMath.sol";
contract KETH is ERC31337, IWETH
{
using SafeMath for uint256;
constructor (IWETH _weth)
ERC31337(_weth, "RootKit [Wrapped ETH]", "RK:ETH")
{
}
receive() external payable
{
if (msg.sender != address(wrappedToken)) {
deposit();
}
}
function deposit() public payable override
{
uint256 amount = msg.value;
IWETH(address(wrappedToken)).deposit{ value: amount }();
_mint(msg.sender, amount);
emit Deposit(msg.sender, amount);
}
function withdraw(uint256 _amount) public override
{
_burn(msg.sender, _amount);
IWETH(address(wrappedToken)).withdraw(_amount);
emit Withdrawal(msg.sender, _amount);
(bool success,) = msg.sender.call{ value: _amount }("");
require (success, "Transfer failed");
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./Owned.sol";
import "./TokensRecoverable.sol";
import "./RootKit.sol";
import "./IERC31337.sol";
import "./IUniswapV2Router02.sol";
import "./IWETH.sol";
import "./IUniswapV2Pair.sol";
import "./IERC20.sol";
import "./RootKitTransferGate.sol";
import "./UniswapV2Library.sol";
import "./KETH.sol";
contract KethToWethLiquidityZapper is TokensRecoverable
{
IUniswapV2Router02 immutable uniswapV2Router;
IERC31337 immutable wrappedKethRootKit;
IUniswapV2Pair kethRootKit;
IUniswapV2Pair wethRootKit;
RootKit immutable rootKit;
IWETH immutable weth;
KETH immutable keth;
constructor(IUniswapV2Router02 _uniswapV2Router, IERC31337 _wrappedKethRootKit, RootKit _rootKit)
{
uniswapV2Router = _uniswapV2Router;
wrappedKethRootKit = _wrappedKethRootKit;
rootKit = _rootKit;
IUniswapV2Pair _kethRootKit = IUniswapV2Pair(address(_wrappedKethRootKit.wrappedToken()));
kethRootKit = _kethRootKit;
IWETH _weth = IWETH(_uniswapV2Router.WETH());
weth = _weth;
KETH _keth = KETH(payable(_kethRootKit.token0() == address(_rootKit) ? _kethRootKit.token1() :_kethRootKit.token0()));
keth = _keth;
wethRootKit = IUniswapV2Pair(IUniswapV2Factory(_uniswapV2Router.factory()).getPair(address(_weth), address(_rootKit)));
_kethRootKit.approve(address(_uniswapV2Router), uint256(-1));
_keth.approve(address(_uniswapV2Router), uint256(-1));
_weth.approve(address(_uniswapV2Router), uint256(-1));
_rootKit.approve(address(_uniswapV2Router), uint256(-1));
require (_kethRootKit.token0() == address(_rootKit) || _kethRootKit.token1() == address(_rootKit), "Sanity");
require (_kethRootKit.token0() != address(_weth) && _kethRootKit.token1() != address(_weth), "Sanity");
}
function go() public ownerOnly()
{
wrappedKethRootKit.sweepFloor(address(this));
uint256 liquidity = kethRootKit.balanceOf(address(this));
require (liquidity > 0, "Nothing unwrapped");
RootKitTransferGate gate = RootKitTransferGate(address(rootKit.transferGate()));
gate.setUnrestricted(true);
(uint256 amountRootKit, uint256 amountKeth) = uniswapV2Router.removeLiquidity(address(rootKit), address(keth), liquidity, 0, 0, address(this), block.timestamp);
keth.withdrawTokens(amountKeth);
(,,liquidity) = uniswapV2Router.addLiquidity(address(rootKit), address(weth), amountRootKit, amountKeth, 0, 0, address(this), block.timestamp);
require (liquidity > 0, "Nothing wrapped");
wethRootKit.transfer(msg.sender, liquidity);
uint256 balance = weth.balanceOf(address(this));
if (balance > 0) { weth.transfer(msg.sender, balance ); }
balance = keth.balanceOf(address(this));
if (balance > 0) { keth.transfer(msg.sender, balance ); }
balance = rootKit.balanceOf(address(this));
if (balance > 0) { rootKit.transfer(msg.sender, balance ); }
gate.setUnrestricted(false);
}
}// SPDX-License-Identifier: P-P-P-PONZO!!!
pragma solidity ^0.7.4;
import "./TokensRecoverable.sol";
import "./IERC31337.sol";
import "./IUniswapV2Router02.sol";
import "./IUniswapV2Pair.sol";
import "./IERC20.sol";
import "./RootKitTransferGate.sol";
import "./UniswapV2Library.sol";
import "./SafeMath.sol";
import "./ILiquidityController.sol";
import "./IFloorCalculator.sol";
contract LiquidityController is TokensRecoverable, ILiquidityController
{
using SafeMath for uint256;
IUniswapV2Router02 immutable uniswapV2Router;
IUniswapV2Factory immutable uniswapV2Factory;
IERC20 immutable rooted;
IERC20 immutable base;
IERC31337 immutable elite;
IERC20 immutable rootedEliteLP;
IERC20 immutable rootedBaseLP;
IFloorCalculator calculator;
RootKitTransferGate gate;
mapping (address => bool) public liquidityControllers;
constructor(IUniswapV2Router02 _uniswapV2Router, IERC20 _base, IERC20 _rootedToken, IERC31337 _elite, IFloorCalculator _calculator, RootKitTransferGate _gate)
{
uniswapV2Router = _uniswapV2Router;
IUniswapV2Factory _uniswapV2Factory = IUniswapV2Factory(_uniswapV2Router.factory());
uniswapV2Factory = _uniswapV2Factory;
base = _base;
gate = _gate;
elite = _elite;
rooted = _rootedToken;
calculator = _calculator;
IERC20 _rootedBaseLP = IERC20(_uniswapV2Factory.getPair(address(_base), address(_rootedToken)));
IERC20 _rootedEliteLP = IERC20(_uniswapV2Factory.getPair(address(_elite), address(_rootedToken)));
_base.approve(address(_uniswapV2Router), uint256(-1));
_base.approve(address(_elite), uint256(-1));
_elite.approve(address(_uniswapV2Router), uint256(-1));
_rootedToken.approve(address(_uniswapV2Router), uint256(-1));
_rootedBaseLP.approve(address(_uniswapV2Router), uint256(-1));
_rootedEliteLP.approve(address(_uniswapV2Router), uint256(-1));
rootedBaseLP = _rootedBaseLP;
rootedEliteLP = _rootedEliteLP;
}
function setCalculatorAndGate(IFloorCalculator _calculator, RootKitTransferGate _gate) public ownerOnly(){
calculator = _calculator;
gate = _gate;
}
function setLiquidityController(address controlAddress, bool controller) public ownerOnly(){
liquidityControllers[controlAddress] = controller;
}
modifier liquidityControllerOnly(){
require(liquidityControllers[msg.sender], "Not a Liquidity Controller");
_;
}
function balancePriceBase(uint256 amount) public override liquidityControllerOnly() {
amount = buyRootedToken(address(base), amount);
amount = sellRootedToken(address(elite), amount);
elite.withdrawTokens(amount);
}
function balancePriceElite(uint256 amount) public override liquidityControllerOnly() {
elite.depositTokens(amount);
amount = buyRootedToken(address(elite), amount);
amount = sellRootedToken(address(base), amount);
}
function removeBuyAndTax(uint256 amount, address token, uint16 tax, uint256 time) public override liquidityControllerOnly() {
gate.setUnrestricted(true);
amount = removeLiq(token, amount);
buyRootedToken(token, amount);
gate.setDumpTax(tax, time);
gate.setUnrestricted(false);
}
function buyAndTax(address token, uint256 amountToSpend, uint16 tax, uint256 time) public override liquidityControllerOnly() {
buyRootedToken(token, amountToSpend);
gate.setDumpTax(tax, time);
}
function sweepFloor() public override liquidityControllerOnly() {
elite.sweepFloor(address(this));
}
function zapEliteToBase(uint256 liquidity) public override liquidityControllerOnly() {
gate.setUnrestricted(true);
liquidity = removeLiq(address(elite), liquidity);
elite.withdrawTokens(liquidity);
addLiq(address(base), liquidity);
gate.setUnrestricted(false);
}
function zapBaseToElite(uint256 liquidity) public override liquidityControllerOnly() {
gate.setUnrestricted(true);
liquidity = removeLiq(address(base), liquidity);
elite.depositTokens(liquidity);
addLiq(address(elite), liquidity);
gate.setUnrestricted(false);
}
function wrapToElite(uint256 baseAmount) public override liquidityControllerOnly() {
elite.depositTokens(baseAmount);
}
function unwrapElite(uint256 eliteAmount) public override liquidityControllerOnly() {
elite.withdrawTokens(eliteAmount);
}
function addLiquidity(address eliteOrBase, uint256 baseAmount) public override liquidityControllerOnly() {
gate.setUnrestricted(true);
addLiq(eliteOrBase, baseAmount);
gate.setUnrestricted(false);
}
function removeLiquidity (address eliteOrBase, uint256 tokens) public override liquidityControllerOnly() {
gate.setUnrestricted(true);
removeLiq(eliteOrBase, tokens);
gate.setUnrestricted(false);
}
function buyRooted(address token, uint256 amountToSpend) public override liquidityControllerOnly() {
buyRootedToken(token, amountToSpend);
}
function sellRooted(address token, uint256 amountToSpend) public override liquidityControllerOnly() {
sellRootedToken(token, amountToSpend);
}
function addLiq(address eliteOrBase, uint256 baseAmount) internal {
uniswapV2Router.addLiquidity(address(eliteOrBase), address(rooted), baseAmount, rooted.balanceOf(address(this)), 0, 0, address(this), block.timestamp);
}
function removeLiq(address eliteOrBase, uint256 tokens) internal returns (uint256) {
(tokens,) = uniswapV2Router.removeLiquidity(address(eliteOrBase), address(rooted), tokens, 0, 0, address(this), block.timestamp);
return tokens;
}
function buyRootedToken(address token, uint256 amountToSpend) internal returns (uint256) {
uint256[] memory amounts = uniswapV2Router.swapExactTokensForTokens(amountToSpend, 0, buyPath(token), address(this), block.timestamp);
amountToSpend = amounts[1];
return amountToSpend;
}
function sellRootedToken(address token, uint256 amountToSpend) internal returns (uint256) {
uint256[] memory amounts = uniswapV2Router.swapExactTokensForTokens(amountToSpend, 0, sellPath(token), address(this), block.timestamp);
amountToSpend = amounts[1];
return amountToSpend;
}
function buyPath(address token) internal view returns(address[] memory) {
address[] memory path = new address[](2);
path[0] = address(token);
path[1] = address(rooted);
return path;
}
function sellPath(address token) internal view returns(address[] memory) {
address[] memory path = new address[](2);
path[0] = address(rooted);
path[1] = address(token);
return path;
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./ERC20.sol";
import "./Owned.sol";
import "./IUniswapV2Pair.sol";
import "./GatedERC20.sol";
abstract contract LiquidityLockedERC20 is GatedERC20
{
mapping (IUniswapV2Pair => bool) public liquidityPairLocked;
mapping (address => bool) public liquidityController;
struct CallRecord
{
address origin;
uint32 blockNumber;
bool transferFrom;
}
CallRecord balanceAllowed;
constructor(string memory _name, string memory _symbol)
GatedERC20(_name, _symbol)
{
}
function setLiquidityLock(IUniswapV2Pair _liquidityPair, bool _locked) public
{
require (liquidityController[msg.sender], "Liquidity controller only");
require (_liquidityPair.token0() == address(this) || _liquidityPair.token1() == address(this), "Unrelated pair");
liquidityPairLocked[_liquidityPair] = _locked;
}
function setLiquidityController(address _liquidityController, bool _canControl) public ownerOnly()
{
liquidityController[_liquidityController] = _canControl;
}
function balanceOf(address account) public override view returns (uint256)
{
IUniswapV2Pair pair = IUniswapV2Pair(address(msg.sender));
if (liquidityPairLocked[pair]) {
CallRecord memory last = balanceAllowed;
require (last.origin == tx.origin && last.blockNumber == block.number, "Liquidity is locked");
if (last.transferFrom) {
(uint256 reserve0, uint256 reserve1,) = pair.getReserves();
IERC20 tok = IERC20(pair.token0());
if (address(tok) == address(this)) {
require (IERC20(pair.token1()).balanceOf(address(pair)) < reserve1, "Liquidity is locked");
}
else {
require (tok.balanceOf(address(pair)) < reserve0, "Liquidity is locked");
}
}
}
return super.balanceOf(account);
}
function allowBalance(bool _transferFrom) private
{
CallRecord memory last = balanceAllowed;
CallRecord memory allow = CallRecord({
origin: tx.origin,
blockNumber: uint32(block.number),
transferFrom: _transferFrom
});
require (last.origin != allow.origin || last.blockNumber != allow.blockNumber || last.transferFrom != allow.transferFrom, "Liquidity is locked (Please try again next block)");
balanceAllowed = allow;
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool)
{
if (liquidityPairLocked[IUniswapV2Pair(address(msg.sender))]) {
allowBalance(false);
}
else {
balanceAllowed = CallRecord({ origin: address(0), blockNumber: 0, transferFrom: false });
}
return super.transfer(recipient, amount);
}
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool)
{
if (liquidityPairLocked[IUniswapV2Pair(recipient)]) {
allowBalance(true);
}
else {
balanceAllowed = CallRecord({ origin: address(0), blockNumber: 0, transferFrom: false });
}
return super.transferFrom(sender, recipient, amount);
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
Provides ownerOnly() modifier
Allows for ownership transfer but requires the new
owner to claim (accept) ownership
Safer because no accidental transfers or renouncing
*/
import "./IOwned.sol";
abstract contract Owned is IOwned
{
address public override owner = msg.sender;
address internal pendingOwner;
modifier ownerOnly()
{
require (msg.sender == owner, "Owner only");
_;
}
function transferOwnership(address newOwner) public override ownerOnly()
{
pendingOwner = newOwner;
}
function claimOwnership() public override
{
require (pendingOwner == msg.sender);
pendingOwner = address(0);
emit OwnershipTransferred(owner, msg.sender);
owner = msg.sender;
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
RootKit
Because my suggestions of WootKit and GrootKit were overruled
*/
import "./GatedERC20.sol";
contract RootKit is GatedERC20("RootKit", "ROOT")
{
constructor()
{
_mint(msg.sender, 10000 ether);
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./TokensRecoverable.sol";
import "./Owned.sol";
import "./KETH.sol";
import "./RootKitTransferGate.sol";
import "./UniswapV2Library.sol";
import "./IUniswapV2Factory.sol";
contract RootKitDirect is TokensRecoverable
{
KETH immutable keth;
RootKit immutable rootKit;
IUniswapV2Router02 immutable uniswapV2Router;
IUniswapV2Factory immutable uniswapV2Factory;
constructor(KETH _keth, RootKit _rootKit, IUniswapV2Router02 _uniswapV2Router)
{
keth = _keth;
rootKit = _rootKit;
uniswapV2Router = _uniswapV2Router;
uniswapV2Factory = IUniswapV2Factory(_uniswapV2Router.factory());
_keth.approve(address(_uniswapV2Router), uint256(-1));
_rootKit.approve(address(_uniswapV2Router), uint256(-1));
}
receive() external payable
{
require (msg.sender == address(keth));
}
function estimateBuy(uint256 ethAmountIn) public view returns (uint256 rootKitAmount)
{
address[] memory path = new address[](2);
path[0] = address(keth);
path[1] = address(rootKit);
(uint256[] memory amounts) = UniswapV2Library.getAmountsOut(address(uniswapV2Factory), ethAmountIn, path);
return amounts[1];
}
function estimateSell(uint256 rootKitAmountIn) public view returns (uint256 ethAmount)
{
address[] memory path = new address[](2);
path[0] = address(rootKit);
path[1] = address(keth);
(uint256[] memory amounts) = UniswapV2Library.getAmountsOut(address(uniswapV2Factory), rootKitAmountIn, path);
return amounts[1];
}
function easyBuy() public payable returns (uint256 rootKitAmount)
{
return buy(estimateBuy(msg.value) * 98 / 100);
}
function easySell(uint256 rootKitAmountIn) public returns (uint256 ethAmount)
{
return sell(rootKitAmountIn, estimateSell(rootKitAmountIn) * 98 / 100);
}
function buy(uint256 amountOutMin) public payable returns (uint256 rootKitAmount)
{
uint256 amount = msg.value;
require (amount > 0, "Send ETH to buy");
keth.deposit{ value: amount }();
address[] memory path = new address[](2);
path[0] = address(keth);
path[1] = address(rootKit);
(uint256[] memory amounts) = uniswapV2Router.swapExactTokensForTokens(amount, amountOutMin, path, msg.sender, block.timestamp);
return amounts[1];
}
function sell(uint256 rootKitAmountIn, uint256 amountOutMin) public returns (uint256 ethAmount)
{
require (rootKitAmountIn > 0, "Nothing to sell");
RootKitTransferGate gate = RootKitTransferGate(address(rootKit.transferGate()));
// to avoid double taxation
gate.setUnrestricted(true);
rootKit.transferFrom(msg.sender, address(this), rootKitAmountIn);
gate.setUnrestricted(false);
address[] memory path = new address[](2);
path[0] = address(rootKit);
path[1] = address(keth);
(uint256[] memory amounts) = uniswapV2Router.swapExactTokensForTokens(rootKitAmountIn, amountOutMin, path, address(this), block.timestamp);
keth.withdraw(amounts[1]);
(bool success,) = msg.sender.call{ value: amounts[1] }("");
require (success, "Transfer failed");
return amounts[1];
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./IRootKitDistribution.sol";
import "./Owned.sol";
import "./RootKit.sol";
import "./RootKitTransferGate.sol";
import "./TokensRecoverable.sol";
import "./SafeMath.sol";
import "./KETH.sol";
import "./IERC20.sol";
import "./IUniswapV2Router02.sol";
import "./IUniswapV2Factory.sol";
import "./IUniswapV2Pair.sol";
import "./IWrappedERC20.sol";
/*
Phases:
Initializing
Call setupKethRootKit() and setupWbtcRootKit()
Call completeSetup()
Call distribute() to:
Transfer all RootKit to this contract
Take all ETH + RootKit and create a market
Play jenga
Buy RootKit
Buy wBTC
Create RootKit/wBTC market
Buy RootKit for the group
Distribute funds
Complete
Everyone can call claim() to receive their tokens (via the liquidity generation contract)
*/
contract RootKitDistribution is TokensRecoverable, IRootKitDistribution
{
using SafeMath for uint256;
bool public override distributionComplete;
IUniswapV2Router02 immutable uniswapV2Router;
IUniswapV2Factory immutable uniswapV2Factory;
RootKit immutable rootKit;
KETH immutable keth;
IERC20 immutable weth;
IERC20 immutable wbtc;
address immutable vault;
IUniswapV2Pair kethRootKit;
IUniswapV2Pair wbtcRootKit;
IWrappedERC20 wrappedKethRootKit;
IWrappedERC20 wrappedWbtcRootKit;
uint256 public totalEthCollected;
uint256 public totalRootKitBought;
uint256 public totalWbtcRootKit;
uint256 public totalKethRootKit;
address rootKitLiquidityGeneration;
uint256 recoveryDate = block.timestamp + 2592000; // 1 Month
uint8 public jengaCount;
// 10000 = 100%
uint16 constant public vaultPercent = 2500; // Proportionate amount used to seed the vault
uint16 constant public buyPercent = 2500; // Proportionate amount used to group buy RootKit for distribution to participants
uint16 constant public wbtcPercent = 2500; // Proportionate amount used to create wBTC/RootKit pool
constructor(RootKit _rootKit, IUniswapV2Router02 _uniswapV2Router, KETH _keth, IERC20 _wbtc, address _vault)
{
require (address(_rootKit) != address(0));
require (address(_wbtc) != address(0));
require (address(_vault) != address(0));
rootKit = _rootKit;
uniswapV2Router = _uniswapV2Router;
keth = _keth;
wbtc = _wbtc;
vault = _vault;
uniswapV2Factory = IUniswapV2Factory(_uniswapV2Router.factory());
weth = _keth.wrappedToken();
}
function setupKethRootKit() public
{
kethRootKit = IUniswapV2Pair(uniswapV2Factory.getPair(address(keth), address(rootKit)));
if (address(kethRootKit) == address(0)) {
kethRootKit = IUniswapV2Pair(uniswapV2Factory.createPair(address(keth), address(rootKit)));
require (address(kethRootKit) != address(0));
}
}
function setupWbtcRootKit() public
{
wbtcRootKit = IUniswapV2Pair(uniswapV2Factory.getPair(address(wbtc), address(rootKit)));
if (address(wbtcRootKit) == address(0)) {
wbtcRootKit = IUniswapV2Pair(uniswapV2Factory.createPair(address(wbtc), address(rootKit)));
require (address(wbtcRootKit) != address(0));
}
}
function completeSetup(IWrappedERC20 _wrappedKethRootKit, IWrappedERC20 _wrappedWbtcRootKit) public ownerOnly()
{
require (address(_wrappedKethRootKit.wrappedToken()) == address(kethRootKit), "Wrong LP Wrapper");
require (address(_wrappedWbtcRootKit.wrappedToken()) == address(wbtcRootKit), "Wrong LP Wrapper");
wrappedKethRootKit = _wrappedKethRootKit;
wrappedWbtcRootKit = _wrappedWbtcRootKit;
keth.approve(address(uniswapV2Router), uint256(-1));
rootKit.approve(address(uniswapV2Router), uint256(-1));
weth.approve(address(keth), uint256(-1));
weth.approve(address(uniswapV2Router), uint256(-1));
wbtc.approve(address(uniswapV2Router), uint256(-1));
kethRootKit.approve(address(wrappedKethRootKit), uint256(-1));
wbtcRootKit.approve(address(wrappedWbtcRootKit), uint256(-1));
}
function setJengaCount(uint8 _jengaCount) public ownerOnly()
{
jengaCount = _jengaCount;
}
function distribute() public override payable
{
require (!distributionComplete, "Distribution complete");
uint256 totalEth = msg.value;
require (totalEth > 0, "Nothing to distribute");
distributionComplete = true;
totalEthCollected = totalEth;
rootKitLiquidityGeneration = msg.sender;
rootKit.transferFrom(msg.sender, address(this), rootKit.totalSupply());
RootKitTransferGate gate = RootKitTransferGate(address(rootKit.transferGate()));
gate.setUnrestricted(true);
createKethRootKitLiquidity(totalEth);
jenga(jengaCount);
sweepFloorToWeth();
uint256 wethBalance = weth.balanceOf(address(this));
createWbtcRootKitLiquidity(wethBalance * wbtcPercent / 10000);
preBuyForGroup(wethBalance * buyPercent / 10000);
sweepFloorToWeth();
weth.transfer(vault, wethBalance * vaultPercent / 10000);
weth.transfer(owner, weth.balanceOf(address(this)));
kethRootKit.transfer(owner, kethRootKit.balanceOf(address(this)));
gate.setUnrestricted(false);
}
function sweepFloorToWeth() private
{
keth.sweepFloor(address(this));
keth.withdrawTokens(keth.balanceOf(address(this)));
}
function createKethRootKitLiquidity(uint256 totalEth) private
{
// Create KETH/ROOT LP
keth.deposit{ value: totalEth }();
(,,totalKethRootKit) = uniswapV2Router.addLiquidity(address(keth), address(rootKit), keth.balanceOf(address(this)), rootKit.totalSupply(), 0, 0, address(this), block.timestamp);
// Wrap the KETH/ROOT LP for distribution
wrappedKethRootKit.depositTokens(totalKethRootKit);
}
function createWbtcRootKitLiquidity(uint256 wethAmount) private
{
// Buy ROOT with 1/2 of the funds
address[] memory path = new address[](2);
path[0] = address(keth);
path[1] = address(rootKit);
keth.depositTokens(wethAmount / 2);
uint256[] memory amountsRootKit = uniswapV2Router.swapExactTokensForTokens(wethAmount / 2, 0, path, address(this), block.timestamp);
// Buy WBTC with the other 1/2 of the funds
path[0] = address(weth);
path[1] = address(wbtc);
uint256[] memory amountsWbtc = uniswapV2Router.swapExactTokensForTokens(wethAmount / 2, 0, path, address(this), block.timestamp);
(,,totalWbtcRootKit) = uniswapV2Router.addLiquidity(address(wbtc), address(rootKit), amountsWbtc[1], amountsRootKit[1], 0, 0, address(this), block.timestamp);
// Wrap the WBTC/ROOT LP for distribution
wrappedWbtcRootKit.depositTokens(totalWbtcRootKit);
}
function preBuyForGroup(uint256 wethAmount) private
{
address[] memory path = new address[](2);
path[0] = address(keth);
path[1] = address(rootKit);
keth.depositTokens(wethAmount);
uint256[] memory amountsRootKit = uniswapV2Router.swapExactTokensForTokens(wethAmount, 0, path, address(this), block.timestamp);
totalRootKitBought = amountsRootKit[1];
}
function jenga(uint8 count) private
{
address[] memory path = new address[](2);
path[0] = address(keth);
path[1] = address(rootKit);
for (uint x=0; x<count; ++x) {
keth.depositTokens(keth.sweepFloor(address(this)));
uint256[] memory amounts = uniswapV2Router.swapExactTokensForTokens(keth.balanceOf(address(this)) * 2 / 5, 0, path, address(this), block.timestamp);
keth.depositTokens(keth.sweepFloor(address(this)));
uniswapV2Router.addLiquidity(address(keth), address(rootKit), keth.balanceOf(address(this)), amounts[1], 0, 0, address(this), block.timestamp);
}
}
function claim(address _to, uint256 _contribution) public override
{
require (msg.sender == rootKitLiquidityGeneration, "Unauthorized");
uint256 totalEth = totalEthCollected;
// Send KETH/ROOT liquidity tokens
uint256 share = _contribution.mul(totalKethRootKit) / totalEth;
if (share > wrappedKethRootKit.balanceOf(address(this))) {
share = wrappedKethRootKit.balanceOf(address(this)); // Should never happen, but just being safe.
}
wrappedKethRootKit.transfer(_to, share);
// Send WBTC/ROOT liquidity tokens
share = _contribution.mul(totalWbtcRootKit) / totalEth;
if (share > wrappedWbtcRootKit.balanceOf(address(this))) {
share = wrappedWbtcRootKit.balanceOf(address(this)); // Should never happen, but just being safe.
}
wrappedWbtcRootKit.transfer(_to, share);
// Send RootKit
RootKitTransferGate gate = RootKitTransferGate(address(rootKit.transferGate()));
gate.setUnrestricted(true);
share = _contribution.mul(totalRootKitBought) / totalEth;
if (share > rootKit.balanceOf(address(this))) {
share = rootKit.balanceOf(address(this)); // Should never happen, but just being safe.
}
rootKit.transfer(_to, share);
gate.setUnrestricted(false);
}
function canRecoverTokens(IERC20 token) internal override view returns (bool) {
return
block.timestamp > recoveryDate ||
(
token != rootKit &&
address(token) != address(wrappedKethRootKit) &&
address(token) != address(wrappedWbtcRootKit)
);
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./TokensRecoverable.sol";
import "./IUniswapV2Router02.sol";
import "./UniswapV2Library.sol";
import "./IUniswapV2Pair.sol";
import "./IWETH.sol";
import "./KETH.sol";
import "./RootKit.sol";
import "./IUniswapV2Factory.sol";
contract RootKitEasyMoneyButton is TokensRecoverable
{
IWETH immutable weth;
KETH immutable keth;
IERC20 immutable wbtc;
RootKit immutable rootKit;
IUniswapV2Router02 immutable uniswapV2Router;
IUniswapV2Pair immutable wethRootKit;
IUniswapV2Pair immutable kethRootKit;
IUniswapV2Pair immutable wbtcRootKit;
IUniswapV2Pair immutable wethWbtc;
uint256 constant smallestTrade = 0.5 ether;
uint256 constant minProfit = 0.03 ether;
constructor(RootKit _rootKit, IWETH _weth, KETH _keth, IERC20 _wbtc, IUniswapV2Router02 _uniswapV2Router)
{
rootKit = _rootKit;
weth = _weth;
keth = _keth;
wbtc = _wbtc;
uniswapV2Router = _uniswapV2Router;
IUniswapV2Factory factory = IUniswapV2Factory(_uniswapV2Router.factory());
wethRootKit = IUniswapV2Pair(UniswapV2Library.pairFor(address(factory), address(_weth), address(_rootKit)));
kethRootKit = IUniswapV2Pair(UniswapV2Library.pairFor(address(factory), address(_keth), address(_rootKit)));
wbtcRootKit = IUniswapV2Pair(UniswapV2Library.pairFor(address(factory), address(_wbtc), address(_rootKit)));
wethWbtc = IUniswapV2Pair(UniswapV2Library.pairFor(address(factory), address(_weth), address(_wbtc)));
_rootKit.approve(address(_uniswapV2Router), uint256(-1));
_wbtc.approve(address(_uniswapV2Router), uint256(-1));
_weth.approve(address(_uniswapV2Router), uint256(-1));
_keth.approve(address(_uniswapV2Router), uint256(-1));
_weth.approve(address(_keth), uint256(-1));
}
struct Balances
{
uint256 startingBalance;
uint256 wethRootKit_Weth;
uint256 wethRootKit_RootKit;
uint256 kethRootKit_Keth;
uint256 kethRootKit_RootKit;
uint256 wbtcRootKit_Wbtc;
uint256 wbtcRootKit_RootKit;
uint256 wethWbtc_Weth;
uint256 wethWbtc_Wbtc;
}
function getWeth(uint256 amount) private
{
uint256 balance = weth.balanceOf(address(this));
if (balance < amount) {
keth.withdrawTokens(amount - balance);
}
}
function getKeth(uint256 amount) private
{
uint256 balance = keth.balanceOf(address(this));
if (balance < amount) {
keth.depositTokens(amount - balance);
}
}
function wethRootKitKeth(Balances memory balances, uint256 amountIn) private pure returns (uint256 profit)
{
profit = amountIn * 997;
profit = (profit * balances.wethRootKit_RootKit) / (balances.wethRootKit_Weth * 1000 + profit);
profit *= 997;
profit = (profit * balances.kethRootKit_Keth) / (balances.kethRootKit_RootKit * 1000 + profit);
return profit <= amountIn ? 0 : profit - amountIn;
}
function kethRootKitWeth(Balances memory balances, uint256 amountIn) private pure returns (uint256 profit)
{
profit = amountIn * 997;
profit = (profit * balances.kethRootKit_RootKit) / (balances.kethRootKit_Keth * 1000 + profit);
profit *= 997;
profit = (profit * balances.wethRootKit_Weth) / (balances.wethRootKit_RootKit * 1000 + profit);
return profit <= amountIn ? 0 : profit - amountIn;
}
function wethWbtcRootKitKeth(Balances memory balances, uint256 amountIn) private pure returns (uint256 profit)
{
profit = amountIn * 997;
profit = (profit * balances.wethWbtc_Wbtc) / (balances.wethWbtc_Weth * 1000 + profit);
profit *= 997;
profit = (profit * balances.wbtcRootKit_RootKit) / (balances.wbtcRootKit_Wbtc * 1000 + profit);
profit *= 997;
profit = (profit * balances.kethRootKit_Keth) / (balances.kethRootKit_RootKit * 1000 + profit);
return profit <= amountIn ? 0 : profit - amountIn;
}
function kethRootKitWbtcWeth(Balances memory balances, uint256 amountIn) private pure returns (uint256 profit)
{
profit = amountIn * 997;
profit = (profit * balances.kethRootKit_RootKit) / (balances.kethRootKit_Keth * 1000 + profit);
profit *= 997;
profit = (profit * balances.wbtcRootKit_Wbtc) / (balances.wbtcRootKit_RootKit * 1000 + profit);
profit *= 997;
profit = (profit * balances.wethRootKit_Weth) / (balances.wethRootKit_RootKit * 1000 + profit);
return profit <= amountIn ? 0 : profit - amountIn;
}
function wethWbtcRootKitWeth(Balances memory balances, uint256 amountIn) private pure returns (uint256 profit)
{
profit = amountIn * 997;
profit = (profit * balances.wethWbtc_Wbtc) / (balances.wethWbtc_Weth * 1000 + profit);
profit *= 997;
profit = (profit * balances.wbtcRootKit_RootKit) / (balances.wbtcRootKit_Wbtc * 1000 + profit);
profit *= 997;
profit = (profit * balances.wethRootKit_Weth) / (balances.wethRootKit_RootKit * 1000 + profit);
return profit <= amountIn ? 0 : profit - amountIn;
}
function wethRootKitWbtcWeth(Balances memory balances, uint256 amountIn) private pure returns (uint256 profit)
{
profit = amountIn * 997;
profit = (profit * balances.wethRootKit_RootKit) / (balances.wethRootKit_Weth * 1000 + profit);
profit *= 997;
profit = (profit * balances.wbtcRootKit_Wbtc) / (balances.wbtcRootKit_RootKit * 1000 + profit);
profit *= 997;
profit = (profit * balances.wethWbtc_Weth) / (balances.wethWbtc_Wbtc * 1000 + profit);
return profit <= amountIn ? 0 : profit - amountIn;
}
function getBalances() private view returns (Balances memory balances)
{
uint256 r0;
uint256 r1;
balances.startingBalance = weth.balanceOf(address(this)) + keth.balanceOf(address(this));
(r0, r1,) = wethRootKit.getReserves();
(balances.wethRootKit_Weth, balances.wethRootKit_RootKit) = address(weth) < address(rootKit) ? (r0, r1) : (r1, r0);
(r0, r1,) = kethRootKit.getReserves();
(balances.kethRootKit_Keth, balances.kethRootKit_RootKit) = address(keth) < address(rootKit) ? (r0, r1) : (r1, r0);
(r0, r1,) = wbtcRootKit.getReserves();
(balances.wbtcRootKit_Wbtc, balances.wbtcRootKit_RootKit) = address(wbtc) < address(rootKit) ? (r0, r1) : (r1, r0);
(r0, r1,) = wethWbtc.getReserves();
(balances.wethWbtc_Weth, balances.wethWbtc_Wbtc) = address(weth) < address(wbtc) ? (r0, r1) : (r1, r0);
return balances;
}
function getKethRootKitWethProfit(Balances memory balances) private pure returns (uint256 amountIn, uint256 profit)
{
uint256 maxProfit = 0;
uint256 maxProfitAmountIn = 0;
for (amountIn = smallestTrade; amountIn <= balances.startingBalance; amountIn *= 2) {
profit = kethRootKitWeth(balances, amountIn);
if (profit <= maxProfit) {
break;
}
maxProfit = profit;
maxProfitAmountIn = amountIn;
}
return maxProfit < minProfit ? (0, 0) : (maxProfitAmountIn, maxProfit);
}
function getWethRootKitKethProfit(Balances memory balances) private pure returns (uint256 amountIn, uint256 profit)
{
uint256 maxProfit = 0;
uint256 maxProfitAmountIn = 0;
for (amountIn = smallestTrade; amountIn <= balances.startingBalance; amountIn *= 2) {
profit = wethRootKitKeth(balances, amountIn);
if (profit <= maxProfit) {
break;
}
maxProfit = profit;
maxProfitAmountIn = amountIn;
}
return maxProfit < minProfit ? (0, 0) : (maxProfitAmountIn, maxProfit);
}
function getWethWbtcRootKitKethProfit(Balances memory balances) private pure returns (uint256 amountIn, uint256 profit)
{
uint256 maxProfit = 0;
uint256 maxProfitAmountIn = 0;
for (amountIn = smallestTrade; amountIn <= balances.startingBalance; amountIn *= 2) {
profit = wethWbtcRootKitKeth(balances, amountIn);
if (profit <= maxProfit) {
break;
}
maxProfit = profit;
maxProfitAmountIn = amountIn;
}
return maxProfit < minProfit ? (0, 0) : (maxProfitAmountIn, maxProfit);
}
function getKethRootKitWbtcWethProfit(Balances memory balances) private pure returns (uint256 amountIn, uint256 profit)
{
uint256 maxProfit = 0;
uint256 maxProfitAmountIn = 0;
for (amountIn = smallestTrade; amountIn <= balances.startingBalance; amountIn *= 2) {
profit = kethRootKitWbtcWeth(balances, amountIn);
if (profit <= maxProfit) {
break;
}
maxProfit = profit;
maxProfitAmountIn = amountIn;
}
return maxProfit < minProfit ? (0, 0) : (maxProfitAmountIn, maxProfit);
}
function getWethWbtcRootKitWethProfit(Balances memory balances) private pure returns (uint256 amountIn, uint256 profit)
{
uint256 maxProfit = 0;
uint256 maxProfitAmountIn = 0;
for (amountIn = smallestTrade; amountIn <= balances.startingBalance; amountIn *= 2) {
profit = wethWbtcRootKitWeth(balances, amountIn);
if (profit <= maxProfit) {
break;
}
maxProfit = profit;
maxProfitAmountIn = amountIn;
}
return maxProfit < minProfit ? (0, 0) : (maxProfitAmountIn, maxProfit);
}
function getWethRootKitWbtcWethProfit(Balances memory balances) private pure returns (uint256 amountIn, uint256 profit)
{
uint256 maxProfit = 0;
uint256 maxProfitAmountIn = 0;
for (amountIn = smallestTrade; amountIn <= balances.startingBalance; amountIn *= 2) {
profit = wethRootKitWbtcWeth(balances, amountIn);
if (profit <= maxProfit) {
break;
}
maxProfit = profit;
maxProfitAmountIn = amountIn;
}
return maxProfit < minProfit ? (0, 0) : (maxProfitAmountIn, maxProfit);
}
function estimateProfit() public view returns (uint256 profit)
{
Balances memory balances = getBalances();
(,profit) = getKethRootKitWethProfit(balances);
if (profit > 0) { return profit; }
(,profit) = getWethRootKitKethProfit(balances);
if (profit > 0) { return profit; }
(,profit) = getKethRootKitWbtcWethProfit(balances);
if (profit > 0) { return profit; }
(,profit) = getWethWbtcRootKitKethProfit(balances);
if (profit > 0) { return profit; }
(,profit) = getWethWbtcRootKitWethProfit(balances);
if (profit > 0) { return profit; }
(,profit) = getWethRootKitWbtcWethProfit(balances);
return profit;
}
function gimmeMoney() public
{
Balances memory balances = getBalances();
uint256 amountIn;
(amountIn,) = getKethRootKitWethProfit(balances);
if (amountIn > 0) {
getKeth(amountIn);
address[] memory path = new address[](3);
path[0] = address(keth);
path[1] = address(rootKit);
path[2] = address(weth);
uniswapV2Router.swapExactTokensForTokens(amountIn, 0, path, address(this), block.timestamp);
return;
}
(amountIn,) = getWethRootKitKethProfit(balances);
if (amountIn > 0) {
getWeth(amountIn);
address[] memory path = new address[](3);
path[0] = address(weth);
path[1] = address(rootKit);
path[2] = address(keth);
uniswapV2Router.swapExactTokensForTokens(amountIn, 0, path, address(this), block.timestamp);
return;
}
(amountIn,) = getKethRootKitWbtcWethProfit(balances);
if (amountIn > 0) {
getKeth(amountIn);
address[] memory path = new address[](4);
path[0] = address(keth);
path[1] = address(rootKit);
path[2] = address(wbtc);
path[3] = address(weth);
uniswapV2Router.swapExactTokensForTokens(amountIn, 0, path, address(this), block.timestamp);
return;
}
(amountIn,) = getWethWbtcRootKitKethProfit(balances);
if (amountIn > 0) {
getKeth(amountIn);
address[] memory path = new address[](4);
path[0] = address(weth);
path[1] = address(wbtc);
path[2] = address(rootKit);
path[3] = address(keth);
uniswapV2Router.swapExactTokensForTokens(amountIn, 0, path, address(this), block.timestamp);
return;
}
(amountIn,) = getWethWbtcRootKitWethProfit(balances);
if (amountIn > 0) {
getKeth(amountIn);
address[] memory path = new address[](4);
path[0] = address(weth);
path[1] = address(wbtc);
path[2] = address(rootKit);
path[3] = address(weth);
uniswapV2Router.swapExactTokensForTokens(amountIn, 0, path, address(this), block.timestamp);
return;
}
(amountIn,) = getWethRootKitWbtcWethProfit(balances);
if (amountIn > 0) {
getKeth(amountIn);
address[] memory path = new address[](4);
path[0] = address(weth);
path[1] = address(rootKit);
path[2] = address(wbtc);
path[3] = address(weth);
uniswapV2Router.swapExactTokensForTokens(amountIn, 0, path, address(this), block.timestamp);
return;
}
revert("No profit");
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
A floor calculator (to use with ERC31337) for RootKit uniswap pairs
Ensures 100% of accessible funds are backed at all times
*/
import "./IFloorCalculator.sol";
import "./RootKit.sol";
import "./SafeMath.sol";
import "./UniswapV2Library.sol";
import "./IUniswapV2Factory.sol";
import "./TokensRecoverable.sol";
contract RootKitFloorCalculator is IFloorCalculator, TokensRecoverable
{
using SafeMath for uint256;
RootKit immutable rootKit;
IUniswapV2Factory immutable uniswapV2Factory;
constructor(RootKit _rootKit, IUniswapV2Factory _uniswapV2Factory)
{
rootKit = _rootKit;
uniswapV2Factory = _uniswapV2Factory;
}
function calculateSubFloor(IERC20 wrappedToken, IERC20 backingToken) public override view returns (uint256)
{
address pair = UniswapV2Library.pairFor(address(uniswapV2Factory), address(rootKit), address(backingToken));
uint256 freeRootKit = rootKit.totalSupply().sub(rootKit.balanceOf(pair));
uint256 sellAllProceeds = 0;
if (freeRootKit > 0) {
address[] memory path = new address[](2);
path[0] = address(rootKit);
path[1] = address(backingToken);
uint256[] memory amountsOut = UniswapV2Library.getAmountsOut(address(uniswapV2Factory), freeRootKit, path);
sellAllProceeds = amountsOut[1];
}
uint256 backingInPool = backingToken.balanceOf(pair);
if (backingInPool <= sellAllProceeds) { return 0; }
uint256 excessInPool = backingInPool - sellAllProceeds;
uint256 requiredBacking = backingToken.totalSupply().sub(excessInPool);
uint256 currentBacking = wrappedToken.balanceOf(address(backingToken));
if (requiredBacking >= currentBacking) { return 0; }
return currentBacking - requiredBacking;
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
A wrapper for liquidity tokens so they can be distributed
but not allowing for removal of liquidity
*/
import "./ERC31337.sol";
import "./IUniswapV2Pair.sol";
import "./IERC20.sol";
contract RootKitLiquidity is ERC31337
{
constructor(IUniswapV2Pair _pair, string memory _name, string memory _symbol)
ERC31337(IERC20(address(_pair)), _name, _symbol)
{
}
function _beforeWithdrawTokens(uint256) internal override pure
{
revert("RootKit liquidity is locked");
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./Owned.sol";
import "./RootKit.sol";
import "./IRootKitDistribution.sol";
import "./TokensRecoverable.sol";
contract RootKitLiquidityGeneration is TokensRecoverable
{
mapping (address => uint256) public contribution;
address[] public contributors;
bool public isActive;
RootKit immutable rootKit;
IRootKitDistribution public rootKitDistribution;
uint256 refundsAllowedUntil;
constructor (RootKit _rootKit)
{
rootKit = _rootKit;
}
modifier active()
{
require (isActive, "Distribution not active");
_;
}
function contributorsCount() public view returns (uint256) { return contributors.length; }
function activate(IRootKitDistribution _rootKitDistribution) public ownerOnly()
{
require (!isActive && contributors.length == 0 && block.timestamp >= refundsAllowedUntil, "Already activated");
require (rootKit.balanceOf(address(this)) == rootKit.totalSupply(), "Missing supply");
require (address(_rootKitDistribution) != address(0));
rootKitDistribution = _rootKitDistribution;
isActive = true;
}
function setRootKitDistribution(IRootKitDistribution _rootKitDistribution) public ownerOnly() active()
{
require (address(_rootKitDistribution) != address(0));
if (_rootKitDistribution == rootKitDistribution) { return; }
rootKitDistribution = _rootKitDistribution;
// Give everyone 1 day to claim refunds if they don't approve of the new distributor
refundsAllowedUntil = block.timestamp + 86400;
}
function complete() public ownerOnly() active()
{
require (block.timestamp >= refundsAllowedUntil, "Refund period is still active");
isActive = false;
if (address(this).balance == 0) { return; }
rootKit.approve(address(rootKitDistribution), uint256(-1));
rootKitDistribution.distribute{ value: address(this).balance }();
}
function allowRefunds() public ownerOnly() active()
{
isActive = false;
refundsAllowedUntil = uint256(-1);
}
function claim() public
{
uint256 amount = contribution[msg.sender];
require (amount > 0, "Nothing to claim");
contribution[msg.sender] = 0;
if (refundsAllowedUntil > block.timestamp) {
(bool success,) = msg.sender.call{ value: amount }("");
require (success, "Transfer failed");
}
else {
rootKitDistribution.claim(msg.sender, amount);
}
}
receive() external payable active()
{
uint256 oldContribution = contribution[msg.sender];
uint256 newContribution = oldContribution + msg.value;
if (oldContribution == 0 && newContribution > 0) {
contributors.push(msg.sender);
}
contribution[msg.sender] = newContribution;
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./RootKit.sol";
import "./IUniswapV2Router02.sol";
import "./IWrappedERC20.sol";
import "./IERC20.sol";
import "./IUniswapV2Pair.sol";
import "./IUniswapV2Factory.sol";
import "./Owned.sol";
import "./TokensRecoverable.sol";
import "./KETH.sol";
import "./SafeMath.sol";
import "./IWETH.sol";
/* ROOTKIT:
This receives RootKit from whereever
You can add ETH or KETH and we'll match it with RootKit from here for you
Then you get the liquidity tokens back
All in one shot
Ready for staking
Cheaper than buying first!
*/
contract RootKitLiquidityMatching is TokensRecoverable
{
using SafeMath for uint256;
RootKit immutable rootKit;
IUniswapV2Router02 immutable uniswapV2Router;
IWrappedERC20 immutable liquidityTokenWrapper;
KETH immutable keth;
IWETH immutable weth;
uint16 public liquidityPercentForUser = 5000; // 100% = 10000
constructor(RootKit _rootKit, IUniswapV2Router02 _uniswapV2Router, IWrappedERC20 _liquidityTokenWrapper, KETH _keth)
{
rootKit = _rootKit;
uniswapV2Router = _uniswapV2Router;
liquidityTokenWrapper = _liquidityTokenWrapper;
keth = _keth;
IWETH _weth = IWETH(_uniswapV2Router.WETH());
weth = _weth;
IERC20 _liquidityToken = _liquidityTokenWrapper.wrappedToken();
_liquidityToken.approve(address(_liquidityTokenWrapper), uint256(-1));
_rootKit.approve(address(_uniswapV2Router), uint256(-1));
_keth.approve(address(_uniswapV2Router), uint256(-1));
_weth.approve(address(_uniswapV2Router), uint256(-1));
_weth.approve(address(_keth), uint256(-1));
require (IUniswapV2Factory(_uniswapV2Router.factory()).getPair(address(_rootKit), address(_keth)) == address(_liquidityToken), "Sanity");
}
receive() external payable
{
require (msg.sender == address(keth));
}
function setLiquidityPercentForUser(uint16 _liquidityPercentForUser) public ownerOnly()
{
require (_liquidityPercentForUser <= 10000);
liquidityPercentForUser = _liquidityPercentForUser;
}
function addLiquidityETH() public payable
{
uint256 amount = msg.value;
require (amount > 0, "Zero amount");
keth.deposit{ value: amount }();
uint256 remainingKeth = addKethToLiquidity(amount);
if (remainingKeth > 0) {
keth.withdraw(remainingKeth);
(bool success,) = msg.sender.call{ value: remainingKeth }("");
require (success, "Transfer failed");
}
}
function addLiquidityWETH(uint256 amount) public
{
require (amount > 0, "Zero amount");
weth.transferFrom(msg.sender, address(this), amount);
keth.depositTokens(amount);
uint256 remainingKeth = addKethToLiquidity(amount);
if (remainingKeth > 0) {
keth.withdrawTokens(remainingKeth);
weth.transfer(msg.sender, remainingKeth);
}
}
function addLiquidityKETH(uint256 amount) public
{
require (amount > 0, "Zero amount");
keth.transferFrom(msg.sender, address(this), amount);
uint256 remainingKeth = addKethToLiquidity(amount);
if (remainingKeth > 0) {
keth.transfer(msg.sender, remainingKeth);
}
}
function addKethToLiquidity(uint256 amount) private returns (uint256 remainingKeth)
{
(,,uint256 liquidity) = uniswapV2Router.addLiquidity(address(rootKit), address(keth), rootKit.balanceOf(address(this)), amount, 0, 0, address(this), block.timestamp);
require (liquidity > 0, "No liquidity created (no available RootKit?)");
liquidity = liquidity.mul(liquidityPercentForUser) / 10000;
liquidityTokenWrapper.depositTokens(liquidity);
liquidityTokenWrapper.transfer(msg.sender, liquidity);
return keth.balanceOf(address(this));
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
pragma experimental ABIEncoderV2;
/* ROOTKIT:
This is a money button
Press it for free money
and LOL cus it actually works
*/
import "./Owned.sol";
import "./TokensRecoverable.sol";
import "./IUniswapV2Router02.sol";
import "./IUniswapV2Factory.sol";
import "./KETH.sol";
import "./IWETH.sol";
import "./UniswapV2Library.sol";
import "./SafeMath.sol";
import "./SafeERC20.sol";
contract RootKitMoneyButton is TokensRecoverable
{
using SafeMath for uint256;
using SafeERC20 for IERC20;
IUniswapV2Router02 immutable uniswapV2Router;
IUniswapV2Factory immutable uniswapV2Factory;
KETH immutable keth;
IWETH immutable weth;
mapping (address => bool) approved;
address public vault;
uint16 public percentToVault; // 10000 = 100%;
constructor(IUniswapV2Router02 _uniswapV2Router, KETH _keth)
{
uniswapV2Router = _uniswapV2Router;
uniswapV2Factory = IUniswapV2Factory(_uniswapV2Router.factory());
keth = _keth;
IWETH _weth = weth = IWETH(address(_keth.wrappedToken()));
_weth.approve(address(_keth), uint256(-1));
}
receive() external payable
{
require (msg.sender == address(weth) || msg.sender == address(keth));
}
function configure(address _vault, uint16 _percentToVault) public ownerOnly() {
require (_vault != address(0) && _percentToVault <= 10000);
vault = _vault;
percentToVault = _percentToVault;
}
function estimateProfit(address[] calldata _fullPath, uint256 _amountIn) public view returns (uint256)
{
uint256 amountOut = _amountIn;
address[] memory path = new address[](2);
for (uint256 x=1; x<=_fullPath.length; ++x) {
path[0] = _fullPath[x-1];
path[1] = _fullPath[x%_fullPath.length];
bool kindaEthIn = path[0] == address(0) || path[0] == address(weth) || path[0] == address(keth);
bool kindaEthOut = path[1] == address(0) || path[1] == address(weth) || path[1] == address(keth);
if (kindaEthIn && kindaEthOut) { continue; }
(uint256[] memory amountsOut) = UniswapV2Library.getAmountsOut(address(uniswapV2Factory), amountOut, path);
amountOut = amountsOut[1];
}
if (amountOut <= _amountIn) { return 0; }
return amountOut - _amountIn;
}
function gimmeMoney(address[] calldata _fullPath, uint256 _amountIn, uint256 _minProfit) public payable
{
require ((msg.value == 0) != (_fullPath[0] == address(0)), "Send ETH if and only if the path starts with ETH");
uint256 amountOut = _amountIn;
address[] memory path = new address[](2);
uint256 count = _fullPath.length;
if (_fullPath[0] != address(0)) {
IERC20(_fullPath[0]).safeTransferFrom(msg.sender, address(this), _amountIn);
}
for (uint256 x=1; x<=count; ++x) {
address tokenIn = _fullPath[x-1];
address tokenOut = _fullPath[x%count];
if (tokenIn == tokenOut) { continue; }
if (tokenIn == address(0)) {
require (x == 1, "Conversion from ETH can only happen first");
amountOut = _amountIn = msg.value;
if (tokenOut == address(weth)) {
weth.deposit{ value: amountOut }();
}
else if (tokenOut == address(keth)) {
keth.deposit{ value: amountOut }();
}
else {
revert("ETH must convert to WETH or KETH");
}
continue;
}
if (tokenOut == address(0)) {
require (x == _fullPath.length, "Conversion to ETH can only happen last");
if (tokenIn == address(weth)) {
weth.withdraw(amountOut);
}
else if (tokenIn == address(keth)) {
keth.withdraw(amountOut);
}
else {
revert("ETH must be converted from WETH or KETH");
}
continue;
}
if (tokenIn == address(weth) && tokenOut == address(keth)) {
keth.depositTokens(amountOut);
continue;
}
if (tokenIn == address(keth) && tokenOut == address(weth)) {
keth.withdrawTokens(amountOut);
continue;
}
if (!approved[tokenIn]) {
IERC20(tokenIn).safeApprove(address(uniswapV2Router), uint256(-1));
approved[tokenIn] = true;
}
path[0] = tokenIn;
path[1] = tokenOut;
(uint256[] memory amounts) = uniswapV2Router.swapExactTokensForTokens(amountOut, 0, path, address(this), block.timestamp);
amountOut = amounts[1];
}
amountOut = _fullPath[0] == address(0) ? address(this).balance : IERC20(_fullPath[0]).balanceOf(address(this));
require (amountOut >= _amountIn.add(_minProfit), "Not enough profit");
uint256 forVault = (amountOut - _amountIn).mul(percentToVault) / 10000;
if (_fullPath[0] == address(0)) {
(bool success,) = msg.sender.call{ value: amountOut - forVault }("");
require (success, "Transfer failed");
(success,) = vault.call{ value: forVault }("");
require (success, "Transfer failed");
return;
}
IERC20(_fullPath[0]).safeTransfer(msg.sender, amountOut - forVault);
IERC20(_fullPath[0]).safeTransfer(vault, forVault);
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
A floor calculator (to use with ERC31337)
This one is for liquidity tokens
So finally
WE CAN PLAY JENGA
*/
import "./IFloorCalculator.sol";
import "./TokensRecoverable.sol";
contract RootKitRuggableFloorCalculator is IFloorCalculator, TokensRecoverable
{
uint256 subFloor;
function setSubFloor(uint256 _subFloor) public ownerOnly()
{
subFloor = _subFloor;
}
function calculateSubFloor(IERC20, IERC20) public override view returns (uint256)
{
return subFloor;
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
From https://raw.githubusercontent.com/sushiswap/sushiswap/master/contracts/MasterChef.sol
Except a million times better
*/
import "./Owned.sol";
import "./TokensRecoverable.sol";
import "./IERC20.sol";
import "./SafeMath.sol";
import "./SafeERC20.sol";
contract RootKitStaking is TokensRecoverable
{
using SafeMath for uint256;
using SafeERC20 for IERC20;
event Deposit(address indexed user, uint256 indexed poolId, uint256 amount);
event Withdraw(address indexed user, uint256 indexed poolId, uint256 amount);
event EmergencyWithdraw(address indexed user, uint256 indexed poolId, uint256 amount);
event Emergency();
struct UserInfo
{
uint256 amountStaked;
uint256 rewardDebt;
}
struct PoolInfo
{
IERC20 token;
uint256 allocationPoints;
uint256 lastTotalReward;
uint256 accRewardPerShare;
}
IERC20 public immutable rewardToken;
PoolInfo[] public poolInfo;
mapping (uint256 => mapping (address => UserInfo)) public userInfo;
uint256 public totalAllocationPoints;
mapping (IERC20 => bool) existingPools;
uint256 constant maxPoolCount = 20; // to simplify things and ensure massUpdatePools is safe
uint256 totalReward;
uint256 lastRewardBalance;
uint256 public emergencyRecoveryTimestamp;
constructor(IERC20 _rewardToken)
{
rewardToken = _rewardToken;
}
function poolInfoCount() external view returns (uint256)
{
return poolInfo.length;
}
function addPool(uint256 _allocationPoints, IERC20 _token) public ownerOnly()
{
require (address(_token) != address(0) && _token != rewardToken && emergencyRecoveryTimestamp == 0);
require (!existingPools[_token], "Pool exists");
require (poolInfo.length < maxPoolCount, "Too many pools");
existingPools[_token] = true;
massUpdatePools();
totalAllocationPoints = totalAllocationPoints.add(_allocationPoints);
poolInfo.push(PoolInfo({
token: _token,
allocationPoints: _allocationPoints,
lastTotalReward: totalReward,
accRewardPerShare: 0
}));
}
function setPoolAllocationPoints(uint256 _poolId, uint256 _allocationPoints) public ownerOnly()
{
require (emergencyRecoveryTimestamp == 0);
massUpdatePools();
totalAllocationPoints = totalAllocationPoints.sub(poolInfo[_poolId].allocationPoints).add(_allocationPoints);
poolInfo[_poolId].allocationPoints = _allocationPoints;
}
function pendingReward(uint256 _poolId, address _user) external view returns (uint256)
{
PoolInfo storage pool = poolInfo[_poolId];
UserInfo storage user = userInfo[_poolId][_user];
uint256 accRewardPerShare = pool.accRewardPerShare;
uint256 supply = pool.token.balanceOf(address(this));
uint256 balance = rewardToken.balanceOf(address(this));
uint256 _totalReward = totalReward;
if (balance > lastRewardBalance) {
_totalReward = _totalReward.add(balance.sub(lastRewardBalance));
}
if (_totalReward > pool.lastTotalReward && supply != 0) {
uint256 reward = _totalReward.sub(pool.lastTotalReward).mul(pool.allocationPoints).div(totalAllocationPoints);
accRewardPerShare = accRewardPerShare.add(reward.mul(1e12).div(supply));
}
return user.amountStaked.mul(accRewardPerShare).div(1e12).sub(user.rewardDebt);
}
function massUpdatePools() public
{
uint256 length = poolInfo.length;
for (uint256 poolId = 0; poolId < length; ++poolId) {
updatePool(poolId);
}
}
function updatePool(uint256 _poolId) public
{
PoolInfo storage pool = poolInfo[_poolId];
uint256 rewardBalance = rewardToken.balanceOf(address(this));
if (pool.lastTotalReward == rewardBalance) {
return;
}
uint256 _totalReward = totalReward.add(rewardBalance.sub(lastRewardBalance));
lastRewardBalance = rewardBalance;
totalReward = _totalReward;
uint256 supply = pool.token.balanceOf(address(this));
if (supply == 0) {
pool.lastTotalReward = _totalReward;
return;
}
uint256 reward = _totalReward.sub(pool.lastTotalReward).mul(pool.allocationPoints).div(totalAllocationPoints);
pool.accRewardPerShare = pool.accRewardPerShare.add(reward.mul(1e12).div(supply));
pool.lastTotalReward = _totalReward;
}
function deposit(uint256 _poolId, uint256 _amount) public
{
require (emergencyRecoveryTimestamp == 0, "Withdraw only");
PoolInfo storage pool = poolInfo[_poolId];
UserInfo storage user = userInfo[_poolId][msg.sender];
updatePool(_poolId);
if (user.amountStaked > 0) {
uint256 pending = user.amountStaked.mul(pool.accRewardPerShare).div(1e12).sub(user.rewardDebt);
if (pending > 0) {
safeRewardTransfer(msg.sender, pending);
}
}
if (_amount > 0) {
pool.token.safeTransferFrom(address(msg.sender), address(this), _amount);
user.amountStaked = user.amountStaked.add(_amount);
}
user.rewardDebt = user.amountStaked.mul(pool.accRewardPerShare).div(1e12);
emit Deposit(msg.sender, _poolId, _amount);
}
function withdraw(uint256 _poolId, uint256 _amount) public
{
PoolInfo storage pool = poolInfo[_poolId];
UserInfo storage user = userInfo[_poolId][msg.sender];
require(user.amountStaked >= _amount, "Amount more than staked");
updatePool(_poolId);
uint256 pending = user.amountStaked.mul(pool.accRewardPerShare).div(1e12).sub(user.rewardDebt);
if (pending > 0) {
safeRewardTransfer(msg.sender, pending);
}
if (_amount > 0) {
user.amountStaked = user.amountStaked.sub(_amount);
pool.token.safeTransfer(address(msg.sender), _amount);
}
user.rewardDebt = user.amountStaked.mul(pool.accRewardPerShare).div(1e12);
emit Withdraw(msg.sender, _poolId, _amount);
}
function emergencyWithdraw(uint256 _poolId) public
{
PoolInfo storage pool = poolInfo[_poolId];
UserInfo storage user = userInfo[_poolId][msg.sender];
uint256 amount = user.amountStaked;
user.amountStaked = 0;
user.rewardDebt = 0;
pool.token.safeTransfer(address(msg.sender), amount);
emit EmergencyWithdraw(msg.sender, _poolId, amount);
}
function safeRewardTransfer(address _to, uint256 _amount) internal
{
uint256 balance = rewardToken.balanceOf(address(this));
rewardToken.safeTransfer(_to, _amount > balance ? balance : _amount);
lastRewardBalance = rewardToken.balanceOf(address(this));
}
function declareEmergency() public ownerOnly()
{
// Funds will be recoverable 3 days after an emergency is declared
// By then, everyone should have withdrawn whatever they can
// Failing that (which is probably why there's an emergency) we can recover for them
emergencyRecoveryTimestamp = block.timestamp + 60*60*24*3;
emit Emergency();
}
function canRecoverTokens(IERC20 token) internal override view returns (bool)
{
if (emergencyRecoveryTimestamp != 0 && block.timestamp > emergencyRecoveryTimestamp) {
return true;
}
else {
return token != rewardToken && !existingPools[token];
}
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
A floor calculator (to use with ERC31337) for RootKit uniswap pairs
Ensures 100% of accessible funds are backed at all times
*/
import "./IFloorCalculator.sol";
import "./RootKit.sol";
import "./SafeMath.sol";
import "./UniswapV2Library.sol";
import "./IUniswapV2Factory.sol";
import "./IUniswapV2Router02.sol";
import "./TokensRecoverable.sol";
import "./EnumerableSet.sol";
contract RootKitTwoPoolCalculator is IFloorCalculator, TokensRecoverable
{
using SafeMath for uint256;
using EnumerableSet for EnumerableSet.AddressSet;
IERC20 immutable rootKit;
IERC20 immutable keth;
IERC20 immutable weth;
address public immutable wethPair;
address public immutable kethPair;
IUniswapV2Factory immutable uniswapV2Factory;
IUniswapV2Router02 immutable uniswapV2Router;
EnumerableSet.AddressSet ignoredAddresses;
constructor(IERC20 _rootKit, IERC20 _keth, IERC20 _weth, IUniswapV2Factory _uniswapV2Factory, IUniswapV2Router02 _uniswapV2Router)
{
rootKit = _rootKit;
keth = _keth;
weth = _weth;
uniswapV2Factory = _uniswapV2Factory;
uniswapV2Router = _uniswapV2Router;
kethPair = _uniswapV2Factory.getPair(address(_keth), address(_rootKit));
wethPair = _uniswapV2Factory.getPair(address(_weth), address(_rootKit));
}
function setIgnoredAddress(address ignoredAddress, bool add) public ownerOnly()
{
if (add)
{
ignoredAddresses.add(ignoredAddress);
}
else
{
ignoredAddresses.remove(ignoredAddress);
}
}
function isIgnoredAddress(address ignoredAddress) public view returns (bool)
{
return ignoredAddresses.contains(ignoredAddress);
}
function ignoredAddressCount() public view returns (uint256)
{
return ignoredAddresses.length();
}
function ignoredAddressAt(uint256 index) public view returns (address)
{
return ignoredAddresses.at(index);
}
function ignoredAddressesTotalBalance() public view returns (uint256)
{
uint256 total = 0;
for (uint i = 0; i < ignoredAddresses.length(); i++) {
total = total.add(rootKit.balanceOf(ignoredAddresses.at(i)));
}
return total;
}
// returns the amount currently available to be swept
function calculateSubFloor(IERC20 wrappedToken, IERC20 backingToken) public override view returns (uint256) // backing token = keth
{
uint256 totalRootInPairs = rootKit.balanceOf(kethPair).add(rootKit.balanceOf(wethPair));
uint256 totalBaseAndEliteInPairs = backingToken.balanceOf(kethPair).add(wrappedToken.balanceOf(wethPair));
uint256 rootKitCirculatingSupply = rootKit.totalSupply().sub(totalRootInPairs).sub(ignoredAddressesTotalBalance());
uint256 amountUntilFloor = uniswapV2Router.getAmountOut(rootKitCirculatingSupply, totalRootInPairs, totalBaseAndEliteInPairs) * 100 / 94; //includes burn
uint256 totalExcessInPools = totalBaseAndEliteInPairs.sub(amountUntilFloor);
uint256 previouslySwept = backingToken.totalSupply().sub(wrappedToken.balanceOf(address(backingToken)));
if (previouslySwept >= totalExcessInPools) { return 0; }
return totalExcessInPools.sub(previouslySwept);
}
function getAbsoluteFloorPrice() public view returns (uint256)
{
uint256 totalRootInPairs = rootKit.balanceOf(kethPair).add(rootKit.balanceOf(wethPair));
uint256 totalBaseAndEliteInPairs = keth.balanceOf(kethPair).add(weth.balanceOf(wethPair));
uint256 rootKitCirculatingSupply = rootKit.totalSupply().sub(totalRootInPairs).sub(ignoredAddressesTotalBalance());
uint256 amountUntilFloor = uniswapV2Router.getAmountOut(rootKitCirculatingSupply, totalRootInPairs, totalBaseAndEliteInPairs) * 100 / 94;
uint256 totalExcessInPools = totalBaseAndEliteInPairs.sub(amountUntilFloor);
uint256 newTotalRootInPairs = totalRootInPairs + rootKitCirculatingSupply * 100 / 94;
uint256 priceForOneRootIfZeroHolders = uniswapV2Router.getAmountIn(1e18, totalExcessInPools, newTotalRootInPairs);
return priceForOneRootIfZeroHolders;
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./Owned.sol";
import "./SafeERC20.sol";
import "./IERC20.sol";
contract RootKitVault is Owned
{
using SafeERC20 for IERC20;
receive() external payable { }
function sendEther(address payable _to, uint256 _amount) public ownerOnly()
{
(bool success,) = _to.call{ value: _amount }("");
require (success, "Transfer failed");
}
function sendToken(IERC20 _token, address _to, uint256 _amount) public ownerOnly()
{
_token.safeTransfer(_to, _amount);
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./Owned.sol";
import "./IUniswapV2Router02.sol";
import "./IWETH.sol";
import "./RootKit.sol";
import "./RootKitTransferGate.sol";
import "./TokensRecoverable.sol";
contract RootWethZapper is TokensRecoverable
{
function go(IWETH weth, RootKit rootKit, uint256 wethAmount, uint256 rootKitAmount, IUniswapV2Router02 uniswapV2Router)
public ownerOnly()
{
RootKitTransferGate gate = RootKitTransferGate(address(rootKit.transferGate()));
gate.setUnrestricted(true);
weth.transferFrom(msg.sender, address(this), wethAmount);
rootKit.transferFrom(msg.sender, address(this), rootKitAmount);
weth.approve(address(uniswapV2Router), wethAmount);
rootKit.approve(address(uniswapV2Router), rootKitAmount);
uniswapV2Router.addLiquidity(address(weth), address(rootKit), wethAmount, rootKitAmount, wethAmount, rootKitAmount, msg.sender, block.timestamp);
gate.setUnrestricted(false);
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
Modified to remove some junk
Also modified to remove silly restrictions (traps!) within safeApprove
*/
import "./IERC20.sol";
import "./SafeMath.sol";
import "./Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using SafeMath for uint256;
using Address for address;
function safeTransfer(IERC20 token, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(IERC20 token, address spender, uint256 value) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) { // Return data is optional
// solhint-disable-next-line max-line-length
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
O wherefore art thou 8 point O
*/
library SafeMath
{
function add(uint256 a, uint256 b) internal pure returns (uint256)
{
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256)
{
return sub(a, b, "SafeMath: subtraction overflow");
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256)
{
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
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;
}
function div(uint256 a, uint256 b) internal pure returns (uint256)
{
return div(a, b, "SafeMath: division by zero");
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256)
{
require(b > 0, errorMessage);
uint256 c = a / b;
return c;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256)
{
return mod(a, b, "SafeMath: modulo by zero");
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256)
{
require(b != 0, errorMessage);
return a % b;
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
pragma experimental ABIEncoderV2;
/* ROOTKIT:
Stoneface will protect you
Stoneface will hold stuff
Like KETH
But it doesn't know anything
So it can't call setFloorCalculator
Or setSweeper
Or anything, really
It's pretty stupid
But it'll give stuff back if we want
And if we're patient enough
Cus it takes a while
Unless we tell it to watch the distribution
Then he wont give it back at all
Unless the distribution is complete
Stoneface is slow
*/
import "./Owned.sol";
import "./TokensRecoverable.sol";
import "./IStoneface.sol";
import "./IRootKitDistribution.sol";
contract Stoneface is TokensRecoverable, IStoneface
{
uint256 public immutable override delay;
IRootKitDistribution public override rootKitDistribution;
TransferOwnership[] _pendingTransferOwnership;
function pendingTransferOwnership(uint256 index) public override view returns (TransferOwnership memory) { return _pendingTransferOwnership[index]; }
function pendingTransferOwnershipCount() public override view returns (uint256) { return _pendingTransferOwnership.length; }
constructor(uint256 _delay)
{
delay = _delay;
}
function watchDistribution(IRootKitDistribution _rootKitDistribution) public override ownerOnly()
{
require (address(rootKitDistribution) == address(0), "Can only be set once");
rootKitDistribution = _rootKitDistribution;
}
function callTransferOwnership(IOwned target, address newOwner) public override ownerOnly()
{
TransferOwnership memory pending;
pending.target = target;
pending.newOwner = newOwner;
pending.when = block.timestamp + delay;
_pendingTransferOwnership.push(pending);
emit PendingOwnershipTransfer(target, newOwner, pending.when);
}
function callTransferOwnershipNow(uint256 index) public override ownerOnly()
{
require (_pendingTransferOwnership[index].when <= block.timestamp, "Too early");
require (address(rootKitDistribution) == address(0) || rootKitDistribution.distributionComplete(), "Distribution not yet complete");
_pendingTransferOwnership[index].target.transferOwnership(_pendingTransferOwnership[index].newOwner);
_pendingTransferOwnership[index] = _pendingTransferOwnership[_pendingTransferOwnership.length - 1];
_pendingTransferOwnership.pop();
}
function callClaimOwnership(IOwned target) public override ownerOnly()
{
target.claimOwnership();
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
Allows recovery of unexpected tokens (airdrops, etc)
Inheriters can customize logic by overriding canRecoverTokens
*/
import "./IERC20.sol";
import "./SafeERC20.sol";
import "./Owned.sol";
import "./ITokensRecoverable.sol";
abstract contract TokensRecoverable is Owned, ITokensRecoverable
{
using SafeERC20 for IERC20;
function recoverTokens(IERC20 token) public override ownerOnly()
{
require (canRecoverTokens(token));
token.safeTransfer(msg.sender, token.balanceOf(address(this)));
}
function canRecoverTokens(IERC20 token) internal virtual view returns (bool)
{
return address(token) != address(this);
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./IUniswapV2Pair.sol";
import "./SafeMath.sol";
library UniswapV2Library {
using SafeMath for uint;
// returns sorted token addresses, used to handle return values from pairs sorted in this order
function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
(token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS');
}
// calculates the CREATE2 address for a pair without making any external calls
function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
(address token0, address token1) = sortTokens(tokenA, tokenB);
pair = address(uint(keccak256(abi.encodePacked(
hex'ff',
factory,
keccak256(abi.encodePacked(token0, token1)),
hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash
))));
}
// fetches and sorts the reserves for a pair
function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
(address token0,) = sortTokens(tokenA, tokenB);
(uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves();
(reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
}
// given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {
require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
amountB = amountA.mul(reserveB) / reserveA;
}
// given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT');
require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
uint amountInWithFee = amountIn.mul(997);
uint numerator = amountInWithFee.mul(reserveOut);
uint denominator = reserveIn.mul(1000).add(amountInWithFee);
amountOut = numerator / denominator;
}
// given an output amount of an asset and pair reserves, returns a required input amount of the other asset
function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT');
require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
uint numerator = reserveIn.mul(amountOut).mul(1000);
uint denominator = reserveOut.sub(amountOut).mul(997);
amountIn = (numerator / denominator).add(1);
}
// performs chained getAmountOut calculations on any number of pairs
function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
amounts = new uint[](path.length);
amounts[0] = amountIn;
for (uint i; i < path.length - 1; i++) {
(uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]);
amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut);
}
}
// performs chained getAmountIn calculations on any number of pairs
function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {
require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
amounts = new uint[](path.length);
amounts[amounts.length - 1] = amountOut;
for (uint i = path.length - 1; i > 0; i--) {
(uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]);
amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut);
}
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./Owned.sol";
import "./TokensRecoverable.sol";
import "./RootKit.sol";
import "./IERC31337.sol";
import "./IUniswapV2Router02.sol";
import "./IWETH.sol";
import "./IUniswapV2Pair.sol";
import "./IERC20.sol";
import "./RootKitTransferGate.sol";
import "./UniswapV2Library.sol";
contract WbtcToWethLiquidityZapper is TokensRecoverable
{
IUniswapV2Router02 immutable uniswapV2Router;
IERC31337 immutable wrappedWbtcRootKit;
IUniswapV2Pair wbtcRootKit;
IUniswapV2Pair wethRootKit;
RootKit immutable rootKit;
IWETH immutable weth;
IERC20 immutable wbtc;
constructor(IUniswapV2Router02 _uniswapV2Router, IERC31337 _wrappedWbtcRootKit, RootKit _rootKit)
{
uniswapV2Router = _uniswapV2Router;
wrappedWbtcRootKit = _wrappedWbtcRootKit;
rootKit = _rootKit;
IUniswapV2Pair _wbtcRootKit = IUniswapV2Pair(address(_wrappedWbtcRootKit.wrappedToken()));
wbtcRootKit = _wbtcRootKit;
IWETH _weth = IWETH(_uniswapV2Router.WETH());
weth = _weth;
IERC20 _wbtc = IERC20(_wbtcRootKit.token0() == address(_rootKit) ? _wbtcRootKit.token1() : _wbtcRootKit.token0());
wbtc = _wbtc;
wethRootKit = IUniswapV2Pair(IUniswapV2Factory(_uniswapV2Router.factory()).getPair(address(_weth), address(_rootKit)));
_wbtcRootKit.approve(address(_uniswapV2Router), uint256(-1));
_wbtc.approve(address(_uniswapV2Router), uint256(-1));
_weth.approve(address(_uniswapV2Router), uint256(-1));
_rootKit.approve(address(_uniswapV2Router), uint256(-1));
require (_wbtcRootKit.token0() == address(_rootKit) || _wbtcRootKit.token1() == address(_rootKit), "Sanity");
require (_wbtcRootKit.token0() != address(_weth) && _wbtcRootKit.token1() != address(_weth), "Sanity");
}
function go() public ownerOnly()
{
wrappedWbtcRootKit.sweepFloor(address(this));
uint256 liquidity = wbtcRootKit.balanceOf(address(this));
require (liquidity > 0, "Nothing unwrapped");
RootKitTransferGate gate = RootKitTransferGate(address(rootKit.transferGate()));
gate.setUnrestricted(true);
(uint256 amountRootKit, uint256 amountWbtc) = uniswapV2Router.removeLiquidity(address(rootKit), address(wbtc), liquidity, 0, 0, address(this), block.timestamp);
address[] memory path = new address[](2);
path[0] = address(wbtc);
path[1] = address(weth);
(uint256[] memory amounts) = uniswapV2Router.swapExactTokensForTokens(amountWbtc, 0, path, address(this), block.timestamp);
(,,liquidity) = uniswapV2Router.addLiquidity(address(rootKit), address(weth), amountRootKit, amounts[1], 0, 0, address(this), block.timestamp);
require (liquidity > 0, "Nothing wrapped");
wethRootKit.transfer(msg.sender, liquidity);
uint256 balance = weth.balanceOf(address(this));
if (balance > 0) { weth.transfer(msg.sender, balance ); }
balance = wbtc.balanceOf(address(this));
if (balance > 0) { wbtc.transfer(msg.sender, balance ); }
balance = rootKit.balanceOf(address(this));
if (balance > 0) { rootKit.transfer(msg.sender, balance ); }
gate.setUnrestricted(false);
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./IWETH.sol";
contract WETH9 is IWETH
{
string public override name = "Wrapped Ether";
string public override symbol = "WETH";
uint8 public override decimals = 18;
mapping (address => uint) public override balanceOf;
mapping (address => mapping (address => uint)) public override allowance;
receive() external payable {
deposit();
}
function deposit() public payable override {
balanceOf[msg.sender] += msg.value;
emit Deposit(msg.sender, msg.value);
}
function withdraw(uint wad) public override {
require(balanceOf[msg.sender] >= wad, "weth a: not enough balance");
balanceOf[msg.sender] -= wad;
msg.sender.transfer(wad);
emit Withdrawal(msg.sender, wad);
}
function totalSupply() public override view returns (uint) {
return address(this).balance;
}
function approve(address guy, uint wad) public override returns (bool) {
allowance[msg.sender][guy] = wad;
emit Approval(msg.sender, guy, wad);
return true;
}
function transfer(address dst, uint wad) public override returns (bool) {
return transferFrom(msg.sender, dst, wad);
}
function transferFrom(address src, address dst, uint wad)
public
override
returns (bool)
{
require(balanceOf[src] >= wad, "weth b: not enough balance");
if (src != msg.sender && allowance[src][msg.sender] != uint(-1)) {
require(allowance[src][msg.sender] >= wad, "weth c: not enough allowance");
allowance[src][msg.sender] -= wad;
}
balanceOf[src] -= wad;
balanceOf[dst] += wad;
emit Transfer(src, dst, wad);
return true;
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
import "./Owned.sol";
import "./TokensRecoverable.sol";
import "./RootKit.sol";
import "./IERC31337.sol";
import "./IUniswapV2Router02.sol";
import "./IWETH.sol";
import "./IUniswapV2Pair.sol";
import "./IERC20.sol";
import "./RootKitTransferGate.sol";
import "./UniswapV2Library.sol";
import "./KETH.sol";
contract WethToKethLiquidityZapper is TokensRecoverable
{
IUniswapV2Router02 immutable uniswapV2Router;
IERC31337 immutable wrappedWethRootKit;
IUniswapV2Pair kethRootKit;
IUniswapV2Pair wethRootKit;
RootKit immutable rootKit;
IWETH immutable weth;
KETH immutable keth;
constructor(IUniswapV2Router02 _uniswapV2Router, IERC31337 _wrappedWethRootKit, KETH _keth, RootKit _rootKit)
{
uniswapV2Router = _uniswapV2Router;
wrappedWethRootKit = _wrappedWethRootKit;
keth = _keth;
rootKit = _rootKit;
IUniswapV2Pair _wethRootKit = IUniswapV2Pair(address(_wrappedWethRootKit.wrappedToken()));
wethRootKit = _wethRootKit;
IWETH _weth = IWETH(_uniswapV2Router.WETH());
weth = _weth;
kethRootKit = IUniswapV2Pair(IUniswapV2Factory(_uniswapV2Router.factory()).getPair(address(_keth), address(_rootKit)));
_wethRootKit.approve(address(_uniswapV2Router), uint256(-1));
_keth.approve(address(_uniswapV2Router), uint256(-1));
_weth.approve(address(_keth), uint256(-1));
_weth.approve(address(_uniswapV2Router), uint256(-1));
_rootKit.approve(address(_uniswapV2Router), uint256(-1));
require (_wethRootKit.token0() == address(_rootKit) || _wethRootKit.token1() == address(_rootKit), "Sanity");
require (_wethRootKit.token0() == address(_weth) || _wethRootKit.token1() == address(_weth), "Sanity");
}
function WethToKeth() public ownerOnly()
{
wrappedWethRootKit.sweepFloor(address(this));
uint256 liquidity = wethRootKit.balanceOf(address(this));
require (liquidity > 0, "Nothing unwrapped");
RootKitTransferGate gate = RootKitTransferGate(address(rootKit.transferGate()));
gate.setUnrestricted(true);
(uint256 amountRootKit, uint256 amountWeth) = uniswapV2Router.removeLiquidity(address(rootKit), address(weth), liquidity, 0, 0, address(this), block.timestamp);
keth.depositTokens(amountWeth);
(,,liquidity) = uniswapV2Router.addLiquidity(address(rootKit), address(keth), amountRootKit, amountWeth, 0, 0, address(this), block.timestamp);
require (liquidity > 0, "Nothing wrapped");
kethRootKit.transfer(msg.sender, liquidity);
uint256 balance = weth.balanceOf(address(this));
if (balance > 0) { weth.transfer(msg.sender, balance ); }
balance = keth.balanceOf(address(this));
if (balance > 0) { keth.transfer(msg.sender, balance ); }
balance = rootKit.balanceOf(address(this));
if (balance > 0) { rootKit.transfer(msg.sender, balance ); }
gate.setUnrestricted(false);
}
}// SPDX-License-Identifier: J-J-J-JENGA!!!
pragma solidity ^0.7.4;
/* ROOTKIT:
Wraps any ERC20
Similar to WETH except for ERC20 tokens instead of ETH
depositTokens/withdrawTokens are like deposit/withdraw in WETH
Inheriters can hook into depositTokens and withdrawTokens
by overriding _beforeDepositTokens and _beforeWithdrawTokens
*/
import "./IERC20.sol";
import "./ERC20.sol";
import "./IWrappedERC20.sol";
import "./TokensRecoverable.sol";
import "./SafeERC20.sol";
import "./SafeMath.sol";
contract WrappedERC20 is ERC20, IWrappedERC20, TokensRecoverable
{
using SafeERC20 for IERC20;
using SafeMath for uint256;
IERC20 public immutable override wrappedToken;
constructor (IERC20 _wrappedToken, string memory _name, string memory _symbol)
ERC20(_name, _symbol)
{
if (_wrappedToken.decimals() != 18) {
_setupDecimals(_wrappedToken.decimals());
}
wrappedToken = _wrappedToken;
}
function depositTokens(uint256 _amount) public override
{
_beforeDepositTokens(_amount);
uint256 myBalance = wrappedToken.balanceOf(address(this));
wrappedToken.safeTransferFrom(msg.sender, address(this), _amount);
uint256 received = wrappedToken.balanceOf(address(this)).sub(myBalance);
_mint(msg.sender, received);
emit Deposit(msg.sender, _amount);
}
function withdrawTokens(uint256 _amount) public override
{
_beforeWithdrawTokens(_amount);
_burn(msg.sender, _amount);
uint256 myBalance = wrappedToken.balanceOf(address(this));
wrappedToken.safeTransfer(msg.sender, _amount);
require (wrappedToken.balanceOf(address(this)) == myBalance.sub(_amount), "Transfer not exact");
emit Withdrawal(msg.sender, _amount);
}
function canRecoverTokens(IERC20 token) internal virtual override view returns (bool)
{
return token != this && token != wrappedToken;
}
function _beforeDepositTokens(uint256 _amount) internal virtual view { }
function _beforeWithdrawTokens(uint256 _amount) internal virtual view { }
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract RootKit","name":"_rootKit","type":"address"},{"internalType":"contract IUniswapV2Router02","name":"_uniswapV2Router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressStates","outputs":[{"internalType":"enum RootKitTransferGate.AddressState","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"allowPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"allowedPoolTokens","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowedPoolTokensCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"detectState","outputs":[{"internalType":"enum RootKitTransferGate.AddressState","name":"state","type":"uint8"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"dumpTaxDurationInSeconds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dumpTaxEndTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dumpTaxStartRate","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"feeControllers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeParticipant","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeParticipantControllers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDumpTax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"handleTransfer","outputs":[{"internalType":"uint256","name":"burn","type":"uint256"},{"components":[{"internalType":"address","name":"destination","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"internalType":"struct TransferGateTarget[]","name":"targets","type":"tuple[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"liquiditySupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mustUpdate","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"parameters","outputs":[{"internalType":"address","name":"dev","type":"address"},{"internalType":"uint16","name":"stakeRate","type":"uint16"},{"internalType":"uint16","name":"burnRate","type":"uint16"},{"internalType":"uint16","name":"devRate","type":"uint16"},{"internalType":"address","name":"stake","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"poolsTaxRates","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"},{"internalType":"uint256","name":"rootKitAmount","type":"uint256"},{"internalType":"uint256","name":"minTokenAmount","type":"uint256"},{"internalType":"uint256","name":"minRootKitAmount","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"safeAddLiquidity","outputs":[{"internalType":"uint256","name":"rootKitUsed","type":"uint256"},{"internalType":"uint256","name":"tokenUsed","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"},{"internalType":"enum RootKitTransferGate.AddressState","name":"state","type":"uint8"}],"name":"setAddressState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"startTaxRate","type":"uint16"},{"internalType":"uint256","name":"durationInSeconds","type":"uint256"}],"name":"setDumpTax","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"feeController","type":"address"},{"internalType":"bool","name":"allow","type":"bool"}],"name":"setFeeControllers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"participant","type":"address"},{"internalType":"bool","name":"free","type":"bool"}],"name":"setFreeParticipant","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"freeParticipantController","type":"address"},{"internalType":"bool","name":"allow","type":"bool"}],"name":"setFreeParticipantController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dev","type":"address"},{"internalType":"address","name":"_stake","type":"address"},{"internalType":"uint16","name":"_stakeRate","type":"uint16"},{"internalType":"uint16","name":"_burnRate","type":"uint16"},{"internalType":"uint16","name":"_devRate","type":"uint16"}],"name":"setParameters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"pool","type":"address"},{"internalType":"uint16","name":"taxRate","type":"uint16"}],"name":"setPoolTaxRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IUniswapV2Router02","name":"_uniswapV2Router","type":"address"}],"name":"setRouterAndFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_unrestricted","type":"bool"}],"name":"setUnrestricted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"unrestrictedController","type":"address"},{"internalType":"bool","name":"allow","type":"bool"}],"name":"setUnrestrictedController","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"a","type":"address"}],"name":"throwAddressState","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniswapV2Factory","outputs":[{"internalType":"contract IUniswapV2Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniswapV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unrestricted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"unrestrictedControllers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]Contract Creation Code
60a0604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156200005157600080fd5b50604051620054f2380380620054f283398181016040528101906200007791906200022a565b8173ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505080600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b1580156200013657600080fd5b505afa1580156200014b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001719190620001fe565b600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505062000315565b600081519050620001ca81620002c7565b92915050565b600081519050620001e181620002e1565b92915050565b600081519050620001f881620002fb565b92915050565b6000602082840312156200021157600080fd5b60006200022184828501620001b9565b91505092915050565b600080604083850312156200023e57600080fd5b60006200024e85828601620001e7565b92505060206200026185828601620001d0565b9150509250929050565b60006200027882620002a7565b9050919050565b60006200028c826200026b565b9050919050565b6000620002a0826200026b565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b620002d2816200026b565b8114620002de57600080fd5b50565b620002ec816200027f565b8114620002f857600080fd5b50565b620003068162000293565b81146200031257600080fd5b50565b60805160601c6151976200035b60003980610afb5280610d585280610e085280610f63528061116e5280611d825280611e86528061329e52806133ad52506151976000f3fe608060405234801561001057600080fd5b50600436106102275760003560e01c806370b362b511610130578063b40e180b116100b8578063e4eebe821161007c578063e4eebe821461066b578063f2fde38b14610687578063f44a3667146106a3578063f77a4ba0146106bf578063fb774c04146106ef57610227565b8063b40e180b146105c7578063c380213e146105e5578063d8304ae214610601578063d89bc3671461061d578063e30b472f1461063b57610227565b806389035730116100ff578063890357301461051c5780638da5cb5b1461053e57806395c47d061461055c5780639aa3d4bd1461058d5780639c8c247c146105ab57610227565b806370b362b5146104845780637c1c6f0b146104a05780637da6b496146104d05780638327eb871461050057610227565b80633d4dc137116101b357806348b156761161018257806348b15676146103f45780634e71e0c81461041057806356f62a3b1461041a57806359d0f7131461043657806368fcfc471461045457610227565b80633d4dc137146103805780633e2a196e1461039e57806345d63cd3146103ba578063467ee03c146103d657610227565b80631694505e116101fa5780631694505e146102c457806326278f86146102e2578063329e882c1461030057806335c6508d1461033257806339a8c0fa1461036257610227565b806308a7595b1461022c5780630bfe89341461025c57806313b0dc981461028c57806316114acd146102a8575b600080fd5b6102466004803603810190610241919061418b565b61071f565b6040516102539190614b7e565b60405180910390f35b610276600480360381019061027191906144e9565b61073f565b6040516102839190614b99565b60405180910390f35b6102a660048036038101906102a191906144ad565b61077e565b005b6102c260048036038101906102bd91906143bd565b6108da565b005b6102cc610a7c565b6040516102d99190614bcf565b60405180910390f35b6102ea610aa2565b6040516102f79190614b7e565b60405180910390f35b61031a600480360381019061031591906143e6565b610ab5565b60405161032993929190614dcb565b60405180910390f35b61034c6004803603810190610347919061418b565b611319565b6040516103599190614bea565b60405180910390f35b61036a611339565b6040516103779190614d80565b60405180910390f35b610388611394565b6040516103959190614d80565b60405180910390f35b6103b860048036038101906103b391906142b7565b6113a1565b005b6103d460048036038101906103cf91906142b7565b6114bd565b005b6103de6115d9565b6040516103eb9190614d80565b60405180910390f35b61040e60048036038101906104099190614240565b6115df565b005b6104186119bb565b005b610434600480360381019061042f91906142f3565b611b13565b005b61043e611c38565b60405161044b9190614bb4565b60405180910390f35b61046e6004803603810190610469919061418b565b611c5e565b60405161047b9190614d65565b60405180910390f35b61049e600480360381019061049991906143bd565b611c7f565b005b6104ba60048036038101906104b5919061418b565b61214c565b6040516104c79190614bea565b60405180910390f35b6104ea60048036038101906104e5919061418b565b612279565b6040516104f79190614b7e565b60405180910390f35b61051a6004803603810190610515919061436b565b612299565b005b610524612342565b604051610535959493929190614b02565b60405180910390f35b6105466123d0565b60405161055391906149e0565b60405180910390f35b610576600480360381019061057191906141dd565b6123f4565b604051610584929190614d9b565b60405180910390f35b610595612ed3565b6040516105a29190614d80565b60405180910390f35b6105c560048036038101906105c091906142b7565b612ed9565b005b6105cf613016565b6040516105dc9190614d65565b60405180910390f35b6105ff60048036038101906105fa91906142b7565b61302a565b005b61061b6004803603810190610616919061418b565b613146565b005b61062561347c565b60405161063291906149e0565b60405180910390f35b6106556004803603810190610650919061418b565b6134a2565b6040516106629190614b7e565b60405180910390f35b6106856004803603810190610680919061432f565b6134c2565b005b6106a1600480360381019061069c919061418b565b61364b565b005b6106bd60048036038101906106b89190614484565b613750565b005b6106d960048036038101906106d4919061418b565b613913565b6040516106e69190614b7e565b60405180910390f35b6107096004803603810190610704919061418b565b613933565b6040516107169190614d80565b60405180910390f35b600b6020528060005260406000206000915054906101000a900460ff1681565b6007818154811061074f57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610821575060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085790614c45565b60405180910390fd5b6109c48261ffff1611156108a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a090614ce5565b60405180910390fd5b81600f60146101000a81548161ffff021916908361ffff160217905550806010819055508042016011819055505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461099b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6109a48161394b565b6109ad57600080fd5b610a79338273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610a1857600080fd5b505afa158015610a2c573d6000803e3d6000fd5b505050506040513d6020811015610a4257600080fd5b81019080805190602001909291905050508373ffffffffffffffffffffffffffffffffffffffff166139849092919063ffffffff16565b50565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900460ff1681565b600080600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e6a439057f00000000000000000000000000000000000000000000000000000000000000008d6040518363ffffffff1660e01b8152600401610b38929190614a5b565b60206040518083038186803b158015610b5057600080fd5b505afa158015610b64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8891906141b4565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015610c285750600380811115610bce57fe5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166003811115610c2657fe5b145b610c67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5e90614c25565b60405180910390fd5b600860009054906101000a900460ff1615610c8157600080fd5b6001600860006101000a81548160ff02191690831515021790555060008b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610cd791906149e0565b60206040518083038186803b158015610cef57600080fd5b505afa158015610d03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d279190614512565b9050610d5633308d8f73ffffffffffffffffffffffffffffffffffffffff16613a26909392919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166323b872dd33308d6040518463ffffffff1660e01b8152600401610db3939291906149fb565b602060405180830381600087803b158015610dcd57600080fd5b505af1158015610de1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e059190614394565b507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168c6040518363ffffffff1660e01b8152600401610e83929190614b55565b602060405180830381600087803b158015610e9d57600080fd5b505af1158015610eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed59190614394565b50610f23600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168c8e73ffffffffffffffffffffffffffffffffffffffff16613ae79092919063ffffffff16565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e8e337007f00000000000000000000000000000000000000000000000000000000000000008e8d8f8d8f8e8e6040518963ffffffff1660e01b8152600401610fac989796959493929190614a84565b606060405180830381600087803b158015610fc657600080fd5b505af1158015610fda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffe919061453b565b8095508196508297505050508173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561105057600080fd5b505afa158015611064573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110889190614512565b600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611164576000600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b8985101561121d577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33878d036040518363ffffffff1660e01b81526004016111c9929190614a32565b602060405180830381600087803b1580156111e357600080fd5b505af11580156111f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121b9190614394565b505b6112b8818d73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161125a91906149e0565b60206040518083038186803b15801561127257600080fd5b505afa158015611286573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112aa9190614512565b613b8990919063ffffffff16565b905060008111156112ef576112ee33828e73ffffffffffffffffffffffffffffffffffffffff166139849092919063ffffffff16565b5b6000600860006101000a81548160ff02191690831515021790555050509750975097945050505050565b60066020528060005260406000206000915054906101000a900460ff1681565b6000601154421061134d5760009050611391565b670de0b6b3a7640000601054670de0b6b3a76400004260115403600f60149054906101000a900461ffff1661ffff1602028161138557fe5b048161138d57fe5b0490505b90565b6000600780549050905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461157e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60115481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6127108361ffff16111580156116bc57506127108261ffff1611155b80156116ce57506127108161ffff1611155b80156116e45750612710818385010161ffff1611155b611723576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171a90614d45565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415801561178d5750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b61179657600080fd5b6101f48361ffff16111580156117b257506101f48261ffff1611155b80156117c35750600a8161ffff1611155b611802576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f990614c85565b60405180910390fd5b61180a614022565b85816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505083816020019061ffff16908161ffff168152505082816040019061ffff16908161ffff168152505081816060019061ffff16908161ffff168152505084816080019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080600260008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548161ffff021916908361ffff16021790555060408201518160000160166101000a81548161ffff021916908361ffff16021790555060608201518160000160186101000a81548161ffff021916908361ffff16021790555060808201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a1557600080fd5b6000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611bd4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690836003811115611c2f57fe5b02179055505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d6020528060005260406000206000915054906101000a900461ffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e6a439057f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b8152600401611dbf929190614a5b565b60206040518083038186803b158015611dd757600080fd5b505afa158015611deb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0f91906141b4565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f1857600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c9c653967f0000000000000000000000000000000000000000000000000000000000000000846040518363ffffffff1660e01b8152600401611ec3929190614a5b565b602060405180830381600087803b158015611edd57600080fd5b505af1158015611ef1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f1591906141b4565b90505b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050600380811115611f7557fe5b816003811115611f8157fe5b1415611fc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb990614c65565b60405180910390fd5b6003600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600381111561201e57fe5b02179055506007839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156120cc57600080fd5b505afa1580156120e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121049190614512565b600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050565b6000600190506121718273ffffffffffffffffffffffffffffffffffffffff16613bd3565b15612214573073ffffffffffffffffffffffffffffffffffffffff1663d8304ae2836040518263ffffffff1660e01b81526004016121af91906149e0565b60006040518083038186803b1580156121c757600080fd5b505afa9250505080156121d8575060015b61220a576121e4614fad565b806121ef5750612204565b6002815114156121fe57600291505b50612205565b5b612213565b600061221257fe5b5b5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600381111561226f57fe5b0217905550919050565b60096020528060005260406000206000915054906101000a900460ff1681565b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612325576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231c90614d25565b60405180910390fd5b80600860006101000a81548160ff02191690831515021790555050565b60028060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900461ffff16908060000160169054906101000a900461ffff16908060000160189054906101000a900461ffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905085565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060606000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146125d3576000600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156124dd57600080fd5b505afa1580156124f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125159190614512565b90506000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508082146125d057600860009054906101000a900460ff1661258a578082116125835780612585565b815b61258c565b815b600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b50505b506000600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1690506000600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905060038081111561268257fe5b82600381111561268e57fe5b141580156126b257506003808111156126a357fe5b8160038111156126af57fe5b14155b156127a257600060038111156126c457fe5b8260038111156126d057fe5b14156126e2576126df8761214c565b91505b600060038111156126ef57fe5b8160038111156126fb57fe5b141561270d5761270a8661214c565b90505b600860009054906101000a900460ff168061276257506002600381111561273057fe5b82600381111561273c57fe5b1415801561276157506002600381111561275257fe5b81600381111561275e57fe5b14155b5b6127a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279890614c25565b60405180910390fd5b5b6003808111156127ae57fe5b8160038111156127ba57fe5b14156128025785600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b60038081111561280e57fe5b82600381111561281a57fe5b14156129f757600860009054906101000a900460ff16156128f7578673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561287b57600080fd5b505afa15801561288f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128b39190614512565b600e60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600e60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548773ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561297d57600080fd5b505afa158015612991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129b59190614512565b10156129f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ed90614d05565b60405180910390fd5b5b5050600860009054906101000a900460ff1680612a5d5750600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b80612ab15750600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612b135760008067ffffffffffffffff81118015612acf57600080fd5b50604051908082528060200260200182016040528015612b0957816020015b612af6614089565b815260200190600190039081612aee5790505b5091509150612eca565b612b1b614022565b60026040518060a00160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900461ffff1661ffff1661ffff1681526020016000820160169054906101000a900461ffff1661ffff1661ffff1681526020016000820160189054906101000a900461ffff1661ffff1661ffff1681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050612710816040015161ffff16600d60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900461ffff1661ffff1611612ca757816040015161ffff16612d03565b612caf611339565b600d60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900461ffff1661ffff16015b850281612d0c57fe5b0492506000816020015161ffff1611612d26576000612d29565b60015b6000826060015161ffff1611612d40576000612d43565b60015b0160ff1667ffffffffffffffff81118015612d5d57600080fd5b50604051908082528060200260200182016040528015612d9757816020015b612d84614089565b815260200190600190039081612d7c5790505b509150600080826020015161ffff161115612e34578160800151838281518110612dbd57fe5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612710826020015161ffff16860281612e1057fe5b04838280600101935081518110612e2357fe5b602002602001015160200181815250505b6000826060015161ffff161115612ec7578160000151838281518110612e5657fe5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612710826060015161ffff16860281612ea957fe5b04838281518110612eb657fe5b602002602001015160200181815250505b50505b94509492505050565b60105481565b600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612f7c575060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612fbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fb290614c45565b60405180910390fd5b80600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600f60149054906101000a900461ffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146130eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b8073ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561318c57600080fd5b505afa9250505080156131bd57506040513d601f19601f820116820180604052508101906131ba91906141b4565b60015b6131c657613441565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561343f578173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561326257600080fd5b505afa92505050801561329357506040513d601f19601f8201168201806040525081019061329091906141b4565b60015b61329c5761343e565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561332b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332290614cc5565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561337157600080fd5b505afa9250505080156133a257506040513d601f19601f8201168201806040525081019061339f91906141b4565b60015b6133ab5761343c565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561343a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343190614cc5565b60405180910390fd5b505b505b5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347390614ca5565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a6020528060005260406000206000915054906101000a900460ff1681565b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680613565575060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6135a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161359b90614c45565b60405180910390fd5b6127108161ffff1611156135ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135e490614c05565b60405180910390fd5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548161ffff021916908361ffff1602179055505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461370c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561389857600080fd5b505afa1580156138ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138d091906141b4565b600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c6020528060005260406000206000915054906101000a900460ff1681565b600e6020528060005260406000206000915090505481565b60003073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614159050919050565b613a218363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613be6565b505050565b613ae1846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613be6565b50505050565b613b848363095ea7b360e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613be6565b505050565b6000613bcb83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613cd5565b905092915050565b600080823b905060008111915050919050565b6060613c48826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613d959092919063ffffffff16565b9050600081511115613cd057808060200190516020811015613c6957600080fd5b8101908080519060200190929190505050613ccf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180615138602a913960400191505060405180910390fd5b5b505050565b6000838311158290613d82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613d47578082015181840152602081019050613d2c565b50505050905090810190601f168015613d745780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6060613da48484600085613dad565b90509392505050565b606082471015613e08576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806151126026913960400191505060405180910390fd5b613e1185613bd3565b613e83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310613ed35780518252602082019150602081019050602083039250613eb0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613f35576040519150601f19603f3d011682016040523d82523d6000602084013e613f3a565b606091505b5091509150613f4a828286613f56565b92505050949350505050565b60608315613f665782905061401b565b600083511115613f795782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613fe0578082015181840152602081019050613fc5565b50505050905090810190601f16801561400d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b6040518060a00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000813590506140c881615077565b92915050565b6000815190506140dd81615077565b92915050565b6000813590506140f28161508e565b92915050565b6000815190506141078161508e565b92915050565b60008135905061411c816150a5565b92915050565b600081359050614131816150bc565b92915050565b600081359050614146816150d3565b92915050565b60008135905061415b816150e3565b92915050565b600081359050614170816150fa565b92915050565b600081519050614185816150fa565b92915050565b60006020828403121561419d57600080fd5b60006141ab848285016140b9565b91505092915050565b6000602082840312156141c657600080fd5b60006141d4848285016140ce565b91505092915050565b600080600080608085870312156141f357600080fd5b6000614201878288016140b9565b9450506020614212878288016140b9565b9350506040614223878288016140b9565b925050606061423487828801614161565b91505092959194509250565b600080600080600060a0868803121561425857600080fd5b6000614266888289016140b9565b9550506020614277888289016140b9565b94505060406142888882890161414c565b93505060606142998882890161414c565b92505060806142aa8882890161414c565b9150509295509295909350565b600080604083850312156142ca57600080fd5b60006142d8858286016140b9565b92505060206142e9858286016140e3565b9150509250929050565b6000806040838503121561430657600080fd5b6000614314858286016140b9565b925050602061432585828601614137565b9150509250929050565b6000806040838503121561434257600080fd5b6000614350858286016140b9565b92505060206143618582860161414c565b9150509250929050565b60006020828403121561437d57600080fd5b600061438b848285016140e3565b91505092915050565b6000602082840312156143a657600080fd5b60006143b4848285016140f8565b91505092915050565b6000602082840312156143cf57600080fd5b60006143dd8482850161410d565b91505092915050565b600080600080600080600060e0888a03121561440157600080fd5b600061440f8a828b0161410d565b97505060206144208a828b01614161565b96505060406144318a828b01614161565b95505060606144428a828b01614161565b94505060806144538a828b01614161565b93505060a06144648a828b016140b9565b92505060c06144758a828b01614161565b91505092959891949750929550565b60006020828403121561449657600080fd5b60006144a484828501614122565b91505092915050565b600080604083850312156144c057600080fd5b60006144ce8582860161414c565b92505060206144df85828601614161565b9150509250929050565b6000602082840312156144fb57600080fd5b600061450984828501614161565b91505092915050565b60006020828403121561452457600080fd5b600061453284828501614176565b91505092915050565b60008060006060848603121561455057600080fd5b600061455e86828701614176565b935050602061456f86828701614176565b925050604061458086828701614176565b9150509250925092565b60006145968383614984565b60408301905092915050565b6145ab81614ed9565b82525050565b6145ba81614e4c565b82525050565b6145c981614e4c565b82525050565b60006145da82614e12565b6145e48185614e2a565b93506145ef83614e02565b8060005b83811015614620578151614607888261458a565b975061461283614e1d565b9250506001810190506145f3565b5085935050505092915050565b61463681614e5e565b82525050565b61464581614eeb565b82525050565b61465481614f0f565b82525050565b61466381614f33565b82525050565b61467281614f57565b82525050565b6000614685602b83614e3b565b91507f4665652072617465206d757374206265206c657373207468616e206f7220657160008301527f75616c20746f20313030250000000000000000000000000000000000000000006020830152604082019050919050565b60006146eb601183614e3b565b91507f506f6f6c206e6f7420617070726f7665640000000000000000000000000000006000830152602082019050919050565b600061472b601e83614e3b565b91507f4e6f7420616e206f776e6572206f722066656520636f6e74726f6c6c657200006000830152602082019050919050565b600061476b600f83614e3b565b91507f416c726561647920616c6c6f77656400000000000000000000000000000000006000830152602082019050919050565b60006147ab600683614e3b565b91507f53616e69747900000000000000000000000000000000000000000000000000006000830152602082019050919050565b60006147eb600183614e3b565b91507f31000000000000000000000000000000000000000000000000000000000000006000830152602082019050919050565b600061482b600283614e3b565b91507f32320000000000000000000000000000000000000000000000000000000000006000830152602082019050919050565b600061486b602f83614e3b565b91507f44756d70207461782072617465206d757374206265206c657373207468616e2060008301527f6f7220657175616c20746f2032352500000000000000000000000000000000006020830152604082019050919050565b60006148d1601783614e3b565b91507f43616e6e6f742072656d6f7665206c69717569646974790000000000000000006000830152602082019050919050565b6000614911601e83614e3b565b91507f4e6f7420616e20756e7265737472696374656420636f6e74726f6c6c657200006000830152602082019050919050565b6000614951600683614e3b565b91507f3e203130302500000000000000000000000000000000000000000000000000006000830152602082019050919050565b60408201600082015161499a60008501826145b1565b5060208201516149ad60208501826149c2565b50505050565b6149bc81614ea1565b82525050565b6149cb81614ecf565b82525050565b6149da81614ecf565b82525050565b60006020820190506149f560008301846145c0565b92915050565b6000606082019050614a1060008301866145a2565b614a1d60208301856145c0565b614a2a60408301846149d1565b949350505050565b6000604082019050614a4760008301856145a2565b614a5460208301846149d1565b9392505050565b6000604082019050614a7060008301856145c0565b614a7d60208301846145c0565b9392505050565b600061010082019050614a9a600083018b6145c0565b614aa7602083018a6145c0565b614ab460408301896149d1565b614ac160608301886149d1565b614ace60808301876149d1565b614adb60a08301866149d1565b614ae860c08301856145c0565b614af560e08301846149d1565b9998505050505050505050565b600060a082019050614b1760008301886145c0565b614b2460208301876149b3565b614b3160408301866149b3565b614b3e60608301856149b3565b614b4b60808301846145c0565b9695505050505050565b6000604082019050614b6a60008301856145c0565b614b7760208301846149d1565b9392505050565b6000602082019050614b93600083018461462d565b92915050565b6000602082019050614bae600083018461463c565b92915050565b6000602082019050614bc9600083018461464b565b92915050565b6000602082019050614be4600083018461465a565b92915050565b6000602082019050614bff6000830184614669565b92915050565b60006020820190508181036000830152614c1e81614678565b9050919050565b60006020820190508181036000830152614c3e816146de565b9050919050565b60006020820190508181036000830152614c5e8161471e565b9050919050565b60006020820190508181036000830152614c7e8161475e565b9050919050565b60006020820190508181036000830152614c9e8161479e565b9050919050565b60006020820190508181036000830152614cbe816147de565b9050919050565b60006020820190508181036000830152614cde8161481e565b9050919050565b60006020820190508181036000830152614cfe8161485e565b9050919050565b60006020820190508181036000830152614d1e816148c4565b9050919050565b60006020820190508181036000830152614d3e81614904565b9050919050565b60006020820190508181036000830152614d5e81614944565b9050919050565b6000602082019050614d7a60008301846149b3565b92915050565b6000602082019050614d9560008301846149d1565b92915050565b6000604082019050614db060008301856149d1565b8181036020830152614dc281846145cf565b90509392505050565b6000606082019050614de060008301866149d1565b614ded60208301856149d1565b614dfa60408301846149d1565b949350505050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000614e5782614eaf565b9050919050565b60008115159050919050565b6000614e7582614e4c565b9050919050565b6000614e8782614e4c565b9050919050565b6000819050614e9c82615063565b919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614ee482614f69565b9050919050565b6000614ef682614efd565b9050919050565b6000614f0882614eaf565b9050919050565b6000614f1a82614f21565b9050919050565b6000614f2c82614eaf565b9050919050565b6000614f3e82614f45565b9050919050565b6000614f5082614eaf565b9050919050565b6000614f6282614e8e565b9050919050565b6000614f7482614f7b565b9050919050565b6000614f8682614eaf565b9050919050565bfe5b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d1015614fbd57615060565b60046000803e614fce600051614fa0565b6308c379a08114614fdf5750615060565b60405160043d036004823e80513d602482011167ffffffffffffffff8211171561500b57505050615060565b808201805167ffffffffffffffff81111561502a575050505050615060565b8060208301013d850181111561504557505050505050615060565b61504e82614f8f565b60208401016040528296505050505050505b90565b6004811061507457615073614f8d565b5b50565b61508081614e4c565b811461508b57600080fd5b50565b61509781614e5e565b81146150a257600080fd5b50565b6150ae81614e6a565b81146150b957600080fd5b50565b6150c581614e7c565b81146150d057600080fd5b50565b600481106150e057600080fd5b50565b6150ec81614ea1565b81146150f757600080fd5b50565b61510381614ecf565b811461510e57600080fd5b5056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220686b65230eebfd717588a174388fbfb4718b91111667d80e92a142e017bc768364736f6c63430007040033000000000000000000000000cb5f72d37685c3d5ad0bb5f982443bc8fcdf570e0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102275760003560e01c806370b362b511610130578063b40e180b116100b8578063e4eebe821161007c578063e4eebe821461066b578063f2fde38b14610687578063f44a3667146106a3578063f77a4ba0146106bf578063fb774c04146106ef57610227565b8063b40e180b146105c7578063c380213e146105e5578063d8304ae214610601578063d89bc3671461061d578063e30b472f1461063b57610227565b806389035730116100ff578063890357301461051c5780638da5cb5b1461053e57806395c47d061461055c5780639aa3d4bd1461058d5780639c8c247c146105ab57610227565b806370b362b5146104845780637c1c6f0b146104a05780637da6b496146104d05780638327eb871461050057610227565b80633d4dc137116101b357806348b156761161018257806348b15676146103f45780634e71e0c81461041057806356f62a3b1461041a57806359d0f7131461043657806368fcfc471461045457610227565b80633d4dc137146103805780633e2a196e1461039e57806345d63cd3146103ba578063467ee03c146103d657610227565b80631694505e116101fa5780631694505e146102c457806326278f86146102e2578063329e882c1461030057806335c6508d1461033257806339a8c0fa1461036257610227565b806308a7595b1461022c5780630bfe89341461025c57806313b0dc981461028c57806316114acd146102a8575b600080fd5b6102466004803603810190610241919061418b565b61071f565b6040516102539190614b7e565b60405180910390f35b610276600480360381019061027191906144e9565b61073f565b6040516102839190614b99565b60405180910390f35b6102a660048036038101906102a191906144ad565b61077e565b005b6102c260048036038101906102bd91906143bd565b6108da565b005b6102cc610a7c565b6040516102d99190614bcf565b60405180910390f35b6102ea610aa2565b6040516102f79190614b7e565b60405180910390f35b61031a600480360381019061031591906143e6565b610ab5565b60405161032993929190614dcb565b60405180910390f35b61034c6004803603810190610347919061418b565b611319565b6040516103599190614bea565b60405180910390f35b61036a611339565b6040516103779190614d80565b60405180910390f35b610388611394565b6040516103959190614d80565b60405180910390f35b6103b860048036038101906103b391906142b7565b6113a1565b005b6103d460048036038101906103cf91906142b7565b6114bd565b005b6103de6115d9565b6040516103eb9190614d80565b60405180910390f35b61040e60048036038101906104099190614240565b6115df565b005b6104186119bb565b005b610434600480360381019061042f91906142f3565b611b13565b005b61043e611c38565b60405161044b9190614bb4565b60405180910390f35b61046e6004803603810190610469919061418b565b611c5e565b60405161047b9190614d65565b60405180910390f35b61049e600480360381019061049991906143bd565b611c7f565b005b6104ba60048036038101906104b5919061418b565b61214c565b6040516104c79190614bea565b60405180910390f35b6104ea60048036038101906104e5919061418b565b612279565b6040516104f79190614b7e565b60405180910390f35b61051a6004803603810190610515919061436b565b612299565b005b610524612342565b604051610535959493929190614b02565b60405180910390f35b6105466123d0565b60405161055391906149e0565b60405180910390f35b610576600480360381019061057191906141dd565b6123f4565b604051610584929190614d9b565b60405180910390f35b610595612ed3565b6040516105a29190614d80565b60405180910390f35b6105c560048036038101906105c091906142b7565b612ed9565b005b6105cf613016565b6040516105dc9190614d65565b60405180910390f35b6105ff60048036038101906105fa91906142b7565b61302a565b005b61061b6004803603810190610616919061418b565b613146565b005b61062561347c565b60405161063291906149e0565b60405180910390f35b6106556004803603810190610650919061418b565b6134a2565b6040516106629190614b7e565b60405180910390f35b6106856004803603810190610680919061432f565b6134c2565b005b6106a1600480360381019061069c919061418b565b61364b565b005b6106bd60048036038101906106b89190614484565b613750565b005b6106d960048036038101906106d4919061418b565b613913565b6040516106e69190614b7e565b60405180910390f35b6107096004803603810190610704919061418b565b613933565b6040516107169190614d80565b60405180910390f35b600b6020528060005260406000206000915054906101000a900460ff1681565b6007818154811061074f57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610821575060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085790614c45565b60405180910390fd5b6109c48261ffff1611156108a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108a090614ce5565b60405180910390fd5b81600f60146101000a81548161ffff021916908361ffff160217905550806010819055508042016011819055505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461099b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6109a48161394b565b6109ad57600080fd5b610a79338273ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610a1857600080fd5b505afa158015610a2c573d6000803e3d6000fd5b505050506040513d6020811015610a4257600080fd5b81019080805190602001909291905050508373ffffffffffffffffffffffffffffffffffffffff166139849092919063ffffffff16565b50565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600860009054906101000a900460ff1681565b600080600080600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e6a439057f000000000000000000000000cb5f72d37685c3d5ad0bb5f982443bc8fcdf570e8d6040518363ffffffff1660e01b8152600401610b38929190614a5b565b60206040518083038186803b158015610b5057600080fd5b505afa158015610b64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b8891906141b4565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015610c285750600380811115610bce57fe5b600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166003811115610c2657fe5b145b610c67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c5e90614c25565b60405180910390fd5b600860009054906101000a900460ff1615610c8157600080fd5b6001600860006101000a81548160ff02191690831515021790555060008b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401610cd791906149e0565b60206040518083038186803b158015610cef57600080fd5b505afa158015610d03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d279190614512565b9050610d5633308d8f73ffffffffffffffffffffffffffffffffffffffff16613a26909392919063ffffffff16565b7f000000000000000000000000cb5f72d37685c3d5ad0bb5f982443bc8fcdf570e73ffffffffffffffffffffffffffffffffffffffff166323b872dd33308d6040518463ffffffff1660e01b8152600401610db3939291906149fb565b602060405180830381600087803b158015610dcd57600080fd5b505af1158015610de1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e059190614394565b507f000000000000000000000000cb5f72d37685c3d5ad0bb5f982443bc8fcdf570e73ffffffffffffffffffffffffffffffffffffffff1663095ea7b3600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168c6040518363ffffffff1660e01b8152600401610e83929190614b55565b602060405180830381600087803b158015610e9d57600080fd5b505af1158015610eb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed59190614394565b50610f23600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168c8e73ffffffffffffffffffffffffffffffffffffffff16613ae79092919063ffffffff16565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e8e337007f000000000000000000000000cb5f72d37685c3d5ad0bb5f982443bc8fcdf570e8e8d8f8d8f8e8e6040518963ffffffff1660e01b8152600401610fac989796959493929190614a84565b606060405180830381600087803b158015610fc657600080fd5b505af1158015610fda573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffe919061453b565b8095508196508297505050508173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561105057600080fd5b505afa158015611064573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110889190614512565b600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508173ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611164576000600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b8985101561121d577f000000000000000000000000cb5f72d37685c3d5ad0bb5f982443bc8fcdf570e73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb33878d036040518363ffffffff1660e01b81526004016111c9929190614a32565b602060405180830381600087803b1580156111e357600080fd5b505af11580156111f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061121b9190614394565b505b6112b8818d73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161125a91906149e0565b60206040518083038186803b15801561127257600080fd5b505afa158015611286573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112aa9190614512565b613b8990919063ffffffff16565b905060008111156112ef576112ee33828e73ffffffffffffffffffffffffffffffffffffffff166139849092919063ffffffff16565b5b6000600860006101000a81548160ff02191690831515021790555050509750975097945050505050565b60066020528060005260406000206000915054906101000a900460ff1681565b6000601154421061134d5760009050611391565b670de0b6b3a7640000601054670de0b6b3a76400004260115403600f60149054906101000a900461ffff1661ffff1602028161138557fe5b048161138d57fe5b0490505b90565b6000600780549050905090565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611462576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600a60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461157e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b60115481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146116a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6127108361ffff16111580156116bc57506127108261ffff1611155b80156116ce57506127108161ffff1611155b80156116e45750612710818385010161ffff1611155b611723576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171a90614d45565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415801561178d5750600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614155b61179657600080fd5b6101f48361ffff16111580156117b257506101f48261ffff1611155b80156117c35750600a8161ffff1611155b611802576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f990614c85565b60405180910390fd5b61180a614022565b85816000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505083816020019061ffff16908161ffff168152505082816040019061ffff16908161ffff168152505081816060019061ffff16908161ffff168152505084816080019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505080600260008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a81548161ffff021916908361ffff16021790555060408201518160000160166101000a81548161ffff021916908361ffff16021790555060608201518160000160186101000a81548161ffff021916908361ffff16021790555060808201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050505050505050565b3373ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611a1557600080fd5b6000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503373ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611bd4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690836003811115611c2f57fe5b02179055505050565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600d6020528060005260406000206000915054906101000a900461ffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d40576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e6a439057f000000000000000000000000cb5f72d37685c3d5ad0bb5f982443bc8fcdf570e846040518363ffffffff1660e01b8152600401611dbf929190614a5b565b60206040518083038186803b158015611dd757600080fd5b505afa158015611deb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e0f91906141b4565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611f1857600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663c9c653967f000000000000000000000000cb5f72d37685c3d5ad0bb5f982443bc8fcdf570e846040518363ffffffff1660e01b8152600401611ec3929190614a5b565b602060405180830381600087803b158015611edd57600080fd5b505af1158015611ef1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f1591906141b4565b90505b6000600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050600380811115611f7557fe5b816003811115611f8157fe5b1415611fc2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fb990614c65565b60405180910390fd5b6003600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600381111561201e57fe5b02179055506007839080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156120cc57600080fd5b505afa1580156120e0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121049190614512565b600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050565b6000600190506121718273ffffffffffffffffffffffffffffffffffffffff16613bd3565b15612214573073ffffffffffffffffffffffffffffffffffffffff1663d8304ae2836040518263ffffffff1660e01b81526004016121af91906149e0565b60006040518083038186803b1580156121c757600080fd5b505afa9250505080156121d8575060015b61220a576121e4614fad565b806121ef5750612204565b6002815114156121fe57600291505b50612205565b5b612213565b600061221257fe5b5b5b80600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083600381111561226f57fe5b0217905550919050565b60096020528060005260406000206000915054906101000a900460ff1681565b600960003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16612325576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231c90614d25565b60405180910390fd5b80600860006101000a81548160ff02191690831515021790555050565b60028060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060000160149054906101000a900461ffff16908060000160169054906101000a900461ffff16908060000160189054906101000a900461ffff16908060010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905085565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060606000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146125d3576000600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156124dd57600080fd5b505afa1580156124f1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125159190614512565b90506000600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508082146125d057600860009054906101000a900460ff1661258a578082116125835780612585565b815b61258c565b815b600e60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b50505b506000600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1690506000600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905060038081111561268257fe5b82600381111561268e57fe5b141580156126b257506003808111156126a357fe5b8160038111156126af57fe5b14155b156127a257600060038111156126c457fe5b8260038111156126d057fe5b14156126e2576126df8761214c565b91505b600060038111156126ef57fe5b8160038111156126fb57fe5b141561270d5761270a8661214c565b90505b600860009054906101000a900460ff168061276257506002600381111561273057fe5b82600381111561273c57fe5b1415801561276157506002600381111561275257fe5b81600381111561275e57fe5b14155b5b6127a1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161279890614c25565b60405180910390fd5b5b6003808111156127ae57fe5b8160038111156127ba57fe5b14156128025785600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b60038081111561280e57fe5b82600381111561281a57fe5b14156129f757600860009054906101000a900460ff16156128f7578673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561287b57600080fd5b505afa15801561288f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128b39190614512565b600e60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b600e60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548773ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561297d57600080fd5b505afa158015612991573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129b59190614512565b10156129f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ed90614d05565b60405180910390fd5b5b5050600860009054906101000a900460ff1680612a5d5750600c60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b80612ab15750600c60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b15612b135760008067ffffffffffffffff81118015612acf57600080fd5b50604051908082528060200260200182016040528015612b0957816020015b612af6614089565b815260200190600190039081612aee5790505b5091509150612eca565b612b1b614022565b60026040518060a00160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900461ffff1661ffff1661ffff1681526020016000820160169054906101000a900461ffff1661ffff1661ffff1681526020016000820160189054906101000a900461ffff1661ffff1661ffff1681526020016001820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815250509050612710816040015161ffff16600d60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900461ffff1661ffff1611612ca757816040015161ffff16612d03565b612caf611339565b600d60008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900461ffff1661ffff16015b850281612d0c57fe5b0492506000816020015161ffff1611612d26576000612d29565b60015b6000826060015161ffff1611612d40576000612d43565b60015b0160ff1667ffffffffffffffff81118015612d5d57600080fd5b50604051908082528060200260200182016040528015612d9757816020015b612d84614089565b815260200190600190039081612d7c5790505b509150600080826020015161ffff161115612e34578160800151838281518110612dbd57fe5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612710826020015161ffff16860281612e1057fe5b04838280600101935081518110612e2357fe5b602002602001015160200181815250505b6000826060015161ffff161115612ec7578160000151838281518110612e5657fe5b60200260200101516000019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff1681525050612710826060015161ffff16860281612ea957fe5b04838281518110612eb657fe5b602002602001015160200181815250505b50505b94509492505050565b60105481565b600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612f7c575060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612fbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fb290614c45565b60405180910390fd5b80600c60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600f60149054906101000a900461ffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146130eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b8073ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561318c57600080fd5b505afa9250505080156131bd57506040513d601f19601f820116820180604052508101906131ba91906141b4565b60015b6131c657613441565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561343f578173ffffffffffffffffffffffffffffffffffffffff16630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561326257600080fd5b505afa92505050801561329357506040513d601f19601f8201168201806040525081019061329091906141b4565b60015b61329c5761343e565b7f000000000000000000000000cb5f72d37685c3d5ad0bb5f982443bc8fcdf570e73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561332b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161332290614cc5565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561337157600080fd5b505afa9250505080156133a257506040513d601f19601f8201168201806040525081019061339f91906141b4565b60015b6133ab5761343c565b7f000000000000000000000000cb5f72d37685c3d5ad0bb5f982443bc8fcdf570e73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561343a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161343190614cc5565b60405180910390fd5b505b505b5b505b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347390614ca5565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600a6020528060005260406000206000915054906101000a900460ff1681565b600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680613565575060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6135a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161359b90614c45565b60405180910390fd5b6127108161ffff1611156135ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135e490614c05565b60405180910390fd5b80600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548161ffff021916908361ffff1602179055505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461370c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614613811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600a8152602001807f4f776e6572206f6e6c790000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff1663c45a01556040518163ffffffff1660e01b815260040160206040518083038186803b15801561389857600080fd5b505afa1580156138ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906138d091906141b4565b600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600c6020528060005260406000206000915054906101000a900460ff1681565b600e6020528060005260406000206000915090505481565b60003073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614159050919050565b613a218363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613be6565b505050565b613ae1846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613be6565b50505050565b613b848363095ea7b360e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050613be6565b505050565b6000613bcb83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250613cd5565b905092915050565b600080823b905060008111915050919050565b6060613c48826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16613d959092919063ffffffff16565b9050600081511115613cd057808060200190516020811015613c6957600080fd5b8101908080519060200190929190505050613ccf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180615138602a913960400191505060405180910390fd5b5b505050565b6000838311158290613d82576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613d47578082015181840152602081019050613d2c565b50505050905090810190601f168015613d745780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385039050809150509392505050565b6060613da48484600085613dad565b90509392505050565b606082471015613e08576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806151126026913960400191505060405180910390fd5b613e1185613bd3565b613e83576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310613ed35780518252602082019150602081019050602083039250613eb0565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613f35576040519150601f19603f3d011682016040523d82523d6000602084013e613f3a565b606091505b5091509150613f4a828286613f56565b92505050949350505050565b60608315613f665782905061401b565b600083511115613f795782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015613fe0578082015181840152602081019050613fc5565b50505050905090810190601f16801561400d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b9392505050565b6040518060a00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600061ffff168152602001600061ffff168152602001600061ffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000813590506140c881615077565b92915050565b6000815190506140dd81615077565b92915050565b6000813590506140f28161508e565b92915050565b6000815190506141078161508e565b92915050565b60008135905061411c816150a5565b92915050565b600081359050614131816150bc565b92915050565b600081359050614146816150d3565b92915050565b60008135905061415b816150e3565b92915050565b600081359050614170816150fa565b92915050565b600081519050614185816150fa565b92915050565b60006020828403121561419d57600080fd5b60006141ab848285016140b9565b91505092915050565b6000602082840312156141c657600080fd5b60006141d4848285016140ce565b91505092915050565b600080600080608085870312156141f357600080fd5b6000614201878288016140b9565b9450506020614212878288016140b9565b9350506040614223878288016140b9565b925050606061423487828801614161565b91505092959194509250565b600080600080600060a0868803121561425857600080fd5b6000614266888289016140b9565b9550506020614277888289016140b9565b94505060406142888882890161414c565b93505060606142998882890161414c565b92505060806142aa8882890161414c565b9150509295509295909350565b600080604083850312156142ca57600080fd5b60006142d8858286016140b9565b92505060206142e9858286016140e3565b9150509250929050565b6000806040838503121561430657600080fd5b6000614314858286016140b9565b925050602061432585828601614137565b9150509250929050565b6000806040838503121561434257600080fd5b6000614350858286016140b9565b92505060206143618582860161414c565b9150509250929050565b60006020828403121561437d57600080fd5b600061438b848285016140e3565b91505092915050565b6000602082840312156143a657600080fd5b60006143b4848285016140f8565b91505092915050565b6000602082840312156143cf57600080fd5b60006143dd8482850161410d565b91505092915050565b600080600080600080600060e0888a03121561440157600080fd5b600061440f8a828b0161410d565b97505060206144208a828b01614161565b96505060406144318a828b01614161565b95505060606144428a828b01614161565b94505060806144538a828b01614161565b93505060a06144648a828b016140b9565b92505060c06144758a828b01614161565b91505092959891949750929550565b60006020828403121561449657600080fd5b60006144a484828501614122565b91505092915050565b600080604083850312156144c057600080fd5b60006144ce8582860161414c565b92505060206144df85828601614161565b9150509250929050565b6000602082840312156144fb57600080fd5b600061450984828501614161565b91505092915050565b60006020828403121561452457600080fd5b600061453284828501614176565b91505092915050565b60008060006060848603121561455057600080fd5b600061455e86828701614176565b935050602061456f86828701614176565b925050604061458086828701614176565b9150509250925092565b60006145968383614984565b60408301905092915050565b6145ab81614ed9565b82525050565b6145ba81614e4c565b82525050565b6145c981614e4c565b82525050565b60006145da82614e12565b6145e48185614e2a565b93506145ef83614e02565b8060005b83811015614620578151614607888261458a565b975061461283614e1d565b9250506001810190506145f3565b5085935050505092915050565b61463681614e5e565b82525050565b61464581614eeb565b82525050565b61465481614f0f565b82525050565b61466381614f33565b82525050565b61467281614f57565b82525050565b6000614685602b83614e3b565b91507f4665652072617465206d757374206265206c657373207468616e206f7220657160008301527f75616c20746f20313030250000000000000000000000000000000000000000006020830152604082019050919050565b60006146eb601183614e3b565b91507f506f6f6c206e6f7420617070726f7665640000000000000000000000000000006000830152602082019050919050565b600061472b601e83614e3b565b91507f4e6f7420616e206f776e6572206f722066656520636f6e74726f6c6c657200006000830152602082019050919050565b600061476b600f83614e3b565b91507f416c726561647920616c6c6f77656400000000000000000000000000000000006000830152602082019050919050565b60006147ab600683614e3b565b91507f53616e69747900000000000000000000000000000000000000000000000000006000830152602082019050919050565b60006147eb600183614e3b565b91507f31000000000000000000000000000000000000000000000000000000000000006000830152602082019050919050565b600061482b600283614e3b565b91507f32320000000000000000000000000000000000000000000000000000000000006000830152602082019050919050565b600061486b602f83614e3b565b91507f44756d70207461782072617465206d757374206265206c657373207468616e2060008301527f6f7220657175616c20746f2032352500000000000000000000000000000000006020830152604082019050919050565b60006148d1601783614e3b565b91507f43616e6e6f742072656d6f7665206c69717569646974790000000000000000006000830152602082019050919050565b6000614911601e83614e3b565b91507f4e6f7420616e20756e7265737472696374656420636f6e74726f6c6c657200006000830152602082019050919050565b6000614951600683614e3b565b91507f3e203130302500000000000000000000000000000000000000000000000000006000830152602082019050919050565b60408201600082015161499a60008501826145b1565b5060208201516149ad60208501826149c2565b50505050565b6149bc81614ea1565b82525050565b6149cb81614ecf565b82525050565b6149da81614ecf565b82525050565b60006020820190506149f560008301846145c0565b92915050565b6000606082019050614a1060008301866145a2565b614a1d60208301856145c0565b614a2a60408301846149d1565b949350505050565b6000604082019050614a4760008301856145a2565b614a5460208301846149d1565b9392505050565b6000604082019050614a7060008301856145c0565b614a7d60208301846145c0565b9392505050565b600061010082019050614a9a600083018b6145c0565b614aa7602083018a6145c0565b614ab460408301896149d1565b614ac160608301886149d1565b614ace60808301876149d1565b614adb60a08301866149d1565b614ae860c08301856145c0565b614af560e08301846149d1565b9998505050505050505050565b600060a082019050614b1760008301886145c0565b614b2460208301876149b3565b614b3160408301866149b3565b614b3e60608301856149b3565b614b4b60808301846145c0565b9695505050505050565b6000604082019050614b6a60008301856145c0565b614b7760208301846149d1565b9392505050565b6000602082019050614b93600083018461462d565b92915050565b6000602082019050614bae600083018461463c565b92915050565b6000602082019050614bc9600083018461464b565b92915050565b6000602082019050614be4600083018461465a565b92915050565b6000602082019050614bff6000830184614669565b92915050565b60006020820190508181036000830152614c1e81614678565b9050919050565b60006020820190508181036000830152614c3e816146de565b9050919050565b60006020820190508181036000830152614c5e8161471e565b9050919050565b60006020820190508181036000830152614c7e8161475e565b9050919050565b60006020820190508181036000830152614c9e8161479e565b9050919050565b60006020820190508181036000830152614cbe816147de565b9050919050565b60006020820190508181036000830152614cde8161481e565b9050919050565b60006020820190508181036000830152614cfe8161485e565b9050919050565b60006020820190508181036000830152614d1e816148c4565b9050919050565b60006020820190508181036000830152614d3e81614904565b9050919050565b60006020820190508181036000830152614d5e81614944565b9050919050565b6000602082019050614d7a60008301846149b3565b92915050565b6000602082019050614d9560008301846149d1565b92915050565b6000604082019050614db060008301856149d1565b8181036020830152614dc281846145cf565b90509392505050565b6000606082019050614de060008301866149d1565b614ded60208301856149d1565b614dfa60408301846149d1565b949350505050565b6000819050602082019050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b6000614e5782614eaf565b9050919050565b60008115159050919050565b6000614e7582614e4c565b9050919050565b6000614e8782614e4c565b9050919050565b6000819050614e9c82615063565b919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614ee482614f69565b9050919050565b6000614ef682614efd565b9050919050565b6000614f0882614eaf565b9050919050565b6000614f1a82614f21565b9050919050565b6000614f2c82614eaf565b9050919050565b6000614f3e82614f45565b9050919050565b6000614f5082614eaf565b9050919050565b6000614f6282614e8e565b9050919050565b6000614f7482614f7b565b9050919050565b6000614f8682614eaf565b9050919050565bfe5b6000601f19601f8301169050919050565b60008160e01c9050919050565b600060443d1015614fbd57615060565b60046000803e614fce600051614fa0565b6308c379a08114614fdf5750615060565b60405160043d036004823e80513d602482011167ffffffffffffffff8211171561500b57505050615060565b808201805167ffffffffffffffff81111561502a575050505050615060565b8060208301013d850181111561504557505050505050615060565b61504e82614f8f565b60208401016040528296505050505050505b90565b6004811061507457615073614f8d565b5b50565b61508081614e4c565b811461508b57600080fd5b50565b61509781614e5e565b81146150a257600080fd5b50565b6150ae81614e6a565b81146150b957600080fd5b50565b6150c581614e7c565b81146150d057600080fd5b50565b600481106150e057600080fd5b50565b6150ec81614ea1565b81146150f757600080fd5b50565b61510381614ecf565b811461510e57600080fd5b5056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220686b65230eebfd717588a174388fbfb4718b91111667d80e92a142e017bc768364736f6c63430007040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000cb5f72d37685c3d5ad0bb5f982443bc8fcdf570e0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
-----Decoded View---------------
Arg [0] : _rootKit (address): 0xCb5f72d37685C3D5aD0bB5F982443BC8FcdF570E
Arg [1] : _uniswapV2Router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000cb5f72d37685c3d5ad0bb5f982443bc8fcdf570e
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d
Deployed Bytecode Sourcemap
1090:11406:39:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1826:59;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1632:33;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4834:451;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;427:196:46;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1441:41:39;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1678:24;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;6159:1589;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;1571:54;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;5293:290;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2686:100;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3176:142;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;2794:177;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;2180:34;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3786:730;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;652:222:27;;;:::i;:::-;;10304:123:39;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1489:41;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1947:48;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;5591:560;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;10435:682;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1709:56;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3584:194;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1387:47;;;:::i;:::-;;;;;;;;;;;:::i;:::-;;;;;;;;329:42:27;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;7756:2540:39;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;:::-;;;;;;;;2134:39;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;3330:242;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;2096:30;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2979:189;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;11379:1114;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;2062:25;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1772:47;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;4524:302;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;524:120:27;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;2460:218:39;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;1892:48;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;2004:51;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;1826:59;;;;;;;;;;;;;;;;;;;;;;:::o;1632:33::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;4834:451::-;4934:14;:26;4949:10;4934:26;;;;;;;;;;;;;;;;;;;;;;;;;:49;;;;4978:5;;;;;;;;;;4964:19;;:10;:19;;;4934:49;4925:93;;;;;;;;;;;;:::i;:::-;;;;;;;;;5054:4;5038:12;:20;;;;5029:81;;;;;;;;;;;;:::i;:::-;;;;;;;;;5142:12;5123:16;;:31;;;;;;;;;;;;;;;;;;5192:17;5165:24;:44;;;;5260:17;5242:15;:35;5220:19;:57;;;;4834:451;;:::o;427:196:46:-;476:5:27;;;;;;;;;;462:19;;:10;:19;;;453:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;518:23:46::1;535:5;518:16;:23::i;:::-;509:33;;;::::0;::::1;;553:62;572:10;584:5;:15;;;608:4;584:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;553:5;:18;;;;:62;;;;;:::i;:::-;427:196:::0;:::o;1441:41:39:-;;;;;;;;;;;;;:::o;1678:24::-;;;;;;;;;;;;;:::o;6159:1589::-;6348:19;6369:17;6388;6423:12;6438:16;;;;;;;;;;;:24;;;6471:7;6489:5;6438:58;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6423:73;;6532:1;6516:18;;:4;:18;;;;:69;;;;;6561:24;6538:47;;;;;;;;:13;:19;6552:4;6538:19;;;;;;;;;;;;;;;;;;;;;;;;;:47;;;;;;;;;6516:69;6507:100;;;;;;;;;;;;:::i;:::-;;;;;;;;;6628:12;;;;;;;;;;;6627:13;6618:23;;;;;;6667:4;6652:12;;:19;;;;;;;;;;;;;;;;;;6684:20;6707:5;:15;;;6731:4;6707:30;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6684:53;;6748:62;6771:10;6791:4;6798:11;6748:5;:22;;;;:62;;;;;;:::i;:::-;6821:7;:20;;;6842:10;6862:4;6869:13;6821:62;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;6894:7;:15;;;6918;;;;;;;;;;;6936:13;6894:56;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;6961;6987:15;;;;;;;;;;;7005:11;6961:5;:17;;;;:56;;;;;:::i;:::-;7066:15;;;;;;;;;;;:28;;;7103:7;7121:5;7129:13;7144:11;7157:16;7175:14;7191:2;7195:8;7066:138;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7028:176;;;;;;;;;;;;7246:4;7239:24;;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;7215:15;:21;7231:4;7215:21;;;;;;;;;;;;;;;:50;;;;7294:4;7280:18;;:10;;;;;;;;;;;:18;;;7276:74;;;7336:1;7315:10;;:23;;;;;;;;;;;;;;;;;;7276:74;7380:13;7366:11;:27;7362:117;;;7410:7;:16;;;7427:10;7455:11;7439:13;:27;7410:57;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;7362:117;7504:48;7539:12;7504:5;:15;;;7528:4;7504:30;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:34;;:48;;;;:::i;:::-;7489:63;;7626:1;7611:12;:16;7607:93;;;7644:44;7663:10;7675:12;7644:5;:18;;;;:44;;;;;:::i;:::-;7607:93;7735:5;7720:12;;:20;;;;;;;;;;;;;;;;;;6159:1589;;;;;;;;;;;;;:::o;1571:54::-;;;;;;;;;;;;;;;;;;;;;;:::o;5293:290::-;5336:7;5384:19;;5365:15;:38;5361:89;;5437:1;5430:8;;;;5361:89;5571:4;5546:24;;5541:4;5524:15;5502:19;;:37;5484:16;;;;;;;;;;;:56;;;:61;:86;;;;;;:91;;;;;;5477:98;;5293:290;;:::o;2686:100::-;2741:7;2759:17;:24;;;;2752:31;;2686:100;:::o;3176:142::-;476:5:27;;;;;;;;;;462:19;;:10;:19;;;453:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3305:5:39::1;3273:14;:29;3288:13;3273:29;;;;;;;;;;;;;;;;:37;;;;;;;;;;;;;;;;;;3176:142:::0;;:::o;2794:177::-;476:5:27;;;;;;;;;;462:19;;:10;:19;;;453:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2958:5:39::1;2908:23;:47;2932:22;2908:47;;;;;;;;;;;;;;;;:55;;;;;;;;;;;;;;;;;;2794:177:::0;;:::o;2180:34::-;;;;:::o;3786:730::-;476:5:27;;;;;;;;;;462:19;;:10;:19;;;453:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3951:5:39::1;3937:10;:19;;;;:41;;;;;3973:5;3960:9;:18;;;;3937:41;:62;;;;;3994:5;3982:8;:17;;;;3937:62;:108;;;;;4040:5;4028:8;4016:9;4003:10;:22;:33;:42;;;;3937:108;3928:128;;;;;;;;;;;;:::i;:::-;;;;;;;;;4092:1;4076:18;;:4;:18;;;;:42;;;;;4116:1;4098:20;;:6;:20;;;;4076:42;4067:52;;;::::0;::::1;;4153:3;4139:10;:17;;;;:37;;;;;4173:3;4160:9;:16;;;;4139:37;:55;;;;;4192:2;4180:8;:14;;;;4139:55;4130:75;;;;;;;;;;;;:::i;:::-;;;;;;;;;4226:48;;:::i;:::-;4303:4;4285:11;:15;;:22;;;;;;;;;::::0;::::1;4342:10;4318:11;:21;;:34;;;;;;;;;::::0;::::1;4386:9;4363:11;:20;;:32;;;;;;;;;::::0;::::1;4428:8;4406:11;:19;;:30;;;;;;;;;::::0;::::1;4467:6;4447:11;:17;;:26;;;;;;;;;::::0;::::1;4497:11;4484:10;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;507:1:27;3786:730:39::0;;;;;:::o;652:222:27:-;735:10;719:26;;:12;;;;;;;;;;;:26;;;710:36;;;;;;780:1;757:12;;:25;;;;;;;;;;;;;;;;;;826:10;798:39;;819:5;;;;;;;;;;798:39;;;;;;;;;;;;856:10;848:5;;:18;;;;;;;;;;;;;;;;;;652:222::o;10304:123:39:-;476:5:27;;;;;;;;;;462:19;;:10;:19;;;453:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10414:5:39::1;10395:13;:16;10409:1;10395:16;;;;;;;;;;;;;;;;:24;;;;;;;;;;;;;;;;;;;;;;;;10304:123:::0;;:::o;1489:41::-;;;;;;;;;;;;;:::o;1947:48::-;;;;;;;;;;;;;;;;;;;;;;:::o;5591:560::-;476:5:27;;;;;;;;;;462:19;;:10;:19;;;453:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5659:12:39::1;5674:16;;;;;;;;;;;:24;;;5707:7;5725:5;5674:58;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5659:73;;5763:1;5747:18;;:4;:18;;;5743:119;;;5789:16;;;;;;;;;;;:27;;;5825:7;5843:5;5789:61;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;5782:68;;5743:119;5872:18;5893:13;:19;5907:4;5893:19;;;;;;;;;;;;;;;;;;;;;;;;;5872:40;;5941:24;5932:33:::0;::::1;;;;;;;:5;:33;;;;;;;;;;5923:62;;;;;;;;;;;;:::i;:::-;;;;;;;;;6018:24;5996:13;:19;6010:4;5996:19;;;;;;;;;;;;;;;;:46;;;;;;;;;;;;;;;;;;;;;;;;6053:17;6076:5;6053:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6124:4;6117:24;;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;6093:15;:21;6109:4;6093:21;;;;;;;;;;;;;;;:50;;;;507:1:27;;5591:560:39::0;:::o;10435:682::-;10483:18;10528:20;10520:28;;10563:14;:1;:12;;;:14::i;:::-;10559:493;;;10598:4;:22;;;10621:1;10598:25;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10594:447;;;;:::i;:::-;;;;;;;;10909:1;10891:6;10885:20;:25;10881:109;;;10943:27;10935:35;;10881:109;10699:306;10594:447;;;;;;;10663:5;10656:13;;;;10594:447;10559:493;11081:5;11062:13;:16;11076:1;11062:16;;;;;;;;;;;;;;;;:24;;;;;;;;;;;;;;;;;;;;;;;;10435:682;;;:::o;1709:56::-;;;;;;;;;;;;;;;;;;;;;;:::o;3584:194::-;3661:23;:35;3685:10;3661:35;;;;;;;;;;;;;;;;;;;;;;;;;3652:79;;;;;;;;;;;;:::i;:::-;;;;;;;;;3757:13;3742:12;;:28;;;;;;;;;;;;;;;;;;3584:194;:::o;1387:47::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;329:42:27:-;;;;;;;;;;;;:::o;7756:2540:39:-;7867:12;7881:35;7949:25;7977:10;;;;;;;;;;;7949:38;;8035:1;8006:31;;:17;:31;;;8002:446;;8079:1;8058:10;;:23;;;;;;;;;;;;;;;;;;8100:17;8127;8120:37;;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;8100:59;;8178:17;8198:15;:34;8214:17;8198:34;;;;;;;;;;;;;;;;8178:54;;8268:9;8255;:22;8251:182;;8339:12;;;;;;;;;;;:74;;8379:9;8367;:21;:45;;8403:9;8367:45;;;8391:9;8367:45;8339:74;;;8354:9;8339:74;8302:15;:34;8318:17;8302:34;;;;;;;;;;;;;;;:111;;;;8251:182;8002:446;;;7756:2540;8484:22;8509:13;:19;8523:4;8509:19;;;;;;;;;;;;;;;;;;;;;;;;;8484:44;;8543:20;8566:13;:17;8580:2;8566:17;;;;;;;;;;;;;;;;;;;;;;;;;8543:40;;8615:24;8602:37;;;;;;;;:9;:37;;;;;;;;;;:76;;;;;8654:24;8643:35;;;;;;;;:7;:35;;;;;;;;;;8602:76;8598:424;;;8716:20;8703:33;;;;;;;;:9;:33;;;;;;;;;8699:73;;;8752:17;8764:4;8752:11;:17::i;:::-;8740:29;;8699:73;8805:20;8794:31;;;;;;;;:7;:31;;;;;;;;;8790:67;;;8839:15;8851:2;8839:11;:15::i;:::-;8829:25;;8790:67;8884:12;;;;;;;;;;;:100;;;;8914:27;8901:40;;;;;;;;:9;:40;;;;;;;;;;:82;;;;;8956:27;8945:38;;;;;;;;:7;:38;;;;;;;;;;8901:82;8884:100;8875:131;;;;;;;;;;;;:::i;:::-;;;;;;;;;8598:424;9051:24;9040:35;;;;;;;;:7;:35;;;;;;;;;9036:91;;;9109:2;9096:10;;:15;;;;;;;;;;;;;;;;;;9036:91;9158:24;9145:37;;;;;;;;:9;:37;;;;;;;;;9141:307;;;9207:12;;;;;;;;;;;9203:111;;;9275:4;9268:24;;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;9244:15;:21;9260:4;9244:21;;;;;;;;;;;;;;;:50;;;;9203:111;9371:15;:21;9387:4;9371:21;;;;;;;;;;;;;;;;9348:4;9341:24;;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:51;;9332:88;;;;;;;;;;;;:::i;:::-;;;;;;;;;9141:307;7756:2540;;9473:12;;;;;;;;;;;:37;;;;9489:15;:21;9505:4;9489:21;;;;;;;;;;;;;;;;;;;;;;;;;9473:37;:60;;;;9514:15;:19;9530:2;9514:19;;;;;;;;;;;;;;;;;;;;;;;;;9473:60;9469:132;;;9558:1;9586;9561:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;9550:39;;;;;;9469:132;9611:43;;:::i;:::-;9657:10;9611:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9797:5;9725:6;:15;;;9705:35;;:13;:17;9719:2;9705:17;;;;;;;;;;;;;;;;;;;;;;;;;:35;;;:88;;9778:6;:15;;;9705:88;;;;;9763:12;:10;:12::i;:::-;9743:13;:17;9757:2;9743:17;;;;;;;;;;;;;;;;;;;;;;;;;:32;;;9705:88;9695:6;:99;:107;;;;;;9688:114;;9901:1;9882:6;:16;;;:20;;;:28;;9909:1;9882:28;;;9905:1;9882:28;9868:1;9851:6;:14;;;:18;;;:26;;9876:1;9851:26;;;9872:1;9851:26;9850:61;9825:87;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;9815:97;;9923:13;9974:1;9955:6;:16;;;:20;;;9951:168;;;10021:6;:12;;;9992:7;10000:5;9992:14;;;;;;;;;;;;;;:26;;:41;;;;;;;;;;;10102:5;10083:6;:16;;;10074:25;;:6;:25;:33;;;;;;10048:7;10056;;;;;;10048:16;;;;;;;;;;;;;;:23;;:59;;;;;9951:168;10150:1;10133:6;:14;;;:18;;;10129:160;;;10197:6;:10;;;10168:7;10176:5;10168:14;;;;;;;;;;;;;;:26;;:39;;;;;;;;;;;10272:5;10255:6;:14;;;10246:23;;:6;:23;:31;;;;;;10222:7;10230:5;10222:14;;;;;;;;;;;;;;:21;;:55;;;;;10129:160;7756:2540;;;;;;;;;;:::o;2134:39::-;;;;:::o;3330:242::-;3422:26;:38;3449:10;3422:38;;;;;;;;;;;;;;;;;;;;;;;;;:61;;;;3478:5;;;;;;;;;;3464:19;;:10;:19;;;3422:61;3413:105;;;;;;;;;;;;:::i;:::-;;;;;;;;;3560:4;3529:15;:28;3545:11;3529:28;;;;;;;;;;;;;;;;:35;;;;;;;;;;;;;;;;;;3330:242;;:::o;2096:30::-;;;;;;;;;;;;;:::o;2979:189::-;476:5:27;;;;;;;;;;462:19;;:10;:19;;;453:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3155:5:39::1;3099:26;:53;3126:25;3099:53;;;;;;;;;;;;;;;;:61;;;;;;;;;;;;;;;;;;2979:189:::0;;:::o;11379:1114::-;11466:1;11451:25;;;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;11447:1017;;;;;11607:16;;;;;;;;;;;11588:36;;:7;:36;;;11584:828;;;11812:1;11797:24;;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;11793:604;;;;;11911:7;11893:26;;:6;:26;;;11889:95;;;11948:12;;;;;;;;;;:::i;:::-;;;;;;;;11889:95;12025:1;12010:24;;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;12006:307;;;;;12132:7;12114:26;;:6;:26;;;12110:103;;;12173:12;;;;;;;;;;:::i;:::-;;;;;;;;12110:103;12037:223;12006:307;11824:528;11793:604;11584:828;11479:944;11447:1017;12474:11;;;;;;;;;;:::i;:::-;;;;;;;;2062:25;;;;;;;;;;;;;:::o;1772:47::-;;;;;;;;;;;;;;;;;;;;;;:::o;4524:302::-;4610:14;:26;4625:10;4610:26;;;;;;;;;;;;;;;;;;;;;;;;;:49;;;;4654:5;;;;;;;;;;4640:19;;:10;:19;;;4610:49;4601:93;;;;;;;;;;;;:::i;:::-;;;;;;;;;4725:5;4714:7;:16;;;;4705:73;;;;;;;;;;;;:::i;:::-;;;;;;;;;4811:7;4789:13;:19;4803:4;4789:19;;;;;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;4524:302;;:::o;524:120:27:-;476:5;;;;;;;;;;462:19;;:10;:19;;;453:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;628:8:::1;613:12;;:23;;;;;;;;;;;;;;;;;;524:120:::0;:::o;2460:218:39:-;476:5:27;;;;;;;;;;462:19;;:10;:19;;;453:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2579:16:39::1;2561:15;;:34;;;;;;;;;;;;;;;;;;2643:16;:24;;;:26;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;2606:16;;:64;;;;;;;;;;;;;;;;;;2460:218:::0;:::o;1892:48::-;;;;;;;;;;;;;;;;;;;;;;:::o;2004:51::-;;;;;;;;;;;;;;;;;:::o;631:142:46:-;702:4;759;733:31;;741:5;733:31;;;;726:38;;631:142;;;:::o;828:177:43:-;911:86;931:5;961:23;;;986:2;990:5;938:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;911:19;:86::i;:::-;828:177;;;:::o;1013:205::-;1114:96;1134:5;1164:27;;;1193:4;1199:2;1203:5;1141:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1114:19;:96::i;:::-;1013:205;;;;:::o;1487:193::-;1582:90;1602:5;1632:22;;;1656:7;1665:5;1609:62;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1582:19;:90::i;:::-;1487:193;;;:::o;341:142:44:-;399:7;432:43;436:1;439;432:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;425:50;;341:142;;;;:::o;752:422:0:-;812:4;1020:12;1131:7;1119:20;1111:28;;1165:1;1158:4;:8;1151:15;;;752:422;;;:::o;2071:761:43:-;2495:23;2521:69;2549:4;2521:69;;;;;;;;;;;;;;;;;2529:5;2521:27;;;;:69;;;;;:::i;:::-;2495:95;;2625:1;2605:10;:17;:21;2601:224;;;2747:10;2736:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2728:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2601:224;2071:761;;;:::o;491:196:44:-;577:7;616:1;611;:6;;619:12;603:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;643:9;659:1;655;:5;643:17;;678:1;671:8;;;491:196;;;;;:::o;3670:195:0:-;3773:12;3805:52;3827:6;3835:4;3841:1;3844:12;3805:21;:52::i;:::-;3798:59;;3670:195;;;;;:::o;4722:530::-;4849:12;4907:5;4882:21;:30;;4874:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4974:18;4985:6;4974:10;:18::i;:::-;4966:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5100:12;5114:23;5141:6;:11;;5161:5;5169:4;5141:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5099:75;;;;5192:52;5210:7;5219:10;5231:12;5192:17;:52::i;:::-;5185:59;;;;4722:530;;;;;;:::o;7262:742::-;7377:12;7406:7;7402:595;;;7437:10;7430:17;;;;7402:595;7571:1;7551:10;:17;:21;7547:439;;;7814:10;7808:17;7875:15;7862:10;7858:2;7854:19;7847:44;7762:148;7957:12;7950:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7262:742;;;;;;:::o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:139:52:-;;91:6;78:20;69:29;;107:33;134:5;107:33;:::i;:::-;59:87;;;;:::o;152:143::-;;240:6;234:13;225:22;;256:33;283:5;256:33;:::i;:::-;215:80;;;;:::o;301:133::-;;382:6;369:20;360:29;;398:30;422:5;398:30;:::i;:::-;350:84;;;;:::o;440:137::-;;525:6;519:13;510:22;;541:30;565:5;541:30;:::i;:::-;500:77;;;;:::o;583:169::-;;682:6;669:20;660:29;;698:48;740:5;698:48;:::i;:::-;650:102;;;;:::o;758:193::-;;869:6;856:20;847:29;;885:60;939:5;885:60;:::i;:::-;837:114;;;;:::o;957:175::-;;1059:6;1046:20;1037:29;;1075:51;1120:5;1075:51;:::i;:::-;1027:105;;;;:::o;1138:137::-;;1221:6;1208:20;1199:29;;1237:32;1263:5;1237:32;:::i;:::-;1189:86;;;;:::o;1281:139::-;;1365:6;1352:20;1343:29;;1381:33;1408:5;1381:33;:::i;:::-;1333:87;;;;:::o;1426:143::-;;1514:6;1508:13;1499:22;;1530:33;1557:5;1530:33;:::i;:::-;1489:80;;;;:::o;1575:260::-;;1683:2;1671:9;1662:7;1658:23;1654:32;1651:2;;;1699:1;1696;1689:12;1651:2;1741:1;1765:53;1810:7;1801:6;1790:9;1786:22;1765:53;:::i;:::-;1755:63;;1713:115;1641:194;;;;:::o;1841:282::-;;1960:2;1948:9;1939:7;1935:23;1931:32;1928:2;;;1976:1;1973;1966:12;1928:2;2018:1;2042:64;2098:7;2089:6;2078:9;2074:22;2042:64;:::i;:::-;2032:74;;1990:126;1918:205;;;;:::o;2129:690::-;;;;;2288:3;2276:9;2267:7;2263:23;2259:33;2256:2;;;2305:1;2302;2295:12;2256:2;2347:1;2371:53;2416:7;2407:6;2396:9;2392:22;2371:53;:::i;:::-;2361:63;;2319:115;2472:2;2497:53;2542:7;2533:6;2522:9;2518:22;2497:53;:::i;:::-;2487:63;;2444:116;2598:2;2623:53;2668:7;2659:6;2648:9;2644:22;2623:53;:::i;:::-;2613:63;;2570:116;2724:2;2749:53;2794:7;2785:6;2774:9;2770:22;2749:53;:::i;:::-;2739:63;;2696:116;2246:573;;;;;;;:::o;2825:828::-;;;;;;2998:3;2986:9;2977:7;2973:23;2969:33;2966:2;;;3015:1;3012;3005:12;2966:2;3057:1;3081:53;3126:7;3117:6;3106:9;3102:22;3081:53;:::i;:::-;3071:63;;3029:115;3182:2;3207:53;3252:7;3243:6;3232:9;3228:22;3207:53;:::i;:::-;3197:63;;3154:116;3308:2;3333:52;3377:7;3368:6;3357:9;3353:22;3333:52;:::i;:::-;3323:62;;3280:115;3433:2;3458:52;3502:7;3493:6;3482:9;3478:22;3458:52;:::i;:::-;3448:62;;3405:115;3558:3;3584:52;3628:7;3619:6;3608:9;3604:22;3584:52;:::i;:::-;3574:62;;3530:116;2956:697;;;;;;;;:::o;3659:397::-;;;3781:2;3769:9;3760:7;3756:23;3752:32;3749:2;;;3797:1;3794;3787:12;3749:2;3839:1;3863:53;3908:7;3899:6;3888:9;3884:22;3863:53;:::i;:::-;3853:63;;3811:115;3964:2;3989:50;4031:7;4022:6;4011:9;4007:22;3989:50;:::i;:::-;3979:60;;3936:113;3739:317;;;;;:::o;4062:439::-;;;4205:2;4193:9;4184:7;4180:23;4176:32;4173:2;;;4221:1;4218;4211:12;4173:2;4263:1;4287:53;4332:7;4323:6;4312:9;4308:22;4287:53;:::i;:::-;4277:63;;4235:115;4388:2;4413:71;4476:7;4467:6;4456:9;4452:22;4413:71;:::i;:::-;4403:81;;4360:134;4163:338;;;;;:::o;4507:401::-;;;4631:2;4619:9;4610:7;4606:23;4602:32;4599:2;;;4647:1;4644;4637:12;4599:2;4689:1;4713:53;4758:7;4749:6;4738:9;4734:22;4713:53;:::i;:::-;4703:63;;4661:115;4814:2;4839:52;4883:7;4874:6;4863:9;4859:22;4839:52;:::i;:::-;4829:62;;4786:115;4589:319;;;;;:::o;4914:254::-;;5019:2;5007:9;4998:7;4994:23;4990:32;4987:2;;;5035:1;5032;5025:12;4987:2;5077:1;5101:50;5143:7;5134:6;5123:9;5119:22;5101:50;:::i;:::-;5091:60;;5049:112;4977:191;;;;:::o;5174:276::-;;5290:2;5278:9;5269:7;5265:23;5261:32;5258:2;;;5306:1;5303;5296:12;5258:2;5348:1;5372:61;5425:7;5416:6;5405:9;5401:22;5372:61;:::i;:::-;5362:71;;5320:123;5248:202;;;;:::o;5456:290::-;;5579:2;5567:9;5558:7;5554:23;5550:32;5547:2;;;5595:1;5592;5585:12;5547:2;5637:1;5661:68;5721:7;5712:6;5701:9;5697:22;5661:68;:::i;:::-;5651:78;;5609:130;5537:209;;;;:::o;5752:1152::-;;;;;;;;5977:3;5965:9;5956:7;5952:23;5948:33;5945:2;;;5994:1;5991;5984:12;5945:2;6036:1;6060:68;6120:7;6111:6;6100:9;6096:22;6060:68;:::i;:::-;6050:78;;6008:130;6176:2;6201:53;6246:7;6237:6;6226:9;6222:22;6201:53;:::i;:::-;6191:63;;6148:116;6302:2;6327:53;6372:7;6363:6;6352:9;6348:22;6327:53;:::i;:::-;6317:63;;6274:116;6428:2;6453:53;6498:7;6489:6;6478:9;6474:22;6453:53;:::i;:::-;6443:63;;6400:116;6554:3;6580:53;6625:7;6616:6;6605:9;6601:22;6580:53;:::i;:::-;6570:63;;6526:117;6681:3;6707:53;6752:7;6743:6;6732:9;6728:22;6707:53;:::i;:::-;6697:63;;6653:117;6808:3;6834:53;6879:7;6870:6;6859:9;6855:22;6834:53;:::i;:::-;6824:63;;6780:117;5935:969;;;;;;;;;;:::o;6910:314::-;;7045:2;7033:9;7024:7;7020:23;7016:32;7013:2;;;7061:1;7058;7051:12;7013:2;7103:1;7127:80;7199:7;7190:6;7179:9;7175:22;7127:80;:::i;:::-;7117:90;;7075:142;7003:221;;;;:::o;7230:401::-;;;7354:2;7342:9;7333:7;7329:23;7325:32;7322:2;;;7370:1;7367;7360:12;7322:2;7412:1;7436:52;7480:7;7471:6;7460:9;7456:22;7436:52;:::i;:::-;7426:62;;7384:114;7536:2;7561:53;7606:7;7597:6;7586:9;7582:22;7561:53;:::i;:::-;7551:63;;7508:116;7312:319;;;;;:::o;7637:260::-;;7745:2;7733:9;7724:7;7720:23;7716:32;7713:2;;;7761:1;7758;7751:12;7713:2;7803:1;7827:53;7872:7;7863:6;7852:9;7848:22;7827:53;:::i;:::-;7817:63;;7775:115;7703:194;;;;:::o;7903:282::-;;8022:2;8010:9;8001:7;7997:23;7993:32;7990:2;;;8038:1;8035;8028:12;7990:2;8080:1;8104:64;8160:7;8151:6;8140:9;8136:22;8104:64;:::i;:::-;8094:74;;8052:126;7980:205;;;;:::o;8191:590::-;;;;8344:2;8332:9;8323:7;8319:23;8315:32;8312:2;;;8360:1;8357;8350:12;8312:2;8402:1;8426:64;8482:7;8473:6;8462:9;8458:22;8426:64;:::i;:::-;8416:74;;8374:126;8538:2;8563:64;8619:7;8610:6;8599:9;8595:22;8563:64;:::i;:::-;8553:74;;8510:127;8675:2;8700:64;8756:7;8747:6;8736:9;8732:22;8700:64;:::i;:::-;8690:74;;8647:127;8302:479;;;;;:::o;8787:323::-;;8949:118;9063:3;9055:6;8949:118;:::i;:::-;9099:4;9094:3;9090:14;9076:28;;8939:171;;;;:::o;9116:147::-;9211:45;9250:5;9211:45;:::i;:::-;9206:3;9199:58;9189:74;;:::o;9269:108::-;9346:24;9364:5;9346:24;:::i;:::-;9341:3;9334:37;9324:53;;:::o;9383:118::-;9470:24;9488:5;9470:24;:::i;:::-;9465:3;9458:37;9448:53;;:::o;9573:1020::-;;9793:90;9877:5;9793:90;:::i;:::-;9899:122;10014:6;10009:3;9899:122;:::i;:::-;9892:129;;10045:92;10131:5;10045:92;:::i;:::-;10160:7;10191:1;10176:392;10201:6;10198:1;10195:13;10176:392;;;10277:6;10271:13;10304:135;10435:3;10420:13;10304:135;:::i;:::-;10297:142;;10462:96;10551:6;10462:96;:::i;:::-;10452:106;;10236:332;10223:1;10220;10216:9;10211:14;;10176:392;;;10180:14;10584:3;10577:10;;9769:824;;;;;;;:::o;10599:109::-;10680:21;10695:5;10680:21;:::i;:::-;10675:3;10668:34;10658:50;;:::o;10714:161::-;10816:52;10862:5;10816:52;:::i;:::-;10811:3;10804:65;10794:81;;:::o;10881:183::-;10994:63;11051:5;10994:63;:::i;:::-;10989:3;10982:76;10972:92;;:::o;11070:185::-;11184:64;11242:5;11184:64;:::i;:::-;11179:3;11172:77;11162:93;;:::o;11261:163::-;11364:53;11411:5;11364:53;:::i;:::-;11359:3;11352:66;11342:82;;:::o;11430:375::-;;11593:67;11657:2;11652:3;11593:67;:::i;:::-;11586:74;;11690:34;11686:1;11681:3;11677:11;11670:55;11756:13;11751:2;11746:3;11742:12;11735:35;11796:2;11791:3;11787:12;11780:19;;11576:229;;;:::o;11811:315::-;;11974:67;12038:2;12033:3;11974:67;:::i;:::-;11967:74;;12071:19;12067:1;12062:3;12058:11;12051:40;12117:2;12112:3;12108:12;12101:19;;11957:169;;;:::o;12132:328::-;;12295:67;12359:2;12354:3;12295:67;:::i;:::-;12288:74;;12392:32;12388:1;12383:3;12379:11;12372:53;12451:2;12446:3;12442:12;12435:19;;12278:182;;;:::o;12466:313::-;;12629:67;12693:2;12688:3;12629:67;:::i;:::-;12622:74;;12726:17;12722:1;12717:3;12713:11;12706:38;12770:2;12765:3;12761:12;12754:19;;12612:167;;;:::o;12785:303::-;;12948:66;13012:1;13007:3;12948:66;:::i;:::-;12941:73;;13044:8;13040:1;13035:3;13031:11;13024:29;13079:2;13074:3;13070:12;13063:19;;12931:157;;;:::o;13094:298::-;;13257:66;13321:1;13316:3;13257:66;:::i;:::-;13250:73;;13353:3;13349:1;13344:3;13340:11;13333:24;13383:2;13378:3;13374:12;13367:19;;13240:152;;;:::o;13398:299::-;;13561:66;13625:1;13620:3;13561:66;:::i;:::-;13554:73;;13657:4;13653:1;13648:3;13644:11;13637:25;13688:2;13683:3;13679:12;13672:19;;13544:153;;;:::o;13703:379::-;;13866:67;13930:2;13925:3;13866:67;:::i;:::-;13859:74;;13963:34;13959:1;13954:3;13950:11;13943:55;14029:17;14024:2;14019:3;14015:12;14008:39;14073:2;14068:3;14064:12;14057:19;;13849:233;;;:::o;14088:321::-;;14251:67;14315:2;14310:3;14251:67;:::i;:::-;14244:74;;14348:25;14344:1;14339:3;14335:11;14328:46;14400:2;14395:3;14391:12;14384:19;;14234:175;;;:::o;14415:328::-;;14578:67;14642:2;14637:3;14578:67;:::i;:::-;14571:74;;14675:32;14671:1;14666:3;14662:11;14655:53;14734:2;14729:3;14725:12;14718:19;;14561:182;;;:::o;14749:303::-;;14912:66;14976:1;14971:3;14912:66;:::i;:::-;14905:73;;15008:8;15004:1;14999:3;14995:11;14988:29;15043:2;15038:3;15034:12;15027:19;;14895:157;;;:::o;15120:528::-;15279:4;15274:3;15270:14;15373:4;15366:5;15362:16;15356:23;15392:63;15449:4;15444:3;15440:14;15426:12;15392:63;:::i;:::-;15294:171;15549:4;15542:5;15538:16;15532:23;15568:63;15625:4;15620:3;15616:14;15602:12;15568:63;:::i;:::-;15475:166;15248:400;;;:::o;15654:115::-;15739:23;15756:5;15739:23;:::i;:::-;15734:3;15727:36;15717:52;;:::o;15775:108::-;15852:24;15870:5;15852:24;:::i;:::-;15847:3;15840:37;15830:53;;:::o;15889:118::-;15976:24;15994:5;15976:24;:::i;:::-;15971:3;15964:37;15954:53;;:::o;16013:222::-;;16144:2;16133:9;16129:18;16121:26;;16157:71;16225:1;16214:9;16210:17;16201:6;16157:71;:::i;:::-;16111:124;;;;:::o;16241:458::-;;16436:2;16425:9;16421:18;16413:26;;16449:79;16525:1;16514:9;16510:17;16501:6;16449:79;:::i;:::-;16538:72;16606:2;16595:9;16591:18;16582:6;16538:72;:::i;:::-;16620;16688:2;16677:9;16673:18;16664:6;16620:72;:::i;:::-;16403:296;;;;;;:::o;16705:348::-;;16872:2;16861:9;16857:18;16849:26;;16885:79;16961:1;16950:9;16946:17;16937:6;16885:79;:::i;:::-;16974:72;17042:2;17031:9;17027:18;17018:6;16974:72;:::i;:::-;16839:214;;;;;:::o;17059:332::-;;17218:2;17207:9;17203:18;17195:26;;17231:71;17299:1;17288:9;17284:17;17275:6;17231:71;:::i;:::-;17312:72;17380:2;17369:9;17365:18;17356:6;17312:72;:::i;:::-;17185:206;;;;;:::o;17397:997::-;;17724:3;17713:9;17709:19;17701:27;;17738:71;17806:1;17795:9;17791:17;17782:6;17738:71;:::i;:::-;17819:72;17887:2;17876:9;17872:18;17863:6;17819:72;:::i;:::-;17901;17969:2;17958:9;17954:18;17945:6;17901:72;:::i;:::-;17983;18051:2;18040:9;18036:18;18027:6;17983:72;:::i;:::-;18065:73;18133:3;18122:9;18118:19;18109:6;18065:73;:::i;:::-;18148;18216:3;18205:9;18201:19;18192:6;18148:73;:::i;:::-;18231;18299:3;18288:9;18284:19;18275:6;18231:73;:::i;:::-;18314;18382:3;18371:9;18367:19;18358:6;18314:73;:::i;:::-;17691:703;;;;;;;;;;;:::o;18400:652::-;;18637:3;18626:9;18622:19;18614:27;;18651:71;18719:1;18708:9;18704:17;18695:6;18651:71;:::i;:::-;18732:70;18798:2;18787:9;18783:18;18774:6;18732:70;:::i;:::-;18812;18878:2;18867:9;18863:18;18854:6;18812:70;:::i;:::-;18892;18958:2;18947:9;18943:18;18934:6;18892:70;:::i;:::-;18972:73;19040:3;19029:9;19025:19;19016:6;18972:73;:::i;:::-;18604:448;;;;;;;;:::o;19058:332::-;;19217:2;19206:9;19202:18;19194:26;;19230:71;19298:1;19287:9;19283:17;19274:6;19230:71;:::i;:::-;19311:72;19379:2;19368:9;19364:18;19355:6;19311:72;:::i;:::-;19184:206;;;;;:::o;19396:210::-;;19521:2;19510:9;19506:18;19498:26;;19534:65;19596:1;19585:9;19581:17;19572:6;19534:65;:::i;:::-;19488:118;;;;:::o;19612:252::-;;19758:2;19747:9;19743:18;19735:26;;19771:86;19854:1;19843:9;19839:17;19830:6;19771:86;:::i;:::-;19725:139;;;;:::o;19870:274::-;;20027:2;20016:9;20012:18;20004:26;;20040:97;20134:1;20123:9;20119:17;20110:6;20040:97;:::i;:::-;19994:150;;;;:::o;20150:276::-;;20308:2;20297:9;20293:18;20285:26;;20321:98;20416:1;20405:9;20401:17;20392:6;20321:98;:::i;:::-;20275:151;;;;:::o;20432:254::-;;20579:2;20568:9;20564:18;20556:26;;20592:87;20676:1;20665:9;20661:17;20652:6;20592:87;:::i;:::-;20546:140;;;;:::o;20692:419::-;;20896:2;20885:9;20881:18;20873:26;;20945:9;20939:4;20935:20;20931:1;20920:9;20916:17;20909:47;20973:131;21099:4;20973:131;:::i;:::-;20965:139;;20863:248;;;:::o;21117:419::-;;21321:2;21310:9;21306:18;21298:26;;21370:9;21364:4;21360:20;21356:1;21345:9;21341:17;21334:47;21398:131;21524:4;21398:131;:::i;:::-;21390:139;;21288:248;;;:::o;21542:419::-;;21746:2;21735:9;21731:18;21723:26;;21795:9;21789:4;21785:20;21781:1;21770:9;21766:17;21759:47;21823:131;21949:4;21823:131;:::i;:::-;21815:139;;21713:248;;;:::o;21967:419::-;;22171:2;22160:9;22156:18;22148:26;;22220:9;22214:4;22210:20;22206:1;22195:9;22191:17;22184:47;22248:131;22374:4;22248:131;:::i;:::-;22240:139;;22138:248;;;:::o;22392:419::-;;22596:2;22585:9;22581:18;22573:26;;22645:9;22639:4;22635:20;22631:1;22620:9;22616:17;22609:47;22673:131;22799:4;22673:131;:::i;:::-;22665:139;;22563:248;;;:::o;22817:419::-;;23021:2;23010:9;23006:18;22998:26;;23070:9;23064:4;23060:20;23056:1;23045:9;23041:17;23034:47;23098:131;23224:4;23098:131;:::i;:::-;23090:139;;22988:248;;;:::o;23242:419::-;;23446:2;23435:9;23431:18;23423:26;;23495:9;23489:4;23485:20;23481:1;23470:9;23466:17;23459:47;23523:131;23649:4;23523:131;:::i;:::-;23515:139;;23413:248;;;:::o;23667:419::-;;23871:2;23860:9;23856:18;23848:26;;23920:9;23914:4;23910:20;23906:1;23895:9;23891:17;23884:47;23948:131;24074:4;23948:131;:::i;:::-;23940:139;;23838:248;;;:::o;24092:419::-;;24296:2;24285:9;24281:18;24273:26;;24345:9;24339:4;24335:20;24331:1;24320:9;24316:17;24309:47;24373:131;24499:4;24373:131;:::i;:::-;24365:139;;24263:248;;;:::o;24517:419::-;;24721:2;24710:9;24706:18;24698:26;;24770:9;24764:4;24760:20;24756:1;24745:9;24741:17;24734:47;24798:131;24924:4;24798:131;:::i;:::-;24790:139;;24688:248;;;:::o;24942:419::-;;25146:2;25135:9;25131:18;25123:26;;25195:9;25189:4;25185:20;25181:1;25170:9;25166:17;25159:47;25223:131;25349:4;25223:131;:::i;:::-;25215:139;;25113:248;;;:::o;25367:218::-;;25496:2;25485:9;25481:18;25473:26;;25509:69;25575:1;25564:9;25560:17;25551:6;25509:69;:::i;:::-;25463:122;;;;:::o;25591:222::-;;25722:2;25711:9;25707:18;25699:26;;25735:71;25803:1;25792:9;25788:17;25779:6;25735:71;:::i;:::-;25689:124;;;;:::o;25819:627::-;;26100:2;26089:9;26085:18;26077:26;;26113:71;26181:1;26170:9;26166:17;26157:6;26113:71;:::i;:::-;26231:9;26225:4;26221:20;26216:2;26205:9;26201:18;26194:48;26259:180;26434:4;26425:6;26259:180;:::i;:::-;26251:188;;26067:379;;;;;:::o;26452:442::-;;26639:2;26628:9;26624:18;26616:26;;26652:71;26720:1;26709:9;26705:17;26696:6;26652:71;:::i;:::-;26733:72;26801:2;26790:9;26786:18;26777:6;26733:72;:::i;:::-;26815;26883:2;26872:9;26868:18;26859:6;26815:72;:::i;:::-;26606:288;;;;;;:::o;26900:168::-;;27026:3;27018:11;;27056:4;27051:3;27047:14;27039:22;;27008:60;;;:::o;27074:150::-;;27211:5;27205:12;27195:22;;27184:40;;;:::o;27230:149::-;;27368:4;27363:3;27359:14;27351:22;;27341:38;;;:::o;27385:220::-;;27554:6;27549:3;27542:19;27594:4;27589:3;27585:14;27570:29;;27532:73;;;;:::o;27611:169::-;;27729:6;27724:3;27717:19;27769:4;27764:3;27760:14;27745:29;;27707:73;;;;:::o;27786:96::-;;27852:24;27870:5;27852:24;:::i;:::-;27841:35;;27831:51;;;:::o;27888:90::-;;27965:5;27958:13;27951:21;27940:32;;27930:48;;;:::o;27984:111::-;;28065:24;28083:5;28065:24;:::i;:::-;28054:35;;28044:51;;;:::o;28101:123::-;;28194:24;28212:5;28194:24;:::i;:::-;28183:35;;28173:51;;;:::o;28230:147::-;;28314:5;28303:16;;28320:51;28365:5;28320:51;:::i;:::-;28293:84;;;:::o;28383:89::-;;28459:6;28452:5;28448:18;28437:29;;28427:45;;;:::o;28478:126::-;;28555:42;28548:5;28544:54;28533:65;;28523:81;;;:::o;28610:77::-;;28676:5;28665:16;;28655:32;;;:::o;28693:134::-;;28784:37;28815:5;28784:37;:::i;:::-;28771:50;;28761:66;;;:::o;28833:156::-;;28931:52;28977:5;28931:52;:::i;:::-;28918:65;;28908:81;;;:::o;28995:128::-;;29093:24;29111:5;29093:24;:::i;:::-;29080:37;;29070:53;;;:::o;29129:178::-;;29238:63;29295:5;29238:63;:::i;:::-;29225:76;;29215:92;;;:::o;29313:139::-;;29422:24;29440:5;29422:24;:::i;:::-;29409:37;;29399:53;;;:::o;29458:180::-;;29568:64;29626:5;29568:64;:::i;:::-;29555:77;;29545:93;;;:::o;29644:140::-;;29754:24;29772:5;29754:24;:::i;:::-;29741:37;;29731:53;;;:::o;29790:147::-;;29889:42;29925:5;29889:42;:::i;:::-;29876:55;;29866:71;;;:::o;29943:126::-;;30026:37;30057:5;30026:37;:::i;:::-;30013:50;;30003:66;;;:::o;30075:113::-;;30158:24;30176:5;30158:24;:::i;:::-;30145:37;;30135:53;;;:::o;30194:48::-;30227:9;30248:102;;30340:2;30336:7;30331:2;30324:5;30320:14;30316:28;30306:38;;30296:54;;;:::o;30356:106::-;;30449:5;30444:3;30440:15;30419:36;;30409:53;;;:::o;30468:833::-;;30545:4;30527:16;30524:26;30521:2;;;30553:5;;30521:2;30591:1;30588;30585;30570:23;30613:34;30644:1;30638:8;30613:34;:::i;:::-;30674:10;30669:3;30666:19;30656:2;;30689:5;;;30656:2;30724;30718:9;30782:1;30764:16;30760:24;30757:1;30751:4;30736:49;30815:4;30809:11;30914:16;30907:4;30899:6;30895:17;30892:39;30859:18;30851:6;30848:30;30832:113;30829:2;;;30960:5;;;;;30829:2;31006:6;31000:4;30996:17;31042:3;31036:10;31069:18;31061:6;31058:30;31055:2;;;31091:5;;;;;;;31055:2;31139:6;31132:4;31127:3;31123:14;31119:27;31176:16;31170:4;31166:27;31161:3;31158:36;31155:2;;;31197:5;;;;;;;;31155:2;31245:29;31267:6;31245:29;:::i;:::-;31238:4;31233:3;31229:14;31225:50;31221:2;31214:62;31292:3;31285:10;;30511:790;;;;;;;;:::o;31307:118::-;31398:1;31391:5;31388:12;31378:2;;31404:13;;:::i;:::-;31378:2;31368:57;:::o;31431:122::-;31504:24;31522:5;31504:24;:::i;:::-;31497:5;31494:35;31484:2;;31543:1;31540;31533:12;31484:2;31474:79;:::o;31559:116::-;31629:21;31644:5;31629:21;:::i;:::-;31622:5;31619:32;31609:2;;31665:1;31662;31655:12;31609:2;31599:76;:::o;31681:152::-;31769:39;31802:5;31769:39;:::i;:::-;31762:5;31759:50;31749:2;;31823:1;31820;31813:12;31749:2;31739:94;:::o;31839:176::-;31939:51;31984:5;31939:51;:::i;:::-;31932:5;31929:62;31919:2;;32005:1;32002;31995:12;31919:2;31909:106;:::o;32021:117::-;32112:1;32105:5;32102:12;32092:2;;32128:1;32125;32118:12;32092:2;32082:56;:::o;32144:120::-;32216:23;32233:5;32216:23;:::i;:::-;32209:5;32206:34;32196:2;;32254:1;32251;32244:12;32196:2;32186:78;:::o;32270:122::-;32343:24;32361:5;32343:24;:::i;:::-;32336:5;32333:35;32323:2;;32382:1;32379;32372:12;32323:2;32313:79;:::o
Swarm Source
ipfs://686b65230eebfd717588a174388fbfb4718b91111667d80e92a142e017bc7683
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.