More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 226 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Level Down | 18870188 | 240 days ago | IN | 0 ETH | 0.0030284 | ||||
Level Up | 18870177 | 240 days ago | IN | 0 ETH | 0.00205929 | ||||
Level Down | 18870140 | 240 days ago | IN | 0 ETH | 0.00316297 | ||||
Level Up | 18870120 | 240 days ago | IN | 0 ETH | 0.00182405 | ||||
Level Down | 18869943 | 240 days ago | IN | 0 ETH | 0.00325492 | ||||
Level Up | 14785306 | 830 days ago | IN | 0 ETH | 0.0015175 | ||||
Level Up | 14785304 | 830 days ago | IN | 0 ETH | 0.00130134 | ||||
Level Up | 14785299 | 830 days ago | IN | 0 ETH | 0.00183058 | ||||
Level Down | 14785284 | 830 days ago | IN | 0 ETH | 0.00320633 | ||||
Transfer Ownersh... | 14454611 | 882 days ago | IN | 0 ETH | 0.00063626 | ||||
Level Down | 14402126 | 890 days ago | IN | 0 ETH | 0.00435589 | ||||
Level Down | 13782661 | 986 days ago | IN | 0 ETH | 0.00759808 | ||||
Level Down | 13730741 | 994 days ago | IN | 0 ETH | 0.01355964 | ||||
Level Down | 13707177 | 998 days ago | IN | 0 ETH | 0.01231551 | ||||
Level Down | 13657862 | 1005 days ago | IN | 0 ETH | 0.00950436 | ||||
Level Down | 13553283 | 1022 days ago | IN | 0 ETH | 0.02381442 | ||||
Level Down | 13473555 | 1034 days ago | IN | 0 ETH | 0.00915237 | ||||
Level Down | 13472140 | 1035 days ago | IN | 0 ETH | 0.00703022 | ||||
Level Down | 13426637 | 1042 days ago | IN | 0 ETH | 0.0090501 | ||||
Level Down | 13420814 | 1043 days ago | IN | 0 ETH | 0.01729443 | ||||
Level Down | 13402484 | 1046 days ago | IN | 0 ETH | 0.01022892 | ||||
Level Down | 13305805 | 1061 days ago | IN | 0 ETH | 0.00895952 | ||||
Level Up | 13286412 | 1064 days ago | IN | 0 ETH | 0.00439965 | ||||
Level Up | 13286011 | 1064 days ago | IN | 0 ETH | 0.00640652 | ||||
Level Down | 13222494 | 1074 days ago | IN | 0 ETH | 0.00128643 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
BBSLevel
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-09-07 */ /** *Submitted for verification at Etherscan.io on 2021-09-07 */ pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // SPDX-License-Identifier: MIT pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } pragma solidity >=0.6.0 <0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } pragma solidity >=0.6.0 <0.8.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) * and `uint256` (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // Bytes32Set struct Bytes32Set { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _add(set._inner, value); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { return _remove(set._inner, value); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { return _contains(set._inner, value); } /** * @dev Returns the number of values in the set. O(1). */ function length(Bytes32Set storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { return _at(set._inner, index); } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(uint160(value)))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint160(uint256(_at(set._inner, index)))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } pragma solidity >=0.6.0 <0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; uint8 private _decimals; /** * @dev Sets the values for {name} and {symbol}, initializes {decimals} with * a default value of 18. * * To select a different value for {decimals}, use {_setupDecimals}. * * All three of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) public { _name = name_; _symbol = symbol_; _decimals = 18; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5,05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is * called. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return _decimals; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Sets {decimals} to a value other than the default one of 18. * * WARNING: This function should only be called from the constructor. Most * applications that interact with token contracts will not expect * {decimals} to ever change, and may work incorrectly if it does. */ function _setupDecimals(uint8 decimals_) internal virtual { _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 { } } // BitberrySwap with Governance. contract BitberrySwap is ERC20("Bitberryswap", "BBS"), Ownable { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (0x). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); } } pragma solidity 0.6.12; ///////////////////////////////////////////////////////////////////////////////////// // // Level // ///////////////////////////////////////////////////////////////////////////////////// contract BBSLevel is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; struct LevelInfo { uint256 level; uint256 amount; } BBSPoolV2 pool; IERC20 public token; LevelInfo[] public info; mapping(address => LevelInfo) public users; event LevelUp(address indexed user, uint256 amount); event LevelDown(address indexed user, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 amount); constructor(BBSPoolV2 _pool, IERC20 _token) public { pool = _pool; token = _token; } function infoLength() public view returns (uint256) { return info.length; } function getLevel(address _addr) public view returns (uint256) { return users[_addr].level; } function getAmount(address _addr) public view returns (uint256) { return users[_addr].amount; } function setPoolContract(BBSPoolV2 _pool) public onlyOwner { pool = _pool; } function add(uint256 _level, uint256 _amount) public onlyOwner { info.push(LevelInfo({level: _level, amount: _amount})); } function set(uint256 id, uint256 _level, uint256 _amount) public onlyOwner { info[id].level = _level; info[id].amount = _amount; } function levelUp(uint256 _amount) public { require(_amount > 0, "levelUp: amount 0"); LevelInfo storage user = users[msg.sender]; user.amount = user.amount.add(_amount); uint256 length = info.length; for (uint256 i = 0; i < length; i++) { if (info[i].amount <= user.amount && user.level < info[i].level) { user.level = info[i].level; } } token.safeTransferFrom(address(msg.sender), address(this), _amount); emit LevelUp(msg.sender, _amount); } function levelDown(uint256 _amount) public { require(_amount > 0, "levelDown: amount 0"); require(users[msg.sender].amount >= _amount, "levelDown: not good"); require(!pool.userMining(msg.sender, true), "levelDown: mining ture"); LevelInfo storage user = users[msg.sender]; user.amount = user.amount.sub(_amount); user.level = 0; uint256 length = info.length; for (uint256 i = 0; i < length; i++) { if (info[i].amount <= user.amount && user.level < info[i].level) { user.level = info[i].level; } } token.safeTransfer(address(msg.sender), _amount); emit LevelDown(msg.sender, _amount); } function emergencyWithdraw(address _addr) public onlyOwner { LevelInfo storage user = users[_addr]; token.safeTransfer(address(_addr), user.amount); emit EmergencyWithdraw(_addr, user.amount); user.level = 0; user.amount = 0; } } pragma solidity 0.6.12; ///////////////////////////////////////////////////////////////////////////////////// // // Referral // ///////////////////////////////////////////////////////////////////////////////////// contract BBSReferral is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public token; uint256 public fee; struct User { address parent; address[] children; uint256 grade; } mapping(address => User) public users; event AddReferral(address indexed user, address _addr); event Register(address indexed user, address _addr); constructor(IERC20 _token, uint256 _fee) public { token = _token; fee = _fee; } function getParent(address _addr) public view returns (address) { return users[_addr].parent; } function getChildren(address _addr) public view returns (address[] memory) { return users[_addr].children; } function getGrade(address _addr) public view returns (uint256) { return users[_addr].grade; } function setFee(IERC20 _token, uint256 _amount) public onlyOwner { token = _token; fee = _amount; } function withdraw(uint256 _amount) public onlyOwner { require( token.balanceOf(address(this)) >= _amount, "withdraw: not good" ); token.safeTransfer(address(msg.sender), _amount); } // 마스터 등록 (온리 오너계정) function addMaster(address _addr) public onlyOwner { // _addr 이 등록 되어있으면 에러 require(users[_addr].grade < 1, "addMaster: used address"); User storage user = users[_addr]; user.grade = 1; users[_addr] = user; } // 레퍼럴 계정 // 상위는 마스터, 토큰으로 구매 (fee) // _addr : master address function addReferral(address _addr) public { // _addr 이 master 계정이 아니면 에러 require(users[_addr].grade == 1, "addReferral: not address"); //내 address가 등록 되어있으면 에러 require(users[msg.sender].grade < 1, "addReferral: used address"); //레퍼럴 유저 등록 User storage user = users[msg.sender]; user.grade = 2; user.parent = _addr; users[msg.sender] = user; //마스터 children 추가 User storage master = users[_addr]; master.children.push(msg.sender); token.safeTransferFrom(address(msg.sender), address(this), fee); emit AddReferral(msg.sender, _addr); } //레퍼럴 등록 // _addr = referral function register(address _addr) public { // msg.sender 와 _addr 이 같으면 에러 require(msg.sender != _addr, "register: error address"); //내 address가 등록 되어있으면 에러 require(users[msg.sender].grade < 1, "register: used address"); // _addr이 referral이 아니면 에러 require(users[_addr].grade == 2, "register: not referral address"); // 상위레퍼럴에 children 추가 User storage parent = users[_addr]; parent.children.push(msg.sender); // msg.sender로 구조체 생성 User storage user = users[msg.sender]; user.parent = _addr; user.grade = 3; emit Register(msg.sender, _addr); } } pragma solidity 0.6.12; interface IMigratorPool { function migrate(IERC20 token) external returns (IERC20); } contract BBSPoolV2 is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; struct UserInfo { uint256 amount; uint256 rewardDebt; } struct PoolInfo { IERC20 lpToken; uint256 allocPoint; uint256 lastRewardBlock; uint256 accTokenPerShare; uint256 level; } BitberrySwap public token; address public teamAddr; uint256 public tokenPerBlock; uint256 public BONUS_MULTIPLIER = 1; IMigratorPool public migrator; PoolInfo[] public poolInfo; mapping (uint256 => mapping (address => UserInfo)) public userInfo; uint256 public totalAllocPoint; uint256 public startBlock; uint256 public endBlock; BBSLevel public levelContract; BBSReferral public referralContract; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); constructor( BitberrySwap _token, address _teamAddr, uint256 _tokenPerBlock, uint256 _startBlock, uint256 _endBlock ) public { token = _token; teamAddr = _teamAddr; tokenPerBlock = _tokenPerBlock; startBlock = _startBlock; endBlock = _endBlock; } function setLevelContract(BBSLevel _levelContract) public onlyOwner { levelContract = _levelContract; } function setReferralContract(BBSReferral _referralContract) public onlyOwner { referralContract = _referralContract; } function updateMultiplier(uint256 multiplierNumber) public onlyOwner { BONUS_MULTIPLIER = multiplierNumber; } function poolLength() external view returns (uint256) { return poolInfo.length; } function userMining(address _addr, bool _levelPool) external view returns (bool) { for (uint256 pid = 0; pid < poolInfo.length; pid++) { PoolInfo storage pool = poolInfo[pid]; UserInfo storage user = userInfo[pid][_addr]; if(_levelPool && pool.level > 0 && user.amount > 0) return true; else if (!_levelPool && user.amount > 0) return true; } return false; } function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate, uint256 _level) public onlyOwner { if (_withUpdate) { massUpdatePools(); } uint256 lastRewardBlock = block.number > startBlock ? block.number : startBlock; totalAllocPoint = totalAllocPoint.add(_allocPoint); poolInfo.push(PoolInfo({ lpToken: _lpToken, allocPoint: _allocPoint, lastRewardBlock: lastRewardBlock, accTokenPerShare: 0, level: _level })); } function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner { if (_withUpdate) { massUpdatePools(); } totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint); poolInfo[_pid].allocPoint = _allocPoint; } function setMigrator(IMigratorPool _migrator) public onlyOwner { migrator = _migrator; } function migrate(uint256 _pid) public { require(address(migrator) != address(0), "migrate: no migrator"); PoolInfo storage pool = poolInfo[_pid]; IERC20 lpToken = pool.lpToken; uint256 bal = lpToken.balanceOf(address(this)); lpToken.safeApprove(address(migrator), bal); IERC20 newLpToken = migrator.migrate(lpToken); require(bal == newLpToken.balanceOf(address(this)), "migrate: bad"); pool.lpToken = newLpToken; } function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) { return _to.sub(_from).mul(BONUS_MULTIPLIER); } function pendingToken(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accTokenPerShare = pool.accTokenPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); uint256 blockNumber = 0; if(block.number > endBlock) blockNumber = endBlock; else blockNumber = block.number; if (blockNumber > pool.lastRewardBlock && lpSupply != 0) { uint256 multiplier = getMultiplier(pool.lastRewardBlock, blockNumber); uint256 tokenReward = multiplier.mul(tokenPerBlock).mul(pool.allocPoint).div(totalAllocPoint); accTokenPerShare = accTokenPerShare.add(tokenReward.mul(1e12).div(lpSupply)); } return user.amount.mul(accTokenPerShare).div(1e12).sub(user.rewardDebt); } function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0) { if (block.number > endBlock) pool.lastRewardBlock = endBlock; else pool.lastRewardBlock = block.number; return; } if (pool.lastRewardBlock == endBlock){ return; } if (block.number > endBlock){ uint256 multiplier = getMultiplier(pool.lastRewardBlock, endBlock); uint256 tokenReward = multiplier.mul(tokenPerBlock).mul(pool.allocPoint).div(totalAllocPoint); //token.mint(teamAddr, tokenReward.div(10)); //token.mint(address(this), tokenReward); pool.accTokenPerShare = pool.accTokenPerShare.add(tokenReward.mul(1e12).div(lpSupply)); pool.lastRewardBlock = endBlock; return; } uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number); uint256 tokenReward = multiplier.mul(tokenPerBlock).mul(pool.allocPoint).div(totalAllocPoint); //token.mint(teamAddr, tokenReward.div(10)); //token.mint(address(this), tokenReward); pool.accTokenPerShare = pool.accTokenPerShare.add(tokenReward.mul(1e12).div(lpSupply)); pool.lastRewardBlock = block.number; } function deposit(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; //풀 레벨 보다 사용자 레벨이 높거나 같아야 함 require(levelContract.getLevel(msg.sender) >= pool.level, "deposit : user level"); //레벨 풀 일 경우 사용자는 레퍼럴에 등록되어 있어야 함 if(pool.level > 0) require(referralContract.getGrade(msg.sender) > 0, "deposit : user referral"); //(address parent, address[] children, uint256 grade) = referralContract.users(msg.sender); //require(grade > 0, "deposit : user referral"); updatePool(_pid); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accTokenPerShare).div(1e12).sub(user.rewardDebt); safeTokenTransfer(msg.sender, pending, pool.level); } if(_amount > 0) { //kevin pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount); user.amount = user.amount.add(_amount); } user.rewardDebt = user.amount.mul(pool.accTokenPerShare).div(1e12); emit Deposit(msg.sender, _pid, _amount); } function depositFor(address _beneficiary, uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_beneficiary]; //풀 레벨 보다 사용자 레벨이 높거나 같아야 함 require(levelContract.getLevel(_beneficiary) >= pool.level, "depositFor : user level"); //레벨 풀 일 경우 사용자는 레퍼럴에 등록되어 있어야 함 if(pool.level > 0) require(referralContract.getGrade(_beneficiary) > 0, "depositFor : user referral"); updatePool(_pid); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accTokenPerShare).div(1e12).sub(user.rewardDebt); safeTokenTransfer(_beneficiary, pending, pool.level); } if(_amount > 0) { //kevin pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount); user.amount = user.amount.add(_amount); } user.rewardDebt = user.amount.mul(pool.accTokenPerShare).div(1e12); emit Deposit(_beneficiary, _pid, _amount); } function withdraw(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = user.amount.mul(pool.accTokenPerShare).div(1e12).sub(user.rewardDebt); safeTokenTransfer(msg.sender, pending, pool.level); user.amount = user.amount.sub(_amount); user.rewardDebt = user.amount.mul(pool.accTokenPerShare).div(1e12); pool.lpToken.safeTransfer(address(msg.sender), _amount); emit Withdraw(msg.sender, _pid, _amount); } function emergencyWithdraw(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; pool.lpToken.safeTransfer(address(msg.sender), user.amount); emit EmergencyWithdraw(msg.sender, _pid, user.amount); user.amount = 0; user.rewardDebt = 0; } function safeTokenTransfer(address _to, uint256 _amount, uint256 poolLevel) internal { uint256 tokenBal = token.balanceOf(address(this)); if (_amount > tokenBal) { //grade == 2(레퍼럴)일때 상위 master에게 수수료 2% if( poolLevel > 0 && referralContract.getGrade(_to) == 2 ){ address master = referralContract.getParent(_to); uint256 masterFee = tokenBal.mul(10).div(500); //2% token.transfer(master, masterFee); token.transfer(_to, tokenBal.sub(masterFee)); //grade == 3(일반)일때 수수료 상위 parent 8%, master 2% } else if ( poolLevel > 0 && referralContract.getGrade(_to) == 3 ){ address parent = referralContract.getParent(_to); address master = referralContract.getParent(parent); uint256 parentFee = tokenBal.mul(10).div(125); //8% uint256 masterFee = tokenBal.mul(10).div(500); //2% token.transfer(parent, parentFee); token.transfer(master, masterFee); token.transfer(_to, tokenBal.sub(parentFee).sub(masterFee)); } else token.transfer(_to, tokenBal); } else { //grade == 2(레퍼럴)일때 상위 master에게 수수료 2% if( poolLevel > 0 && referralContract.getGrade(_to) == 2 ){ address master = referralContract.getParent(_to); uint256 masterFee = _amount.mul(10).div(500); //2% token.transfer(master, masterFee); token.transfer(_to, _amount.sub(masterFee)); //grade == 3(일반)일때 수수료 상위 parent 8%, master 2% } else if ( poolLevel > 0 && referralContract.getGrade(_to) == 3 ){ address parent = referralContract.getParent(_to); address master = referralContract.getParent(parent); uint256 parentFee = _amount.mul(10).div(125); //8% uint256 masterFee = _amount.mul(10).div(500); //2% token.transfer(parent, parentFee); token.transfer(master, masterFee); token.transfer(_to, _amount.sub(parentFee).sub(masterFee)); } else token.transfer(_to, _amount); } } // Update team address by the previous team. function team(address _teamAddr) public { require(msg.sender == teamAddr, "dev: wut?"); teamAddr = _teamAddr; } function setEndBlock(uint256 _block) public onlyOwner { require(block.number < _block, "setEndBlock: err _block"); endBlock = _block; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract BBSPoolV2","name":"_pool","type":"address"},{"internalType":"contract IERC20","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LevelDown","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LevelUp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"_level","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getLevel","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"info","outputs":[{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"infoLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"levelDown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"levelUp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"_level","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract BBSPoolV2","name":"_pool","type":"address"}],"name":"setPoolContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"users","outputs":[{"internalType":"uint256","name":"level","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051611c58380380611c588339818101604052604081101561003357600080fd5b810190808051906020019092919080519060200190929190505050600061005e61018560201b60201c565b9050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35081600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505061018d565b600033905090565b611abc8061019c6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063817c896611610097578063efc58ea111610066578063efc58ea114610396578063f2fde38b146103b4578063f5a79767146103f8578063fc0c546a14610450576100f5565b8063817c89661461027d5780638da5cb5b146102d5578063a87430ba14610309578063e14d2cee14610368576100f5565b806359c3f3e0116100d357806359c3f3e0146101b35780636ff1c9bc146101f7578063715018a61461023b578063771602f714610245576100f5565b80630ce90ec2146100fa5780632e3405991461012857806343b0e8df14610171575b600080fd5b6101266004803603602081101561011057600080fd5b8101908080359060200190929190505050610484565b005b6101546004803603602081101561013e57600080fd5b81019080803590602001909291905050506106a1565b604051808381526020018281526020019250505060405180910390f35b6101b16004803603606081101561018757600080fd5b810190808035906020019092919080359060200190929190803590602001909291905050506106d2565b005b6101f5600480360360208110156101c957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107cc565b005b6102396004803603602081101561020d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108bf565b005b610243610a6c565b005b61027b6004803603604081101561025b57600080fd5b810190808035906020019092919080359060200190929190505050610bd9565b005b6102bf6004803603602081101561029357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ce2565b6040518082815260200191505060405180910390f35b6102dd610d2e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61034b6004803603602081101561031f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d57565b604051808381526020018281526020019250505060405180910390f35b6103946004803603602081101561037e57600080fd5b8101908080359060200190929190505050610d7b565b005b61039e61119a565b6040518082815260200191505060405180910390f35b6103f6600480360360208110156103ca57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111a7565b005b61043a6004803603602081101561040e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611399565b6040518082815260200191505060405180910390f35b6104586113e5565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600081116104fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f6c6576656c55703a20616d6f756e74203000000000000000000000000000000081525060200191505060405180910390fd5b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061055482826001015461140b90919063ffffffff16565b81600101819055506000600380549050905060005b818110156105fe5782600101546003828154811061058357fe5b906000526020600020906002020160010154111580156105c45750600381815481106105ab57fe5b9060005260206000209060020201600001548360000154105b156105f157600381815481106105d657fe5b90600052602060002090600202016000015483600001819055505b8080600101915050610569565b5061064e333085600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611493909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f91e51c29e7e87a74ad3b8ccba98538970f50a4309242735467f41e27c6b0fbac846040518082815260200191505060405180910390a2505050565b600381815481106106ae57fe5b90600052602060002090600202016000915090508060000154908060010154905082565b6106da611554565b73ffffffffffffffffffffffffffffffffffffffff166106f8610d2e565b73ffffffffffffffffffffffffffffffffffffffff1614610781576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b816003848154811061078f57fe5b90600052602060002090600202016000018190555080600384815481106107b257fe5b906000526020600020906002020160010181905550505050565b6107d4611554565b73ffffffffffffffffffffffffffffffffffffffff166107f2610d2e565b73ffffffffffffffffffffffffffffffffffffffff161461087b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6108c7611554565b73ffffffffffffffffffffffffffffffffffffffff166108e5610d2e565b73ffffffffffffffffffffffffffffffffffffffff161461096e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610a02828260010154600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661155c9092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969582600101546040518082815260200191505060405180910390a260008160000181905550600081600101819055505050565b610a74611554565b73ffffffffffffffffffffffffffffffffffffffff16610a92610d2e565b73ffffffffffffffffffffffffffffffffffffffff1614610b1b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b610be1611554565b73ffffffffffffffffffffffffffffffffffffffff16610bff610d2e565b73ffffffffffffffffffffffffffffffffffffffff1614610c88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60036040518060400160405280848152602001838152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550505050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001549050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60046020528060005260406000206000915090508060000154908060010154905082565b60008111610df1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f6c6576656c446f776e3a20616d6f756e7420300000000000000000000000000081525060200191505060405180910390fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101541015610ea9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f6c6576656c446f776e3a206e6f7420676f6f640000000000000000000000000081525060200191505060405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639b50b56d3360016040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182151581526020019250505060206040518083038186803b158015610f3d57600080fd5b505afa158015610f51573d6000803e3d6000fd5b505050506040513d6020811015610f6757600080fd5b810190808051906020019092919050505015610feb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f6c6576656c446f776e3a206d696e696e6720747572650000000000000000000081525060200191505060405180910390fd5b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506110458282600101546115fe90919063ffffffff16565b8160010181905550600081600001819055506000600380549050905060005b818110156110f95782600101546003828154811061107e57fe5b906000526020600020906002020160010154111580156110bf5750600381815481106110a657fe5b9060005260206000209060020201600001548360000154105b156110ec57600381815481106110d157fe5b90600052602060002090600202016000015483600001819055505b8080600101915050611064565b506111473384600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661155c9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f8b1738f9606a016d59000e1b33ec27c86ccea9f906dedd2409576da8c936eca3846040518082815260200191505060405180910390a2505050565b6000600380549050905090565b6111af611554565b73ffffffffffffffffffffffffffffffffffffffff166111cd610d2e565b73ffffffffffffffffffffffffffffffffffffffff1614611256576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112dc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611a116026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080828401905083811015611489576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b61154e846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611681565b50505050565b600033905090565b6115f98363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611681565b505050565b600082821115611676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b60606116e3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117709092919063ffffffff16565b905060008151111561176b5780806020019051602081101561170457600080fd5b810190808051906020019092919050505061176a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611a5d602a913960400191505060405180910390fd5b5b505050565b606061177f8484600085611788565b90509392505050565b6060824710156117e3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611a376026913960400191505060405180910390fd5b6117ec85611931565b61185e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106118ae578051825260208201915060208101905060208303925061188b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611910576040519150601f19603f3d011682016040523d82523d6000602084013e611915565b606091505b5091509150611925828286611944565b92505050949350505050565b600080823b905060008111915050919050565b6060831561195457829050611a09565b6000835111156119675782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156119ce5780820151818401526020810190506119b3565b50505050905090810190601f1680156119fb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220160b83b73933a4a78454109d3f3e25479953c2944a7d9c7a50994fa87cd5c7a264736f6c634300060c00330000000000000000000000003e1612d5c9d5823ffac5f472cf26e60238e27563000000000000000000000000a633e3db4b1cfad7c523d0db3c80adcb9cde6e04
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063817c896611610097578063efc58ea111610066578063efc58ea114610396578063f2fde38b146103b4578063f5a79767146103f8578063fc0c546a14610450576100f5565b8063817c89661461027d5780638da5cb5b146102d5578063a87430ba14610309578063e14d2cee14610368576100f5565b806359c3f3e0116100d357806359c3f3e0146101b35780636ff1c9bc146101f7578063715018a61461023b578063771602f714610245576100f5565b80630ce90ec2146100fa5780632e3405991461012857806343b0e8df14610171575b600080fd5b6101266004803603602081101561011057600080fd5b8101908080359060200190929190505050610484565b005b6101546004803603602081101561013e57600080fd5b81019080803590602001909291905050506106a1565b604051808381526020018281526020019250505060405180910390f35b6101b16004803603606081101561018757600080fd5b810190808035906020019092919080359060200190929190803590602001909291905050506106d2565b005b6101f5600480360360208110156101c957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506107cc565b005b6102396004803603602081101561020d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108bf565b005b610243610a6c565b005b61027b6004803603604081101561025b57600080fd5b810190808035906020019092919080359060200190929190505050610bd9565b005b6102bf6004803603602081101561029357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ce2565b6040518082815260200191505060405180910390f35b6102dd610d2e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61034b6004803603602081101561031f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d57565b604051808381526020018281526020019250505060405180910390f35b6103946004803603602081101561037e57600080fd5b8101908080359060200190929190505050610d7b565b005b61039e61119a565b6040518082815260200191505060405180910390f35b6103f6600480360360208110156103ca57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506111a7565b005b61043a6004803603602081101561040e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611399565b6040518082815260200191505060405180910390f35b6104586113e5565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600081116104fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f6c6576656c55703a20616d6f756e74203000000000000000000000000000000081525060200191505060405180910390fd5b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020905061055482826001015461140b90919063ffffffff16565b81600101819055506000600380549050905060005b818110156105fe5782600101546003828154811061058357fe5b906000526020600020906002020160010154111580156105c45750600381815481106105ab57fe5b9060005260206000209060020201600001548360000154105b156105f157600381815481106105d657fe5b90600052602060002090600202016000015483600001819055505b8080600101915050610569565b5061064e333085600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611493909392919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f91e51c29e7e87a74ad3b8ccba98538970f50a4309242735467f41e27c6b0fbac846040518082815260200191505060405180910390a2505050565b600381815481106106ae57fe5b90600052602060002090600202016000915090508060000154908060010154905082565b6106da611554565b73ffffffffffffffffffffffffffffffffffffffff166106f8610d2e565b73ffffffffffffffffffffffffffffffffffffffff1614610781576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b816003848154811061078f57fe5b90600052602060002090600202016000018190555080600384815481106107b257fe5b906000526020600020906002020160010181905550505050565b6107d4611554565b73ffffffffffffffffffffffffffffffffffffffff166107f2610d2e565b73ffffffffffffffffffffffffffffffffffffffff161461087b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6108c7611554565b73ffffffffffffffffffffffffffffffffffffffff166108e5610d2e565b73ffffffffffffffffffffffffffffffffffffffff161461096e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050610a02828260010154600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661155c9092919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969582600101546040518082815260200191505060405180910390a260008160000181905550600081600101819055505050565b610a74611554565b73ffffffffffffffffffffffffffffffffffffffff16610a92610d2e565b73ffffffffffffffffffffffffffffffffffffffff1614610b1b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b610be1611554565b73ffffffffffffffffffffffffffffffffffffffff16610bff610d2e565b73ffffffffffffffffffffffffffffffffffffffff1614610c88576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b60036040518060400160405280848152602001838152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550505050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600001549050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60046020528060005260406000206000915090508060000154908060010154905082565b60008111610df1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f6c6576656c446f776e3a20616d6f756e7420300000000000000000000000000081525060200191505060405180910390fd5b80600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101541015610ea9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260138152602001807f6c6576656c446f776e3a206e6f7420676f6f640000000000000000000000000081525060200191505060405180910390fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639b50b56d3360016040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182151581526020019250505060206040518083038186803b158015610f3d57600080fd5b505afa158015610f51573d6000803e3d6000fd5b505050506040513d6020811015610f6757600080fd5b810190808051906020019092919050505015610feb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260168152602001807f6c6576656c446f776e3a206d696e696e6720747572650000000000000000000081525060200191505060405180910390fd5b6000600460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002090506110458282600101546115fe90919063ffffffff16565b8160010181905550600081600001819055506000600380549050905060005b818110156110f95782600101546003828154811061107e57fe5b906000526020600020906002020160010154111580156110bf5750600381815481106110a657fe5b9060005260206000209060020201600001548360000154105b156110ec57600381815481106110d157fe5b90600052602060002090600202016000015483600001819055505b8080600101915050611064565b506111473384600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661155c9092919063ffffffff16565b3373ffffffffffffffffffffffffffffffffffffffff167f8b1738f9606a016d59000e1b33ec27c86ccea9f906dedd2409576da8c936eca3846040518082815260200191505060405180910390a2505050565b6000600380549050905090565b6111af611554565b73ffffffffffffffffffffffffffffffffffffffff166111cd610d2e565b73ffffffffffffffffffffffffffffffffffffffff1614611256576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260208152602001807f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657281525060200191505060405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112dc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611a116026913960400191505060405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600101549050919050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080828401905083811015611489576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b61154e846323b872dd60e01b858585604051602401808473ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611681565b50505050565b600033905090565b6115f98363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611681565b505050565b600082821115611676576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b60606116e3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166117709092919063ffffffff16565b905060008151111561176b5780806020019051602081101561170457600080fd5b810190808051906020019092919050505061176a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611a5d602a913960400191505060405180910390fd5b5b505050565b606061177f8484600085611788565b90509392505050565b6060824710156117e3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526026815260200180611a376026913960400191505060405180910390fd5b6117ec85611931565b61185e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106118ae578051825260208201915060208101905060208303925061188b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611910576040519150601f19603f3d011682016040523d82523d6000602084013e611915565b606091505b5091509150611925828286611944565b92505050949350505050565b600080823b905060008111915050919050565b6060831561195457829050611a09565b6000835111156119675782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156119ce5780820151818401526020810190506119b3565b50505050905090810190601f1680156119fb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220160b83b73933a4a78454109d3f3e25479953c2944a7d9c7a50994fa87cd5c7a264736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003e1612d5c9d5823ffac5f472cf26e60238e27563000000000000000000000000a633e3db4b1cfad7c523d0db3c80adcb9cde6e04
-----Decoded View---------------
Arg [0] : _pool (address): 0x3E1612d5c9d5823FfAC5F472cF26e60238e27563
Arg [1] : _token (address): 0xA633E3Db4B1cfaD7C523d0dB3C80aDCb9cdE6E04
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000003e1612d5c9d5823ffac5f472cf26e60238e27563
Arg [1] : 000000000000000000000000a633e3db4b1cfad7c523d0db3c80adcb9cde6e04
Deployed Bytecode Sourcemap
46211:2971:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47570:567;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;46446:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;47409:153;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47163:90;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;48900:279;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;34164:148;;;:::i;:::-;;47265:136;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;46931:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;33513:87;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;46476:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;48145:747;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;46834:89;;;:::i;:::-;;;;;;;;;;;;;;;;;;;34467:244;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;47046:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;46418:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;47570:567;47640:1;47630:7;:11;47622:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47676:22;47701:5;:17;47707:10;47701:17;;;;;;;;;;;;;;;47676:42;;47743:24;47759:7;47743:4;:11;;;:15;;:24;;;;:::i;:::-;47729:4;:11;;:38;;;;47780:14;47797:4;:11;;;;47780:28;;47824:9;47819:189;47843:6;47839:1;:10;47819:189;;;47893:4;:11;;;47875:4;47880:1;47875:7;;;;;;;;;;;;;;;;;;:14;;;:29;;:59;;;;;47921:4;47926:1;47921:7;;;;;;;;;;;;;;;;;;:13;;;47908:4;:10;;;:26;47875:59;47871:126;;;47968:4;47973:1;47968:7;;;;;;;;;;;;;;;;;;:13;;;47955:4;:10;;:26;;;;47871:126;47851:3;;;;;;;47819:189;;;;48018:67;48049:10;48070:4;48077:7;48018:5;;;;;;;;;;;:22;;;;:67;;;;;;:::i;:::-;48109:10;48101:28;;;48121:7;48101:28;;;;;;;;;;;;;;;;;;47570:567;;;:::o;46446:23::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;47409:153::-;33744:12;:10;:12::i;:::-;33733:23;;:7;:5;:7::i;:::-;:23;;;33725:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47512:6:::1;47495:4;47500:2;47495:8;;;;;;;;;;;;;;;;;;:14;;:23;;;;47547:7;47529:4;47534:2;47529:8;;;;;;;;;;;;;;;;;;:15;;:25;;;;47409:153:::0;;;:::o;47163:90::-;33744:12;:10;:12::i;:::-;33733:23;;:7;:5;:7::i;:::-;:23;;;33725:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47240:5:::1;47233:4;;:12;;;;;;;;;;;;;;;;;;47163:90:::0;:::o;48900:279::-;33744:12;:10;:12::i;:::-;33733:23;;:7;:5;:7::i;:::-;:23;;;33725:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48970:22:::1;48995:5;:12;49001:5;48995:12;;;;;;;;;;;;;;;48970:37;;49020:47;49047:5;49055:4;:11;;;49020:5;;;;;;;;;;;:18;;;;:47;;;;;:::i;:::-;49101:5;49083:37;;;49108:4;:11;;;49083:37;;;;;;;;;;;;;;;;;;49144:1;49131:4;:10;;:14;;;;49170:1;49156:4;:11;;:15;;;;33804:1;48900:279:::0;:::o;34164:148::-;33744:12;:10;:12::i;:::-;33733:23;;:7;:5;:7::i;:::-;:23;;;33725:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34271:1:::1;34234:40;;34255:6;::::0;::::1;;;;;;;;34234:40;;;;;;;;;;;;34302:1;34285:6:::0;::::1;:19;;;;;;;;;;;;;;;;;;34164:148::o:0;47265:136::-;33744:12;:10;:12::i;:::-;33733:23;;:7;:5;:7::i;:::-;:23;;;33725:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47339:4:::1;47349:43;;;;;;;;47367:6;47349:43;;;;47383:7;47349:43;;::::0;47339:54:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47265:136:::0;;:::o;46931:107::-;46985:7;47012:5;:12;47018:5;47012:12;;;;;;;;;;;;;;;:18;;;47005:25;;46931:107;;;:::o;33513:87::-;33559:7;33586:6;;;;;;;;;;;33579:13;;33513:87;:::o;46476:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;48145:747::-;48217:1;48207:7;:11;48199:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48289:7;48261:5;:17;48267:10;48261:17;;;;;;;;;;;;;;;:24;;;:35;;48253:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48340:4;;;;;;;;;;;:15;;;48356:10;48368:4;48340:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48339:34;48331:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48421:22;48446:5;:17;48452:10;48446:17;;;;;;;;;;;;;;;48421:42;;48488:24;48504:7;48488:4;:11;;;:15;;:24;;;;:::i;:::-;48474:4;:11;;:38;;;;48536:1;48523:4;:10;;:14;;;;48550;48567:4;:11;;;;48550:28;;48594:9;48589:189;48613:6;48609:1;:10;48589:189;;;48663:4;:11;;;48645:4;48650:1;48645:7;;;;;;;;;;;;;;;;;;:14;;;:29;;:59;;;;;48691:4;48696:1;48691:7;;;;;;;;;;;;;;;;;;:13;;;48678:4;:10;;;:26;48645:59;48641:126;;;48738:4;48743:1;48738:7;;;;;;;;;;;;;;;;;;:13;;;48725:4;:10;;:26;;;;48641:126;48621:3;;;;;;;48589:189;;;;48790:48;48817:10;48830:7;48790:5;;;;;;;;;;;:18;;;;:48;;;;;:::i;:::-;48864:10;48854:30;;;48876:7;48854:30;;;;;;;;;;;;;;;;;;48145:747;;;:::o;46834:89::-;46877:7;46904:4;:11;;;;46897:18;;46834:89;:::o;34467:244::-;33744:12;:10;:12::i;:::-;33733:23;;:7;:5;:7::i;:::-;:23;;;33725:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34576:1:::1;34556:22;;:8;:22;;;;34548:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34666:8;34637:38;;34658:6;::::0;::::1;;;;;;;;34637:38;;;;;;;;;;;;34695:8;34686:6;::::0;:17:::1;;;;;;;;;;;;;;;;;;34467:244:::0;:::o;47046:109::-;47101:7;47128:5;:12;47134:5;47128:12;;;;;;;;;;;;;;;:19;;;47121:26;;47046:109;;;:::o;46418:19::-;;;;;;;;;;;;;:::o;26893:179::-;26951:7;26971:9;26987:1;26983;:5;26971:17;;27012:1;27007;:6;;26999:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27063:1;27056:8;;;26893:179;;;;:::o;11610:205::-;11711:96;11731:5;11761:27;;;11790:4;11796:2;11800:5;11738:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11711:19;:96::i;:::-;11610:205;;;;:::o;32142:106::-;32195:15;32230:10;32223:17;;32142:106;:::o;11425:177::-;11508:86;11528:5;11558:23;;;11583:2;11587:5;11535:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11508:19;:86::i;:::-;11425:177;;;:::o;27355:158::-;27413:7;27446:1;27441;:6;;27433:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27504:1;27500;:5;27493:12;;27355:158;;;;:::o;13730:761::-;14154:23;14180:69;14208:4;14180:69;;;;;;;;;;;;;;;;;14188:5;14180:27;;;;:69;;;;;:::i;:::-;14154:95;;14284:1;14264:10;:17;:21;14260:224;;;14406:10;14395:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14387:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14260:224;13730:761;;;:::o;6488:195::-;6591:12;6623:52;6645:6;6653:4;6659:1;6662:12;6623:21;:52::i;:::-;6616:59;;6488:195;;;;;:::o;7540:530::-;7667:12;7725:5;7700:21;:30;;7692:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7792:18;7803:6;7792:10;:18::i;:::-;7784:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7918:12;7932:23;7959:6;:11;;7979:5;7987:4;7959:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7917:75;;;;8010:52;8028:7;8037:10;8049:12;8010:17;:52::i;:::-;8003:59;;;;7540:530;;;;;;:::o;3570:422::-;3630:4;3838:12;3949:7;3937:20;3929:28;;3983:1;3976:4;:8;3969:15;;;3570:422;;;:::o;10080:742::-;10195:12;10224:7;10220:595;;;10255:10;10248:17;;;;10220:595;10389:1;10369:10;:17;:21;10365:439;;;10632:10;10626:17;10693:15;10680:10;10676:2;10672:19;10665:44;10580:148;10775:12;10768:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10080:742;;;;;;:::o
Swarm Source
ipfs://160b83b73933a4a78454109d3f3e25479953c2944a7d9c7a50994fa87cd5c7a2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.