More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 413 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw All Wit... | 15996822 | 649 days ago | IN | 0 ETH | 0.0003321 | ||||
Withdraw All Wit... | 15996559 | 649 days ago | IN | 0 ETH | 0.01359467 | ||||
Withdraw All Wit... | 15265851 | 757 days ago | IN | 0 ETH | 0.00614831 | ||||
Withdraw All Wit... | 15006501 | 798 days ago | IN | 0 ETH | 0.01933748 | ||||
Withdraw All Wit... | 14994810 | 800 days ago | IN | 0 ETH | 0.00797241 | ||||
Withdraw All Wit... | 14938329 | 810 days ago | IN | 0 ETH | 0.00108458 | ||||
Withdraw All Wit... | 14938310 | 810 days ago | IN | 0 ETH | 0.02560185 | ||||
Withdraw All Wit... | 14908555 | 815 days ago | IN | 0 ETH | 0.0142245 | ||||
Withdraw All Wit... | 14859125 | 823 days ago | IN | 0 ETH | 0.00133297 | ||||
Withdraw All Wit... | 14847382 | 825 days ago | IN | 0 ETH | 0.00409476 | ||||
Take Out The Acc... | 14844112 | 826 days ago | IN | 0 ETH | 0.00499287 | ||||
Take Out The Acc... | 14821690 | 829 days ago | IN | 0 ETH | 0.00060785 | ||||
Take Out The Acc... | 14821690 | 829 days ago | IN | 0 ETH | 0.00048033 | ||||
Take Out The Acc... | 14821690 | 829 days ago | IN | 0 ETH | 0.00079467 | ||||
Take Out The Acc... | 14821690 | 829 days ago | IN | 0 ETH | 0.00105972 | ||||
Take Out The Acc... | 14794797 | 834 days ago | IN | 0 ETH | 0.00253778 | ||||
Take Out The Acc... | 14769659 | 838 days ago | IN | 0 ETH | 0.00389525 | ||||
Withdraw With Al... | 14756695 | 840 days ago | IN | 0 ETH | 0.01365425 | ||||
Take Out The Acc... | 14746357 | 841 days ago | IN | 0 ETH | 0.00426589 | ||||
Take Out The Acc... | 14719616 | 846 days ago | IN | 0 ETH | 0.00710661 | ||||
Withdraw All Wit... | 14707375 | 848 days ago | IN | 0 ETH | 0.03928217 | ||||
Take Out The Acc... | 14694250 | 850 days ago | IN | 0 ETH | 0.00676462 | ||||
Withdraw All Wit... | 14682616 | 852 days ago | IN | 0 ETH | 0.02903227 | ||||
Withdraw All Wit... | 14677537 | 852 days ago | IN | 0 ETH | 0.02613082 | ||||
Withdraw All Wit... | 14677480 | 852 days ago | IN | 0 ETH | 0.01607483 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
RentibleStaking
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-05-27 */ // SPDX-License-Identifier: MIT // every part under MIT license // File: contracts\@openzeppelin\contracts\token\ERC20\IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: contracts\@openzeppelin\contracts\math\SafeMath.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: contracts\@openzeppelin\contracts\utils\Address.sol pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: contracts\@openzeppelin\contracts\token\ERC20\SafeERC20.sol pragma solidity ^0.6.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: contracts\@openzeppelin\contracts\utils\EnumerableSet.sol pragma solidity ^0.6.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.0.0, only sets of type `address` (`AddressSet`) and `uint256` * (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // File: contracts\@openzeppelin\contracts\GSN\Context.sol pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: contracts\@openzeppelin\contracts\access\Ownable.sol pragma solidity ^0.6.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /* =========================================================================================================== */ /* =========================================================================================================== */ /* =========================================================================================================== */ // File: contracts\RentibleStaking.sol pragma solidity 0.6.12; // 0.6.12+commit.27d51765 // LP token (ERC20 reward) based staking for Rentible // // See: // https://rentible.io/ // https://staking.rentible.io/ // // Inspired by: // https://github.com/SashimiProject/sashimiswap/blob/master/contracts/MasterChef.sol // https://github.com/ltonetwork contract RentibleStaking is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; /* -------------------------------------------------------------------- */ /* --- main variables ------------------------------------------------ */ /* -------------------------------------------------------------------- */ // when staking starts, unix time uint256 public immutable startTime; // when staking ends, unix time uint256 public immutable endTime; // ------ // Uniswap V2 liquidity token (the staked token) IERC20 public immutable lpToken; // Rentible ERC20 token (in our case RNB, as reward) IERC20 public immutable erc20; // ------ // NOTE: in the last changes we made 4 real days into one "contract" day! // in sec uint256 public immutable dayLength; // in sec uint256 public immutable stakingProgramTimeLength; // ------ // NOTE (!!!): if you modify the array size, please modify max in getCurrentStakingDayNumber() and updateDailyTotalLptAmount() too (to array size - 1) // NOTE: in the last changes we made 4 real days into one "contract" day! // how many liquidity tokens were in the staking (per day) (add/subtract happens upon deposit, withdraw) (every user combined) uint256[93] public dailyTotalLptAmount; // liquidity tokens in the staking as of now (every user combined) (add/subtract happens upon deposit, withdraw) (every user combined) uint256 public currentTotalLptAmount; // ------ // NOTE (!!!): if you modify the array size, please modify max in getCurrentStakingDayNumber() and updateDailyTotalLptAmount() too (to array size - 1) // NOTE: in the last changes we made 4 real days into one "contract" day! // total reward, has to equal the sum of the dailyPlannedErc20RewardAmounts (payed out rewards are not subtracted from this) uint256 public immutable totalErc20RewardAmount; // total reward per "contract" day, planned (practically treated as fixed/immutable, payed out rewards are not subtracted from this)) // has to be equal to totalErc20RewardAmount (and after full reward funding equal to fundedErc20RewardAmount) // note: there is a starting 0 and a closing 0 uint256[93] public dailyPlannedErc20RewardAmounts = [0, 5753337571515390000000, 5710955710955710000000, 5668573850392040000000, 5626191989828360000000, 5583810129264680000000, 5541428268701000000000, 5499046408137330000000, 5456664547573650000000, 5414282687009970000000, 5371900826446290000000, 5329518965882620000000, 5287137105318940000000, 5244755244755260000000, 5202373384191580000000, 5159991523627910000000, 5117609663064230000000, 5075227802500550000000, 5032845941936870000000, 4990464081373200000000, 4948082220809520000000, 4905700360245840000000, 4863318499682160000000, 4820936639118490000000, 4778554778554810000000, 4736172917991130000000, 4693791057427450000000, 4651409196863780000000, 4609027336300100000000, 4566645475736420000000, 4524263615172740000000, 4481881754609070000000, 4439499894045390000000, 4397118033481710000000, 4354736172918030000000, 4312354312354360000000, 4269972451790680000000, 4227590591227000000000, 4185208730663320000000, 4142826870099650000000, 4100445009535970000000, 4058063148972290000000, 4015681288408610000000, 3973299427844940000000, 3930917567281260000000, 3888535706717580000000, 3846153846153900000000, 3803771985590230000000, 3761390125026550000000, 3719008264462870000000, 3676626403899190000000, 3634244543335510000000, 3591862682771830000000, 3549480822208150000000, 3507098961644470000000, 3464717101080790000000, 3422335240517110000000, 3379953379953430000000, 3337571519389750000000, 3295189658826080000000, 3252807798262400000000, 3210425937698720000000, 3168044077135040000000, 3125662216571360000000, 3083280356007680000000, 3040898495444000000000, 2998516634880320000000, 2956134774316640000000, 2913752913752960000000, 2871371053189280000000, 2828989192625600000000, 2786607332061920000000, 2744225471498250000000, 2701843610934570000000, 2659461750370890000000, 2617079889807210000000, 2574698029243530000000, 2532316168679850000000, 2489934308116170000000, 2447552447552490000000, 2405170586988810000000, 2362788726425130000000, 2320406865861450000000, 2278025005297770000000, 2235643144734100000000, 2193261284170420000000, 2150879423606740000000, 2108497563043060000000, 2066115702479380000000, 2023733841915700000000, 1981351981352020000000, 1938970120788340000000, 0]; // total reward funded (so far) (payed out rewards are not subtracted from this), // eventually (after funding) has to be equal to totalErc20RewardAmount uint256 public fundedErc20RewardAmount = 0; // total reward, at start the same as dailyPlannedErc20RewardAmounts, // daily counter, // not yet tied to any UserInfo object, // subtractions happen when reward is assigned to a UserInfo object // (rewards are always payed out through UserInfo object, not directly from here!) // note: there is a starting 0 and a closing 0 uint256[93] public dailyErc20RewardAmounts = [0, 5753337571515390000000, 5710955710955710000000, 5668573850392040000000, 5626191989828360000000, 5583810129264680000000, 5541428268701000000000, 5499046408137330000000, 5456664547573650000000, 5414282687009970000000, 5371900826446290000000, 5329518965882620000000, 5287137105318940000000, 5244755244755260000000, 5202373384191580000000, 5159991523627910000000, 5117609663064230000000, 5075227802500550000000, 5032845941936870000000, 4990464081373200000000, 4948082220809520000000, 4905700360245840000000, 4863318499682160000000, 4820936639118490000000, 4778554778554810000000, 4736172917991130000000, 4693791057427450000000, 4651409196863780000000, 4609027336300100000000, 4566645475736420000000, 4524263615172740000000, 4481881754609070000000, 4439499894045390000000, 4397118033481710000000, 4354736172918030000000, 4312354312354360000000, 4269972451790680000000, 4227590591227000000000, 4185208730663320000000, 4142826870099650000000, 4100445009535970000000, 4058063148972290000000, 4015681288408610000000, 3973299427844940000000, 3930917567281260000000, 3888535706717580000000, 3846153846153900000000, 3803771985590230000000, 3761390125026550000000, 3719008264462870000000, 3676626403899190000000, 3634244543335510000000, 3591862682771830000000, 3549480822208150000000, 3507098961644470000000, 3464717101080790000000, 3422335240517110000000, 3379953379953430000000, 3337571519389750000000, 3295189658826080000000, 3252807798262400000000, 3210425937698720000000, 3168044077135040000000, 3125662216571360000000, 3083280356007680000000, 3040898495444000000000, 2998516634880320000000, 2956134774316640000000, 2913752913752960000000, 2871371053189280000000, 2828989192625600000000, 2786607332061920000000, 2744225471498250000000, 2701843610934570000000, 2659461750370890000000, 2617079889807210000000, 2574698029243530000000, 2532316168679850000000, 2489934308116170000000, 2447552447552490000000, 2405170586988810000000, 2362788726425130000000, 2320406865861450000000, 2278025005297770000000, 2235643144734100000000, 2193261284170420000000, 2150879423606740000000, 2108497563043060000000, 2066115702479380000000, 2023733841915700000000, 1981351981352020000000, 1938970120788340000000, 0]; // has to be equal to the sum of the dailyErc20RewardAmounts array, payed out rewards are subtracted from this, this is the remaing unassigned reward, not tied to any UserInfo object uint256 public currentTotalErc20RewardAmount = 0; // ------ // info of each user (depositor) struct UserInfo { // NOTE: in the last changes we made 4 real days into one "contract" day! uint256 currentlyAssignedRewardAmount; // reward (ERC20 Rentible token) amount, that was already clearly assigned to this UserInfo object (meaning subtracted from dailyErc20RewardAmounts and currentTotalErc20RewardAmount) uint256 rewardCountedUptoDay; // the "contract" day (stakingDayNumber) up to which currentlyAssignedRewardAmount was already handled uint256 lptAmount; } // user (UserInfo) mapping mapping (address => UserInfo) public userInfo; /* -------------------------------------------------------------------- */ /* --- events --------------------------------------------------------- */ /* -------------------------------------------------------------------- */ event Deposit(address indexed user, uint256 depositedLptAmount); event WithdrawLptCore(address indexed user, uint256 withdrawnLptAmount); event TakeOutSomeOfTheAccumulatedReward(address indexed user, uint256 rewardAmountTakenOut); event Fund(address indexed ownerUser, uint256 addedErc20Amount); /* -------------------------------------------------------------------- */ /* --- constructor ---------------------------------------------------- */ /* -------------------------------------------------------------------- */ // https://abi.hashex.org/# // 0000000000000000000000005af3176021e2450850377d4b166364e5c52ae82f000000000000000000000000e764f66e9e165cd29116826b84e943176ac8e91c0000000000000000000000000000000000000000000000000000000000000000 // _startTime = 0: means start instantly upon deploy constructor(IERC20 _erc20, IERC20 _lpToken, uint256 _startTime) public { require(_startTime == 0 || _startTime > 1621041111, "constructor: _startTime is too small"); // --- erc20 = _erc20; // RNB (for rewards) lpToken = _lpToken; // RNB/ETH Uni V2 (the staked token) // --- // NOTE: in the last changes we made 4 real days into one contract day // variables were parameterized already (for testing etc.) and were not renamed uint256 dayLengthT = 345600; // 86400 sec = one day, 345600 sec = 4 days // uint256 dayLengthT = 600; // scaled down, for testing, ratio 10 minutes = 4 day dayLength = dayLengthT; // this way it can be immutable // --- uint256 startTimeT; if (_startTime > 0) { startTimeT = _startTime; } else { startTimeT = block.timestamp; // default is current time } startTime = SafeMath.sub(startTimeT, dayLengthT); // this way it can be immutable, we subtract 1 day to skip day 0 // --- // NOTE: in the last changes we made 4 real days into one "contract" day // 364 real days = 91 contract days = staking program length uint256 stakingProgramTimeLengthT = SafeMath.mul(dayLengthT, 91); stakingProgramTimeLength = stakingProgramTimeLengthT; // this way it can be immutable // --- uint256 endTimeT = SafeMath.add(startTimeT, stakingProgramTimeLengthT); endTime = endTimeT; // this way it can be immutable // --- uint256 totalErc20RewardAmountT = 350000000000000000000000; // 350000 RNB totalErc20RewardAmount = totalErc20RewardAmountT; // this way it can be immutable } /* -------------------------------------------------------------------- */ /* --- basic write operations for the depositors ---------------------- */ /* -------------------------------------------------------------------- */ // Deposit LP tokens (by the users/investors/depositors) function deposit(uint256 _depositLptAmount) public { require(_depositLptAmount > 0, "deposit: _depositLptAmount must be positive"); require(block.timestamp >= startTime, "deposit: cannot deposit yet, current time is before startTime"); require(block.timestamp < endTime, "deposit: cannot deposit anymore, current time is after endTime"); // require(fundedErc20RewardAmount == totalErc20RewardAmount, "deposit: please wait until owner funds the rewards"); // --- UserInfo storage user = userInfo[msg.sender]; addToTheUsersAssignedReward(); // --- user.lptAmount = SafeMath.add(user.lptAmount, _depositLptAmount); lpToken.safeTransferFrom(msg.sender, address(this), _depositLptAmount); currentTotalLptAmount = SafeMath.add(currentTotalLptAmount, _depositLptAmount); updateDailyTotalLptAmount(); // --- emit Deposit(msg.sender, _depositLptAmount); } function updateDailyTotalLptAmount() private { // NOTE: in the last changes we made 4 real days into one "contract" day uint256 currentStakingDayNumber = getCurrentStakingDayNumber(); for (uint256 i = currentStakingDayNumber; i <= 92; i++) { dailyTotalLptAmount[i] = currentTotalLptAmount; } } /* Withdraw variants: 1) withdrawLptCore(uint256) = emergency withdraw, user receives the param amount of LPT, does not receive RNB, can unrecoverably loose some reward RNB 2) withdrawWithoutReward(uint256) = user receives the param amount of LPT, plus the method calculates and updates the reward amount in UserInfo object (but leaves it there) 3) withdrawAllWithoutReward() = same as 3, amount is fixed/all (user.lptAmount) 4) takeOutSomeOfTheAccumulatedReward(uint256) = leaves deposited LPT untouched, user receives the param amount of rewards 5) takeOutTheAccumulatedReward() = same as 4, reward amount is fixed/all (user.currentlyAssignedRewardAmount, it gets refreshed/recalculated before take out) 6) withdrawWithAllReward(uint256) = method 4, reward amount is fixed/all (user.currentlyAssignedRewardAmount); plus after that method 2 7) withdrawAllWithAllReward() = method 4, reward amount is fixed/all (user.currentlyAssignedRewardAmount), plus after that method 2, amount is fixed/all (user.lptAmount) */ // 1 // this works as the inner function of all LP token withdraws, but also on its own as a kind of emergency withdraw function withdrawLptCore(uint256 _withdrawLptAmount) public { require(_withdrawLptAmount > 0, "withdrawLptCore: _withdrawLptAmount must be positive"); UserInfo storage user = userInfo[msg.sender]; require(user.lptAmount >= _withdrawLptAmount, "withdrawLptCore: cannot withdraw more than the deposit, _withdrawLptAmount is too big"); lpToken.safeTransfer(msg.sender, _withdrawLptAmount); // send lpt to the user user.lptAmount = SafeMath.sub(user.lptAmount, _withdrawLptAmount); // subtract from the user's lpt currentTotalLptAmount = SafeMath.sub(currentTotalLptAmount, _withdrawLptAmount); // subtract from the global counter updateDailyTotalLptAmount(); // update the global daily (array) counters emit WithdrawLptCore(msg.sender, _withdrawLptAmount); } // 2 function withdrawWithoutReward(uint256 _withdrawLptAmount) public { addToTheUsersAssignedReward(); // updates UserInfo object withdrawLptCore(_withdrawLptAmount); } // 3 function withdrawAllWithoutReward() public { addToTheUsersAssignedReward(); // updates UserInfo object withdrawWithoutReward(depositedLptOfTheUser()); } // 4 function takeOutSomeOfTheAccumulatedReward(uint256 _rewardAmountToBeTakenOut) public returns(uint256) { require(_rewardAmountToBeTakenOut > 0, "takeOutSomeOfTheAccumulatedReward: _rewardAmountToBeTakenOut must be positive"); addToTheUsersAssignedReward(); // updates UserInfo object UserInfo storage user = userInfo[msg.sender]; require(user.currentlyAssignedRewardAmount >= _rewardAmountToBeTakenOut, "withdraw: user.currentlyAssignedRewardAmount is too low for this operation, _rewardAmountToBeTakenOut is too big"); // note: will always send out only what is currently held inside the UserInfo object (never directly from the global dailyErc20RewardAmounts[] array) // (so addToTheUsersAssignedReward() call is needed before transfer) erc20.safeTransfer(msg.sender, _rewardAmountToBeTakenOut); // send erc20 reward to the user user.currentlyAssignedRewardAmount = SafeMath.sub(user.currentlyAssignedRewardAmount, _rewardAmountToBeTakenOut); emit TakeOutSomeOfTheAccumulatedReward(msg.sender, _rewardAmountToBeTakenOut); return _rewardAmountToBeTakenOut; } // 5 function takeOutTheAccumulatedReward() public returns(uint256) { addToTheUsersAssignedReward(); // updates UserInfo object takeOutSomeOfTheAccumulatedReward(assignedRewardOfTheUser()); } // 6 function withdrawWithAllReward(uint256 _withdrawLptAmount) public { addToTheUsersAssignedReward(); // updates UserInfo object uint256 a = assignedRewardOfTheUser(); if (a > 0) { takeOutSomeOfTheAccumulatedReward(a); } withdrawWithoutReward(_withdrawLptAmount); } // 7 function withdrawAllWithAllReward() public { addToTheUsersAssignedReward(); // updates UserInfo object uint256 a = assignedRewardOfTheUser(); if (a > 0) { takeOutSomeOfTheAccumulatedReward(a); } uint256 d = depositedLptOfTheUser(); if (d > 0) { withdrawWithoutReward(d); } } /* -------------------------------------------------------------------- */ /* --- reward related read/write operations for the depositors -------- */ /* -------------------------------------------------------------------- */ // Updates the current accumulated/assigned reward (RNB) of the user (depositor) // (alters state in the user's UserInfo object and other places). function addToTheUsersAssignedReward() public returns(uint256) { uint256 currentStakingDayNumber = getCurrentStakingDayNumber(); uint256 currentStakingDayNumberMinusOne = SafeMath.sub(currentStakingDayNumber, 1); if (currentStakingDayNumber == 0) { return 0; } UserInfo storage user = userInfo[msg.sender]; if (user.lptAmount == 0) { // when user.lptAmount was set to 0 we did the calculations and state changes, if lptAmount is still 0, it means no change since then // note: important to always call addToTheUsersAssignedReward() before transfers! user.rewardCountedUptoDay = currentStakingDayNumberMinusOne; return user.currentlyAssignedRewardAmount; } // --- // NOTE: in the last changes we made 4 real days into one contract day uint256 rewardCountedUptoDay = user.rewardCountedUptoDay; uint256 rewardCountedUptoDayNextDay = SafeMath.add(rewardCountedUptoDay, 1); if (!(rewardCountedUptoDayNextDay <= currentStakingDayNumberMinusOne)) { return user.currentlyAssignedRewardAmount; } // --- uint256 usersRewardRecently = 0; for (uint256 i = rewardCountedUptoDayNextDay; i <= currentStakingDayNumberMinusOne; i++) { if (dailyTotalLptAmount[i] == 0) { continue; } // logic used here is because of integer division, we improve precision (not perfect solution, good enough) // (sample uses 10^4 instead of 10^19 units) // 49.5k = users stake, 80k = total stake, 2k = daily reward) // correct value would be = 1237.5 // (49 500 / 80 000 = 0.61875 = 0) * 2000 = 0; // ((49 500 * 100) / 80 000 = 61,875 = 61) * 2000 = 122000) / 100 = 1220 = 1220 // ((49 500 * 1000) / 80 000 = 618,75 = 618) * 2000 = 1236000) / 1000 = 1236 = 1236 // ((49 500 * 10000) / 80 000 = 6187.5 = 6187) * 2000 = 12374000) / 10000 = 1237.4 = 1237 uint256 raiser = 10000000000000000000; // 10^19 // uint256 rew = (((user.lptAmount.mul(raiser)).div(dailyTotalLptAmount[i])).mul(dailyPlannedErc20RewardAmounts[i])).div(raiser); // same with SafeMath: uint256 rew = SafeMath.mul(user.lptAmount, raiser); rew = SafeMath.div(rew, dailyTotalLptAmount[i]); rew = SafeMath.mul(rew, dailyPlannedErc20RewardAmounts[i]); rew = SafeMath.div(rew, raiser); if (dailyErc20RewardAmounts[i] < rew) { // the has to be added amount is less, than the remaining (global), can happen because of slight rounding issues at the very end // not really... more likely the oposite (that some small residue gets left behind) rew = dailyErc20RewardAmounts[i]; } usersRewardRecently = SafeMath.add(usersRewardRecently, rew); dailyErc20RewardAmounts[i] = SafeMath.sub(dailyErc20RewardAmounts[i], rew); } user.currentlyAssignedRewardAmount = SafeMath.add(user.currentlyAssignedRewardAmount, usersRewardRecently); currentTotalErc20RewardAmount = SafeMath.sub(currentTotalErc20RewardAmount, usersRewardRecently); user.rewardCountedUptoDay = currentStakingDayNumberMinusOne; return user.currentlyAssignedRewardAmount; } // Current additionally assignable reward (RNB) of the user (depositor), meaning what wasn't added to UserInfo, but will be upon the next addToTheUsersAssignedReward() call // (read only, does not save/alter state) function calculateUsersAssignableReward() public view returns(uint256) { // --- // --- similar to addToTheUsersAssignedReward(), but without the writes, plus few other modifications // --- uint256 currentStakingDayNumber = getCurrentStakingDayNumber(); uint256 currentStakingDayNumberMinusOne = SafeMath.sub(currentStakingDayNumber, 1); if (currentStakingDayNumber == 0) { return 0; } UserInfo storage user = userInfo[msg.sender]; if (user.lptAmount == 0) { // user.rewardCountedUptoDay = currentStakingDayNumberMinusOne; // different from addToTheUsersAssignedReward return 0; // different from addToTheUsersAssignedReward } // --- uint256 rewardCountedUptoDay = user.rewardCountedUptoDay; uint256 rewardCountedUptoDayNextDay = SafeMath.add(rewardCountedUptoDay, 1); if (!(rewardCountedUptoDayNextDay <= currentStakingDayNumberMinusOne)) { return 0; // different from addToTheUsersAssignedReward } // --- uint256 usersRewardRecently = 0; for (uint256 i = rewardCountedUptoDayNextDay; i <= currentStakingDayNumberMinusOne; i++) { if (dailyTotalLptAmount[i] == 0) { continue; } // logic used here is because of integer division, we improve precision (not perfect solution, good enough) // (sample use 10^4 instead of 10^19 units) // 49.5k = users stake, 80k = total stake, 2k = daily reward) // correct value would be = 1237.5 // (49 500 / 80 000 = 0.61875 = 0) * 2000 = 0; // ((49 500 * 100) / 80 000 = 61,875 = 61) * 2000 = 122000) / 100 = 1220 = 1220 // ((49 500 * 1000) / 80 000 = 618,75 = 618) * 2000 = 1236000) / 1000 = 1236 = 1236 // ((49 500 * 10000) / 80 000 = 6187.5 = 6187) * 2000 = 12374000) / 10000 = 1237.4 = 1237 uint256 raiser = 10000000000000000000; // 10^19 // uint256 rew = (((user.lptAmount.mul(raiser)).div(dailyTotalLptAmount[i])).mul(dailyPlannedErc20RewardAmounts[i])).div(raiser); // with SafeMath: uint256 rew = SafeMath.mul(user.lptAmount, raiser); rew = SafeMath.div(rew, dailyTotalLptAmount[i]); rew = SafeMath.mul(rew, dailyPlannedErc20RewardAmounts[i]); rew = SafeMath.div(rew, raiser); if (dailyErc20RewardAmounts[i] < rew) { // the has to be added amount is less, than the remaining (global), can happen because of slight rounding issues at the very end // not really... more likely the oposite (that some small residue gets left behind) rew = dailyErc20RewardAmounts[i]; } usersRewardRecently = SafeMath.add(usersRewardRecently, rew); // dailyErc20RewardAmounts[i] = SafeMath.sub(dailyErc20RewardAmounts[i], rew); // different from addToTheUsersAssignedReward } // different from addToTheUsersAssignedReward // user.currentlyAssignedRewardAmount = SafeMath.add(user.currentlyAssignedRewardAmount, usersRewardRecently); // currentTotalErc20RewardAmount = SafeMath.sub(currentTotalErc20RewardAmount, usersRewardRecently); // user.rewardCountedUptoDay = currentStakingDayNumberMinusOne; // --- // --- // --- return usersRewardRecently; } // user.currentlyAssignedRewardAmount + calculateUsersAssignableReward() // (read only, does not save/alter state) function calculateCurrentTakeableRewardOfTheUser() public view returns(uint256) { UserInfo storage user = userInfo[msg.sender]; return SafeMath.add(user.currentlyAssignedRewardAmount, calculateUsersAssignableReward()); } // Current clearly accumulated and assigned RNB reward of the user (depositor), meaning what is already in UserInfo function assignedRewardOfTheUser() public view returns(uint256) { UserInfo storage user = userInfo[msg.sender]; return user.currentlyAssignedRewardAmount; } function rewardCountedUptoDayOfTheUser() public view returns(uint256) { UserInfo storage user = userInfo[msg.sender]; return user.rewardCountedUptoDay; } /* -------------------------------------------------------------------- */ /* --- other read operations for the depositors ----------------------- */ /* -------------------------------------------------------------------- */ // Current Uniswap V2 liquidity token amount of the user (depositor) function depositedLptOfTheUser() public view returns(uint256) { UserInfo storage user = userInfo[msg.sender]; return user.lptAmount; } /* -------------------------------------------------------------------- */ /* --- write operations for the contract owner ------------------------ */ /* -------------------------------------------------------------------- */ // Fund rewards (erc20 RNB) (operation is for Rentible admins) function fund(uint256 _fundErc20Amount) public onlyOwner { require(_fundErc20Amount > 0, "fund: _fundErc20Amount must be positive"); require(fundedErc20RewardAmount < totalErc20RewardAmount, "fund: already fully funded"); require(SafeMath.add(fundedErc20RewardAmount, _fundErc20Amount) <= totalErc20RewardAmount, "fund: _fundErc20Amount too big, sum would exceed totalErc20RewardAmount"); // we do not check time here, optionally reward funding can be provided any time // (in pratice it should happen before start, or very quickly) erc20.safeTransferFrom(address(msg.sender), address(this), _fundErc20Amount); fundedErc20RewardAmount = SafeMath.add(fundedErc20RewardAmount, _fundErc20Amount); currentTotalErc20RewardAmount = SafeMath.add(currentTotalErc20RewardAmount, _fundErc20Amount); emit Fund(msg.sender, _fundErc20Amount); } /* -------------------------------------------------------------------- */ /* --- misc utils ----------------------------------------------------- */ /* -------------------------------------------------------------------- */ function getCurrentStakingDayNumber() public view returns(uint256) { uint256 elapsedTime = block.timestamp.sub(startTime); uint256 dayNumber = SafeMath.div(elapsedTime, dayLength); // integer division, truncated if (dayNumber > 92) { return 92; } return dayNumber; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_erc20","type":"address"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_startTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"depositedLptAmount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"ownerUser","type":"address"},{"indexed":false,"internalType":"uint256","name":"addedErc20Amount","type":"uint256"}],"name":"Fund","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewardAmountTakenOut","type":"uint256"}],"name":"TakeOutSomeOfTheAccumulatedReward","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"withdrawnLptAmount","type":"uint256"}],"name":"WithdrawLptCore","type":"event"},{"inputs":[],"name":"addToTheUsersAssignedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"assignedRewardOfTheUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateCurrentTakeableRewardOfTheUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calculateUsersAssignableReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTotalErc20RewardAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentTotalLptAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dailyErc20RewardAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dailyPlannedErc20RewardAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"dailyTotalLptAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"dayLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_depositLptAmount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositedLptOfTheUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"erc20","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fundErc20Amount","type":"uint256"}],"name":"fund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fundedErc20RewardAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentStakingDayNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardCountedUptoDayOfTheUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingProgramTimeLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardAmountToBeTakenOut","type":"uint256"}],"name":"takeOutSomeOfTheAccumulatedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"takeOutTheAccumulatedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalErc20RewardAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"currentlyAssignedRewardAmount","type":"uint256"},{"internalType":"uint256","name":"rewardCountedUptoDay","type":"uint256"},{"internalType":"uint256","name":"lptAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAllWithAllReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAllWithoutReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawLptAmount","type":"uint256"}],"name":"withdrawLptCore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawLptAmount","type":"uint256"}],"name":"withdrawWithAllReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_withdrawLptAmount","type":"uint256"}],"name":"withdrawWithoutReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
610d006040526000610160818152690137e39916cdeb607b8061018052690135976e792c8f832b806101a0526901334b43db8a45d34a006101c052690130ff193de7fb8ad2006101e05269012eb2eea045b1425a006102005269012c66c402a366f9e2006102205269012a1a9965011d4a008061024052690127ce6ec75ed301888061026052690125824429bc88b910806102805269012336198c1a3e7098806102a052690120e9eeee77f4c0b7006102c05269011e9dc450d5aa783f006102e05269011c5199b333602fc7006103005269011a056f159115e74f0061032052690117b94477eecc376d80610340526901156d19da4c81eef5806103605269011320ef3caa37a67d8061038052690110d4c49f07ed5e05806103a05269010e889a0165a3ae24006103c05269010c3c6f63c35965ac006103e052690109f044c6210f1d340061040052690107a41a287ec4d4bc006104205269010557ef8adc7b24da80610440526901030bc4ed3a30dc628061046052690100bf9a4f97e693ea806104805268fe736fb1f59c4b72806104a05268fc27451453529b91006104c05268f9db1a76b1085319006104e05268f78eefd90ebe0aa1006105005268f542c53b6c73c229006105205268f2f69a9dca2a1247806105405268f0aa700027dfc9cf806105605268ee5e456285958157806105805268ec121ac4e34b38df806105a05268e9c5f027410188fe006105c05268e779c5899eb74086006105e05268e52d9aebfc6cf80e006106005268e2e1704e5a22af96006106205268e09545b0b7d8ffb4806106405268de491b13158eb73c806106605268dbfcf07573446ec4806106805268d9b0c5d7d0fa264c806106a05268d7649b3a2eb0766b006106c05268d518709c8c662df3006106e05268d2cc45feea1be57b006107005268d0801b6147d19d03006107205268ce33f0c3a587ed21806107405268cbe7c626033da4a9806107605268c99b9b8860f35c31806107805268c74f70eabea913b9806107a05268c503464d1c5ecb41806107c05268c2b71baf7a1482c9806107e05268c06af111d7ca3a51806108005268be1ec674357ff1d9806108205268bbd29bd69335a961806108405268b9867138f0eb60e9806108605268b73a469b4ea11871806108805268b4ee1bfdac56cff9806108a05268b2a1f1600a0d2018006108c05268b055c6c267c2d7a0006108e05268ae099c24c5788f28006109005268abbd7187232e46b0006109205268a97146e980e3fe38006109405268a7251c4bde99b5c0006109605268a4d8f1ae3c4f6d48006109805268a28cc7109a0524d0006109a05268a0409c72f7badc58006109c052689df471d5557093e0006109e052689ba84737b3264b6800610a005268995c1c9a10dc02f000610a205268970ff1fc6e91ba7800610a40526894c3c75ecc480a9680610a60526892779cc129fdc21e80610a805268902b722387b379a680610aa052688ddf4785e569312e80610ac052688b931ce8431ee8b680610ae052688946f24aa0d4a03e80610b00526886fac7acfe8a57c680610b20526884ae9d0f5c400f4e80610b40526882627271b9f5c6d680610b605268801647d417ab7e5e80610b8052687dca1d36756135e680610ba052687b7df298d316ed6e80610bc052687931c7fb30cd3d8d00610be0526876e59d5d8e82f51500610c005268749972bfec38ac9d00610c205268724d482249ee642500610c40526870011d84a7a41bad00610c6052686db4f2e70559d33500610c8052686b68c849630f8abd00610ca05268691c9dabc0c5424500610cc052610ce0919091526200053790605f90605d62000e78565b50600060bc81905560408051610ba081018252828152690137e39916cdeb607b806020820152690135976e792c8f832b80918101919091526901334b43db8a45d34a006060820152690130ff193de7fb8ad200608082015269012eb2eea045b1425a0060a082015269012c66c402a366f9e20060c082015269012a1a9965011d4a008060e0820152690127ce6ec75ed3018880610100820152690125824429bc88b9108061012082015269012336198c1a3e709880610140820152690120e9eeee77f4c0b70061016082015269011e9dc450d5aa783f0061018082015269011c5199b333602fc7006101a082015269011a056f159115e74f006101c0820152690117b94477eecc376d806101e08201526901156d19da4c81eef58061020082015269011320ef3caa37a67d80610220820152690110d4c49f07ed5e058061024082015269010e889a0165a3ae240061026082015269010c3c6f63c35965ac00610280820152690109f044c6210f1d34006102a0820152690107a41a287ec4d4bc006102c082015269010557ef8adc7b24da806102e08201526901030bc4ed3a30dc6280610300820152690100bf9a4f97e693ea8061032082015268fe736fb1f59c4b728061034082015268fc27451453529b910061036082015268f9db1a76b10853190061038082015268f78eefd90ebe0aa1006103a082015268f542c53b6c73c229006103c082015268f2f69a9dca2a1247806103e082015268f0aa700027dfc9cf8061040082015268ee5e4562859581578061042082015268ec121ac4e34b38df8061044082015268e9c5f027410188fe0061046082015268e779c5899eb740860061048082015268e52d9aebfc6cf80e006104a082015268e2e1704e5a22af96006104c082015268e09545b0b7d8ffb4806104e082015268de491b13158eb73c8061050082015268dbfcf07573446ec48061052082015268d9b0c5d7d0fa264c8061054082015268d7649b3a2eb0766b0061056082015268d518709c8c662df30061058082015268d2cc45feea1be57b006105a082015268d0801b6147d19d03006105c082015268ce33f0c3a587ed21806105e082015268cbe7c626033da4a98061060082015268c99b9b8860f35c318061062082015268c74f70eabea913b98061064082015268c503464d1c5ecb418061066082015268c2b71baf7a1482c98061068082015268c06af111d7ca3a51806106a082015268be1ec674357ff1d9806106c082015268bbd29bd69335a961806106e082015268b9867138f0eb60e98061070082015268b73a469b4ea118718061072082015268b4ee1bfdac56cff98061074082015268b2a1f1600a0d20180061076082015268b055c6c267c2d7a00061078082015268ae099c24c5788f28006107a082015268abbd7187232e46b0006107c082015268a97146e980e3fe38006107e082015268a7251c4bde99b5c00061080082015268a4d8f1ae3c4f6d480061082082015268a28cc7109a0524d00061084082015268a0409c72f7badc5800610860820152689df471d5557093e000610880820152689ba84737b3264b68006108a082015268995c1c9a10dc02f0006108c082015268970ff1fc6e91ba78006108e08201526894c3c75ecc480a96806109008201526892779cc129fdc21e8061092082015268902b722387b379a680610940820152688ddf4785e569312e80610960820152688b931ce8431ee8b680610980820152688946f24aa0d4a03e806109a08201526886fac7acfe8a57c6806109c08201526884ae9d0f5c400f4e806109e08201526882627271b9f5c6d680610a0082015268801647d417ab7e5e80610a20820152687dca1d36756135e680610a40820152687b7df298d316ed6e80610a60820152687931c7fb30cd3d8d00610a808201526876e59d5d8e82f51500610aa082015268749972bfec38ac9d00610ac082015268724d482249ee642500610ae08201526870011d84a7a41bad00610b00820152686db4f2e70559d33500610b20820152686b68c849630f8abd00610b4082015268691c9dabc0c5424500610b60820152610b8081019190915262000b2a9060bd90605d62000e78565b50600061011a5534801562000b3e57600080fd5b5060405162002a4438038062002a448339818101604052606081101562000b6457600080fd5b5080516020820151604090920151909190600062000b8162000ccd565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080158062000bdc575063609f1fd781115b62000c195760405162461bcd60e51b8152600401808060200182810382526024815260200180620029ff6024913960400191505060405180910390fd5b6001600160601b0319606084811b821660e05283901b1660c052620546006101008190526000821562000c4e57508162000c51565b50425b62000c68818362000cd160201b620012001760201c565b60808181525050600062000c8983605b62000d2460201b6200124b1760201c565b9050806101208181525050600062000cad838362000d8260201b620012a41760201c565b60a0525050694a1d89bb94865ec00000610140525062000edd9350505050565b3390565b600062000d1b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525062000ddd60201b60201c565b90505b92915050565b60008262000d355750600062000d1e565b8282028284828162000d4357fe5b041462000d1b5760405162461bcd60e51b815260040180806020018281038252602181526020018062002a236021913960400191505060405180910390fd5b60008282018381101562000d1b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000818484111562000e705760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000e3457818101518382015260200162000e1a565b50505050905090810190601f16801562000e625780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b82605d810192821562000eb4579160200282015b8281111562000eb457825182906001600160501b031690559160200191906001019062000e8c565b5062000ec292915062000ec6565b5090565b5b8082111562000ec2576000815560010162000ec7565b60805160a05160c05160601c60e05160601c610100516101205161014051611a9662000f69600039806106045280610b505280610bc65250806111bf5250806108505280610a6b5250806106285280610c3b528061103452508061052c52806109a75280610f025250806104d0528061091252508061064c52806108b35280610a3d5250611a966000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c806390aa6a671161011a578063ca1d209d116100ad578063e90ef50a1161007c578063e90ef50a146103df578063f2296663146103fc578063f2fde38b14610419578063fa42c0791461043f578063fee97fcc14610447576101fb565b8063ca1d209d14610380578063d14949c71461039d578063d3b73c3c146103a5578063e54f7ae4146103c2576101fb565b8063a8d00e73116100e9578063a8d00e731461034b578063b6b55f2514610353578063b8cf581214610370578063ba2e8f2814610378576101fb565b806390aa6a671461031657806395ef6127146103335780639e49b8c21461033b5780639e9d84f814610343576101fb565b80635fcbd2851161019257806378e979251161016157806378e97925146102f65780638597f89b146102fe5780638a2b5314146103065780638da5cb5b1461030e576101fb565b80635fcbd285146102ba578063715018a6146102de57806378316989146102e6578063785e9e86146102ee576101fb565b80633797aad0116101ce5780633797aad0146102855780634329c729146102a25780634a4c0fc1146102aa5780635b71d470146102b2576101fb565b806308349d681461020057806311d4c4581461021f5780631959a002146102395780633197cbb61461027d575b600080fd5b61021d6004803603602081101561021657600080fd5b503561044f565b005b610227610482565b60408051918252519081900360200190f35b61025f6004803603602081101561024f57600080fd5b50356001600160a01b03166104ac565b60408051938452602084019290925282820152519081900360600190f35b6102276104ce565b6102276004803603602081101561029b57600080fd5b50356104f2565b610227610506565b61022761050d565b610227610524565b6102c261052a565b604080516001600160a01b039092168252519081900360200190f35b61021d61054e565b610227610602565b6102c2610626565b61022761064a565b61021d61066e565b6102276106af565b6102c26106b5565b6102276004803603602081101561032c57600080fd5b50356106c4565b6102276106d1565b6102276106e8565b61021d610833565b61022761084e565b61021d6004803603602081101561036957600080fd5b5035610872565b610227610a20565b610227610a34565b61021d6004803603602081101561039657600080fd5b5035610aa5565b610227610cbd565b61021d600480360360208110156103bb57600080fd5b5035610e4e565b61021d600480360360208110156103d857600080fd5b5035610e63565b610227600480360360208110156103f557600080fd5b5035610f8e565b6102276004803603602081101561041257600080fd5b50356110a6565b61021d6004803603602081101561042f57600080fd5b50356001600160a01b03166110b3565b6102276111bd565b6102276111e1565b610457610cbd565b506000610462610a20565b905080156104755761047381610f8e565b505b61047e82610e4e565b5050565b33600090815261011b6020526040812080546104a5906104a06106e8565b6112a4565b9150505b90565b61011b6020526000908152604090208054600182015460029092015490919083565b7f000000000000000000000000000000000000000000000000000000000000000081565b600181605d81106104ff57fe5b0154905081565b61011a5481565b33600090815261011b602052604090206001015490565b60bc5481565b7f000000000000000000000000000000000000000000000000000000000000000081565b6105566112fe565b6000546001600160a01b039081169116146105b8576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b610676610cbd565b506000610681610a20565b905080156106945761069281610f8e565b505b600061069e6106d1565b9050801561047e5761047e81610e4e565b605e5481565b6000546001600160a01b031690565b60bd81605d81106104ff57fe5b33600090815261011b602052604090206002015490565b6000806106f3610a34565b90506000610702826001611200565b905081610714576000925050506104a9565b33600090815261011b60205260409020600281015461073957600093505050506104a9565b600081600101549050600061074f8260016112a4565b905083811115610767576000955050505050506104a9565b6000815b85811161082857600181605d811061077f57fe5b015461078a57610820565b6000678ac7230489e80000905060006107a787600201548361124b565b90506107c181600185605d81106107ba57fe5b0154611302565b90506107db81605f85605d81106107d457fe5b015461124b565b90506107e78183611302565b90508060bd84605d81106107f757fe5b015410156108115760bd83605d811061080c57fe5b015490505b61081b84826112a4565b935050505b60010161076b565b509550505050505090565b61083b610cbd565b5061084c6108476106d1565b610e4e565b565b7f000000000000000000000000000000000000000000000000000000000000000081565b600081116108b15760405162461bcd60e51b815260040180806020018281038252602b815260200180611a36602b913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000000000004210156109105760405162461bcd60e51b815260040180806020018281038252603d8152602001806119cf603d913960400191505060405180910390fd5b7f0000000000000000000000000000000000000000000000000000000000000000421061096e5760405162461bcd60e51b815260040180806020018281038252603e8152602001806118c1603e913960400191505060405180910390fd5b33600090815261011b60205260409020610986610cbd565b506109958160020154836112a4565b60028201556109cf6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333085611344565b6109db605e54836112a4565b605e556109e66113a4565b60408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a25050565b33600090815261011b602052604090205490565b600080610a61427f0000000000000000000000000000000000000000000000000000000000000000611200565b90506000610a8f827f0000000000000000000000000000000000000000000000000000000000000000611302565b9050605c8111156104a557605c925050506104a9565b610aad6112fe565b6000546001600160a01b03908116911614610b0f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60008111610b4e5760405162461bcd60e51b81526004018080602001828103825260278152602001806117966027913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000000000000000000000000060bc5410610bc4576040805162461bcd60e51b815260206004820152601a60248201527f66756e643a20616c72656164792066756c6c792066756e646564000000000000604482015290519081900360640190fd5b7f0000000000000000000000000000000000000000000000000000000000000000610bf160bc54836112a4565b1115610c2e5760405162461bcd60e51b81526004018080602001828103825260478152602001806118ff6047913960600191505060405180910390fd5b610c636001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084611344565b610c6f60bc54826112a4565b60bc5561011a54610c8090826112a4565b61011a5560408051828152905133917fda8220a878ff7a89474ccffdaa31ea1ed1ffbb0207d5051afccc4fbaf81f9bcd919081900360200190a250565b600080610cc8610a34565b90506000610cd7826001611200565b905081610ce9576000925050506104a9565b33600090815261011b602052604090206002810154610d145760018101919091555491506104a99050565b6000816001015490506000610d2a8260016112a4565b905083811115610d415750505492506104a9915050565b6000815b858111610e1b57600181605d8110610d5957fe5b0154610d6457610e13565b6000678ac7230489e8000090506000610d8187600201548361124b565b9050610d9481600185605d81106107ba57fe5b9050610da781605f85605d81106107d457fe5b9050610db38183611302565b90508060bd84605d8110610dc357fe5b01541015610ddd5760bd83605d8110610dd857fe5b015490505b610de784826112a4565b9350610e0160bd84605d8110610df957fe5b015482611200565b60bd84605d8110610e0e57fe5b015550505b600101610d45565b508354610e2890826112a4565b845561011a54610e389082611200565b61011a5550505060018101919091555491505090565b610e56610cbd565b50610e6081610e63565b50565b60008111610ea25760405162461bcd60e51b81526004018080602001828103825260348152602001806119466034913960400191505060405180910390fd5b33600090815261011b602052604090206002810154821115610ef55760405162461bcd60e51b815260040180806020018281038252605581526020018061197a6055913960600191505060405180910390fd5b610f296001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633846113d4565b610f37816002015483611200565b6002820155605e54610f499083611200565b605e55610f546113a4565b60408051838152905133917f9ff1f6fca62db8aea6bb65479d61889ec56735cfd22e000a074a7a743bbefd9a919081900360200190a25050565b6000808211610fce5760405162461bcd60e51b815260040180806020018281038252604d815260200180611874604d913960600191505060405180910390fd5b610fd6610cbd565b5033600090815261011b6020526040902080548311156110275760405162461bcd60e51b81526004018080602001828103825260708152602001806117bd6070913960800191505060405180910390fd5b61105b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001633856113d4565b80546110679084611200565b815560408051848152905133917ff73307870ca297a8da0add6652fd7a189e06042a6d5466a606d74933b52da14e919081900360200190a25090919050565b605f81605d81106104ff57fe5b6110bb6112fe565b6000546001600160a01b0390811691161461111d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166111625760405162461bcd60e51b815260040180806020018281038252602681526020018061182d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006111eb610cbd565b506111fc6111f7610a20565b610f8e565b5090565b600061124283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061142b565b90505b92915050565b60008261125a57506000611245565b8282028284828161126757fe5b04146112425760405162461bcd60e51b81526004018080602001828103825260218152602001806118536021913960400191505060405180910390fd5b600082820183811015611242576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b600061124283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506114c2565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261139e908590611527565b50505050565b60006113ae610a34565b9050805b605c811161047e57605e54600182605d81106113ca57fe5b01556001016113b2565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611426908490611527565b505050565b600081848411156114ba5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561147f578181015183820152602001611467565b50505050905090810190601f1680156114ac5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836115115760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561147f578181015183820152602001611467565b50600083858161151d57fe5b0495945050505050565b606061157c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115d89092919063ffffffff16565b8051909150156114265780806020019051602081101561159b57600080fd5b50516114265760405162461bcd60e51b815260040180806020018281038252602a815260200180611a0c602a913960400191505060405180910390fd5b60606115e784846000856115ef565b949350505050565b60606115fa8561175c565b61164b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061168a5780518252601f19909201916020918201910161166b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146116ec576040519150601f19603f3d011682016040523d82523d6000602084013e6116f1565b606091505b509150915081156117055791506115e79050565b8051156117155780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561147f578181015183820152602001611467565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906115e757505015159291505056fe66756e643a205f66756e644572633230416d6f756e74206d75737420626520706f73697469766577697468647261773a20757365722e63757272656e746c7941737369676e6564526577617264416d6f756e7420697320746f6f206c6f7720666f722074686973206f7065726174696f6e2c205f726577617264416d6f756e74546f426554616b656e4f757420697320746f6f206269674f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7774616b654f7574536f6d654f66546865416363756d756c617465645265776172643a205f726577617264416d6f756e74546f426554616b656e4f7574206d75737420626520706f7369746976656465706f7369743a2063616e6e6f74206465706f73697420616e796d6f72652c2063757272656e742074696d6520697320616674657220656e6454696d6566756e643a205f66756e644572633230416d6f756e7420746f6f206269672c2073756d20776f756c642065786365656420746f74616c4572633230526577617264416d6f756e7477697468647261774c7074436f72653a205f77697468647261774c7074416d6f756e74206d75737420626520706f73697469766577697468647261774c7074436f72653a2063616e6e6f74207769746864726177206d6f7265207468616e20746865206465706f7369742c205f77697468647261774c7074416d6f756e7420697320746f6f206269676465706f7369743a2063616e6e6f74206465706f736974207965742c2063757272656e742074696d65206973206265666f726520737461727454696d655361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565646465706f7369743a205f6465706f7369744c7074416d6f756e74206d75737420626520706f736974697665a26469706673582212202b17e69b9ee0313bcc3517c52b896aa59e3c9e8c35c6b9ca92a6424d9d99119764736f6c634300060c0033636f6e7374727563746f723a205f737461727454696d6520697320746f6f20736d616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f770000000000000000000000002a039b1d9bbdccbb91be28691b730ca893e5e74300000000000000000000000008ad72b16d56a5a9f2189afb972dbdfe72920cac0000000000000000000000000000000000000000000000000000000060aeb6d0
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c806390aa6a671161011a578063ca1d209d116100ad578063e90ef50a1161007c578063e90ef50a146103df578063f2296663146103fc578063f2fde38b14610419578063fa42c0791461043f578063fee97fcc14610447576101fb565b8063ca1d209d14610380578063d14949c71461039d578063d3b73c3c146103a5578063e54f7ae4146103c2576101fb565b8063a8d00e73116100e9578063a8d00e731461034b578063b6b55f2514610353578063b8cf581214610370578063ba2e8f2814610378576101fb565b806390aa6a671461031657806395ef6127146103335780639e49b8c21461033b5780639e9d84f814610343576101fb565b80635fcbd2851161019257806378e979251161016157806378e97925146102f65780638597f89b146102fe5780638a2b5314146103065780638da5cb5b1461030e576101fb565b80635fcbd285146102ba578063715018a6146102de57806378316989146102e6578063785e9e86146102ee576101fb565b80633797aad0116101ce5780633797aad0146102855780634329c729146102a25780634a4c0fc1146102aa5780635b71d470146102b2576101fb565b806308349d681461020057806311d4c4581461021f5780631959a002146102395780633197cbb61461027d575b600080fd5b61021d6004803603602081101561021657600080fd5b503561044f565b005b610227610482565b60408051918252519081900360200190f35b61025f6004803603602081101561024f57600080fd5b50356001600160a01b03166104ac565b60408051938452602084019290925282820152519081900360600190f35b6102276104ce565b6102276004803603602081101561029b57600080fd5b50356104f2565b610227610506565b61022761050d565b610227610524565b6102c261052a565b604080516001600160a01b039092168252519081900360200190f35b61021d61054e565b610227610602565b6102c2610626565b61022761064a565b61021d61066e565b6102276106af565b6102c26106b5565b6102276004803603602081101561032c57600080fd5b50356106c4565b6102276106d1565b6102276106e8565b61021d610833565b61022761084e565b61021d6004803603602081101561036957600080fd5b5035610872565b610227610a20565b610227610a34565b61021d6004803603602081101561039657600080fd5b5035610aa5565b610227610cbd565b61021d600480360360208110156103bb57600080fd5b5035610e4e565b61021d600480360360208110156103d857600080fd5b5035610e63565b610227600480360360208110156103f557600080fd5b5035610f8e565b6102276004803603602081101561041257600080fd5b50356110a6565b61021d6004803603602081101561042f57600080fd5b50356001600160a01b03166110b3565b6102276111bd565b6102276111e1565b610457610cbd565b506000610462610a20565b905080156104755761047381610f8e565b505b61047e82610e4e565b5050565b33600090815261011b6020526040812080546104a5906104a06106e8565b6112a4565b9150505b90565b61011b6020526000908152604090208054600182015460029092015490919083565b7f00000000000000000000000000000000000000000000000000000000628e98d081565b600181605d81106104ff57fe5b0154905081565b61011a5481565b33600090815261011b602052604090206001015490565b60bc5481565b7f00000000000000000000000008ad72b16d56a5a9f2189afb972dbdfe72920cac81565b6105566112fe565b6000546001600160a01b039081169116146105b8576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b7f000000000000000000000000000000000000000000004a1d89bb94865ec0000081565b7f0000000000000000000000002a039b1d9bbdccbb91be28691b730ca893e5e74381565b7f0000000000000000000000000000000000000000000000000000000060a970d081565b610676610cbd565b506000610681610a20565b905080156106945761069281610f8e565b505b600061069e6106d1565b9050801561047e5761047e81610e4e565b605e5481565b6000546001600160a01b031690565b60bd81605d81106104ff57fe5b33600090815261011b602052604090206002015490565b6000806106f3610a34565b90506000610702826001611200565b905081610714576000925050506104a9565b33600090815261011b60205260409020600281015461073957600093505050506104a9565b600081600101549050600061074f8260016112a4565b905083811115610767576000955050505050506104a9565b6000815b85811161082857600181605d811061077f57fe5b015461078a57610820565b6000678ac7230489e80000905060006107a787600201548361124b565b90506107c181600185605d81106107ba57fe5b0154611302565b90506107db81605f85605d81106107d457fe5b015461124b565b90506107e78183611302565b90508060bd84605d81106107f757fe5b015410156108115760bd83605d811061080c57fe5b015490505b61081b84826112a4565b935050505b60010161076b565b509550505050505090565b61083b610cbd565b5061084c6108476106d1565b610e4e565b565b7f000000000000000000000000000000000000000000000000000000000005460081565b600081116108b15760405162461bcd60e51b815260040180806020018281038252602b815260200180611a36602b913960400191505060405180910390fd5b7f0000000000000000000000000000000000000000000000000000000060a970d04210156109105760405162461bcd60e51b815260040180806020018281038252603d8152602001806119cf603d913960400191505060405180910390fd5b7f00000000000000000000000000000000000000000000000000000000628e98d0421061096e5760405162461bcd60e51b815260040180806020018281038252603e8152602001806118c1603e913960400191505060405180910390fd5b33600090815261011b60205260409020610986610cbd565b506109958160020154836112a4565b60028201556109cf6001600160a01b037f00000000000000000000000008ad72b16d56a5a9f2189afb972dbdfe72920cac16333085611344565b6109db605e54836112a4565b605e556109e66113a4565b60408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a25050565b33600090815261011b602052604090205490565b600080610a61427f0000000000000000000000000000000000000000000000000000000060a970d0611200565b90506000610a8f827f0000000000000000000000000000000000000000000000000000000000054600611302565b9050605c8111156104a557605c925050506104a9565b610aad6112fe565b6000546001600160a01b03908116911614610b0f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60008111610b4e5760405162461bcd60e51b81526004018080602001828103825260278152602001806117966027913960400191505060405180910390fd5b7f000000000000000000000000000000000000000000004a1d89bb94865ec0000060bc5410610bc4576040805162461bcd60e51b815260206004820152601a60248201527f66756e643a20616c72656164792066756c6c792066756e646564000000000000604482015290519081900360640190fd5b7f000000000000000000000000000000000000000000004a1d89bb94865ec00000610bf160bc54836112a4565b1115610c2e5760405162461bcd60e51b81526004018080602001828103825260478152602001806118ff6047913960600191505060405180910390fd5b610c636001600160a01b037f0000000000000000000000002a039b1d9bbdccbb91be28691b730ca893e5e74316333084611344565b610c6f60bc54826112a4565b60bc5561011a54610c8090826112a4565b61011a5560408051828152905133917fda8220a878ff7a89474ccffdaa31ea1ed1ffbb0207d5051afccc4fbaf81f9bcd919081900360200190a250565b600080610cc8610a34565b90506000610cd7826001611200565b905081610ce9576000925050506104a9565b33600090815261011b602052604090206002810154610d145760018101919091555491506104a99050565b6000816001015490506000610d2a8260016112a4565b905083811115610d415750505492506104a9915050565b6000815b858111610e1b57600181605d8110610d5957fe5b0154610d6457610e13565b6000678ac7230489e8000090506000610d8187600201548361124b565b9050610d9481600185605d81106107ba57fe5b9050610da781605f85605d81106107d457fe5b9050610db38183611302565b90508060bd84605d8110610dc357fe5b01541015610ddd5760bd83605d8110610dd857fe5b015490505b610de784826112a4565b9350610e0160bd84605d8110610df957fe5b015482611200565b60bd84605d8110610e0e57fe5b015550505b600101610d45565b508354610e2890826112a4565b845561011a54610e389082611200565b61011a5550505060018101919091555491505090565b610e56610cbd565b50610e6081610e63565b50565b60008111610ea25760405162461bcd60e51b81526004018080602001828103825260348152602001806119466034913960400191505060405180910390fd5b33600090815261011b602052604090206002810154821115610ef55760405162461bcd60e51b815260040180806020018281038252605581526020018061197a6055913960600191505060405180910390fd5b610f296001600160a01b037f00000000000000000000000008ad72b16d56a5a9f2189afb972dbdfe72920cac1633846113d4565b610f37816002015483611200565b6002820155605e54610f499083611200565b605e55610f546113a4565b60408051838152905133917f9ff1f6fca62db8aea6bb65479d61889ec56735cfd22e000a074a7a743bbefd9a919081900360200190a25050565b6000808211610fce5760405162461bcd60e51b815260040180806020018281038252604d815260200180611874604d913960600191505060405180910390fd5b610fd6610cbd565b5033600090815261011b6020526040902080548311156110275760405162461bcd60e51b81526004018080602001828103825260708152602001806117bd6070913960800191505060405180910390fd5b61105b6001600160a01b037f0000000000000000000000002a039b1d9bbdccbb91be28691b730ca893e5e7431633856113d4565b80546110679084611200565b815560408051848152905133917ff73307870ca297a8da0add6652fd7a189e06042a6d5466a606d74933b52da14e919081900360200190a25090919050565b605f81605d81106104ff57fe5b6110bb6112fe565b6000546001600160a01b0390811691161461111d576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166111625760405162461bcd60e51b815260040180806020018281038252602681526020018061182d6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b7f0000000000000000000000000000000000000000000000000000000001dfe20081565b60006111eb610cbd565b506111fc6111f7610a20565b610f8e565b5090565b600061124283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061142b565b90505b92915050565b60008261125a57506000611245565b8282028284828161126757fe5b04146112425760405162461bcd60e51b81526004018080602001828103825260218152602001806118536021913960400191505060405180910390fd5b600082820183811015611242576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b600061124283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506114c2565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261139e908590611527565b50505050565b60006113ae610a34565b9050805b605c811161047e57605e54600182605d81106113ca57fe5b01556001016113b2565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611426908490611527565b505050565b600081848411156114ba5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561147f578181015183820152602001611467565b50505050905090810190601f1680156114ac5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836115115760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561147f578181015183820152602001611467565b50600083858161151d57fe5b0495945050505050565b606061157c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115d89092919063ffffffff16565b8051909150156114265780806020019051602081101561159b57600080fd5b50516114265760405162461bcd60e51b815260040180806020018281038252602a815260200180611a0c602a913960400191505060405180910390fd5b60606115e784846000856115ef565b949350505050565b60606115fa8561175c565b61164b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061168a5780518252601f19909201916020918201910161166b565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146116ec576040519150601f19603f3d011682016040523d82523d6000602084013e6116f1565b606091505b509150915081156117055791506115e79050565b8051156117155780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561147f578181015183820152602001611467565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708181148015906115e757505015159291505056fe66756e643a205f66756e644572633230416d6f756e74206d75737420626520706f73697469766577697468647261773a20757365722e63757272656e746c7941737369676e6564526577617264416d6f756e7420697320746f6f206c6f7720666f722074686973206f7065726174696f6e2c205f726577617264416d6f756e74546f426554616b656e4f757420697320746f6f206269674f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7774616b654f7574536f6d654f66546865416363756d756c617465645265776172643a205f726577617264416d6f756e74546f426554616b656e4f7574206d75737420626520706f7369746976656465706f7369743a2063616e6e6f74206465706f73697420616e796d6f72652c2063757272656e742074696d6520697320616674657220656e6454696d6566756e643a205f66756e644572633230416d6f756e7420746f6f206269672c2073756d20776f756c642065786365656420746f74616c4572633230526577617264416d6f756e7477697468647261774c7074436f72653a205f77697468647261774c7074416d6f756e74206d75737420626520706f73697469766577697468647261774c7074436f72653a2063616e6e6f74207769746864726177206d6f7265207468616e20746865206465706f7369742c205f77697468647261774c7074416d6f756e7420697320746f6f206269676465706f7369743a2063616e6e6f74206465706f736974207965742c2063757272656e742074696d65206973206265666f726520737461727454696d655361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565646465706f7369743a205f6465706f7369744c7074416d6f756e74206d75737420626520706f736974697665a26469706673582212202b17e69b9ee0313bcc3517c52b896aa59e3c9e8c35c6b9ca92a6424d9d99119764736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002a039b1d9bbdccbb91be28691b730ca893e5e74300000000000000000000000008ad72b16d56a5a9f2189afb972dbdfe72920cac0000000000000000000000000000000000000000000000000000000060aeb6d0
-----Decoded View---------------
Arg [0] : _erc20 (address): 0x2A039B1D9bBDccBb91be28691b730ca893e5e743
Arg [1] : _lpToken (address): 0x08ad72b16D56a5A9f2189aFb972dbdFE72920CAc
Arg [2] : _startTime (uint256): 1622062800
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000002a039b1d9bbdccbb91be28691b730ca893e5e743
Arg [1] : 00000000000000000000000008ad72b16d56a5a9f2189afb972dbdfe72920cac
Arg [2] : 0000000000000000000000000000000000000000000000000000000060aeb6d0
Deployed Bytecode Sourcemap
30354:28756:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47263:332;;;;;;;;;;;;;;;;-1:-1:-1;47263:332:0;;:::i;:::-;;56039:243;;;:::i;:::-;;;;;;;;;;;;;;;;38599:45;;;;;;;;;;;;;;;;-1:-1:-1;38599:45:0;-1:-1:-1;;;;;38599:45:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;30826:32;;;:::i;31688:38::-;;;;;;;;;;;;;;;;-1:-1:-1;31688:38:0;;:::i;37933:48::-;;;:::i;56598:176::-;;;:::i;35084:42::-;;;:::i;30938:31::-;;;:::i;:::-;;;;-1:-1:-1;;;;;30938:31:0;;;;;;;;;;;;;;29078:148;;;:::i;32306:47::-;;;:::i;31037:29::-;;;:::i;30748:34::-;;;:::i;47613:377::-;;;:::i;31875:36::-;;;:::i;28436:79::-;;;:::i;35494:2242::-;;;;;;;;;;;;;;;;-1:-1:-1;35494:2242:0;;:::i;57098:157::-;;;:::i;52233:3669::-;;;:::i;45639:175::-;;;:::i;31186:34::-;;;:::i;41936:1025::-;;;;;;;;;;;;;;;;-1:-1:-1;41936:1025:0;;:::i;56411:179::-;;;:::i;58752:353::-;;;:::i;57573:929::-;;;;;;;;;;;;;;;;-1:-1:-1;57573:929:0;;:::i;48398:3602::-;;;:::i;45434:187::-;;;;;;;;;;;;;;;;-1:-1:-1;45434:187:0;;:::i;44552:864::-;;;;;;;;;;;;;;;;-1:-1:-1;44552:864:0;;:::i;45832:1185::-;;;;;;;;;;;;;;;;-1:-1:-1;45832:1185:0;;:::i;32668:2242::-;;;;;;;;;;;;;;;;-1:-1:-1;32668:2242:0;;:::i;29381:244::-;;;;;;;;;;;;;;;;-1:-1:-1;29381:244:0;-1:-1:-1;;;;;29381:244:0;;:::i;31244:49::-;;;:::i;47035:210::-;;;:::i;47263:332::-;47342:29;:27;:29::i;:::-;;47412:9;47424:25;:23;:25::i;:::-;47412:37;-1:-1:-1;47464:5:0;;47460:74;;47486:36;47520:1;47486:33;:36::i;:::-;;47460:74;47546:41;47568:18;47546:21;:41::i;:::-;47263:332;;:::o;56039:243::-;56163:10;56110:7;56154:20;;;:8;:20;;;;;56205:34;;56192:82;;56241:32;:30;:32::i;:::-;56192:12;:82::i;:::-;56185:89;;;56039:243;;:::o;38599:45::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;30826:32::-;;;:::o;31688:38::-;;;;;;;;;;;;;-1:-1:-1;31688:38:0;:::o;37933:48::-;;;;:::o;56598:176::-;56712:10;56659:7;56703:20;;;:8;:20;;;;;56741:25;;;56598:176;:::o;35084:42::-;;;;:::o;30938:31::-;;;:::o;29078:148::-;28658:12;:10;:12::i;:::-;28648:6;;-1:-1:-1;;;;;28648:6:0;;;:22;;;28640:67;;;;;-1:-1:-1;;;28640:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29185:1:::1;29169:6:::0;;29148:40:::1;::::0;-1:-1:-1;;;;;29169:6:0;;::::1;::::0;29148:40:::1;::::0;29185:1;;29148:40:::1;29216:1;29199:19:::0;;-1:-1:-1;;;;;;29199:19:0::1;::::0;;29078:148::o;32306:47::-;;;:::o;31037:29::-;;;:::o;30748:34::-;;;:::o;47613:377::-;47669:29;:27;:29::i;:::-;;47739:9;47751:25;:23;:25::i;:::-;47739:37;-1:-1:-1;47791:5:0;;47787:74;;47813:36;47847:1;47813:33;:36::i;:::-;;47787:74;47873:9;47885:23;:21;:23::i;:::-;47873:35;-1:-1:-1;47923:5:0;;47919:62;;47945:24;47967:1;47945:21;:24::i;31875:36::-;;;;:::o;28436:79::-;28474:7;28501:6;-1:-1:-1;;;;;28501:6:0;28436:79;:::o;35494:2242::-;;;;;;;;;57098:157;57204:10;57151:7;57195:20;;;:8;:20;;;;;57233:14;;;57098:157;:::o;52233:3669::-;52295:7;52462:31;52496:28;:26;:28::i;:::-;52462:62;;52535:39;52577:40;52590:23;52615:1;52577:12;:40::i;:::-;52535:82;-1:-1:-1;52634:28:0;52630:69;;52686:1;52679:8;;;;;;52630:69;52744:10;52711:21;52735:20;;;:8;:20;;;;;52780:14;;;;52776:229;;52946:1;52939:8;;;;;;;52776:229;53043:28;53074:4;:25;;;53043:56;;53110:35;53148:37;53161:20;53183:1;53148:12;:37::i;:::-;53110:75;;53235:31;53204:27;:62;;53198:152;;53291:1;53284:8;;;;;;;;;53198:152;53388:27;53457;53440:1995;53491:31;53486:1;:36;53440:1995;;53574:19;53594:1;53574:22;;;;;;;;;53570:76;;53622:8;;53570:76;54319:14;54336:20;54319:37;;54584:11;54598:36;54611:4;:14;;;54627:6;54598:12;:36::i;:::-;54584:50;;54655:41;54668:3;54673:19;54693:1;54673:22;;;;;;;;;54655:12;:41::i;:::-;54649:47;;54717:52;54730:3;54735:30;54766:1;54735:33;;;;;;;;;54717:12;:52::i;:::-;54711:58;;54790:25;54803:3;54808:6;54790:12;:25::i;:::-;54784:31;;54877:3;54848:23;54872:1;54848:26;;;;;;;;;:32;54844:352;;;55154:23;55178:1;55154:26;;;;;;;;;55148:32;;54844:352;55234:38;55247:19;55268:3;55234:12;:38::i;:::-;55212:60;;53440:1995;;;53524:3;;53440:1995;;;-1:-1:-1;55873:19:0;-1:-1:-1;;;;;;52233:3669:0;:::o;45639:175::-;45693:29;:27;:29::i;:::-;;45760:46;45782:23;:21;:23::i;:::-;45760:21;:46::i;:::-;45639:175::o;31186:34::-;;;:::o;41936:1025::-;42028:1;42008:17;:21;42000:77;;;;-1:-1:-1;;;42000:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42117:9;42098:15;:28;;42090:102;;;;-1:-1:-1;;;42090:102:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42229:7;42211:15;:25;42203:100;;;;-1:-1:-1;;;42203:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42503:10;42470:21;42494:20;;;:8;:20;;;;;42527:29;:27;:29::i;:::-;;42612:47;42625:4;:14;;;42641:17;42612:12;:47::i;:::-;42595:14;;;:64;42670:70;-1:-1:-1;;;;;42670:7:0;:24;42695:10;42715:4;42722:17;42670:24;:70::i;:::-;42777:54;42790:21;;42813:17;42777:12;:54::i;:::-;42753:21;:78;42842:27;:25;:27::i;:::-;42913:38;;;;;;;;42921:10;;42913:38;;;;;;;;;;41936:1025;;:::o;56411:179::-;56519:10;56466:7;56510:20;;;:8;:20;;;;;56548:34;56411:179;:::o;58752:353::-;58810:7;;58862:30;:15;58882:9;58862:19;:30::i;:::-;58840:52;;58903:17;58923:36;58936:11;58949:9;58923:12;:36::i;:::-;58903:56;;59019:2;59007:9;:14;59003:56;;;59045:2;59038:9;;;;;;57573:929;28658:12;:10;:12::i;:::-;28648:6;;-1:-1:-1;;;;;28648:6:0;;;:22;;;28640:67;;;;;-1:-1:-1;;;28640:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57670:1:::1;57651:16;:20;57643:72;;;;-1:-1:-1::0;;;57643:72:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57762:22;57736:23;;:48;57728:87;;;::::0;;-1:-1:-1;;;57728:87:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;57893:22;57834:55;57847:23;;57872:16;57834:12;:55::i;:::-;:81;;57826:165;;;;-1:-1:-1::0;;;57826:165:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58168:76;-1:-1:-1::0;;;;;58168:5:0::1;:22;58199:10;58220:4;58227:16:::0;58168:22:::1;:76::i;:::-;58283:55;58296:23;;58321:16;58283:12;:55::i;:::-;58257:23;:81:::0;58394:29:::1;::::0;58381:61:::1;::::0;58425:16;58381:12:::1;:61::i;:::-;58349:29;:93:::0;58460:34:::1;::::0;;;;;;;58465:10:::1;::::0;58460:34:::1;::::0;;;;;::::1;::::0;;::::1;57573:929:::0;:::o;48398:3602::-;48452:7;48474:31;48508:28;:26;:28::i;:::-;48474:62;;48547:39;48589:40;48602:23;48627:1;48589:12;:40::i;:::-;48547:82;-1:-1:-1;48646:28:0;48642:69;;48698:1;48691:8;;;;;;48642:69;48756:10;48723:21;48747:20;;;:8;:20;;;;;48792:14;;;;48788:410;;49071:25;;;:59;;;;49152:34;;-1:-1:-1;49145:41:0;;-1:-1:-1;49145:41:0;48788:410;49318:28;49349:4;:25;;;49318:56;;49385:35;49423:37;49436:20;49458:1;49423:12;:37::i;:::-;49385:75;;49510:31;49479:27;:62;;49473:139;;-1:-1:-1;;49566:34:0;;-1:-1:-1;49559:41:0;;-1:-1:-1;;49559:41:0;49473:139;49650:27;49719;49702:1941;49753:31;49748:1;:36;49702:1941;;49836:19;49856:1;49836:22;;;;;;;;;49832:76;;49884:8;;49832:76;50582:14;50599:20;50582:37;;50852:11;50866:36;50879:4;:14;;;50895:6;50866:12;:36::i;:::-;50852:50;;50923:41;50936:3;50941:19;50961:1;50941:22;;;;;;50923:41;50917:47;;50985:52;50998:3;51003:30;51034:1;51003:33;;;;;;50985:52;50979:58;;51058:25;51071:3;51076:6;51058:12;:25::i;:::-;51052:31;;51133:3;51104:23;51128:1;51104:26;;;;;;;;;:32;51100:353;;;51411:23;51435:1;51411:26;;;;;;;;;51405:32;;51100:353;51491:38;51504:19;51525:3;51491:12;:38::i;:::-;51469:60;;51573:45;51586:23;51610:1;51586:26;;;;;;;;;51614:3;51573:12;:45::i;:::-;51544:23;51568:1;51544:26;;;;;;;;:74;-1:-1:-1;;49702:1941:0;49786:3;;49702:1941;;;-1:-1:-1;51705:34:0;;51692:69;;51741:19;51692:12;:69::i;:::-;51655:106;;51817:29;;51804:64;;51848:19;51804:12;:64::i;:::-;51772:29;:96;-1:-1:-1;;;51879:25:0;;;:59;;;;51958:34;;-1:-1:-1;;48398:3602:0;:::o;45434:187::-;45511:29;:27;:29::i;:::-;;45578:35;45594:18;45578:15;:35::i;:::-;45434:187;:::o;44552:864::-;44654:1;44633:18;:22;44625:87;;;;-1:-1:-1;;;44625:87:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44758:10;44725:21;44749:20;;;:8;:20;;;;;44788:14;;;;:36;-1:-1:-1;44788:36:0;44780:134;;;;-1:-1:-1;;;44780:134:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44936:52;-1:-1:-1;;;;;44936:7:0;:20;44957:10;44969:18;44936:20;:52::i;:::-;45050:48;45063:4;:14;;;45079:18;45050:12;:48::i;:::-;45033:14;;;:65;45179:21;;45166:55;;45202:18;45166:12;:55::i;:::-;45142:21;:79;45270:27;:25;:27::i;:::-;45359:47;;;;;;;;45375:10;;45359:47;;;;;;;;;;44552:864;;:::o;45832:1185::-;45925:7;45983:1;45955:25;:29;45947:119;;;;-1:-1:-1;;;45947:119:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46079:29;:27;:29::i;:::-;-1:-1:-1;46181:10:0;46148:21;46172:20;;;:8;:20;;;;;46211:34;;:63;-1:-1:-1;46211:63:0;46203:188;;;;-1:-1:-1;;;46203:188:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46643:57;-1:-1:-1;;;;;46643:5:0;:18;46662:10;46674:25;46643:18;:57::i;:::-;46794:34;;46781:75;;46830:25;46781:12;:75::i;:::-;46744:112;;46874:72;;;;;;;;46908:10;;46874:72;;;;;;;;;;-1:-1:-1;46974:25:0;;45832:1185;-1:-1:-1;45832:1185:0:o;32668:2242::-;;;;;;;;;29381:244;28658:12;:10;:12::i;:::-;28648:6;;-1:-1:-1;;;;;28648:6:0;;;:22;;;28640:67;;;;;-1:-1:-1;;;28640:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29470:22:0;::::1;29462:73;;;;-1:-1:-1::0;;;29462:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29572:6;::::0;;29551:38:::1;::::0;-1:-1:-1;;;;;29551:38:0;;::::1;::::0;29572:6;::::1;::::0;29551:38:::1;::::0;::::1;29600:6;:17:::0;;-1:-1:-1;;;;;;29600:17:0::1;-1:-1:-1::0;;;;;29600:17:0;;;::::1;::::0;;;::::1;::::0;;29381:244::o;31244:49::-;;;:::o;47035:210::-;47089:7;47109:29;:27;:29::i;:::-;;47177:60;47211:25;:23;:25::i;:::-;47177:33;:60::i;:::-;;47035:210;:::o;4280:136::-;4338:7;4365:43;4369:1;4372;4365:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;4358:50;;4280:136;;;;;:::o;5170:471::-;5228:7;5473:6;5469:47;;-1:-1:-1;5503:1:0;5496:8;;5469:47;5540:5;;;5544:1;5540;:5;:1;5564:5;;;;;:10;5556:56;;;;-1:-1:-1;;;5556:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3816:181;3874:7;3906:5;;;3930:6;;;;3922:46;;;;;-1:-1:-1;;;3922:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;26978:106;27066:10;26978:106;:::o;6117:132::-;6175:7;6202:39;6206:1;6209;6202:39;;;;;;;;;;;;;;;;;:3;:39::i;15383:205::-;15511:68;;;-1:-1:-1;;;;;15511:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15511:68:0;-1:-1:-1;;;15511:68:0;;;15484:96;;15504:5;;15484:19;:96::i;:::-;15383:205;;;;:::o;42969:364::-;43119:31;43153:28;:26;:28::i;:::-;43119:62;-1:-1:-1;43119:62:0;43194:129;43241:2;43236:1;:7;43194:129;;43290:21;;43265:19;43285:1;43265:22;;;;;;;;:46;43245:3;;43194:129;;15198:177;15308:58;;;-1:-1:-1;;;;;15308:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15308:58:0;-1:-1:-1;;;15308:58:0;;;15281:86;;15301:5;;15281:19;:86::i;:::-;15198:177;;;:::o;4719:192::-;4805:7;4841:12;4833:6;;;;4825:29;;;;-1:-1:-1;;;4825:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4877:5:0;;;4719:192::o;6745:278::-;6831:7;6866:12;6859:5;6851:28;;;;-1:-1:-1;;;6851:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6890:9;6906:1;6902;:5;;;;;;;6745:278;-1:-1:-1;;;;;6745:278:0:o;17503:761::-;17927:23;17953:69;17981:4;17953:69;;;;;;;;;;;;;;;;;17961:5;-1:-1:-1;;;;;17953:27:0;;;:69;;;;;:::i;:::-;18037:17;;17927:95;;-1:-1:-1;18037:21:0;18033:224;;18179:10;18168:30;;;;;;;;;;;;;;;-1:-1:-1;18168:30:0;18160:85;;;;-1:-1:-1;;;18160:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12167:196;12270:12;12302:53;12325:6;12333:4;12339:1;12342:12;12302:22;:53::i;:::-;12295:60;12167:196;-1:-1:-1;;;;12167:196:0:o;13544:979::-;13674:12;13707:18;13718:6;13707:10;:18::i;:::-;13699:60;;;;;-1:-1:-1;;;13699:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13833:12;13847:23;13874:6;-1:-1:-1;;;;;13874:11:0;13894:8;13905:4;13874:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13874:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13832:78;;;;13925:7;13921:595;;;13956:10;-1:-1:-1;13949:17:0;;-1:-1:-1;13949:17:0;13921:595;14070:17;;:21;14066:439;;14333:10;14327:17;14394:15;14381:10;14377:2;14373:19;14366:44;14281:148;14469:20;;-1:-1:-1;;;14469:20:0;;;;;;;;;;;;;;;;;14476:12;;14469:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9052:619;9112:4;9580:20;;9423:66;9620:23;;;;;;:42;;-1:-1:-1;;9647:15:0;;;9612:51;-1:-1:-1;;9052:619:0:o
Swarm Source
ipfs://2b17e69b9ee0313bcc3517c52b896aa59e3c9e8c35c6b9ca92a6424d9d991197
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.032938 | 7,474 | $246.18 |
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.