More Info
Private Name Tags
ContractCreator
TokenTracker
Latest 25 from a total of 1,693 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 18816262 | 371 days ago | IN | 0 ETH | 0.00106734 | ||||
Approve | 16654483 | 674 days ago | IN | 0 ETH | 0.00069043 | ||||
Approve | 16589949 | 683 days ago | IN | 0 ETH | 0.0005997 | ||||
Approve | 16120202 | 749 days ago | IN | 0 ETH | 0.0006324 | ||||
Withdraw | 15473620 | 841 days ago | IN | 0 ETH | 0.00160699 | ||||
Approve | 15461507 | 843 days ago | IN | 0 ETH | 0.00040993 | ||||
Transfer | 15461454 | 843 days ago | IN | 0.01 ETH | 0.0009344 | ||||
Withdraw | 14543260 | 990 days ago | IN | 0 ETH | 0.00221404 | ||||
Transfer | 14543249 | 990 days ago | IN | 0.2 ETH | 0.00242187 | ||||
Withdraw | 14422200 | 1009 days ago | IN | 0 ETH | 0.00070173 | ||||
Transfer | 14422160 | 1009 days ago | IN | 0.04 ETH | 0.00106221 | ||||
Approve | 13561004 | 1143 days ago | IN | 0 ETH | 0.00431904 | ||||
Withdraw | 12585940 | 1295 days ago | IN | 0 ETH | 0.00100854 | ||||
Withdraw | 12576048 | 1297 days ago | IN | 0 ETH | 0.00088604 | ||||
Approve | 12576036 | 1297 days ago | IN | 0 ETH | 0.00079014 | ||||
Transfer | 12576027 | 1297 days ago | IN | 0.01 ETH | 0.00123091 | ||||
Withdraw | 12459896 | 1315 days ago | IN | 0 ETH | 0.00438708 | ||||
Transfer | 12459768 | 1315 days ago | IN | 1.1 ETH | 0.00762515 | ||||
Transfer | 12430504 | 1319 days ago | IN | 0.1 ETH | 0.00567587 | ||||
Withdraw | 12377864 | 1327 days ago | IN | 0 ETH | 0.00180357 | ||||
Approve | 12377787 | 1328 days ago | IN | 0 ETH | 0.00195211 | ||||
Transfer | 12377762 | 1328 days ago | IN | 0.22 ETH | 0.00287212 | ||||
Withdraw | 12220356 | 1352 days ago | IN | 0 ETH | 0.00321735 | ||||
Transfer | 12194272 | 1356 days ago | IN | 0.1 ETH | 0.0088273 | ||||
Withdraw | 12109190 | 1369 days ago | IN | 0 ETH | 0.01134589 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
15567653 | 826 days ago | 0.01 ETH | ||||
15567653 | 826 days ago | 0.01 ETH | ||||
15473620 | 841 days ago | 0.03432855 ETH | ||||
15473620 | 841 days ago | 0.03432855 ETH | ||||
15461454 | 843 days ago | 0.01 ETH | ||||
14543260 | 990 days ago | 0.2 ETH | ||||
14543260 | 990 days ago | 0.2 ETH | ||||
14543249 | 990 days ago | 0.2 ETH | ||||
14532247 | 992 days ago | 0.16228149 ETH | ||||
14532247 | 992 days ago | 0.16228149 ETH | ||||
14422200 | 1009 days ago | 0.04000053 ETH | ||||
14422200 | 1009 days ago | 0.04000053 ETH | ||||
14422160 | 1009 days ago | 0.04 ETH | ||||
13565646 | 1143 days ago | 0.01 ETH | ||||
13565646 | 1143 days ago | 0.01 ETH | ||||
12585940 | 1295 days ago | 0.01978455 ETH | ||||
12585940 | 1295 days ago | 0.01978455 ETH | ||||
12576048 | 1297 days ago | 0.01 ETH | ||||
12576048 | 1297 days ago | 0.01 ETH | ||||
12576027 | 1297 days ago | 0.01 ETH | ||||
12459896 | 1315 days ago | 1.1 ETH | ||||
12459896 | 1315 days ago | 1.1 ETH | ||||
12459768 | 1315 days ago | 1.1 ETH | ||||
12430504 | 1319 days ago | 0.1 ETH | ||||
12377864 | 1327 days ago | 0.22 ETH |
Loading...
Loading
Contract Name:
KETH
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; /* 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; /** * @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.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) public override 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; } /** * @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 Owned, 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"; abstract contract GatedERC20 is ERC20, Owned, TokensRecoverable { using SafeMath for uint256; ITransferGate public transferGate; constructor(string memory _name, string memory _symbol) ERC20(_name, _symbol) { } function setTransferGate(ITransferGate _transferGate) public 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; 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 distribute() external payable; function claim(address _to, uint256 _contribution) 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: 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 "./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 Owned, TokensRecoverable, IRootKitDistribution { using SafeMath for uint256; bool public 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; /* 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 Owned, 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; 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 Uniswap pools Disallows transfer to/from non-approved Uniswap pools (doesn't interfere with other crappy AMMs) 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 "./ITransferGate.sol"; 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"; struct RootKitTransferGateParameters { address dev; uint16 stakeRate; // 10000 = 100% uint16 burnRate; // 10000 = 100% uint16 devRate; // 10000 = 100% address stake; } contract RootKitTransferGate is Owned, TokensRecoverable, ITransferGate { using Address for address; using SafeERC20 for IERC20; using SafeMath for uint256; RootKitTransferGateParameters public parameters; IUniswapV2Router02 immutable uniswapV2Router; IUniswapV2Factory immutable uniswapV2Factory; RootKit immutable rootKit; enum AddressState { Unknown, NotPool, DisallowedPool, AllowedPool } mapping (address => AddressState) public addressStates; IERC20[] public allowedPoolTokens; bool public unrestricted; mapping (address => bool) public unrestrictedControllers; mapping (address => bool) public freeParticipant; mapping (address => uint256) public liquiditySupply; address public mustUpdate; constructor(RootKit _rootKit, IUniswapV2Router02 _uniswapV2Router) { rootKit = _rootKit; 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 setFreeParticipant(address participant, bool free) public ownerOnly() { 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)); RootKitTransferGateParameters memory _parameters; _parameters.dev = _dev; _parameters.stakeRate = _stakeRate; _parameters.burnRate = _burnRate; _parameters.devRate = _devRate; _parameters.stake = _stake; parameters = _parameters; } 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"); 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); liquiditySupply[mustUpdateAddress] = IERC20(mustUpdateAddress).totalSupply(); } 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; // "amount" will never be > totalSupply which is capped at 10k, so these multiplications will never overflow burn = amount * 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; 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; /* 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; /* 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 "./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; /* 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
[{"inputs":[{"internalType":"contract IWETH","name":"_weth","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"depositTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"floorCalculator","outputs":[{"internalType":"contract IFloorCalculator","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IFloorCalculator","name":"_floorCalculator","type":"address"}],"name":"setFloorCalculator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sweeper","type":"address"},{"internalType":"bool","name":"allow","type":"bool"}],"name":"setSweeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"sweepFloor","outputs":[{"internalType":"uint256","name":"amountSwept","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"sweepers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wrappedToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60a060405260058054601260ff1990911617610100600160a81b03191661010033021790553480156200003157600080fd5b50604051620020d1380380620020d1833981810160405260208110156200005757600080fd5b5051604080518082018252601581527f526f6f744b6974205b57726170706564204554485d00000000000000000000006020828101918252835180850190945260068452650a496748aa8960d31b90840152815184939184918491849183918391620000c691600391620001f7565b508051620000dc906004906020840190620001f7565b505050826001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200011957600080fd5b505afa1580156200012e573d6000803e3d6000fd5b505050506040513d60208110156200014557600080fd5b505160ff16601214620001c457620001c4836001600160a01b031663313ce5676040518163ffffffff1660e01b815260040160206040518083038186803b1580156200019057600080fd5b505afa158015620001a5573d6000803e3d6000fd5b505050506040513d6020811015620001bc57600080fd5b5051620001e1565b505060601b6001600160601b03191660805250620002a392505050565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826200022f57600085556200027a565b82601f106200024a57805160ff19168380011785556200027a565b828001600101855582156200027a579182015b828111156200027a5782518255916020019190600101906200025d565b50620002889291506200028c565b5090565b5b808211156200028857600081556001016200028d565b60805160601c611dd4620002fd6000398061017a528061067f52806109545280610ab95280610b5f5280610bb05280610e6a5280610fdf528061107852806110c05280611166528061119652806114fe5250611dd46000f3fe60806040526004361061016a5760003560e01c80638da5cb5b116100d1578063a9059cbb1161008a578063d0e30db011610064578063d0e30db0146105d8578063dd49756e146105e0578063dd62ed3e1461060a578063f2fde38b14610645576101a9565b8063a9059cbb14610557578063b12a22a214610590578063cd2bc595146105c3576101a9565b80638da5cb5b1461045d57806393ee5b611461048e57806395d89b41146104c1578063996c6cc3146104d6578063a457c2d7146104eb578063a5b98a5a14610524576101a9565b8063313ce56711610123578063313ce5671461034c578063315a095d1461037757806339509351146103a1578063485e7ba5146103da5780634e71e0c81461041557806370a082311461042a576101a9565b806306fdde03146101ae578063095ea7b31461023857806316114acd1461028557806318160ddd146102b857806323b872dd146102df5780632e1a7d4d14610322576101a9565b366101a957336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146101a7576101a7610678565b005b600080fd5b3480156101ba57600080fd5b506101c3610734565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101fd5781810151838201526020016101e5565b50505050905090810190601f16801561022a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561024457600080fd5b506102716004803603604081101561025b57600080fd5b506001600160a01b0381351690602001356107c2565b604080519115158252519081900360200190f35b34801561029157600080fd5b506101a7600480360360208110156102a857600080fd5b50356001600160a01b03166107d8565b3480156102c457600080fd5b506102cd6108cc565b60408051918252519081900360200190f35b3480156102eb57600080fd5b506102716004803603606081101561030257600080fd5b506001600160a01b038135811691602081013590911690604001356108d2565b34801561032e57600080fd5b506101a76004803603602081101561034557600080fd5b5035610948565b34801561035857600080fd5b50610361610a99565b6040805160ff9092168252519081900360200190f35b34801561038357600080fd5b506101a76004803603602081101561039a57600080fd5b5035610aa2565b3480156103ad57600080fd5b50610271600480360360408110156103c457600080fd5b506001600160a01b038135169060200135610ca3565b3480156103e657600080fd5b506101a7600480360360408110156103fd57600080fd5b506001600160a01b0381351690602001351515610cd9565b34801561042157600080fd5b506101a7610d55565b34801561043657600080fd5b506102cd6004803603602081101561044d57600080fd5b50356001600160a01b0316610dd2565b34801561046957600080fd5b50610472610de4565b604080516001600160a01b039092168252519081900360200190f35b34801561049a57600080fd5b50610271600480360360208110156104b157600080fd5b50356001600160a01b0316610df8565b3480156104cd57600080fd5b506101c3610e0d565b3480156104e257600080fd5b50610472610e68565b3480156104f757600080fd5b506102716004803603604081101561050e57600080fd5b506001600160a01b038135169060200135610e8c565b34801561053057600080fd5b506101a76004803603602081101561054757600080fd5b50356001600160a01b0316610edb565b34801561056357600080fd5b506102716004803603604081101561057a57600080fd5b506001600160a01b038135169060200135610f4e565b34801561059c57600080fd5b506102cd600480360360208110156105b357600080fd5b50356001600160a01b0316610f5b565b3480156105cf57600080fd5b506104726110a4565b6101a7610678565b3480156105ec57600080fd5b506101a76004803603602081101561060357600080fd5b50356110b3565b34801561061657600080fd5b506102cd6004803603604081101561062d57600080fd5b506001600160a01b038135811691602001351661127a565b34801561065157600080fd5b506101a76004803603602081101561066857600080fd5b50356001600160a01b0316611297565b60003490507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156106d857600080fd5b505af11580156106ec573d6000803e3d6000fd5b50505050506106fb338261130a565b60408051828152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a250565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107ba5780601f1061078f576101008083540402835291602001916107ba565b820191906000526020600020905b81548152906001019060200180831161079d57829003601f168201915b505050505081565b60006107cf3384846113fa565b50600192915050565b60055461010090046001600160a01b03163314610829576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b610832816114e6565b61083b57600080fd5b6108c933826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561088c57600080fd5b505afa1580156108a0573d6000803e3d6000fd5b505050506040513d60208110156108b657600080fd5b50516001600160a01b0384169190611539565b50565b60025481565b60006108df848484611590565b6001600160a01b0384166000908152600160209081526040808320338452909152902054600019811461093b5761093b853361093686604051806060016040528060288152602001611cbe602891398691906116eb565b6113fa565b60019150505b9392505050565b6109523382611782565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156109b857600080fd5b505af11580156109cc573d6000803e3d6000fd5b50506040805184815290513393507f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6592509081900360200190a2604051600090339083908381818185875af1925050503d8060008114610a48576040519150601f19603f3d011682016040523d82523d6000602084013e610a4d565b606091505b5050905080610a95576040805162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b5050565b60055460ff1681565b610aab816108c9565b610ab53382611782565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b2457600080fd5b505afa158015610b38573d6000803e3d6000fd5b505050506040513d6020811015610b4e57600080fd5b50519050610b866001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000163384611539565b610b90818361187e565b604080516370a0823160e01b815230600482015290516001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016916370a08231916024808301926020929190829003018186803b158015610bf657600080fd5b505afa158015610c0a573d6000803e3d6000fd5b505050506040513d6020811015610c2057600080fd5b505114610c69576040805162461bcd60e51b8152602060048201526012602482015271151c985b9cd9995c881b9bdd08195e1858dd60721b604482015290519081900360640190fd5b60408051838152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a25050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916107cf91859061093690866118c0565b60055461010090046001600160a01b03163314610d2a576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6006546001600160a01b03163314610d6c57600080fd5b600680546001600160a01b0319169055600554604051339161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360058054610100600160a81b0319163361010002179055565b60006020819052908152604090205481565b60055461010090046001600160a01b031681565b60086020526000908152604090205460ff1681565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107ba5780601f1061078f576101008083540402835291602001916107ba565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006107cf338461093685604051806060016040528060258152602001611d7a602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906116eb565b60055461010090046001600160a01b03163314610f2c576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60006107cf338484611590565b60006001600160a01b038216610f7057600080fd5b3360009081526008602052604090205460ff16610fc4576040805162461bcd60e51b815260206004820152600d60248201526c5377656570657273206f6e6c7960981b604482015290519081900360640190fd5b60075460408051630326fdf560e31b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116600483015230602483015291519190921691631937efa8916044808301926020929190829003018186803b15801561103757600080fd5b505afa15801561104b573d6000803e3d6000fd5b505050506040513d602081101561106157600080fd5b50519050801561109f5761109f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168383611539565b919050565b6007546001600160a01b031681565b6110bc816108c9565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561112b57600080fd5b505afa15801561113f573d6000803e3d6000fd5b505050506040513d602081101561115557600080fd5b5051905061118e6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633308561191a565b6000611233827f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561120157600080fd5b505afa158015611215573d6000803e3d6000fd5b505050506040513d602081101561122b57600080fd5b50519061187e565b905061123f338261130a565b60408051848152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505050565b600160209081526000928352604080842090915290825290205481565b60055461010090046001600160a01b031633146112e8576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216611365576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6113716000838361158b565b60025461137e90826118c0565b6002556001600160a01b0382166000908152602081905260409020546113a490826118c0565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b03831661143f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d2c6024913960400191505060405180910390fd5b6001600160a01b0382166114845760405162461bcd60e51b8152600401808060200182810382526022815260200180611c506022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006001600160a01b038216301480159061153357507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316826001600160a01b031614155b92915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261158b90849061197a565b505050565b6001600160a01b0383166115d55760405162461bcd60e51b8152600401808060200182810382526025815260200180611d076025913960400191505060405180910390fd5b6001600160a01b03821661161a5760405162461bcd60e51b8152600401808060200182810382526023815260200180611c0b6023913960400191505060405180910390fd5b61162583838361158b565b61166281604051806060016040528060268152602001611c72602691396001600160a01b03861660009081526020819052604090205491906116eb565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461169190826118c0565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561177a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561173f578181015183820152602001611727565b50505050905090810190601f16801561176c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166117c75760405162461bcd60e51b8152600401808060200182810382526021815260200180611ce66021913960400191505060405180910390fd5b6117d38260008361158b565b61181081604051806060016040528060228152602001611c2e602291396001600160a01b03851660009081526020819052604090205491906116eb565b6001600160a01b038316600090815260208190526040902055600254611836908261187e565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061094183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506116eb565b600082820183811015610941576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261197490859061197a565b50505050565b60606119cf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a2b9092919063ffffffff16565b80519091501561158b578080602001905160208110156119ee57600080fd5b505161158b5760405162461bcd60e51b815260040180806020018281038252602a815260200180611d50602a913960400191505060405180910390fd5b6060611a3a8484600085611a42565b949350505050565b606082471015611a835760405162461bcd60e51b8152600401808060200182810382526026815260200180611c986026913960400191505060405180910390fd5b611a8c85611b9e565b611add576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611b1c5780518252601f199092019160209182019101611afd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611b7e576040519150601f19603f3d011682016040523d82523d6000602084013e611b83565b606091505b5091509150611b93828286611ba4565b979650505050505050565b3b151590565b60608315611bb3575081610941565b825115611bc35782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561173f57818101518382015260200161172756fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f5836e686f6a1b6eb22a9d1ea1dc1bf9d0323e5165d34ca33c0b0e7f191b25e764736f6c63430007040033000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode
0x60806040526004361061016a5760003560e01c80638da5cb5b116100d1578063a9059cbb1161008a578063d0e30db011610064578063d0e30db0146105d8578063dd49756e146105e0578063dd62ed3e1461060a578063f2fde38b14610645576101a9565b8063a9059cbb14610557578063b12a22a214610590578063cd2bc595146105c3576101a9565b80638da5cb5b1461045d57806393ee5b611461048e57806395d89b41146104c1578063996c6cc3146104d6578063a457c2d7146104eb578063a5b98a5a14610524576101a9565b8063313ce56711610123578063313ce5671461034c578063315a095d1461037757806339509351146103a1578063485e7ba5146103da5780634e71e0c81461041557806370a082311461042a576101a9565b806306fdde03146101ae578063095ea7b31461023857806316114acd1461028557806318160ddd146102b857806323b872dd146102df5780632e1a7d4d14610322576101a9565b366101a957336001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216146101a7576101a7610678565b005b600080fd5b3480156101ba57600080fd5b506101c3610734565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101fd5781810151838201526020016101e5565b50505050905090810190601f16801561022a5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561024457600080fd5b506102716004803603604081101561025b57600080fd5b506001600160a01b0381351690602001356107c2565b604080519115158252519081900360200190f35b34801561029157600080fd5b506101a7600480360360208110156102a857600080fd5b50356001600160a01b03166107d8565b3480156102c457600080fd5b506102cd6108cc565b60408051918252519081900360200190f35b3480156102eb57600080fd5b506102716004803603606081101561030257600080fd5b506001600160a01b038135811691602081013590911690604001356108d2565b34801561032e57600080fd5b506101a76004803603602081101561034557600080fd5b5035610948565b34801561035857600080fd5b50610361610a99565b6040805160ff9092168252519081900360200190f35b34801561038357600080fd5b506101a76004803603602081101561039a57600080fd5b5035610aa2565b3480156103ad57600080fd5b50610271600480360360408110156103c457600080fd5b506001600160a01b038135169060200135610ca3565b3480156103e657600080fd5b506101a7600480360360408110156103fd57600080fd5b506001600160a01b0381351690602001351515610cd9565b34801561042157600080fd5b506101a7610d55565b34801561043657600080fd5b506102cd6004803603602081101561044d57600080fd5b50356001600160a01b0316610dd2565b34801561046957600080fd5b50610472610de4565b604080516001600160a01b039092168252519081900360200190f35b34801561049a57600080fd5b50610271600480360360208110156104b157600080fd5b50356001600160a01b0316610df8565b3480156104cd57600080fd5b506101c3610e0d565b3480156104e257600080fd5b50610472610e68565b3480156104f757600080fd5b506102716004803603604081101561050e57600080fd5b506001600160a01b038135169060200135610e8c565b34801561053057600080fd5b506101a76004803603602081101561054757600080fd5b50356001600160a01b0316610edb565b34801561056357600080fd5b506102716004803603604081101561057a57600080fd5b506001600160a01b038135169060200135610f4e565b34801561059c57600080fd5b506102cd600480360360208110156105b357600080fd5b50356001600160a01b0316610f5b565b3480156105cf57600080fd5b506104726110a4565b6101a7610678565b3480156105ec57600080fd5b506101a76004803603602081101561060357600080fd5b50356110b3565b34801561061657600080fd5b506102cd6004803603604081101561062d57600080fd5b506001600160a01b038135811691602001351661127a565b34801561065157600080fd5b506101a76004803603602081101561066857600080fd5b50356001600160a01b0316611297565b60003490507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156106d857600080fd5b505af11580156106ec573d6000803e3d6000fd5b50505050506106fb338261130a565b60408051828152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a250565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107ba5780601f1061078f576101008083540402835291602001916107ba565b820191906000526020600020905b81548152906001019060200180831161079d57829003601f168201915b505050505081565b60006107cf3384846113fa565b50600192915050565b60055461010090046001600160a01b03163314610829576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b610832816114e6565b61083b57600080fd5b6108c933826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561088c57600080fd5b505afa1580156108a0573d6000803e3d6000fd5b505050506040513d60208110156108b657600080fd5b50516001600160a01b0384169190611539565b50565b60025481565b60006108df848484611590565b6001600160a01b0384166000908152600160209081526040808320338452909152902054600019811461093b5761093b853361093686604051806060016040528060288152602001611cbe602891398691906116eb565b6113fa565b60019150505b9392505050565b6109523382611782565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316632e1a7d4d826040518263ffffffff1660e01b815260040180828152602001915050600060405180830381600087803b1580156109b857600080fd5b505af11580156109cc573d6000803e3d6000fd5b50506040805184815290513393507f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b6592509081900360200190a2604051600090339083908381818185875af1925050503d8060008114610a48576040519150601f19603f3d011682016040523d82523d6000602084013e610a4d565b606091505b5050905080610a95576040805162461bcd60e51b815260206004820152600f60248201526e151c985b9cd9995c8819985a5b1959608a1b604482015290519081900360640190fd5b5050565b60055460ff1681565b610aab816108c9565b610ab53382611782565b60007f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015610b2457600080fd5b505afa158015610b38573d6000803e3d6000fd5b505050506040513d6020811015610b4e57600080fd5b50519050610b866001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2163384611539565b610b90818361187e565b604080516370a0823160e01b815230600482015290516001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc216916370a08231916024808301926020929190829003018186803b158015610bf657600080fd5b505afa158015610c0a573d6000803e3d6000fd5b505050506040513d6020811015610c2057600080fd5b505114610c69576040805162461bcd60e51b8152602060048201526012602482015271151c985b9cd9995c881b9bdd08195e1858dd60721b604482015290519081900360640190fd5b60408051838152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a25050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916107cf91859061093690866118c0565b60055461010090046001600160a01b03163314610d2a576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b6001600160a01b03919091166000908152600860205260409020805460ff1916911515919091179055565b6006546001600160a01b03163314610d6c57600080fd5b600680546001600160a01b0319169055600554604051339161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a360058054610100600160a81b0319163361010002179055565b60006020819052908152604090205481565b60055461010090046001600160a01b031681565b60086020526000908152604090205460ff1681565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107ba5780601f1061078f576101008083540402835291602001916107ba565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b60006107cf338461093685604051806060016040528060258152602001611d7a602591393360009081526001602090815260408083206001600160a01b038d16845290915290205491906116eb565b60055461010090046001600160a01b03163314610f2c576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b600780546001600160a01b0319166001600160a01b0392909216919091179055565b60006107cf338484611590565b60006001600160a01b038216610f7057600080fd5b3360009081526008602052604090205460ff16610fc4576040805162461bcd60e51b815260206004820152600d60248201526c5377656570657273206f6e6c7960981b604482015290519081900360640190fd5b60075460408051630326fdf560e31b81526001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc28116600483015230602483015291519190921691631937efa8916044808301926020929190829003018186803b15801561103757600080fd5b505afa15801561104b573d6000803e3d6000fd5b505050506040513d602081101561106157600080fd5b50519050801561109f5761109f6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2168383611539565b919050565b6007546001600160a01b031681565b6110bc816108c9565b60007f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561112b57600080fd5b505afa15801561113f573d6000803e3d6000fd5b505050506040513d602081101561115557600080fd5b5051905061118e6001600160a01b037f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc21633308561191a565b6000611233827f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561120157600080fd5b505afa158015611215573d6000803e3d6000fd5b505050506040513d602081101561122b57600080fd5b50519061187e565b905061123f338261130a565b60408051848152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505050565b600160209081526000928352604080842090915290825290205481565b60055461010090046001600160a01b031633146112e8576040805162461bcd60e51b815260206004820152600a6024820152694f776e6572206f6e6c7960b01b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038216611365576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6113716000838361158b565b60025461137e90826118c0565b6002556001600160a01b0382166000908152602081905260409020546113a490826118c0565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b6001600160a01b03831661143f5760405162461bcd60e51b8152600401808060200182810382526024815260200180611d2c6024913960400191505060405180910390fd5b6001600160a01b0382166114845760405162461bcd60e51b8152600401808060200182810382526022815260200180611c506022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b60006001600160a01b038216301480159061153357507f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b0316826001600160a01b031614155b92915050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261158b90849061197a565b505050565b6001600160a01b0383166115d55760405162461bcd60e51b8152600401808060200182810382526025815260200180611d076025913960400191505060405180910390fd5b6001600160a01b03821661161a5760405162461bcd60e51b8152600401808060200182810382526023815260200180611c0b6023913960400191505060405180910390fd5b61162583838361158b565b61166281604051806060016040528060268152602001611c72602691396001600160a01b03861660009081526020819052604090205491906116eb565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461169190826118c0565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b6000818484111561177a5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561173f578181015183820152602001611727565b50505050905090810190601f16801561176c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6001600160a01b0382166117c75760405162461bcd60e51b8152600401808060200182810382526021815260200180611ce66021913960400191505060405180910390fd5b6117d38260008361158b565b61181081604051806060016040528060228152602001611c2e602291396001600160a01b03851660009081526020819052604090205491906116eb565b6001600160a01b038316600090815260208190526040902055600254611836908261187e565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b600061094183836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506116eb565b600082820183811015610941576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261197490859061197a565b50505050565b60606119cf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611a2b9092919063ffffffff16565b80519091501561158b578080602001905160208110156119ee57600080fd5b505161158b5760405162461bcd60e51b815260040180806020018281038252602a815260200180611d50602a913960400191505060405180910390fd5b6060611a3a8484600085611a42565b949350505050565b606082471015611a835760405162461bcd60e51b8152600401808060200182810382526026815260200180611c986026913960400191505060405180910390fd5b611a8c85611b9e565b611add576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611b1c5780518252601f199092019160209182019101611afd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611b7e576040519150601f19603f3d011682016040523d82523d6000602084013e611b83565b606091505b5091509150611b93828286611ba4565b979650505050505050565b3b151590565b60608315611bb3575081610941565b825115611bc35782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561173f57818101518382015260200161172756fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220f5836e686f6a1b6eb22a9d1ea1dc1bf9d0323e5165d34ca33c0b0e7f191b25e764736f6c63430007040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
-----Decoded View---------------
Arg [0] : _weth (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Deployed Bytecode Sourcemap
317:886:19:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;547:10;-1:-1:-1;;;;;569:12:19;547:35;;543:77;;599:9;:7;:9::i;:::-;317:886;;;;;1668:27:2;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2761:167;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2761:167:2;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;427:196:30;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;427:196:30;-1:-1:-1;;;;;427:196:30;;:::i;1624:35:2:-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;3410:420;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3410:420:2;;;;;;;;;;;;;;;;;:::i;882:318:19:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;882:318:19;;:::i;1738:35:2:-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1427:426:33;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1427:426:33;;:::i;4239:212:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4239:212:2;;;;;;;;:::i;965:126:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;965:126:3;;;;;;;;;;:::i;652:222:20:-;;;;;;;;;;;;;:::i;1479:54:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1479:54:2;-1:-1:-1;;;;;1479:54:2;;:::i;329:42:20:-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;329:42:20;;;;;;;;;;;;;;597:50:3;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;597:50:3;-1:-1:-1;;;;;597:50:3;;:::i;1702:29:2:-;;;;;;;;;;;;;:::i;657:45:33:-;;;;;;;;;;;;;:::i;4954:263:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4954:263:2;;;;;;;;:::i;808:149:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;808:149:3;-1:-1:-1;;;;;808:149:3;;:::i;2441:173:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2441:173:2;;;;;;;;:::i;1099:364:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1099:364:3;-1:-1:-1;;;;;1099:364:3;;:::i;536:48::-;;;;;;;;;;;;;:::i;635:239:19:-;;;:::i;1002:417:33:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1002:417:33;;:::i;1540:75:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;1540:75:2;;;;;;;;;;:::i;524:120:20:-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;524:120:20;-1:-1:-1;;;;;524:120:20;;:::i;635:239:19:-;694:14;711:9;694:26;;745:12;-1:-1:-1;;;;;731:36:19;;776:6;731:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;797:25;803:10;815:6;797:5;:25::i;:::-;838:27;;;;;;;;846:10;;838:27;;;;;;;;;;635:239;:::o;1668:27:2:-;;;;;;;;;;;;;;;-1:-1:-1;;1668:27:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2761:167::-;2844:4;2861:37;2870:10;2882:7;2891:6;2861:8;:37::i;:::-;-1:-1:-1;2916:4:2;2761:167;;;;:::o;427:196:30:-;476:5:20;;;;;-1:-1:-1;;;;;476:5:20;462:10;:19;453:43;;;;;-1:-1:-1;;;453:43:20;;;;;;;;;;;;-1:-1:-1;;;453:43:20;;;;;;;;;;;;;;;518:23:30::1;535:5;518:16;:23::i;:::-;509:33;;;::::0;::::1;;553:62;572:10;584:5;-1:-1:-1::0;;;;;584:15:30::1;;608:4;584:30;;;;;;;;;;;;;-1:-1:-1::0;;;;;584:30:30::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;584:30:30;-1:-1:-1;;;;;553:18:30;::::1;::::0;:62;:18:::1;:62::i;:::-;427:196:::0;:::o;1624:35:2:-;;;;:::o;3410:420::-;3516:4;3533:36;3543:6;3551:9;3562:6;3533:9;:36::i;:::-;-1:-1:-1;;;;;3603:17:2;;3580:20;3603:17;;;:9;:17;;;;;;;;3621:10;3603:29;;;;;;;;-1:-1:-1;;3647:27:2;;3643:158;;3691:98;3700:6;3708:10;3720:68;3737:6;3720:68;;;;;;;;;;;;;;;;;:12;;:68;:16;:68::i;:::-;3691:8;:98::i;:::-;3818:4;3811:11;;;3410:420;;;;;;:::o;882:318:19:-;949:26;955:10;967:7;949:5;:26::i;:::-;1000:12;-1:-1:-1;;;;;986:37:19;;1024:7;986:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1048:31:19;;;;;;;;1059:10;;-1:-1:-1;1048:31:19;;-1:-1:-1;1048:31:19;;;;;;;;1108:37;;1091:12;;1108:10;;1132:7;;1091:12;1108:37;1091:12;1108:37;1132:7;1108:10;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1090:55;;;1165:7;1156:36;;;;;-1:-1:-1;;;1156:36:19;;;;;;;;;;;;-1:-1:-1;;;1156:36:19;;;;;;;;;;;;;;;882:318;;:::o;1738:35:2:-;;;;;;:::o;1427:426:33:-;1500:30;1522:7;1500:21;:30::i;:::-;1541:26;1547:10;1559:7;1541:5;:26::i;:::-;1578:17;1598:12;-1:-1:-1;;;;;1598:22:33;;1629:4;1598:37;;;;;;;;;;;;;-1:-1:-1;;;;;1598:37:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1598:37:33;;-1:-1:-1;1646:46:33;-1:-1:-1;;;;;1646:12:33;:25;1672:10;1684:7;1646:25;:46::i;:::-;1753:22;:9;1767:7;1753:13;:22::i;:::-;1712:37;;;-1:-1:-1;;;1712:37:33;;1743:4;1712:37;;;;;;-1:-1:-1;;;;;1712:12:33;:22;;;;:37;;;;;;;;;;;;;;:22;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1712:37:33;:63;1703:95;;;;;-1:-1:-1;;;1703:95:33;;;;;;;;;;;;-1:-1:-1;;;1703:95:33;;;;;;;;;;;;;;;1814:31;;;;;;;;1825:10;;1814:31;;;;;;;;;;1427:426;;:::o;4239:212:2:-;4353:10;4327:4;4374:21;;;:9;:21;;;;;;;;-1:-1:-1;;;;;4374:30:2;;;;;;;;;;4327:4;;4344:77;;4365:7;;4374:46;;4409:10;4374:34;:46::i;965:126:3:-;476:5:20;;;;;-1:-1:-1;;;;;476:5:20;462:10;:19;453:43;;;;;-1:-1:-1;;;453:43:20;;;;;;;;;;;;-1:-1:-1;;;453:43:20;;;;;;;;;;;;;;;-1:-1:-1;;;;;1058:17:3;;;::::1;;::::0;;;:8:::1;:17;::::0;;;;:25;;-1:-1:-1;;1058:25:3::1;::::0;::::1;;::::0;;;::::1;::::0;;965:126::o;652:222:20:-;719:12;;-1:-1:-1;;;;;719:12:20;735:10;719:26;710:36;;;;;;757:12;:25;;-1:-1:-1;;;;;;757:25:20;;;819:5;;798:39;;826:10;;757:25;819:5;;-1:-1:-1;;;;;819:5:20;;798:39;;780:1;;798:39;848:5;:18;;-1:-1:-1;;;;;;848:18:20;856:10;848:18;;;;;652:222::o;1479:54:2:-;;;;;;;;;;;;;;:::o;329:42:20:-;;;;;;-1:-1:-1;;;;;329:42:20;;:::o;597:50:3:-;;;;;;;;;;;;;;;:::o;1702:29:2:-;;;;;;;;;;;;;;;-1:-1:-1;;1702:29:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;657:45:33;;;:::o;4954:263:2:-;5047:4;5064:123;5073:10;5085:7;5094:92;5129:15;5094:92;;;;;;;;;;;;;;;;;5104:10;5094:21;;;;:9;:21;;;;;;;;-1:-1:-1;;;;;5094:30:2;;;;;;;;;;;:92;:34;:92::i;808:149:3:-;476:5:20;;;;;-1:-1:-1;;;;;476:5:20;462:10;:19;453:43;;;;;-1:-1:-1;;;453:43:20;;;;;;;;;;;;-1:-1:-1;;;453:43:20;;;;;;;;;;;;;;;915:15:3::1;:34:::0;;-1:-1:-1;;;;;;915:34:3::1;-1:-1:-1::0;;;;;915:34:3;;;::::1;::::0;;;::::1;::::0;;808:149::o;2441:173:2:-;2527:4;2544:40;2554:10;2566:9;2577:6;2544:9;:40::i;1099:364:3:-;1156:19;-1:-1:-1;;;;;1202:16:3;;1193:26;;;;;;1248:10;1239:20;;;;:8;:20;;;;;;;;1230:47;;;;;-1:-1:-1;;;1230:47:3;;;;;;;;;;;;-1:-1:-1;;;1230:47:3;;;;;;;;;;;;;;;1302:15;;:53;;;-1:-1:-1;;;1302:53:3;;-1:-1:-1;;;;;1336:12:3;1302:53;;;;;;1350:4;1302:53;;;;;;:15;;;;;:33;;:53;;;;;;;;;;;;;;:15;:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1302:53:3;;-1:-1:-1;1370:15:3;;1366:90;;1402:42;-1:-1:-1;;;;;1402:12:3;:25;1428:2;1432:11;1402:25;:42::i;:::-;1099:364;;;:::o;536:48::-;;;-1:-1:-1;;;;;536:48:3;;:::o;1002:417:33:-;1074:29;1095:7;1074:20;:29::i;:::-;1114:17;1134:12;-1:-1:-1;;;;;1134:22:33;;1165:4;1134:37;;;;;;;;;;;;;-1:-1:-1;;;;;1134:37:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1134:37:33;;-1:-1:-1;1182:65:33;-1:-1:-1;;;;;1182:12:33;:29;1212:10;1232:4;1239:7;1182:29;:65::i;:::-;1258:16;1277:52;1319:9;1277:12;-1:-1:-1;;;;;1277:22:33;;1308:4;1277:37;;;;;;;;;;;;;-1:-1:-1;;;;;1277:37:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1277:37:33;;:41;:52::i;:::-;1258:71;;1340:27;1346:10;1358:8;1340:5;:27::i;:::-;1383:28;;;;;;;;1391:10;;1383:28;;;;;;;;;;1002:417;;;:::o;1540:75:2:-;;;;;;;;;;;;;;;;;;;;;;;;:::o;524:120:20:-;476:5;;;;;-1:-1:-1;;;;;476:5:20;462:10;:19;453:43;;;;;-1:-1:-1;;;453:43:20;;;;;;;;;;;;-1:-1:-1;;;453:43:20;;;;;;;;;;;;;;;613:12:::1;:23:::0;;-1:-1:-1;;;;;;613:23:20::1;-1:-1:-1::0;;;;;613:23:20;;;::::1;::::0;;;::::1;::::0;;524:120::o;6528:376:2:-;-1:-1:-1;;;;;6612:21:2;;6604:65;;;;;-1:-1:-1;;;6604:65:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;6682:49;6711:1;6715:7;6724:6;6682:20;:49::i;:::-;6758:11;;:23;;6774:6;6758:15;:23::i;:::-;6744:11;:37;-1:-1:-1;;;;;6813:18:2;;:9;:18;;;;;;;;;;;:30;;6836:6;6813:22;:30::i;:::-;-1:-1:-1;;;;;6792:18:2;;:9;:18;;;;;;;;;;;:51;;;;6859:37;;;;;;;6792:18;;:9;;6859:37;;;;;;;;;;6528:376;;:::o;8091:344::-;-1:-1:-1;;;;;8193:19:2;;8185:68;;;;-1:-1:-1;;;8185:68:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8272:21:2;;8264:68;;;;-1:-1:-1;;;8264:68:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;8345:16:2;;;;;;;:9;:16;;;;;;;;:25;;;;;;;;;;;;;:34;;;8395:32;;;;;;;;;;;;;;;;;8091:344;;;:::o;1861:156:33:-;1941:4;-1:-1:-1;;;;;1971:13:33;;1980:4;1971:13;;;;:38;;;1997:12;-1:-1:-1;;;;;1988:21:33;:5;-1:-1:-1;;;;;1988:21:33;;;1971:38;1964:45;1861:156;-1:-1:-1;;1861:156:33:o;828:177:28:-;938:58;;;-1:-1:-1;;;;;938:58:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;938:58:28;-1:-1:-1;;;938:58:28;;;911:86;;931:5;;911:19;:86::i;:::-;828:177;;;:::o;5707:539:2:-;-1:-1:-1;;;;;5813:20:2;;5805:70;;;;-1:-1:-1;;;5805:70:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5894:23:2;;5886:71;;;;-1:-1:-1;;;5886:71:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5970:47;5991:6;5999:9;6010:6;5970:20;:47::i;:::-;6050:71;6072:6;6050:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;6050:17:2;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;6030:17:2;;;:9;:17;;;;;;;;;;;:91;;;;6155:20;;;;;;;:32;;6180:6;6155:24;:32::i;:::-;-1:-1:-1;;;;;6132:20:2;;;:9;:20;;;;;;;;;;;;:55;;;;6203:35;;;;;;;6132:20;;6203:35;;;;;;;;;;;;;5707:539;;;:::o;491:196:29:-;577:7;619:12;611:6;;;;603:29;;;;-1:-1:-1;;;603:29:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;655:5:29;;;491:196::o;7237:416:2:-;-1:-1:-1;;;;;7321:21:2;;7313:67;;;;-1:-1:-1;;;7313:67:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7393:49;7414:7;7431:1;7435:6;7393:20;:49::i;:::-;7476:68;7499:6;7476:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;7476:18:2;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;7455:18:2;;:9;:18;;;;;;;;;;:89;7569:11;;:23;;7585:6;7569:15;:23::i;:::-;7555:11;:37;7608;;;;;;;;7634:1;;-1:-1:-1;;;;;7608:37:2;;;;;;;;;;;;7237:416;;:::o;341:142:29:-;399:7;432:43;436:1;439;432:43;;;;;;;;;;;;;;;;;:3;:43::i;148:185::-;206:7;244:5;;;268:6;;;;260:46;;;;;-1:-1:-1;;;260:46:29;;;;;;;;;;;;;;;;;;;;;;;;;;;1013:205:28;1141:68;;;-1:-1:-1;;;;;1141:68:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1141:68:28;-1:-1:-1;;;1141:68:28;;;1114:96;;1134:5;;1114:19;:96::i;:::-;1013:205;;;;:::o;2071:761::-;2495:23;2521:69;2549:4;2521:69;;;;;;;;;;;;;;;;;2529:5;-1:-1:-1;;;;;2521:27:28;;;:69;;;;;:::i;:::-;2605:17;;2495:95;;-1:-1:-1;2605:21:28;2601:224;;2747:10;2736:30;;;;;;;;;;;;;;;-1:-1:-1;2736:30:28;2728:85;;;;-1:-1:-1;;;2728:85:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3670:195:0;3773:12;3805:52;3827:6;3835:4;3841:1;3844:12;3805:21;:52::i;:::-;3798:59;3670:195;-1:-1:-1;;;;3670:195:0:o;4722:530::-;4849:12;4907:5;4882:21;:30;;4874:81;;;;-1:-1:-1;;;4874:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4974:18;4985:6;4974:10;:18::i;:::-;4966:60;;;;;-1:-1:-1;;;4966:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5100:12;5114:23;5141:6;-1:-1:-1;;;;;5141:11:0;5161:5;5169:4;5141:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5141:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5099:75;;;;5192:52;5210:7;5219:10;5231:12;5192:17;:52::i;:::-;5185:59;4722:530;-1:-1:-1;;;;;;;4722:530:0:o;752:422::-;1119:20;1158:8;;;752:422::o;7262:742::-;7377:12;7406:7;7402:595;;;-1:-1:-1;7437:10:0;7430:17;;7402:595;7551:17;;:21;7547:439;;7814:10;7808:17;7875:15;7862:10;7858:2;7854:19;7847:44;7762:148;7950:20;;-1:-1:-1;;;7950:20:0;;;;;;;;;;;;;;;;;7957:12;;7950:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://f5836e686f6a1b6eb22a9d1ea1dc1bf9d0323e5165d34ca33c0b0e7f191b25e7
Loading...
Loading
Loading...
Loading
OVERVIEW
The Rootkit Uniswap pair uses kETH, a wrapped version of WETH. Anyone can create kETH and redeem it anytime at a 1:1 rate for WETH. kETH allows the Rootkit system to access the value under the price floor without affecting the market or the guaranteed minimum token price.Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $3,384.35 | 0.00360485 | $12.2 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.