Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 544 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Distribute Rewar... | 18238930 | 518 days ago | IN | 0 ETH | 0.00114475 | ||||
Distribute Rewar... | 18188948 | 525 days ago | IN | 0 ETH | 0.00131601 | ||||
Distribute Rewar... | 18181812 | 526 days ago | IN | 0 ETH | 0.00134678 | ||||
Distribute Rewar... | 18174657 | 527 days ago | IN | 0 ETH | 0.00159152 | ||||
Distribute Rewar... | 18167516 | 528 days ago | IN | 0 ETH | 0.00131163 | ||||
Distribute Rewar... | 18160398 | 529 days ago | IN | 0 ETH | 0.00148966 | ||||
Distribute Rewar... | 18153342 | 530 days ago | IN | 0 ETH | 0.00151399 | ||||
Distribute Rewar... | 18146280 | 531 days ago | IN | 0 ETH | 0.00259138 | ||||
Distribute Rewar... | 18139184 | 532 days ago | IN | 0 ETH | 0.00171176 | ||||
Distribute Rewar... | 18132071 | 533 days ago | IN | 0 ETH | 0.00149527 | ||||
Distribute Rewar... | 18124939 | 534 days ago | IN | 0 ETH | 0.00138815 | ||||
Distribute Rewar... | 18117810 | 535 days ago | IN | 0 ETH | 0.00148134 | ||||
Distribute Rewar... | 18110665 | 536 days ago | IN | 0 ETH | 0.00153268 | ||||
Distribute Rewar... | 18103527 | 537 days ago | IN | 0 ETH | 0.00150834 | ||||
Distribute Rewar... | 18096391 | 538 days ago | IN | 0 ETH | 0.00172945 | ||||
Distribute Rewar... | 18089254 | 539 days ago | IN | 0 ETH | 0.00160037 | ||||
Distribute Rewar... | 18082103 | 540 days ago | IN | 0 ETH | 0.00175255 | ||||
Distribute Rewar... | 18074970 | 541 days ago | IN | 0 ETH | 0.00171498 | ||||
Distribute Rewar... | 18067826 | 542 days ago | IN | 0 ETH | 0.00157824 | ||||
Distribute Rewar... | 18024973 | 548 days ago | IN | 0 ETH | 0.00245611 | ||||
Distribute Rewar... | 18017834 | 549 days ago | IN | 0 ETH | 0.00229807 | ||||
Distribute Rewar... | 18010690 | 550 days ago | IN | 0 ETH | 0.001842 | ||||
Distribute Rewar... | 18003552 | 551 days ago | IN | 0 ETH | 0.0018479 | ||||
Distribute Rewar... | 17996404 | 552 days ago | IN | 0 ETH | 0.00226395 | ||||
Distribute Rewar... | 17989261 | 553 days ago | IN | 0 ETH | 0.00255148 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
LiquidityMiningManager
Compiler Version
v0.8.7+commit.e28d00a7
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2022-01-24 */ // Sources flattened with hardhat v2.8.2 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/[email protected] // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^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); } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^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; 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^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 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _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 require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File contracts/interfaces/IBasePool.sol pragma solidity 0.8.7; interface IBasePool { function distributeRewards(uint256 _amount) external; } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. * * _Available since v3.1._ */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) external; } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol) pragma solidity ^0.8.0; /** * @dev External interface of AccessControlEnumerable declared to support ERC165 detection. */ interface IAccessControlEnumerable is IAccessControl { /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) external view returns (address); /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) external view returns (uint256); } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^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 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File @openzeppelin/contracts/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File @openzeppelin/contracts/utils/introspection/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/AccessControl.sol) pragma solidity ^0.8.0; /** * @dev Contract module that allows children to implement role-based access * control mechanisms. This is a lightweight version that doesn't allow enumerating role * members except through off-chain means by accessing the contract event logs. Some * applications may benefit from on-chain enumerability, for those cases see * {AccessControlEnumerable}. * * Roles are referred to by their `bytes32` identifier. These should be exposed * in the external API and be unique. The best way to achieve this is by * using `public constant` hash digests: * * ``` * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); * ``` * * Roles can be used to represent a set of permissions. To restrict access to a * function call, use {hasRole}: * * ``` * function foo() public { * require(hasRole(MY_ROLE, msg.sender)); * ... * } * ``` * * Roles can be granted and revoked dynamically via the {grantRole} and * {revokeRole} functions. Each role has an associated admin role, and only * accounts that have a role's admin role can call {grantRole} and {revokeRole}. * * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means * that only accounts with this role will be able to grant or revoke other * roles. More complex role relationships can be created by using * {_setRoleAdmin}. * * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to * grant and revoke this role. Extra precautions should be taken to secure * accounts that have been granted it. */ abstract contract AccessControl is Context, IAccessControl, ERC165 { struct RoleData { mapping(address => bool) members; bytes32 adminRole; } mapping(bytes32 => RoleData) private _roles; bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; /** * @dev Modifier that checks that an account has a specific role. Reverts * with a standardized message including the required role. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ * * _Available since v4.1._ */ modifier onlyRole(bytes32 role) { _checkRole(role, _msgSender()); _; } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) public view override returns (bool) { return _roles[role].members[account]; } /** * @dev Revert with a standard message if `account` is missing `role`. * * The format of the revert reason is given by the following regular expression: * * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ */ function _checkRole(bytes32 role, address account) internal view { if (!hasRole(role, account)) { revert( string( abi.encodePacked( "AccessControl: account ", Strings.toHexString(uint160(account), 20), " is missing role ", Strings.toHexString(uint256(role), 32) ) ) ); } } /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) public view override returns (bytes32) { return _roles[role].adminRole; } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _grantRole(role, account); } /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { _revokeRole(role, account); } /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been revoked `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `account`. */ function renounceRole(bytes32 role, address account) public virtual override { require(account == _msgSender(), "AccessControl: can only renounce roles for self"); _revokeRole(role, account); } /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. Note that unlike {grantRole}, this function doesn't perform any * checks on the calling account. * * [WARNING] * ==== * This function should only be called from the constructor when setting * up the initial roles for the system. * * Using this function in any other way is effectively circumventing the admin * system imposed by {AccessControl}. * ==== * * NOTE: This function is deprecated in favor of {_grantRole}. */ function _setupRole(bytes32 role, address account) internal virtual { _grantRole(role, account); } /** * @dev Sets `adminRole` as ``role``'s admin role. * * Emits a {RoleAdminChanged} event. */ function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { bytes32 previousAdminRole = getRoleAdmin(role); _roles[role].adminRole = adminRole; emit RoleAdminChanged(role, previousAdminRole, adminRole); } /** * @dev Grants `role` to `account`. * * Internal function without access restriction. */ function _grantRole(bytes32 role, address account) internal virtual { if (!hasRole(role, account)) { _roles[role].members[account] = true; emit RoleGranted(role, account, _msgSender()); } } /** * @dev Revokes `role` from `account`. * * Internal function without access restriction. */ function _revokeRole(bytes32 role, address account) internal virtual { if (hasRole(role, account)) { _roles[role].members[account] = false; emit RoleRevoked(role, account, _msgSender()); } } } // File @openzeppelin/contracts/utils/structs/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol) pragma solidity ^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; if (lastIndex != toDeleteIndex) { 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] = valueIndex; // Replace lastvalue's index to valueIndex } // 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) { return set._values[index]; } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function _values(Set storage set) private view returns (bytes32[] memory) { return set._values; } // 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); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { return _values(set._inner); } // 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)))); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(AddressSet storage set) internal view returns (address[] memory) { bytes32[] memory store = _values(set._inner); address[] memory result; assembly { result := store } return result; } // 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)); } /** * @dev Return the entire set in an array * * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that * this function has an unbounded cost, and using it as part of a state-changing function may render the function * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. */ function values(UintSet storage set) internal view returns (uint256[] memory) { bytes32[] memory store = _values(set._inner); uint256[] memory result; assembly { result := store } return result; } } // File @openzeppelin/contracts/access/[email protected] // OpenZeppelin Contracts v4.4.1 (access/AccessControlEnumerable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {AccessControl} that allows enumerating the members of each role. */ abstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl { using EnumerableSet for EnumerableSet.AddressSet; mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers; /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId); } /** * @dev Returns one of the accounts that have `role`. `index` must be a * value between 0 and {getRoleMemberCount}, non-inclusive. * * Role bearers are not sorted in any particular way, and their ordering may * change at any point. * * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure * you perform all queries on the same block. See the following * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] * for more information. */ function getRoleMember(bytes32 role, uint256 index) public view override returns (address) { return _roleMembers[role].at(index); } /** * @dev Returns the number of accounts that have `role`. Can be used * together with {getRoleMember} to enumerate all bearers of a role. */ function getRoleMemberCount(bytes32 role) public view override returns (uint256) { return _roleMembers[role].length(); } /** * @dev Overload {_grantRole} to track enumerable memberships */ function _grantRole(bytes32 role, address account) internal virtual override { super._grantRole(role, account); _roleMembers[role].add(account); } /** * @dev Overload {_revokeRole} to track enumerable memberships */ function _revokeRole(bytes32 role, address account) internal virtual override { super._revokeRole(role, account); _roleMembers[role].remove(account); } } // File contracts/base/TokenSaver.sol pragma solidity 0.8.7; contract TokenSaver is AccessControlEnumerable { using SafeERC20 for IERC20; bytes32 public constant TOKEN_SAVER_ROLE = keccak256("TOKEN_SAVER_ROLE"); event TokenSaved(address indexed by, address indexed receiver, address indexed token, uint256 amount); modifier onlyTokenSaver() { require(hasRole(TOKEN_SAVER_ROLE, _msgSender()), "TokenSaver.onlyTokenSaver: permission denied"); _; } constructor() { _setupRole(DEFAULT_ADMIN_ROLE, _msgSender()); } function saveToken(address _token, address _receiver, uint256 _amount) external onlyTokenSaver { IERC20(_token).safeTransfer(_receiver, _amount); emit TokenSaved(_msgSender(), _receiver, _token, _amount); } } // File contracts/LiquidityMiningManager.sol pragma solidity 0.8.7; contract LiquidityMiningManager is TokenSaver { using SafeERC20 for IERC20; bytes32 public constant GOV_ROLE = keccak256("GOV_ROLE"); bytes32 public constant REWARD_DISTRIBUTOR_ROLE = keccak256("REWARD_DISTRIBUTOR_ROLE"); uint256 public MAX_POOL_COUNT = 10; IERC20 immutable public reward; address immutable public rewardSource; uint256 public rewardPerSecond; //total reward amount per second uint256 public lastDistribution; //when rewards were last pushed uint256 public totalWeight; mapping(address => bool) public poolAdded; Pool[] public pools; struct Pool { IBasePool poolContract; uint256 weight; } modifier onlyGov { require(hasRole(GOV_ROLE, _msgSender()), "LiquidityMiningManager.onlyGov: permission denied"); _; } modifier onlyRewardDistributor { require(hasRole(REWARD_DISTRIBUTOR_ROLE, _msgSender()), "LiquidityMiningManager.onlyRewardDistributor: permission denied"); _; } event PoolAdded(address indexed pool, uint256 weight); event PoolRemoved(uint256 indexed poolId, address indexed pool); event WeightAdjusted(uint256 indexed poolId, address indexed pool, uint256 newWeight); event RewardsPerSecondSet(uint256 rewardsPerSecond); event RewardsDistributed(address _from, uint256 indexed _amount); constructor(address _reward, address _rewardSource) { require(_reward != address(0), "LiquidityMiningManager.constructor: reward token must be set"); require(_rewardSource != address(0), "LiquidityMiningManager.constructor: rewardSource token must be set"); reward = IERC20(_reward); rewardSource = _rewardSource; } function addPool(address _poolContract, uint256 _weight) external onlyGov { distributeRewards(); require(_poolContract != address(0), "LiquidityMiningManager.addPool: pool contract must be set"); require(!poolAdded[_poolContract], "LiquidityMiningManager.addPool: Pool already added"); require(pools.length < MAX_POOL_COUNT, "LiquidityMiningManager.addPool: Max amount of pools reached"); // add pool pools.push(Pool({ poolContract: IBasePool(_poolContract), weight: _weight })); poolAdded[_poolContract] = true; // increase totalWeight totalWeight += _weight; // Approve max token amount reward.safeApprove(_poolContract, type(uint256).max); emit PoolAdded(_poolContract, _weight); } function removePool(uint256 _poolId) external onlyGov { require(_poolId < pools.length, "LiquidityMiningManager.removePool: Pool does not exist"); distributeRewards(); address poolAddress = address(pools[_poolId].poolContract); // decrease totalWeight totalWeight -= pools[_poolId].weight; // remove pool pools[_poolId] = pools[pools.length - 1]; pools.pop(); poolAdded[poolAddress] = false; // Approve 0 token amount reward.safeApprove(poolAddress, 0); emit PoolRemoved(_poolId, poolAddress); } function adjustWeight(uint256 _poolId, uint256 _newWeight) external onlyGov { require(_poolId < pools.length, "LiquidityMiningManager.adjustWeight: Pool does not exist"); distributeRewards(); Pool storage pool = pools[_poolId]; totalWeight -= pool.weight; totalWeight += _newWeight; pool.weight = _newWeight; emit WeightAdjusted(_poolId, address(pool.poolContract), _newWeight); } function setRewardPerSecond(uint256 _rewardPerSecond) external onlyGov { distributeRewards(); rewardPerSecond = _rewardPerSecond; emit RewardsPerSecondSet(_rewardPerSecond); } function distributeRewards() public onlyRewardDistributor { uint256 timePassed = block.timestamp - lastDistribution; uint256 totalRewardAmount = rewardPerSecond * timePassed; lastDistribution = block.timestamp; // return if pool length == 0 if(pools.length == 0) { return; } // return if accrued rewards == 0 if(totalRewardAmount == 0) { return; } reward.safeTransferFrom(rewardSource, address(this), totalRewardAmount); for(uint256 i = 0; i < pools.length; i ++) { Pool memory pool = pools[i]; uint256 poolRewardAmount = totalRewardAmount * pool.weight / totalWeight; // Ignore tx failing to prevent a single pool from halting reward distribution address(pool.poolContract).call(abi.encodeWithSelector(pool.poolContract.distributeRewards.selector, poolRewardAmount)); } uint256 leftOverReward = reward.balanceOf(address(this)); // send back excess but ignore dust if(leftOverReward > 1) { reward.safeTransfer(rewardSource, leftOverReward); } emit RewardsDistributed(_msgSender(), totalRewardAmount); } function getPools() external view returns(Pool[] memory result) { return pools; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_reward","type":"address"},{"internalType":"address","name":"_rewardSource","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"uint256","name":"weight","type":"uint256"}],"name":"PoolAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":true,"internalType":"address","name":"pool","type":"address"}],"name":"PoolRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"RewardsDistributed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardsPerSecond","type":"uint256"}],"name":"RewardsPerSecondSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"by","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenSaved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"poolId","type":"uint256"},{"indexed":true,"internalType":"address","name":"pool","type":"address"},{"indexed":false,"internalType":"uint256","name":"newWeight","type":"uint256"}],"name":"WeightAdjusted","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GOV_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_POOL_COUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"REWARD_DISTRIBUTOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOKEN_SAVER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_poolContract","type":"address"},{"internalType":"uint256","name":"_weight","type":"uint256"}],"name":"addPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"},{"internalType":"uint256","name":"_newWeight","type":"uint256"}],"name":"adjustWeight","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"distributeRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPools","outputs":[{"components":[{"internalType":"contract IBasePool","name":"poolContract","type":"address"},{"internalType":"uint256","name":"weight","type":"uint256"}],"internalType":"struct LiquidityMiningManager.Pool[]","name":"result","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastDistribution","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"poolAdded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pools","outputs":[{"internalType":"contract IBasePool","name":"poolContract","type":"address"},{"internalType":"uint256","name":"weight","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolId","type":"uint256"}],"name":"removePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reward","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardSource","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"saveToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"}],"name":"setRewardPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c0604052600a6002553480156200001657600080fd5b50604051620022f0380380620022f08339810160408190526200003991620002d0565b620000466000336200014e565b6001600160a01b038216620000b75760405162461bcd60e51b815260206004820152603c6024820152600080516020620022d083398151915260448201527f6f723a2072657761726420746f6b656e206d757374206265207365740000000060648201526084015b60405180910390fd5b6001600160a01b0381166200012f5760405162461bcd60e51b81526020600482015260426024820152600080516020620022d083398151915260448201527f6f723a20726577617264536f7572636520746f6b656e206d7573742062652073606482015261195d60f21b608482015260a401620000ae565b6001600160601b0319606092831b8116608052911b1660a05262000308565b6200015a82826200015e565b5050565b620001758282620001a160201b620011fc1760201c565b60008281526001602090815260409091206200019c9183906200128062000241821b17901c565b505050565b6000828152602081815260408083206001600160a01b038516845290915290205460ff166200015a576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055620001fd3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600062000258836001600160a01b03841662000261565b90505b92915050565b6000818152600183016020526040812054620002aa575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556200025b565b5060006200025b565b80516001600160a01b0381168114620002cb57600080fd5b919050565b60008060408385031215620002e457600080fd5b620002ef83620002b3565b9150620002ff60208401620002b3565b90509250929050565b60805160601c60a05160601c611f6b620003656000396000818161035801528181610a090152610c1f0152600081816101db01528181610727015281816109e701528181610b6301528181610bfd0152610fc80152611f6b6000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c80639010d07c116100f9578063a717639c11610097578063b9c849b611610071578063b9c849b6146103e5578063ca15c873146103f8578063d3b91d841461040b578063d547741f1461042e57600080fd5b8063a717639c14610395578063ac4afa381461039e578063b536818a146103d057600080fd5b80639afdb2c2116100d35780639afdb2c2146103405780639cfbc00214610353578063a217fddf1461037a578063a38dcbd01461038257600080fd5b80639010d07c1461031157806391d148541461032457806396c82e571461033757600080fd5b806336568abe11610166578063673a2a1f11610140578063673a2a1f146102c45780636f4a2cd0146102d957806376175b06146102e15780638f10369a1461030857600080fd5b806336568abe146102955780635a8c2e26146102a857806366da5815146102b157600080fd5b806301ffc9a7146101ae578063228cb733146101d6578063248a9ca3146102155780632f2ff15d1461024657806332a9caba1461025b57806332e4bb0a1461026e575b600080fd5b6101c16101bc366004611c3f565b610441565b60405190151581526020015b60405180910390f35b6101fd7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016101cd565b610238610223366004611bd8565b60009081526020819052604090206001015490565b6040519081526020016101cd565b610259610254366004611bf1565b61046c565b005b610259610269366004611b8c565b610497565b6102387fb814ff4a26ea3ec5cd1fa579daad86324826254265f3acfec78303a19845b44981565b6102596102a3366004611bf1565b610797565b61023860025481565b6102596102bf366004611bd8565b610815565b6102cc61088c565b6040516101cd9190611d13565b610259610901565b6102387fd9d917c4034cff8a8c5fa1e40f9fbaf906b827c33ae3ab1fcabbb616cb8ef24d81565b61023860035481565b6101fd61031f366004611c1d565b610c87565b6101c1610332366004611bf1565b610ca6565b61023860055481565b61025961034e366004611b50565b610ccf565b6101fd7f000000000000000000000000000000000000000000000000000000000000000081565b610238600081565b610259610390366004611bd8565b610dd0565b61023860045481565b6103b16103ac366004611bd8565b61102c565b604080516001600160a01b0390931683526020830191909152016101cd565b610238600080516020611f1683398151915281565b6102596103f3366004611c1d565b611064565b610238610406366004611bd8565b6111bf565b6101c1610419366004611b35565b60066020526000908152604090205460ff1681565b61025961043c366004611bf1565b6111d6565b60006001600160e01b03198216635a05180f60e01b1480610466575061046682611295565b92915050565b60008281526020819052604090206001015461048881336112ca565b610492838361132e565b505050565b6104af600080516020611f1683398151915233610ca6565b6104d45760405162461bcd60e51b81526004016104cb90611d9e565b60405180910390fd5b6104dc610901565b6001600160a01b0382166105585760405162461bcd60e51b815260206004820152603960248201527f4c69717569646974794d696e696e674d616e616765722e616464506f6f6c3a2060448201527f706f6f6c20636f6e7472616374206d757374206265207365740000000000000060648201526084016104cb565b6001600160a01b03821660009081526006602052604090205460ff16156105dc5760405162461bcd60e51b815260206004820152603260248201527f4c69717569646974794d696e696e674d616e616765722e616464506f6f6c3a20604482015271141bdbdb08185b1c9958591e48185919195960721b60648201526084016104cb565b600254600754106106555760405162461bcd60e51b815260206004820152603b60248201527f4c69717569646974794d696e696e674d616e616765722e616464506f6f6c3a2060448201527f4d617820616d6f756e74206f6620706f6f6c732072656163686564000000000060648201526084016104cb565b6040805180820182526001600160a01b0384811680835260208084018681526007805460018082018355600092835296517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688600290920291820180546001600160a01b031916919097161790955590517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6899094019390935590825260069052918220805460ff1916909117905560058054839290610714908490611def565b9091555061075090506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001683600019611350565b816001600160a01b03167f0c98febfffcec480c66a977e13f14bafdb5199ea9603591a0715b0cabe0c3ae28260405161078b91815260200190565b60405180910390a25050565b6001600160a01b03811633146108075760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016104cb565b61081182826114a7565b5050565b61082d600080516020611f1683398151915233610ca6565b6108495760405162461bcd60e51b81526004016104cb90611d9e565b610851610901565b60038190556040518181527fa779fa0f0a75020027d18183bb38fa4a9abeea71bb307e00ac7f5410527967ab9060200160405180910390a150565b60606007805480602002602001604051908101604052809291908181526020016000905b828210156108f8576000848152602090819020604080518082019091526002850290910180546001600160a01b031682526001908101548284015290835290920191016108b0565b50505050905090565b61092b7fb814ff4a26ea3ec5cd1fa579daad86324826254265f3acfec78303a19845b44933610ca6565b61099d5760405162461bcd60e51b815260206004820152603f60248201527f4c69717569646974794d696e696e674d616e616765722e6f6e6c79526577617260448201527f644469737472696275746f723a207065726d697373696f6e2064656e6965640060648201526084016104cb565b6000600454426109ad9190611e48565b90506000816003546109bf9190611e29565b426004556007549091506109d1575050565b806109da575050565b610a2f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000030846114c9565b60005b600754811015610b4a57600060078281548110610a5157610a51611ee9565b600091825260208083206040805180820190915260029093020180546001600160a01b0316835260010154908201819052600554919350610a929086611e29565b610a9c9190611e07565b825160408051602480820185905282518083039091018152604490910182526020810180516001600160e01b0316630b32e9c760e31b17905290519293506001600160a01b0390911691610af09190611c82565b6000604051808303816000865af19150503d8060008114610b2d576040519150601f19603f3d011682016040523d82523d6000602084013e610b32565b606091505b50505050508080610b4290611ea2565b915050610a32565b506040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b158015610bad57600080fd5b505afa158015610bc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be59190611c69565b90506001811115610c4457610c446001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000167f000000000000000000000000000000000000000000000000000000000000000083611507565b817fdf29796aad820e4bb192f3a8d631b76519bcd2cbe77cc85af20e9df53cece086336040516001600160a01b03909116815260200160405180910390a2505050565b6000828152600160205260408120610c9f9083611537565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610cf97fd9d917c4034cff8a8c5fa1e40f9fbaf906b827c33ae3ab1fcabbb616cb8ef24d33610ca6565b610d5a5760405162461bcd60e51b815260206004820152602c60248201527f546f6b656e53617665722e6f6e6c79546f6b656e53617665723a207065726d6960448201526b1cdcda5bdb8819195b9a595960a21b60648201526084016104cb565b610d6e6001600160a01b0384168383611507565b826001600160a01b0316826001600160a01b0316610d893390565b6001600160a01b03167f30d87cec6b4c56cede1018725d1e6d9304e2f7ee6d25b004b7e2183f793f26bc84604051610dc391815260200190565b60405180910390a4505050565b610de8600080516020611f1683398151915233610ca6565b610e045760405162461bcd60e51b81526004016104cb90611d9e565b6007548110610e745760405162461bcd60e51b815260206004820152603660248201527f4c69717569646974794d696e696e674d616e616765722e72656d6f7665506f6f6044820152751b0e88141bdbdb08191bd95cc81b9bdd08195e1a5cdd60521b60648201526084016104cb565b610e7c610901565b600060078281548110610e9157610e91611ee9565b6000918252602090912060029091020154600780546001600160a01b0390921692509083908110610ec457610ec4611ee9565b90600052602060002090600202016001015460056000828254610ee79190611e48565b909155505060078054610efc90600190611e48565b81548110610f0c57610f0c611ee9565b906000526020600020906002020160078381548110610f2d57610f2d611ee9565b60009182526020909120825460029092020180546001600160a01b0319166001600160a01b039092169190911781556001918201549101556007805480610f7657610f76611ed3565b6000828152602080822060026000199094019384020180546001600160a01b0319168155600101829055919092556001600160a01b038381168352600690915260408220805460ff19169055610ff2917f0000000000000000000000000000000000000000000000000000000000000000909116908390611350565b6040516001600160a01b0382169083907f18e9d3644c306f9be50ade92ee325ee173812431fa971a0b8d46f9eb7073960190600090a35050565b6007818154811061103c57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b61107c600080516020611f1683398151915233610ca6565b6110985760405162461bcd60e51b81526004016104cb90611d9e565b600754821061110f5760405162461bcd60e51b815260206004820152603860248201527f4c69717569646974794d696e696e674d616e616765722e61646a75737457656960448201527f6768743a20506f6f6c20646f6573206e6f74206578697374000000000000000060648201526084016104cb565b611117610901565b60006007838154811061112c5761112c611ee9565b906000526020600020906002020190508060010154600560008282546111529190611e48565b92505081905550816005600082825461116b9190611def565b90915550506001810182905580546040518381526001600160a01b039091169084907f4bd857a398c0fb71cc804d86dac2b437d1e5ca0b8a3161ec9638515c5d1997c29060200160405180910390a3505050565b600081815260016020526040812061046690611543565b6000828152602081905260409020600101546111f281336112ca565b61049283836114a7565b6112068282610ca6565b610811576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561123c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610c9f836001600160a01b03841661154d565b60006001600160e01b03198216637965db0b60e01b148061046657506301ffc9a760e01b6001600160e01b0319831614610466565b6112d48282610ca6565b610811576112ec816001600160a01b0316601461159c565b6112f783602061159c565b604051602001611308929190611c9e565b60408051601f198184030181529082905262461bcd60e51b82526104cb91600401611d6b565b61133882826111fc565b60008281526001602052604090206104929082611280565b8015806113d95750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561139f57600080fd5b505afa1580156113b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d79190611c69565b155b6114445760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016104cb565b6040516001600160a01b03831660248201526044810182905261049290849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611738565b6114b1828261180a565b6000828152600160205260409020610492908261186f565b6040516001600160a01b03808516602483015283166044820152606481018290526115019085906323b872dd60e01b90608401611470565b50505050565b6040516001600160a01b03831660248201526044810182905261049290849063a9059cbb60e01b90606401611470565b6000610c9f8383611884565b6000610466825490565b600081815260018301602052604081205461159457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610466565b506000610466565b606060006115ab836002611e29565b6115b6906002611def565b67ffffffffffffffff8111156115ce576115ce611eff565b6040519080825280601f01601f1916602001820160405280156115f8576020820181803683370190505b509050600360fc1b8160008151811061161357611613611ee9565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061164257611642611ee9565b60200101906001600160f81b031916908160001a9053506000611666846002611e29565b611671906001611def565b90505b60018111156116e9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106116a5576116a5611ee9565b1a60f81b8282815181106116bb576116bb611ee9565b60200101906001600160f81b031916908160001a90535060049490941c936116e281611e8b565b9050611674565b508315610c9f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104cb565b600061178d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118ae9092919063ffffffff16565b80519091501561049257808060200190518101906117ab9190611bb6565b6104925760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104cb565b6118148282610ca6565b15610811576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610c9f836001600160a01b0384166118c5565b600082600001828154811061189b5761189b611ee9565b9060005260206000200154905092915050565b60606118bd84846000856119b8565b949350505050565b600081815260018301602052604081205480156119ae5760006118e9600183611e48565b85549091506000906118fd90600190611e48565b905081811461196257600086600001828154811061191d5761191d611ee9565b906000526020600020015490508087600001848154811061194057611940611ee9565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061197357611973611ed3565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610466565b6000915050610466565b606082471015611a195760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104cb565b843b611a675760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104cb565b600080866001600160a01b03168587604051611a839190611c82565b60006040518083038185875af1925050503d8060008114611ac0576040519150601f19603f3d011682016040523d82523d6000602084013e611ac5565b606091505b5091509150611ad5828286611ae0565b979650505050505050565b60608315611aef575081610c9f565b825115611aff5782518084602001fd5b8160405162461bcd60e51b81526004016104cb9190611d6b565b80356001600160a01b0381168114611b3057600080fd5b919050565b600060208284031215611b4757600080fd5b610c9f82611b19565b600080600060608486031215611b6557600080fd5b611b6e84611b19565b9250611b7c60208501611b19565b9150604084013590509250925092565b60008060408385031215611b9f57600080fd5b611ba883611b19565b946020939093013593505050565b600060208284031215611bc857600080fd5b81518015158114610c9f57600080fd5b600060208284031215611bea57600080fd5b5035919050565b60008060408385031215611c0457600080fd5b82359150611c1460208401611b19565b90509250929050565b60008060408385031215611c3057600080fd5b50508035926020909101359150565b600060208284031215611c5157600080fd5b81356001600160e01b031981168114610c9f57600080fd5b600060208284031215611c7b57600080fd5b5051919050565b60008251611c94818460208701611e5f565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611cd6816017850160208801611e5f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611d07816028840160208801611e5f565b01602801949350505050565b602080825282518282018190526000919060409081850190868401855b82811015611d5e57815180516001600160a01b03168552860151868501529284019290850190600101611d30565b5091979650505050505050565b6020815260008251806020840152611d8a816040850160208701611e5f565b601f01601f19169190910160400192915050565b60208082526031908201527f4c69717569646974794d696e696e674d616e616765722e6f6e6c79476f763a206040820152701c195c9b5a5cdcda5bdb8819195b9a5959607a1b606082015260800190565b60008219821115611e0257611e02611ebd565b500190565b600082611e2457634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611e4357611e43611ebd565b500290565b600082821015611e5a57611e5a611ebd565b500390565b60005b83811015611e7a578181015183820152602001611e62565b838111156115015750506000910152565b600081611e9a57611e9a611ebd565b506000190190565b6000600019821415611eb657611eb6611ebd565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe0603f2636f0ca34ae3ea5a23bb826e2bd2ffd59fb1c01edc1ba10fba2899d1baa2646970667358221220da30779913437adcb6f797a9f0aa9222dfee53140e1c4bbbcccfc9b94d3cd7dc64736f6c634300080700334c69717569646974794d696e696e674d616e616765722e636f6e737472756374000000000000000000000000721a1b990699ee9d90b6327faad0a3e840ae83350000000000000000000000001a923b280ccd399dd1c4ed78d4d4360e45f7dac5
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c80639010d07c116100f9578063a717639c11610097578063b9c849b611610071578063b9c849b6146103e5578063ca15c873146103f8578063d3b91d841461040b578063d547741f1461042e57600080fd5b8063a717639c14610395578063ac4afa381461039e578063b536818a146103d057600080fd5b80639afdb2c2116100d35780639afdb2c2146103405780639cfbc00214610353578063a217fddf1461037a578063a38dcbd01461038257600080fd5b80639010d07c1461031157806391d148541461032457806396c82e571461033757600080fd5b806336568abe11610166578063673a2a1f11610140578063673a2a1f146102c45780636f4a2cd0146102d957806376175b06146102e15780638f10369a1461030857600080fd5b806336568abe146102955780635a8c2e26146102a857806366da5815146102b157600080fd5b806301ffc9a7146101ae578063228cb733146101d6578063248a9ca3146102155780632f2ff15d1461024657806332a9caba1461025b57806332e4bb0a1461026e575b600080fd5b6101c16101bc366004611c3f565b610441565b60405190151581526020015b60405180910390f35b6101fd7f000000000000000000000000721a1b990699ee9d90b6327faad0a3e840ae833581565b6040516001600160a01b0390911681526020016101cd565b610238610223366004611bd8565b60009081526020819052604090206001015490565b6040519081526020016101cd565b610259610254366004611bf1565b61046c565b005b610259610269366004611b8c565b610497565b6102387fb814ff4a26ea3ec5cd1fa579daad86324826254265f3acfec78303a19845b44981565b6102596102a3366004611bf1565b610797565b61023860025481565b6102596102bf366004611bd8565b610815565b6102cc61088c565b6040516101cd9190611d13565b610259610901565b6102387fd9d917c4034cff8a8c5fa1e40f9fbaf906b827c33ae3ab1fcabbb616cb8ef24d81565b61023860035481565b6101fd61031f366004611c1d565b610c87565b6101c1610332366004611bf1565b610ca6565b61023860055481565b61025961034e366004611b50565b610ccf565b6101fd7f0000000000000000000000001a923b280ccd399dd1c4ed78d4d4360e45f7dac581565b610238600081565b610259610390366004611bd8565b610dd0565b61023860045481565b6103b16103ac366004611bd8565b61102c565b604080516001600160a01b0390931683526020830191909152016101cd565b610238600080516020611f1683398151915281565b6102596103f3366004611c1d565b611064565b610238610406366004611bd8565b6111bf565b6101c1610419366004611b35565b60066020526000908152604090205460ff1681565b61025961043c366004611bf1565b6111d6565b60006001600160e01b03198216635a05180f60e01b1480610466575061046682611295565b92915050565b60008281526020819052604090206001015461048881336112ca565b610492838361132e565b505050565b6104af600080516020611f1683398151915233610ca6565b6104d45760405162461bcd60e51b81526004016104cb90611d9e565b60405180910390fd5b6104dc610901565b6001600160a01b0382166105585760405162461bcd60e51b815260206004820152603960248201527f4c69717569646974794d696e696e674d616e616765722e616464506f6f6c3a2060448201527f706f6f6c20636f6e7472616374206d757374206265207365740000000000000060648201526084016104cb565b6001600160a01b03821660009081526006602052604090205460ff16156105dc5760405162461bcd60e51b815260206004820152603260248201527f4c69717569646974794d696e696e674d616e616765722e616464506f6f6c3a20604482015271141bdbdb08185b1c9958591e48185919195960721b60648201526084016104cb565b600254600754106106555760405162461bcd60e51b815260206004820152603b60248201527f4c69717569646974794d696e696e674d616e616765722e616464506f6f6c3a2060448201527f4d617820616d6f756e74206f6620706f6f6c732072656163686564000000000060648201526084016104cb565b6040805180820182526001600160a01b0384811680835260208084018681526007805460018082018355600092835296517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688600290920291820180546001600160a01b031916919097161790955590517fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6899094019390935590825260069052918220805460ff1916909117905560058054839290610714908490611def565b9091555061075090506001600160a01b037f000000000000000000000000721a1b990699ee9d90b6327faad0a3e840ae83351683600019611350565b816001600160a01b03167f0c98febfffcec480c66a977e13f14bafdb5199ea9603591a0715b0cabe0c3ae28260405161078b91815260200190565b60405180910390a25050565b6001600160a01b03811633146108075760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016104cb565b61081182826114a7565b5050565b61082d600080516020611f1683398151915233610ca6565b6108495760405162461bcd60e51b81526004016104cb90611d9e565b610851610901565b60038190556040518181527fa779fa0f0a75020027d18183bb38fa4a9abeea71bb307e00ac7f5410527967ab9060200160405180910390a150565b60606007805480602002602001604051908101604052809291908181526020016000905b828210156108f8576000848152602090819020604080518082019091526002850290910180546001600160a01b031682526001908101548284015290835290920191016108b0565b50505050905090565b61092b7fb814ff4a26ea3ec5cd1fa579daad86324826254265f3acfec78303a19845b44933610ca6565b61099d5760405162461bcd60e51b815260206004820152603f60248201527f4c69717569646974794d696e696e674d616e616765722e6f6e6c79526577617260448201527f644469737472696275746f723a207065726d697373696f6e2064656e6965640060648201526084016104cb565b6000600454426109ad9190611e48565b90506000816003546109bf9190611e29565b426004556007549091506109d1575050565b806109da575050565b610a2f6001600160a01b037f000000000000000000000000721a1b990699ee9d90b6327faad0a3e840ae8335167f0000000000000000000000001a923b280ccd399dd1c4ed78d4d4360e45f7dac530846114c9565b60005b600754811015610b4a57600060078281548110610a5157610a51611ee9565b600091825260208083206040805180820190915260029093020180546001600160a01b0316835260010154908201819052600554919350610a929086611e29565b610a9c9190611e07565b825160408051602480820185905282518083039091018152604490910182526020810180516001600160e01b0316630b32e9c760e31b17905290519293506001600160a01b0390911691610af09190611c82565b6000604051808303816000865af19150503d8060008114610b2d576040519150601f19603f3d011682016040523d82523d6000602084013e610b32565b606091505b50505050508080610b4290611ea2565b915050610a32565b506040516370a0823160e01b81523060048201526000907f000000000000000000000000721a1b990699ee9d90b6327faad0a3e840ae83356001600160a01b0316906370a082319060240160206040518083038186803b158015610bad57600080fd5b505afa158015610bc1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be59190611c69565b90506001811115610c4457610c446001600160a01b037f000000000000000000000000721a1b990699ee9d90b6327faad0a3e840ae8335167f0000000000000000000000001a923b280ccd399dd1c4ed78d4d4360e45f7dac583611507565b817fdf29796aad820e4bb192f3a8d631b76519bcd2cbe77cc85af20e9df53cece086336040516001600160a01b03909116815260200160405180910390a2505050565b6000828152600160205260408120610c9f9083611537565b9392505050565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b610cf97fd9d917c4034cff8a8c5fa1e40f9fbaf906b827c33ae3ab1fcabbb616cb8ef24d33610ca6565b610d5a5760405162461bcd60e51b815260206004820152602c60248201527f546f6b656e53617665722e6f6e6c79546f6b656e53617665723a207065726d6960448201526b1cdcda5bdb8819195b9a595960a21b60648201526084016104cb565b610d6e6001600160a01b0384168383611507565b826001600160a01b0316826001600160a01b0316610d893390565b6001600160a01b03167f30d87cec6b4c56cede1018725d1e6d9304e2f7ee6d25b004b7e2183f793f26bc84604051610dc391815260200190565b60405180910390a4505050565b610de8600080516020611f1683398151915233610ca6565b610e045760405162461bcd60e51b81526004016104cb90611d9e565b6007548110610e745760405162461bcd60e51b815260206004820152603660248201527f4c69717569646974794d696e696e674d616e616765722e72656d6f7665506f6f6044820152751b0e88141bdbdb08191bd95cc81b9bdd08195e1a5cdd60521b60648201526084016104cb565b610e7c610901565b600060078281548110610e9157610e91611ee9565b6000918252602090912060029091020154600780546001600160a01b0390921692509083908110610ec457610ec4611ee9565b90600052602060002090600202016001015460056000828254610ee79190611e48565b909155505060078054610efc90600190611e48565b81548110610f0c57610f0c611ee9565b906000526020600020906002020160078381548110610f2d57610f2d611ee9565b60009182526020909120825460029092020180546001600160a01b0319166001600160a01b039092169190911781556001918201549101556007805480610f7657610f76611ed3565b6000828152602080822060026000199094019384020180546001600160a01b0319168155600101829055919092556001600160a01b038381168352600690915260408220805460ff19169055610ff2917f000000000000000000000000721a1b990699ee9d90b6327faad0a3e840ae8335909116908390611350565b6040516001600160a01b0382169083907f18e9d3644c306f9be50ade92ee325ee173812431fa971a0b8d46f9eb7073960190600090a35050565b6007818154811061103c57600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b61107c600080516020611f1683398151915233610ca6565b6110985760405162461bcd60e51b81526004016104cb90611d9e565b600754821061110f5760405162461bcd60e51b815260206004820152603860248201527f4c69717569646974794d696e696e674d616e616765722e61646a75737457656960448201527f6768743a20506f6f6c20646f6573206e6f74206578697374000000000000000060648201526084016104cb565b611117610901565b60006007838154811061112c5761112c611ee9565b906000526020600020906002020190508060010154600560008282546111529190611e48565b92505081905550816005600082825461116b9190611def565b90915550506001810182905580546040518381526001600160a01b039091169084907f4bd857a398c0fb71cc804d86dac2b437d1e5ca0b8a3161ec9638515c5d1997c29060200160405180910390a3505050565b600081815260016020526040812061046690611543565b6000828152602081905260409020600101546111f281336112ca565b61049283836114a7565b6112068282610ca6565b610811576000828152602081815260408083206001600160a01b03851684529091529020805460ff1916600117905561123c3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000610c9f836001600160a01b03841661154d565b60006001600160e01b03198216637965db0b60e01b148061046657506301ffc9a760e01b6001600160e01b0319831614610466565b6112d48282610ca6565b610811576112ec816001600160a01b0316601461159c565b6112f783602061159c565b604051602001611308929190611c9e565b60408051601f198184030181529082905262461bcd60e51b82526104cb91600401611d6b565b61133882826111fc565b60008281526001602052604090206104929082611280565b8015806113d95750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e9060440160206040518083038186803b15801561139f57600080fd5b505afa1580156113b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d79190611c69565b155b6114445760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016104cb565b6040516001600160a01b03831660248201526044810182905261049290849063095ea7b360e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611738565b6114b1828261180a565b6000828152600160205260409020610492908261186f565b6040516001600160a01b03808516602483015283166044820152606481018290526115019085906323b872dd60e01b90608401611470565b50505050565b6040516001600160a01b03831660248201526044810182905261049290849063a9059cbb60e01b90606401611470565b6000610c9f8383611884565b6000610466825490565b600081815260018301602052604081205461159457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610466565b506000610466565b606060006115ab836002611e29565b6115b6906002611def565b67ffffffffffffffff8111156115ce576115ce611eff565b6040519080825280601f01601f1916602001820160405280156115f8576020820181803683370190505b509050600360fc1b8160008151811061161357611613611ee9565b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061164257611642611ee9565b60200101906001600160f81b031916908160001a9053506000611666846002611e29565b611671906001611def565b90505b60018111156116e9576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106116a5576116a5611ee9565b1a60f81b8282815181106116bb576116bb611ee9565b60200101906001600160f81b031916908160001a90535060049490941c936116e281611e8b565b9050611674565b508315610c9f5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104cb565b600061178d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118ae9092919063ffffffff16565b80519091501561049257808060200190518101906117ab9190611bb6565b6104925760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016104cb565b6118148282610ca6565b15610811576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000610c9f836001600160a01b0384166118c5565b600082600001828154811061189b5761189b611ee9565b9060005260206000200154905092915050565b60606118bd84846000856119b8565b949350505050565b600081815260018301602052604081205480156119ae5760006118e9600183611e48565b85549091506000906118fd90600190611e48565b905081811461196257600086600001828154811061191d5761191d611ee9565b906000526020600020015490508087600001848154811061194057611940611ee9565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061197357611973611ed3565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610466565b6000915050610466565b606082471015611a195760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016104cb565b843b611a675760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016104cb565b600080866001600160a01b03168587604051611a839190611c82565b60006040518083038185875af1925050503d8060008114611ac0576040519150601f19603f3d011682016040523d82523d6000602084013e611ac5565b606091505b5091509150611ad5828286611ae0565b979650505050505050565b60608315611aef575081610c9f565b825115611aff5782518084602001fd5b8160405162461bcd60e51b81526004016104cb9190611d6b565b80356001600160a01b0381168114611b3057600080fd5b919050565b600060208284031215611b4757600080fd5b610c9f82611b19565b600080600060608486031215611b6557600080fd5b611b6e84611b19565b9250611b7c60208501611b19565b9150604084013590509250925092565b60008060408385031215611b9f57600080fd5b611ba883611b19565b946020939093013593505050565b600060208284031215611bc857600080fd5b81518015158114610c9f57600080fd5b600060208284031215611bea57600080fd5b5035919050565b60008060408385031215611c0457600080fd5b82359150611c1460208401611b19565b90509250929050565b60008060408385031215611c3057600080fd5b50508035926020909101359150565b600060208284031215611c5157600080fd5b81356001600160e01b031981168114610c9f57600080fd5b600060208284031215611c7b57600080fd5b5051919050565b60008251611c94818460208701611e5f565b9190910192915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351611cd6816017850160208801611e5f565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351611d07816028840160208801611e5f565b01602801949350505050565b602080825282518282018190526000919060409081850190868401855b82811015611d5e57815180516001600160a01b03168552860151868501529284019290850190600101611d30565b5091979650505050505050565b6020815260008251806020840152611d8a816040850160208701611e5f565b601f01601f19169190910160400192915050565b60208082526031908201527f4c69717569646974794d696e696e674d616e616765722e6f6e6c79476f763a206040820152701c195c9b5a5cdcda5bdb8819195b9a5959607a1b606082015260800190565b60008219821115611e0257611e02611ebd565b500190565b600082611e2457634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611e4357611e43611ebd565b500290565b600082821015611e5a57611e5a611ebd565b500390565b60005b83811015611e7a578181015183820152602001611e62565b838111156115015750506000910152565b600081611e9a57611e9a611ebd565b506000190190565b6000600019821415611eb657611eb6611ebd565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fdfe0603f2636f0ca34ae3ea5a23bb826e2bd2ffd59fb1c01edc1ba10fba2899d1baa2646970667358221220da30779913437adcb6f797a9f0aa9222dfee53140e1c4bbbcccfc9b94d3cd7dc64736f6c63430008070033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000721a1b990699ee9d90b6327faad0a3e840ae83350000000000000000000000001a923b280ccd399dd1c4ed78d4d4360e45f7dac5
-----Decoded View---------------
Arg [0] : _reward (address): 0x721A1B990699eE9D90b6327FaaD0A3E840aE8335
Arg [1] : _rewardSource (address): 0x1a923B280ccd399dd1c4ed78D4d4360E45f7daC5
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000721a1b990699ee9d90b6327faad0a3e840ae8335
Arg [1] : 0000000000000000000000001a923b280ccd399dd1c4ed78d4d4360e45f7dac5
Deployed Bytecode Sourcemap
48030:5299:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45308:214;;;;;;:::i;:::-;;:::i;:::-;;;6096:14:1;;6089:22;6071:41;;6059:2;6044:18;45308:214:0;;;;;;;;48317:30;;;;;;;;-1:-1:-1;;;;;4106:32:1;;;4088:51;;4076:2;4061:18;48317:30:0;3942:203:1;28607:123:0;;;;;;:::i;:::-;28673:7;28700:12;;;;;;;;;;:22;;;;28607:123;;;;6269:25:1;;;6257:2;6242:18;28607:123:0;6123:177:1;28992:147:0;;;;;;:::i;:::-;;:::i;:::-;;49793:846;;;;;;:::i;:::-;;:::i;48181:86::-;;48231:36;48181:86;;30040:218;;;;;;:::i;:::-;;:::i;48274:34::-;;;;;;51741:209;;;;;;:::i;:::-;;:::i;53231:95::-;;;:::i;:::-;;;;;;;:::i;51958:1265::-;;;:::i;47273:72::-;;47316:29;47273:72;;48398:30;;;;;;46121:145;;;;;;:::i;:::-;;:::i;27492:139::-;;;;;;:::i;:::-;;:::i;48538:26::-;;;;;;47710:229;;;;;;:::i;:::-;;:::i;48354:37::-;;;;;26583:49;;26628:4;26583:49;;50647:624;;;;;;:::i;:::-;;:::i;48468:31::-;;;;;;48621:19;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;5031:32:1;;;5013:51;;5095:2;5080:18;;5073:34;;;;4986:18;48621:19:0;4839:274:1;48118:56:0;;-1:-1:-1;;;;;;;;;;;48118:56:0;;51279:454;;;;;;:::i;:::-;;:::i;46440:134::-;;;;;;:::i;:::-;;:::i;48573:41::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;29384:149;;;;;;:::i;:::-;;:::i;45308:214::-;45393:4;-1:-1:-1;;;;;;45417:57:0;;-1:-1:-1;;;45417:57:0;;:97;;;45478:36;45502:11;45478:23;:36::i;:::-;45410:104;45308:214;-1:-1:-1;;45308:214:0:o;28992:147::-;28673:7;28700:12;;;;;;;;;;:22;;;27074:30;27085:4;20396:10;27074;:30::i;:::-;29106:25:::1;29117:4;29123:7;29106:10;:25::i;:::-;28992:147:::0;;;:::o;49793:846::-;48771:31;-1:-1:-1;;;;;;;;;;;20396:10:0;27492:139;:::i;48771:31::-;48763:93;;;;-1:-1:-1;;;48763:93:0;;;;;;;:::i;:::-;;;;;;;;;49878:19:::1;:17;:19::i;:::-;-1:-1:-1::0;;;;;49916:27:0;::::1;49908:97;;;::::0;-1:-1:-1;;;49908:97:0;;9450:2:1;49908:97:0::1;::::0;::::1;9432:21:1::0;9489:2;9469:18;;;9462:30;9528:34;9508:18;;;9501:62;9599:27;9579:18;;;9572:55;9644:19;;49908:97:0::1;9248:421:1::0;49908:97:0::1;-1:-1:-1::0;;;;;50025:24:0;::::1;;::::0;;;:9:::1;:24;::::0;;;;;::::1;;50024:25;50016:88;;;::::0;-1:-1:-1;;;50016:88:0;;10294:2:1;50016:88:0::1;::::0;::::1;10276:21:1::0;10333:2;10313:18;;;10306:30;10372:34;10352:18;;;10345:62;-1:-1:-1;;;10423:18:1;;;10416:48;10481:19;;50016:88:0::1;10092:414:1::0;50016:88:0::1;50138:14;::::0;50123:5:::1;:12:::0;:29:::1;50115:101;;;::::0;-1:-1:-1;;;50115:101:0;;11494:2:1;50115:101:0::1;::::0;::::1;11476:21:1::0;11533:2;11513:18;;;11506:30;11572:34;11552:18;;;11545:62;11643:29;11623:18;;;11616:57;11690:19;;50115:101:0::1;11292:423:1::0;50115:101:0::1;50259:100;::::0;;;;::::1;::::0;;-1:-1:-1;;;;;50259:100:0;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;50248:5:::1;:112:::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;50248:112:0;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;50248:112:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;50371:24;;;:9:::1;:24:::0;;;;;:31;;-1:-1:-1;;50371:31:0::1;::::0;;::::1;::::0;;50456:11:::1;:22:::0;;50259:100;;-1:-1:-1;50456:22:0::1;::::0;50259:100;;50456:22:::1;:::i;:::-;::::0;;;-1:-1:-1;50528:52:0::1;::::0;-1:-1:-1;;;;;;50528:6:0::1;:18;50547:13:::0;-1:-1:-1;;50528:18:0::1;:52::i;:::-;50608:13;-1:-1:-1::0;;;;;50598:33:0::1;;50623:7;50598:33;;;;6269:25:1::0;;6257:2;6242:18;;6123:177;50598:33:0::1;;;;;;;;49793:846:::0;;:::o;30040:218::-;-1:-1:-1;;;;;30136:23:0;;20396:10;30136:23;30128:83;;;;-1:-1:-1;;;30128:83:0;;12756:2:1;30128:83:0;;;12738:21:1;12795:2;12775:18;;;12768:30;12834:34;12814:18;;;12807:62;-1:-1:-1;;;12885:18:1;;;12878:45;12940:19;;30128:83:0;12554:411:1;30128:83:0;30224:26;30236:4;30242:7;30224:11;:26::i;:::-;30040:218;;:::o;51741:209::-;48771:31;-1:-1:-1;;;;;;;;;;;20396:10:0;27492:139;:::i;48771:31::-;48763:93;;;;-1:-1:-1;;;48763:93:0;;;;;;;:::i;:::-;51823:19:::1;:17;:19::i;:::-;51853:15;:34:::0;;;51905:37:::1;::::0;6269:25:1;;;51905:37:0::1;::::0;6257:2:1;6242:18;51905:37:0::1;;;;;;;51741:209:::0;:::o;53231:95::-;53273:20;53313:5;53306:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;53306:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;53231:95;:::o;51958:1265::-;48934:46;48231:36;20396:10;27492:139;:::i;48934:46::-;48926:122;;;;-1:-1:-1;;;48926:122:0;;8198:2:1;48926:122:0;;;8180:21:1;8237:2;8217:18;;;8210:30;8276:34;8256:18;;;8249:62;8347:33;8327:18;;;8320:61;8398:19;;48926:122:0;7996:427:1;48926:122:0;52027:18:::1;52066:16;;52048:15;:34;;;;:::i;:::-;52027:55;;52093:25;52139:10;52121:15;;:28;;;;:::i;:::-;52179:15;52160:16;:34:::0;52249:5:::1;:12:::0;52093:56;;-1:-1:-1;52246:55:0::1;;52283:7;;51958:1265::o:0;52246:55::-:1;52359:22:::0;52356:60:::1;;52398:7;;51958:1265::o:0;52356:60::-:1;52428:71;-1:-1:-1::0;;;;;52428:6:0::1;:23;52452:12;52474:4;52481:17:::0;52428:23:::1;:71::i;:::-;52516:9;52512:410;52535:5;:12:::0;52531:16;::::1;52512:410;;;52570:16;52589:5;52595:1;52589:8;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;52570:27:::1;::::0;;;;::::1;::::0;;;52589:8:::1;::::0;;::::1;;52570:27:::0;;-1:-1:-1;;;;;52570:27:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;;52673:11:::1;::::0;52570:27;;-1:-1:-1;52639:31:0::1;::::0;:17;:31:::1;:::i;:::-;:45;;;;:::i;:::-;52799:17:::0;;52823:86:::1;::::0;;::::1;::::0;;::::1;6269:25:1::0;;;52823:86:0;;;;;;;;;;6242:18:1;;;;52823:86:0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;52823:86:0::1;-1:-1:-1::0;;;52823:86:0::1;::::0;;52791:119;;6269:25:1;;-1:-1:-1;;;;;;52791:31:0;;::::1;::::0;:119:::1;::::0;52823:86;52791:119:::1;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52555:367;;52549:4;;;;;:::i;:::-;;;;52512:410;;;-1:-1:-1::0;52959:31:0::1;::::0;-1:-1:-1;;;52959:31:0;;52984:4:::1;52959:31;::::0;::::1;4088:51:1::0;52934:22:0::1;::::0;52959:6:::1;-1:-1:-1::0;;;;;52959:16:0::1;::::0;::::1;::::0;4061:18:1;;52959:31:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52934:56;;53068:1;53051:14;:18;53048:99;;;53086:49;-1:-1:-1::0;;;;;53086:6:0::1;:19;53106:12;53120:14:::0;53086:19:::1;:49::i;:::-;53197:17:::0;53164:51:::1;20396:10:::0;53164:51:::1;::::0;-1:-1:-1;;;;;4106:32:1;;;4088:51;;4076:2;4061:18;53164:51:0::1;;;;;;;52016:1207;;;51958:1265::o:0;46121:145::-;46203:7;46230:18;;;:12;:18;;;;;:28;;46252:5;46230:21;:28::i;:::-;46223:35;46121:145;-1:-1:-1;;;46121:145:0:o;27492:139::-;27570:4;27594:12;;;;;;;;;;;-1:-1:-1;;;;;27594:29:0;;;;;;;;;;;;;;;27492:139::o;47710:229::-;47509:39;47316:29;20396:10;27492:139;:::i;47509:39::-;47501:96;;;;-1:-1:-1;;;47501:96:0;;9037:2:1;47501:96:0;;;9019:21:1;9076:2;9056:18;;;9049:30;9115:34;9095:18;;;9088:62;-1:-1:-1;;;9166:18:1;;;9159:42;9218:19;;47501:96:0;8835:408:1;47501:96:0;47816:47:::1;-1:-1:-1::0;;;;;47816:27:0;::::1;47844:9:::0;47855:7;47816:27:::1;:47::i;:::-;47915:6;-1:-1:-1::0;;;;;47879:52:0::1;47904:9;-1:-1:-1::0;;;;;47879:52:0::1;47890:12;20396:10:::0;;20316:98;47890:12:::1;-1:-1:-1::0;;;;;47879:52:0::1;;47923:7;47879:52;;;;6269:25:1::0;;6257:2;6242:18;;6123:177;47879:52:0::1;;;;;;;;47710:229:::0;;;:::o;50647:624::-;48771:31;-1:-1:-1;;;;;;;;;;;20396:10:0;27492:139;:::i;48771:31::-;48763:93;;;;-1:-1:-1;;;48763:93:0;;;;;;;:::i;:::-;50730:5:::1;:12:::0;50720:22;::::1;50712:89;;;::::0;-1:-1:-1;;;50712:89:0;;10713:2:1;50712:89:0::1;::::0;::::1;10695:21:1::0;10752:2;10732:18;;;10725:30;10791:34;10771:18;;;10764:62;-1:-1:-1;;;10842:18:1;;;10835:52;10904:19;;50712:89:0::1;10511:418:1::0;50712:89:0::1;50812:19;:17;:19::i;:::-;50842;50872:5;50878:7;50872:14;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;:27:::0;50961:5:::1;:14:::0;;-1:-1:-1;;;;;50872:27:0;;::::1;::::0;-1:-1:-1;50961:5:0;50967:7;;50961:14;::::1;;;;;:::i;:::-;;;;;;;;;;;:21;;;50946:11;;:36;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;51044:5:0::1;51050:12:::0;;:16:::1;::::0;51065:1:::1;::::0;51050:16:::1;:::i;:::-;51044:23;;;;;;;;:::i;:::-;;;;;;;;;;;51027:5;51033:7;51027:14;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;:40;;:14:::1;::::0;;::::1;;:40:::0;;-1:-1:-1;;;;;;51027:40:0::1;-1:-1:-1::0;;;;;51027:40:0;;::::1;::::0;;;::::1;::::0;;;;;::::1;::::0;;::::1;::::0;51078:5:::1;:11:::0;;;::::1;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;-1:-1:-1::0;;51078:11:0;;;;;::::1;;::::0;;-1:-1:-1;;;;;;51078:11:0::1;::::0;;::::1;;::::0;;;;;;;-1:-1:-1;;;;;51100:22:0;;::::1;::::0;;:9:::1;:22:::0;;;;;;:30;;-1:-1:-1;;51100:30:0::1;::::0;;51178:34:::1;::::0;:6:::1;:18:::0;;::::1;::::0;51110:11;;51178:18:::1;:34::i;:::-;51230:33;::::0;-1:-1:-1;;;;;51230:33:0;::::1;::::0;51242:7;;51230:33:::1;::::0;;;::::1;50701:570;50647:624:::0;:::o;48621:19::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;48621:19:0;;;;-1:-1:-1;48621:19:0;:::o;51279:454::-;48771:31;-1:-1:-1;;;;;;;;;;;20396:10:0;27492:139;:::i;48771:31::-;48763:93;;;;-1:-1:-1;;;48763:93:0;;;;;;;:::i;:::-;51384:5:::1;:12:::0;51374:22;::::1;51366:91;;;::::0;-1:-1:-1;;;51366:91:0;;7773:2:1;51366:91:0::1;::::0;::::1;7755:21:1::0;7812:2;7792:18;;;7785:30;7851:34;7831:18;;;7824:62;7922:26;7902:18;;;7895:54;7966:19;;51366:91:0::1;7571:420:1::0;51366:91:0::1;51468:19;:17;:19::i;:::-;51498:17;51518:5;51524:7;51518:14;;;;;;;;:::i;:::-;;;;;;;;;;;51498:34;;51560:4;:11;;;51545;;:26;;;;;;;:::i;:::-;;;;;;;;51597:10;51582:11;;:25;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;51620:11:0::1;::::0;::::1;:24:::0;;;51694:17;;51662:63:::1;::::0;6269:25:1;;;-1:-1:-1;;;;;51694:17:0;;::::1;::::0;51677:7;;51662:63:::1;::::0;6257:2:1;6242:18;51662:63:0::1;;;;;;;51355:378;51279:454:::0;;:::o;46440:134::-;46512:7;46539:18;;;:12;:18;;;;;:27;;:25;:27::i;29384:149::-;28673:7;28700:12;;;;;;;;;;:22;;;27074:30;27085:4;20396:10;27074;:30::i;:::-;29499:26:::1;29511:4;29517:7;29499:11;:26::i;31541:238::-:0;31625:22;31633:4;31639:7;31625;:22::i;:::-;31620:152;;31664:6;:12;;;;;;;;;;;-1:-1:-1;;;;;31664:29:0;;;;;;;;;:36;;-1:-1:-1;;31664:36:0;31696:4;31664:36;;;31747:12;20396:10;;20316:98;31747:12;-1:-1:-1;;;;;31720:40:0;31738:7;-1:-1:-1;;;;;31720:40:0;31732:4;31720:40;;;;;;;;;;31541:238;;:::o;40035:152::-;40105:4;40129:50;40134:3;-1:-1:-1;;;;;40154:23:0;;40129:4;:50::i;27196:204::-;27281:4;-1:-1:-1;;;;;;27305:47:0;;-1:-1:-1;;;27305:47:0;;:87;;-1:-1:-1;;;;;;;;;;24561:40:0;;;27356:36;24452:157;27921:497;28002:22;28010:4;28016:7;28002;:22::i;:::-;27997:414;;28190:41;28218:7;-1:-1:-1;;;;;28190:41:0;28228:2;28190:19;:41::i;:::-;28304:38;28332:4;28339:2;28304:19;:38::i;:::-;28095:270;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;28095:270:0;;;;;;;;;;-1:-1:-1;;;28041:358:0;;;;;;;:::i;46667:169::-;46755:31;46772:4;46778:7;46755:16;:31::i;:::-;46797:18;;;;:12;:18;;;;;:31;;46820:7;46797:22;:31::i;12591:616::-;12955:10;;;12954:62;;-1:-1:-1;12971:39:0;;-1:-1:-1;;;12971:39:0;;12995:4;12971:39;;;4362:34:1;-1:-1:-1;;;;;4432:15:1;;;4412:18;;;4405:43;12971:15:0;;;;;4297:18:1;;12971:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;12954:62;12932:166;;;;-1:-1:-1;;;12932:166:0;;12333:2:1;12932:166:0;;;12315:21:1;12372:2;12352:18;;;12345:30;12411:34;12391:18;;;12384:62;-1:-1:-1;;;12462:18:1;;;12455:52;12524:19;;12932:166:0;12131:418:1;12932:166:0;13136:62;;-1:-1:-1;;;;;5031:32:1;;13136:62:0;;;5013:51:1;5080:18;;;5073:34;;;13109:90:0;;13129:5;;-1:-1:-1;;;13159:22:0;4986:18:1;;13136:62:0;;;;-1:-1:-1;;13136:62:0;;;;;;;;;;;;;;-1:-1:-1;;;;;13136:62:0;-1:-1:-1;;;;;;13136:62:0;;;;;;;;;;13109:19;:90::i;46930:174::-;47019:32;47037:4;47043:7;47019:17;:32::i;:::-;47062:18;;;;:12;:18;;;;;:34;;47088:7;47062:25;:34::i;12074:248::-;12245:68;;-1:-1:-1;;;;;4717:15:1;;;12245:68:0;;;4699:34:1;4769:15;;4749:18;;;4742:43;4801:18;;;4794:34;;;12218:96:0;;12238:5;;-1:-1:-1;;;12268:27:0;4634:18:1;;12245:68:0;4459:375:1;12218:96:0;12074:248;;;;:::o;11855:211::-;11999:58;;-1:-1:-1;;;;;5031:32:1;;11999:58:0;;;5013:51:1;5080:18;;;5073:34;;;11972:86:0;;11992:5;;-1:-1:-1;;;12022:23:0;4986:18:1;;11999:58:0;4839:274:1;41331:158:0;41405:7;41456:22;41460:3;41472:5;41456:3;:22::i;40860:117::-;40923:7;40950:19;40958:3;36344:18;;36261:109;33950:414;34013:4;36143:19;;;:12;;;:19;;;;;;34030:327;;-1:-1:-1;34073:23:0;;;;;;;;:11;:23;;;;;;;;;;;;;34256:18;;34234:19;;;:12;;;:19;;;;;;:40;;;;34289:11;;34030:327;-1:-1:-1;34340:5:0;34333:12;;22202:451;22277:13;22303:19;22335:10;22339:6;22335:1;:10;:::i;:::-;:14;;22348:1;22335:14;:::i;:::-;22325:25;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;22325:25:0;;22303:47;;-1:-1:-1;;;22361:6:0;22368:1;22361:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;22361:15:0;;;;;;;;;-1:-1:-1;;;22387:6:0;22394:1;22387:9;;;;;;;;:::i;:::-;;;;:15;-1:-1:-1;;;;;22387:15:0;;;;;;;;-1:-1:-1;22418:9:0;22430:10;22434:6;22430:1;:10;:::i;:::-;:14;;22443:1;22430:14;:::i;:::-;22418:26;;22413:135;22450:1;22446;:5;22413:135;;;-1:-1:-1;;;22498:5:0;22506:3;22498:11;22485:25;;;;;;;:::i;:::-;;;;22473:6;22480:1;22473:9;;;;;;;;:::i;:::-;;;;:37;-1:-1:-1;;;;;22473:37:0;;;;;;;;-1:-1:-1;22535:1:0;22525:11;;;;;22453:3;;;:::i;:::-;;;22413:135;;;-1:-1:-1;22566:10:0;;22558:55;;;;-1:-1:-1;;;22558:55:0;;7412:2:1;22558:55:0;;;7394:21:1;;;7431:18;;;7424:30;7490:34;7470:18;;;7463:62;7542:18;;22558:55:0;7210:356:1;14428:716:0;14852:23;14878:69;14906:4;14878:69;;;;;;;;;;;;;;;;;14886:5;-1:-1:-1;;;;;14878:27:0;;;:69;;;;;:::i;:::-;14962:17;;14852:95;;-1:-1:-1;14962:21:0;14958:179;;15059:10;15048:30;;;;;;;;;;;;:::i;:::-;15040:85;;;;-1:-1:-1;;;15040:85:0;;11922:2:1;15040:85:0;;;11904:21:1;11961:2;11941:18;;;11934:30;12000:34;11980:18;;;11973:62;-1:-1:-1;;;12051:18:1;;;12044:40;12101:19;;15040:85:0;11720:406:1;31911:239:0;31995:22;32003:4;32009:7;31995;:22::i;:::-;31991:152;;;32066:5;32034:12;;;;;;;;;;;-1:-1:-1;;;;;32034:29:0;;;;;;;;;;:37;;-1:-1:-1;;32034:37:0;;;32091:40;20396:10;;32034:12;;32091:40;;32066:5;32091:40;31911:239;;:::o;40363:158::-;40436:4;40460:53;40468:3;-1:-1:-1;;;;;40488:23:0;;40460:7;:53::i;36724:120::-;36791:7;36818:3;:11;;36830:5;36818:18;;;;;;;;:::i;:::-;;;;;;;;;36811:25;;36724:120;;;;:::o;6629:229::-;6766:12;6798:52;6820:6;6828:4;6834:1;6837:12;6798:21;:52::i;:::-;6791:59;6629:229;-1:-1:-1;;;;6629:229:0:o;34540:1420::-;34606:4;34745:19;;;:12;;;:19;;;;;;34781:15;;34777:1176;;35156:21;35180:14;35193:1;35180:10;:14;:::i;:::-;35229:18;;35156:38;;-1:-1:-1;35209:17:0;;35229:22;;35250:1;;35229:22;:::i;:::-;35209:42;;35285:13;35272:9;:26;35268:405;;35319:17;35339:3;:11;;35351:9;35339:22;;;;;;;;:::i;:::-;;;;;;;;;35319:42;;35493:9;35464:3;:11;;35476:13;35464:26;;;;;;;;:::i;:::-;;;;;;;;;;;;:38;;;;35578:23;;;:12;;;:23;;;;;:36;;;35268:405;35754:17;;:3;;:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;35849:3;:12;;:19;35862:5;35849:19;;;;;;;;;;;35842:26;;;35892:4;35885:11;;;;;;;34777:1176;35936:5;35929:12;;;;;7749:510;7919:12;7977:5;7952:21;:30;;7944:81;;;;-1:-1:-1;;;7944:81:0;;8630:2:1;7944:81:0;;;8612:21:1;8669:2;8649:18;;;8642:30;8708:34;8688:18;;;8681:62;-1:-1:-1;;;8759:18:1;;;8752:36;8805:19;;7944:81:0;8428:402:1;7944:81:0;4146:20;;8036:60;;;;-1:-1:-1;;;8036:60:0;;11136:2:1;8036:60:0;;;11118:21:1;11175:2;11155:18;;;11148:30;11214:31;11194:18;;;11187:59;11263:18;;8036:60:0;10934:353:1;8036:60:0;8110:12;8124:23;8151:6;-1:-1:-1;;;;;8151:11:0;8170:5;8177:4;8151:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8109:73;;;;8200:51;8217:7;8226:10;8238:12;8200:16;:51::i;:::-;8193:58;7749:510;-1:-1:-1;;;;;;;7749:510:0:o;10435:712::-;10585:12;10614:7;10610:530;;;-1:-1:-1;10645:10:0;10638:17;;10610:530;10759:17;;:21;10755:374;;10957:10;10951:17;11018:15;11005:10;11001:2;10997:19;10990:44;10755:374;11100:12;11093:20;;-1:-1:-1;;;11093:20:0;;;;;;;;:::i;14:173:1:-;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;383:328::-;460:6;468;476;529:2;517:9;508:7;504:23;500:32;497:52;;;545:1;542;535:12;497:52;568:29;587:9;568:29;:::i;:::-;558:39;;616:38;650:2;639:9;635:18;616:38;:::i;:::-;606:48;;701:2;690:9;686:18;673:32;663:42;;383:328;;;;;:::o;716:254::-;784:6;792;845:2;833:9;824:7;820:23;816:32;813:52;;;861:1;858;851:12;813:52;884:29;903:9;884:29;:::i;:::-;874:39;960:2;945:18;;;;932:32;;-1:-1:-1;;;716:254:1:o;975:277::-;1042:6;1095:2;1083:9;1074:7;1070:23;1066:32;1063:52;;;1111:1;1108;1101:12;1063:52;1143:9;1137:16;1196:5;1189:13;1182:21;1175:5;1172:32;1162:60;;1218:1;1215;1208:12;1257:180;1316:6;1369:2;1357:9;1348:7;1344:23;1340:32;1337:52;;;1385:1;1382;1375:12;1337:52;-1:-1:-1;1408:23:1;;1257:180;-1:-1:-1;1257:180:1:o;1442:254::-;1510:6;1518;1571:2;1559:9;1550:7;1546:23;1542:32;1539:52;;;1587:1;1584;1577:12;1539:52;1623:9;1610:23;1600:33;;1652:38;1686:2;1675:9;1671:18;1652:38;:::i;:::-;1642:48;;1442:254;;;;;:::o;1701:248::-;1769:6;1777;1830:2;1818:9;1809:7;1805:23;1801:32;1798:52;;;1846:1;1843;1836:12;1798:52;-1:-1:-1;;1869:23:1;;;1939:2;1924:18;;;1911:32;;-1:-1:-1;1701:248:1:o;1954:286::-;2012:6;2065:2;2053:9;2044:7;2040:23;2036:32;2033:52;;;2081:1;2078;2071:12;2033:52;2107:23;;-1:-1:-1;;;;;;2159:32:1;;2149:43;;2139:71;;2206:1;2203;2196:12;2430:184;2500:6;2553:2;2541:9;2532:7;2528:23;2524:32;2521:52;;;2569:1;2566;2559:12;2521:52;-1:-1:-1;2592:16:1;;2430:184;-1:-1:-1;2430:184:1:o;2872:274::-;3001:3;3039:6;3033:13;3055:53;3101:6;3096:3;3089:4;3081:6;3077:17;3055:53;:::i;:::-;3124:16;;;;;2872:274;-1:-1:-1;;2872:274:1:o;3151:786::-;3562:25;3557:3;3550:38;3532:3;3617:6;3611:13;3633:62;3688:6;3683:2;3678:3;3674:12;3667:4;3659:6;3655:17;3633:62;:::i;:::-;-1:-1:-1;;;3754:2:1;3714:16;;;3746:11;;;3739:40;3804:13;;3826:63;3804:13;3875:2;3867:11;;3860:4;3848:17;;3826:63;:::i;:::-;3909:17;3928:2;3905:26;;3151:786;-1:-1:-1;;;;3151:786:1:o;5118:808::-;5333:2;5385:21;;;5455:13;;5358:18;;;5477:22;;;5304:4;;5333:2;5518;;5536:18;;;;5577:15;;;5304:4;5620:280;5634:6;5631:1;5628:13;5620:280;;;5693:13;;5735:9;;-1:-1:-1;;;;;5731:35:1;5719:48;;5807:11;;5801:18;5787:12;;;5780:40;5840:12;;;;5875:15;;;;5763:1;5649:9;5620:280;;;-1:-1:-1;5917:3:1;;5118:808;-1:-1:-1;;;;;;;5118:808:1:o;6822:383::-;6971:2;6960:9;6953:21;6934:4;7003:6;6997:13;7046:6;7041:2;7030:9;7026:18;7019:34;7062:66;7121:6;7116:2;7105:9;7101:18;7096:2;7088:6;7084:15;7062:66;:::i;:::-;7189:2;7168:15;-1:-1:-1;;7164:29:1;7149:45;;;;7196:2;7145:54;;6822:383;-1:-1:-1;;6822:383:1:o;9674:413::-;9876:2;9858:21;;;9915:2;9895:18;;;9888:30;9954:34;9949:2;9934:18;;9927:62;-1:-1:-1;;;10020:2:1;10005:18;;9998:47;10077:3;10062:19;;9674:413::o;13152:128::-;13192:3;13223:1;13219:6;13216:1;13213:13;13210:39;;;13229:18;;:::i;:::-;-1:-1:-1;13265:9:1;;13152:128::o;13285:217::-;13325:1;13351;13341:132;;13395:10;13390:3;13386:20;13383:1;13376:31;13430:4;13427:1;13420:15;13458:4;13455:1;13448:15;13341:132;-1:-1:-1;13487:9:1;;13285:217::o;13507:168::-;13547:7;13613:1;13609;13605:6;13601:14;13598:1;13595:21;13590:1;13583:9;13576:17;13572:45;13569:71;;;13620:18;;:::i;:::-;-1:-1:-1;13660:9:1;;13507:168::o;13680:125::-;13720:4;13748:1;13745;13742:8;13739:34;;;13753:18;;:::i;:::-;-1:-1:-1;13790:9:1;;13680:125::o;13810:258::-;13882:1;13892:113;13906:6;13903:1;13900:13;13892:113;;;13982:11;;;13976:18;13963:11;;;13956:39;13928:2;13921:10;13892:113;;;14023:6;14020:1;14017:13;14014:48;;;-1:-1:-1;;14058:1:1;14040:16;;14033:27;13810:258::o;14073:136::-;14112:3;14140:5;14130:39;;14149:18;;:::i;:::-;-1:-1:-1;;;14185:18:1;;14073:136::o;14214:135::-;14253:3;-1:-1:-1;;14274:17:1;;14271:43;;;14294:18;;:::i;:::-;-1:-1:-1;14341:1:1;14330:13;;14214:135::o;14354:127::-;14415:10;14410:3;14406:20;14403:1;14396:31;14446:4;14443:1;14436:15;14470:4;14467:1;14460:15;14486:127;14547:10;14542:3;14538:20;14535:1;14528:31;14578:4;14575:1;14568:15;14602:4;14599:1;14592:15;14618:127;14679:10;14674:3;14670:20;14667:1;14660:31;14710:4;14707:1;14700:15;14734:4;14731:1;14724:15;14750:127;14811:10;14806:3;14802:20;14799:1;14792:31;14842:4;14839:1;14832:15;14866:4;14863:1;14856:15
Swarm Source
ipfs://da30779913437adcb6f797a9f0aa9222dfee53140e1c4bbbcccfc9b94d3cd7dc
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 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.