My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0x753e90a984a18a0fe72f76a1edc3cc27b41a6c10eb563ed49220c6d207819700 | 36638246 | 292 days 3 hrs ago | Rubik Finance: Deployer | Contract Creation | 0 FTM |
[ Download CSV Export ]
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
RshareRewardPool
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at FtmScan.com on 2022-04-21 */ // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File @openzeppelin/contracts/math/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } // File @openzeppelin/contracts/utils/[email protected] pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/[email protected] pragma solidity >=0.6.0 <0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File contracts/distribution/RshareRewardPool.sol pragma solidity 0.6.12; // Note that this pool has no minter key of rshare (rewards). // Instead, the governance will call rshare distributeReward method and send reward to this pool at the beginning. contract RshareRewardPool { using SafeMath for uint256; using SafeERC20 for IERC20; // governance address public operator; address public daoFund; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. } // Info of each pool. struct PoolInfo { IERC20 token; // Address of LP token contract. uint256 allocPoint; // How many allocation points assigned to this pool. Rshare to distribute per block. uint256 lastRewardTime; // Last time that rshare distribution occurs. uint256 accRsharePerShare; // Accumulated rshare per share, times 1e18. See below. bool isStarted; // if lastRewardTime has passed uint256 fee; } IERC20 public rshare; // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; // The time when rshare mining starts. uint256 public poolStartTime; // The time when rshare mining ends. uint256 public poolEndTime; uint256 public rsharePerSecond = 0.0417283 ether; // 60000 rshare / (150 days * 24h * 60min * 60s) uint256 public runningTime = 150 days; // 150 days uint256 public constant TOTAL_REWARDS = 60000 ether; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); event RewardPaid(address indexed user, uint256 amount); constructor( address _rshare, uint256 _poolStartTime, address _daoFund ) public { require(block.timestamp < _poolStartTime, "late"); if (_rshare != address(0)) rshare = IERC20(_rshare); poolStartTime = _poolStartTime; poolEndTime = poolStartTime + runningTime; operator = msg.sender; daoFund = _daoFund; } modifier onlyOperator() { require(operator == msg.sender, "RshareRewardPool: caller is not the operator"); _; } function checkPoolDuplicate(IERC20 _token) internal view { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { require(poolInfo[pid].token != _token, "RshareRewardPool: existing pool?"); } } // Add a new lp to the pool. Can only be called by the owner. function add( uint256 _allocPoint, IERC20 _token, bool _withUpdate, uint256 _lastRewardTime, uint256 _fee ) public onlyOperator { require(_fee <= 100, "Fee must be less than or equal to 1%"); checkPoolDuplicate(_token); if (_withUpdate) { massUpdatePools(); } if (block.timestamp < poolStartTime) { // chef is sleeping if (_lastRewardTime == 0) { _lastRewardTime = poolStartTime; } else { if (_lastRewardTime < poolStartTime) { _lastRewardTime = poolStartTime; } } } else { // chef is cooking if (_lastRewardTime == 0 || _lastRewardTime < block.timestamp) { _lastRewardTime = block.timestamp; } } bool _isStarted = (_lastRewardTime <= poolStartTime) || (_lastRewardTime <= block.timestamp); poolInfo.push(PoolInfo({ token : _token, allocPoint : _allocPoint, lastRewardTime : _lastRewardTime, accRsharePerShare : 0, isStarted : _isStarted, fee: _fee })); if (_isStarted) { totalAllocPoint = totalAllocPoint.add(_allocPoint); } } // Update the given pool's rshare allocation point. Can only be called by the owner. function set(uint256 _pid, uint256 _allocPoint, uint256 _fee) public onlyOperator { require(_fee <= 100, "Fee must be less than or equal to 1%"); massUpdatePools(); PoolInfo storage pool = poolInfo[_pid]; if (pool.isStarted) { totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add( _allocPoint ); } pool.fee = _fee; pool.allocPoint = _allocPoint; } // Return accumulate rewards over the given _from to _to block. function getGeneratedReward(uint256 _fromTime, uint256 _toTime) public view returns (uint256) { if (_fromTime >= _toTime) return 0; if (_toTime >= poolEndTime) { if (_fromTime >= poolEndTime) return 0; if (_fromTime <= poolStartTime) return poolEndTime.sub(poolStartTime).mul(rsharePerSecond); return poolEndTime.sub(_fromTime).mul(rsharePerSecond); } else { if (_toTime <= poolStartTime) return 0; if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(rsharePerSecond); return _toTime.sub(_fromTime).mul(rsharePerSecond); } } // View function to see pending Rshare on frontend. function pendingShare(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accRsharePerShare = pool.accRsharePerShare; uint256 tokenSupply = pool.token.balanceOf(address(this)); if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) { uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp); uint256 _rshareReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint); accRsharePerShare = accRsharePerShare.add(_rshareReward.mul(1e18).div(tokenSupply)); } return user.amount.mul(accRsharePerShare).div(1e18).sub(user.rewardDebt); } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.timestamp <= pool.lastRewardTime) { return; } uint256 tokenSupply = pool.token.balanceOf(address(this)); if (tokenSupply == 0) { pool.lastRewardTime = block.timestamp; return; } if (!pool.isStarted) { pool.isStarted = true; totalAllocPoint = totalAllocPoint.add(pool.allocPoint); } if (totalAllocPoint > 0) { uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp); uint256 _rshareReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint); pool.accRsharePerShare = pool.accRsharePerShare.add(_rshareReward.mul(1e18).div(tokenSupply)); } pool.lastRewardTime = block.timestamp; } // Deposit LP tokens. function deposit(uint256 _pid, uint256 _amount) public { address _sender = msg.sender; PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_sender]; updatePool(_pid); if (user.amount > 0) { uint256 _pending = user.amount.mul(pool.accRsharePerShare).div(1e18).sub(user.rewardDebt); if (_pending > 0) { safeRshareTransfer(_sender, _pending); emit RewardPaid(_sender, _pending); } } if (_amount > 0) { uint256 fee = _amount.mul(pool.fee).div(10000); pool.token.safeTransferFrom(_sender, address(this), _amount); if (fee > 0) { pool.token.transfer(daoFund, fee); } user.amount = user.amount.add(_amount - fee); } user.rewardDebt = user.amount.mul(pool.accRsharePerShare).div(1e18); emit Deposit(_sender, _pid, _amount); } // Withdraw LP tokens. function withdraw(uint256 _pid, uint256 _amount) public { address _sender = msg.sender; PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 _pending = user.amount.mul(pool.accRsharePerShare).div(1e18).sub(user.rewardDebt); if (_pending > 0) { safeRshareTransfer(_sender, _pending); emit RewardPaid(_sender, _pending); } if (_amount > 0) { user.amount = user.amount.sub(_amount); pool.token.safeTransfer(_sender, _amount); } user.rewardDebt = user.amount.mul(pool.accRsharePerShare).div(1e18); emit Withdraw(_sender, _pid, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; uint256 _amount = user.amount; user.amount = 0; user.rewardDebt = 0; pool.token.safeTransfer(msg.sender, _amount); emit EmergencyWithdraw(msg.sender, _pid, _amount); } // Safe rshare transfer function, just in case if rounding error causes pool to not have enough rshare. function safeRshareTransfer(address _to, uint256 _amount) internal { uint256 _rshareBal = rshare.balanceOf(address(this)); if (_rshareBal > 0) { if (_amount > _rshareBal) { rshare.safeTransfer(_to, _rshareBal); } else { rshare.safeTransfer(_to, _amount); } } } function setOperator(address _operator) external onlyOperator { operator = _operator; } function governanceRecoverUnsupported(IERC20 _token, uint256 amount, address to) external onlyOperator { if (block.timestamp < poolEndTime + 90 days) { // do not allow to drain core token (rshare or lps) if less than 90 days after pool ends require(_token != rshare, "rshare"); uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { PoolInfo storage pool = poolInfo[pid]; require(_token != pool.token, "pool.token"); } } _token.safeTransfer(to, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_rshare","type":"address"},{"internalType":"uint256","name":"_poolStartTime","type":"uint256"},{"internalType":"address","name":"_daoFund","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"TOTAL_REWARDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"daoFund","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTime","type":"uint256"},{"internalType":"uint256","name":"_toTime","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accRsharePerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"},{"internalType":"uint256","name":"fee","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rshare","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rsharePerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"runningTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600060055566943faaf294b80060085562c5c10060095534801561002757600080fd5b50604051611a4c380380611a4c8339818101604052606081101561004a57600080fd5b5080516020820151604090920151909190428211610098576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b038316156100c357600280546001600160a01b0319166001600160a01b0385161790555b6006829055600954909101600755600080546001600160a01b03199081163317909155600180546001600160a01b0393909316929091169190911790555061193c806101106000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c80635d60e176116100b85780638d934f741161007c5780638d934f741461033257806393f1a40b1461033a578063943f013d1461037f578063b3ab15fb14610387578063cf4b55cb146103ad578063e2bbb158146103d957610142565b80635d60e176146102d25780635f96dc11146102da57806362e006c7146102e2578063630b5ba1146103225780636e271dd51461032a57610142565b806343b0e8df1161010a57806343b0e8df146101f0578063441a3e701461021b57806351eb05a61461023e5780635312ea8e1461025b57806354575af414610278578063570ca735146102ae57610142565b806309cf6091146101475780631526fe271461016157806317caf6f1146101bd5780631b3cbfdf146101c5578063231f0c6a146101cd575b600080fd5b61014f6103fc565b60408051918252519081900360200190f35b61017e6004803603602081101561017757600080fd5b503561040a565b604080516001600160a01b03909716875260208701959095528585019390935260608501919091521515608084015260a0830152519081900360c00190f35b61014f61045d565b61014f610463565b61014f600480360360408110156101e357600080fd5b5080359060200135610469565b6102196004803603606081101561020657600080fd5b508035906020810135906040013561052e565b005b6102196004803603604081101561023157600080fd5b5080359060200135610624565b6102196004803603602081101561025457600080fd5b50356107e1565b6102196004803603602081101561027157600080fd5b503561093f565b6102196004803603606081101561028e57600080fd5b506001600160a01b038135811691602081013591604090910135166109db565b6102b6610b23565b604080516001600160a01b039092168252519081900360200190f35b6102b6610b32565b61014f610b41565b610219600480360360a08110156102f857600080fd5b508035906001600160a01b0360208201351690604081013515159060608101359060800135610b47565b610219610db4565b61014f610dd7565b6102b6610ddd565b6103666004803603604081101561035057600080fd5b50803590602001356001600160a01b0316610dec565b6040805192835260208301919091528051918290030190f35b61014f610e10565b6102196004803603602081101561039d57600080fd5b50356001600160a01b0316610e16565b61014f600480360360408110156103c357600080fd5b50803590602001356001600160a01b0316610e81565b610219600480360360408110156103ef57600080fd5b5080359060200135610fe2565b690cb49b44ba602d80000081565b6003818154811061041757fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909260ff9091169086565b60055481565b60085481565b600081831061047a57506000610528565b60075482106104e257600754831061049457506000610528565b60065483116104c7576104c06008546104ba60065460075461120290919063ffffffff16565b9061125f565b9050610528565b6104c06008546104ba8560075461120290919063ffffffff16565b60065482116104f357506000610528565b6006548311610517576104c06008546104ba6006548561120290919063ffffffff16565b6008546104c0906104ba8486611202565b92915050565b6000546001600160a01b031633146105775760405162461bcd60e51b815260040180806020018281038252602c8152602001806118b1602c913960400191505060405180910390fd5b60648111156105b75760405162461bcd60e51b815260040180806020018281038252602481526020018061188d6024913960400191505060405180910390fd5b6105bf610db4565b6000600384815481106105ce57fe5b60009182526020909120600690910201600481015490915060ff1615610615576106118361060b836001015460055461120290919063ffffffff16565b906112bf565b6005555b60058101919091556001015550565b600033905060006003848154811061063857fe5b600091825260208083208784526004825260408085206001600160a01b038816865290925292208054600690920290920192508411156106b4576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6106bd856107e1565b60006106fa82600101546106f4670de0b6b3a76400006106ee8760030154876000015461125f90919063ffffffff16565b90611319565b90611202565b9050801561074c5761070c8482611380565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b841561077657815461075e9086611202565b82558254610776906001600160a01b03168587611436565b6003830154825461079491670de0b6b3a7640000916106ee9161125f565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b6000600382815481106107f057fe5b9060005260206000209060060201905080600201544211610811575061093c565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561085b57600080fd5b505afa15801561086f573d6000803e3d6000fd5b505050506040513d602081101561088557600080fd5b505190508061089b57504260029091015561093c565b600482015460ff166108cc5760048201805460ff191660019081179091558201546005546108c8916112bf565b6005555b600554156109335760006108e4836002015442610469565b905060006109056005546106ee86600101548561125f90919063ffffffff16565b905061092b610920846106ee84670de0b6b3a764000061125f565b6003860154906112bf565b600385015550505b50426002909101555b50565b60006003828154811061094e57fe5b60009182526020808320858452600482526040808520338087529352842080548582556001820195909555600690930201805490945091929161099e916001600160a01b03919091169083611436565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b03163314610a245760405162461bcd60e51b815260040180806020018281038252602c8152602001806118b1602c913960400191505060405180910390fd5b6007546276a70001421015610b0a576002546001600160a01b0384811691161415610a7f576040805162461bcd60e51b815260206004820152600660248201526572736861726560d01b604482015290519081900360640190fd5b60035460005b81811015610b0757600060038281548110610a9c57fe5b6000918252602090912060069091020180549091506001600160a01b0387811691161415610afe576040805162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015290519081900360640190fd5b50600101610a85565b50505b610b1e6001600160a01b0384168284611436565b505050565b6000546001600160a01b031681565b6002546001600160a01b031681565b60065481565b6000546001600160a01b03163314610b905760405162461bcd60e51b815260040180806020018281038252602c8152602001806118b1602c913960400191505060405180910390fd5b6064811115610bd05760405162461bcd60e51b815260040180806020018281038252602481526020018061188d6024913960400191505060405180910390fd5b610bd984611488565b8215610be757610be7610db4565b600654421015610c155781610c00576006549150610c10565b600654821015610c105760065491505b610c2a565b811580610c2157504282105b15610c2a574291505b600060065483111580610c3d5750428311155b6040805160c0810182526001600160a01b038881168252602082018a8152928201878152600060608401818152861580156080870190815260a087018b815260038054600181018255955296517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600690950294850180546001600160a01b031916919097161790955595517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c83015591517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d82015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e82015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f8201805460ff191691151591909117905590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f86090910155909150610dac57600554610da890876112bf565b6005555b505050505050565b60035460005b81811015610dd357610dcb816107e1565b600101610dba565b5050565b60075481565b6001546001600160a01b031681565b60046020908152600092835260408084209091529082529020805460019091015482565b60095481565b6000546001600160a01b03163314610e5f5760405162461bcd60e51b815260040180806020018281038252602c8152602001806118b1602c913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060038481548110610e9157fe5b60009182526020808320878452600480835260408086206001600160a01b038a811688529085528187206006969096029093016003810154815483516370a0823160e01b81523095810195909552925191985095969491909316926370a08231926024808201939291829003018186803b158015610f0e57600080fd5b505afa158015610f22573d6000803e3d6000fd5b505050506040513d6020811015610f3857600080fd5b5051600285015490915042118015610f4f57508015155b15610fac576000610f64856002015442610469565b90506000610f856005546106ee88600101548561125f90919063ffffffff16565b9050610fa7610fa0846106ee84670de0b6b3a764000061125f565b85906112bf565b935050505b610fd783600101546106f4670de0b6b3a76400006106ee86886000015461125f90919063ffffffff16565b979650505050505050565b6000339050600060038481548110610ff657fe5b600091825260208083208784526004825260408085206001600160a01b0388168652909252922060069091029091019150611030856107e1565b8054156110bc57600061106882600101546106f4670de0b6b3a76400006106ee8760030154876000015461125f90919063ffffffff16565b905080156110ba5761107a8482611380565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b83156111985760006110e16127106106ee85600501548861125f90919063ffffffff16565b83549091506110fb906001600160a01b0316853088611522565b80156111865782546001546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018590529051919092169163a9059cbb9160448083019260209291908290030181600087803b15801561115957600080fd5b505af115801561116d573d6000803e3d6000fd5b505050506040513d602081101561118357600080fd5b50505b8154611194908287036112bf565b8255505b600382015481546111b691670de0b6b3a7640000916106ee9161125f565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b600082821115611259576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008261126e57506000610528565b8282028284828161127b57fe5b04146112b85760405162461bcd60e51b815260040180806020018281038252602181526020018061186c6021913960400191505060405180910390fd5b9392505050565b6000828201838110156112b8576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600080821161136f576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161137857fe5b049392505050565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156113cb57600080fd5b505afa1580156113df573d6000803e3d6000fd5b505050506040513d60208110156113f557600080fd5b505190508015610b1e57808211156114235760025461141e906001600160a01b03168483611436565b610b1e565b600254610b1e906001600160a01b031684845b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b1e908490611582565b60035460005b81811015610b1e57826001600160a01b0316600382815481106114ad57fe5b60009182526020909120600690910201546001600160a01b0316141561151a576040805162461bcd60e51b815260206004820181905260248201527f527368617265526577617264506f6f6c3a206578697374696e6720706f6f6c3f604482015290519081900360640190fd5b60010161148e565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261157c908590611582565b50505050565b60606115d7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116339092919063ffffffff16565b805190915015610b1e578080602001905160208110156115f657600080fd5b5051610b1e5760405162461bcd60e51b815260040180806020018281038252602a8152602001806118dd602a913960400191505060405180910390fd5b6060611642848460008561164a565b949350505050565b60608247101561168b5760405162461bcd60e51b81526004018080602001828103825260268152602001806118466026913960400191505060405180910390fd5b6116948561179b565b6116e5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106117245780518252601f199092019160209182019101611705565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611786576040519150601f19603f3d011682016040523d82523d6000602084013e61178b565b606091505b5091509150610fd78282866117a1565b3b151590565b606083156117b05750816112b8565b8251156117c05782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561180a5781810151838201526020016117f2565b50505050905090810190601f1680156118375780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77466565206d757374206265206c657373207468616e206f7220657175616c20746f203125527368617265526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220be807f03b7e6ace213822e9dbfe866fb2488b74c5568dd22d0517573fa1fbc4a64736f6c634300060c0033000000000000000000000000f619d97e6ab59e0b51a2154ba244d2e8157223fe0000000000000000000000000000000000000000000000000000000062680b48000000000000000000000000fa1dcf8369ff71afe0fc2b57e1d103ab931766c7
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000f619d97e6ab59e0b51a2154ba244d2e8157223fe0000000000000000000000000000000000000000000000000000000062680b48000000000000000000000000fa1dcf8369ff71afe0fc2b57e1d103ab931766c7
-----Decoded View---------------
Arg [0] : _rshare (address): 0xf619d97e6ab59e0b51a2154ba244d2e8157223fe
Arg [1] : _poolStartTime (uint256): 1650985800
Arg [2] : _daoFund (address): 0xfa1dcf8369ff71afe0fc2b57e1d103ab931766c7
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000f619d97e6ab59e0b51a2154ba244d2e8157223fe
Arg [1] : 0000000000000000000000000000000000000000000000000000000062680b48
Arg [2] : 000000000000000000000000fa1dcf8369ff71afe0fc2b57e1d103ab931766c7
Deployed ByteCode Sourcemap
22312:11130:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23839:51;;;:::i;:::-;;;;;;;;;;;;;;;;23225:26;;;;;;;;;;;;;;;;-1:-1:-1;23225:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;23225:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23478:34;;;:::i;23679:48::-;;;:::i;27134:661::-;;;;;;;;;;;;;;;;-1:-1:-1;27134:661:0;;;;;;;:::i;26593:464::-;;;;;;;;;;;;;;;;-1:-1:-1;26593:464:0;;;;;;;;;;;;:::i;:::-;;30966:816;;;;;;;;;;;;;;;;-1:-1:-1;30966:816:0;;;;;;;:::i;28985:916::-;;;;;;;;;;;;;;;;-1:-1:-1;28985:916:0;;:::i;31853:377::-;;;;;;;;;;;;;;;;-1:-1:-1;31853:377:0;;:::i;32829:610::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;32829:610:0;;;;;;;;;;;;;;;;;:::i;22432:23::-;;;:::i;:::-;;;;-1:-1:-1;;;;;22432:23:0;;;;;;;;;;;;;;23169:20;;;:::i;23565:28::-;;;:::i;25099:1396::-;;;;;;;;;;;;;;;;-1:-1:-1;25099:1396:0;;;-1:-1:-1;;;;;25099:1396:0;;;;;;;;;;;;;;;;;;;;;;:::i;28729:180::-;;;:::i;23644:26::-;;;:::i;22462:22::-;;;:::i;23317:64::-;;;;;;;;;;;;;;;;-1:-1:-1;23317:64:0;;;;;;-1:-1:-1;;;;;23317:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23783:37;;;:::i;32720:101::-;;;;;;;;;;;;;;;;-1:-1:-1;32720:101:0;-1:-1:-1;;;;;32720:101:0;;:::i;27860:786::-;;;;;;;;;;;;;;;;-1:-1:-1;27860:786:0;;;;;;-1:-1:-1;;;;;27860:786:0;;:::i;29936:994::-;;;;;;;;;;;;;;;;-1:-1:-1;29936:994:0;;;;;;;:::i;23839:51::-;23879:11;23839:51;:::o;23225:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23225:26:0;;;;-1:-1:-1;23225:26:0;;;;;;;;;;:::o;23478:34::-;;;;:::o;23679:48::-;;;;:::o;27134:661::-;27219:7;27256;27243:9;:20;27239:34;;-1:-1:-1;27272:1:0;27265:8;;27239:34;27299:11;;27288:7;:22;27284:504;;27344:11;;27331:9;:24;27327:38;;-1:-1:-1;27364:1:0;27357:8;;27327:38;27397:13;;27384:9;:26;27380:90;;27419:51;27454:15;;27419:30;27435:13;;27419:11;;:15;;:30;;;;:::i;:::-;:34;;:51::i;:::-;27412:58;;;;27380:90;27492:47;27523:15;;27492:26;27508:9;27492:11;;:15;;:26;;;;:::i;27284:504::-;27587:13;;27576:7;:24;27572:38;;-1:-1:-1;27609:1:0;27602:8;;27572:38;27642:13;;27629:9;:26;27625:86;;27664:47;27695:15;;27664:26;27676:13;;27664:7;:11;;:26;;;;:::i;27625:86::-;27760:15;;27733:43;;:22;:7;27745:9;27733:11;:22::i;27284:504::-;27134:661;;;;:::o;26593:464::-;24663:8;;-1:-1:-1;;;;;24663:8:0;24675:10;24663:22;24655:79;;;;-1:-1:-1;;;24655:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26702:3:::1;26694:4;:11;;26686:60;;;;-1:-1:-1::0;;;26686:60:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26757:17;:15;:17::i;:::-;26785:21;26809:8;26818:4;26809:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;26838;::::0;::::1;::::0;26809;;-1:-1:-1;26838:14:0::1;;26834:150;;;26887:85;26946:11;26887:36;26907:4;:15;;;26887;;:19;;:36;;;;:::i;:::-;:40:::0;::::1;:85::i;:::-;26869:15;:103:::0;26834:150:::1;26994:8;::::0;::::1;:15:::0;;;;27020::::1;;:29:::0;-1:-1:-1;26593:464:0:o;30966:816::-;31033:15;31051:10;31033:28;;31072:21;31096:8;31105:4;31096:14;;;;;;;;;;;;;;;;31145;;;:8;:14;;;;;;-1:-1:-1;;;;;31145:23:0;;;;;;;;;31187:11;;31096:14;;;;;;;;-1:-1:-1;31187:22:0;-1:-1:-1;31187:22:0;31179:53;;;;;-1:-1:-1;;;31179:53:0;;;;;;;;;;;;-1:-1:-1;;;31179:53:0;;;;;;;;;;;;;;;31243:16;31254:4;31243:10;:16::i;:::-;31270;31289:70;31343:4;:15;;;31289:49;31333:4;31289:39;31305:4;:22;;;31289:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49::i;:::-;:53;;:70::i;:::-;31270:89;-1:-1:-1;31374:12:0;;31370:131;;31403:37;31422:7;31431:8;31403:18;:37::i;:::-;31460:29;;;;;;;;-1:-1:-1;;;;;31460:29:0;;;;;;;;;;;;;31370:131;31515:11;;31511:138;;31557:11;;:24;;31573:7;31557:15;:24::i;:::-;31543:38;;31596:10;;:41;;-1:-1:-1;;;;;31596:10:0;31620:7;31629;31596:23;:41::i;:::-;31693:22;;;;31677:11;;:49;;31721:4;;31677:39;;:15;:39::i;:49::-;31659:15;;;:67;31742:32;;;;;;;;31760:4;;-1:-1:-1;;;;;31742:32:0;;;;;;;;;;;;30966:816;;;;;;:::o;28985:916::-;29037:21;29061:8;29070:4;29061:14;;;;;;;;;;;;;;;;;;29037:38;;29109:4;:19;;;29090:15;:38;29086:77;;29145:7;;;29086:77;29195:10;;:35;;;-1:-1:-1;;;29195:35:0;;29224:4;29195:35;;;;;;29173:19;;-1:-1:-1;;;;;29195:10:0;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29195:35:0;;-1:-1:-1;29245:16:0;29241:107;;-1:-1:-1;29300:15:0;29278:19;;;;:37;29330:7;;29241:107;29363:14;;;;;;29358:138;;29394:14;;;:21;;-1:-1:-1;;29394:21:0;29411:4;29394:21;;;;;;29468:15;;;29448;;:36;;:19;:36::i;:::-;29430:15;:54;29358:138;29510:15;;:19;29506:340;;29546:24;29573:56;29592:4;:19;;;29613:15;29573:18;:56::i;:::-;29546:83;;29644:21;29668:58;29710:15;;29668:37;29689:4;:15;;;29668:16;:20;;:37;;;;:::i;:58::-;29644:82;-1:-1:-1;29766:68:0;29793:40;29821:11;29793:23;29644:82;29811:4;29793:17;:23::i;:40::-;29766:22;;;;;:26;:68::i;:::-;29741:22;;;:93;-1:-1:-1;;29506:340:0;-1:-1:-1;29878:15:0;29856:19;;;;:37;28985:916;;:::o;31853:377::-;31912:21;31936:8;31945:4;31936:14;;;;;;;;;;;;;;;;31985;;;:8;:14;;;;;;32000:10;31985:26;;;;;;;32040:11;;32062:15;;;-1:-1:-1;32088:15:0;;:19;;;;31936:14;;;;;32118:10;;31936:14;;-1:-1:-1;31985:26:0;;32040:11;32118:44;;-1:-1:-1;;;;;32118:10:0;;;;;32040:11;32118:23;:44::i;:::-;32178;;;;;;;;32208:4;;32196:10;;32178:44;;;;;;;;;31853:377;;;;:::o;32829:610::-;24663:8;;-1:-1:-1;;;;;24663:8:0;24675:10;24663:22;24655:79;;;;-1:-1:-1;;;24655:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32965:11:::1;;32979:7;32965:21;32947:15;:39;32943:447;;;33123:6;::::0;-1:-1:-1;;;;;33113:16:0;;::::1;33123:6:::0;::::1;33113:16;;33105:35;;;::::0;;-1:-1:-1;;;33105:35:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;33105:35:0;;;;;;;;;;;;;::::1;;33172:8;:15:::0;33155:14:::1;33202:177;33230:6;33224:3;:12;33202:177;;;33264:21;33288:8;33297:3;33288:13;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;33338:10:::0;;33288:13;;-1:-1:-1;;;;;;33328:20:0;;::::1;33338:10:::0;::::1;33328:20;;33320:43;;;::::0;;-1:-1:-1;;;33320:43:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;33320:43:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;33238:5:0::1;;33202:177;;;;32943:447;;33400:31;-1:-1:-1::0;;;;;33400:19:0;::::1;33420:2:::0;33424:6;33400:19:::1;:31::i;:::-;32829:610:::0;;;:::o;22432:23::-;;;-1:-1:-1;;;;;22432:23:0;;:::o;23169:20::-;;;-1:-1:-1;;;;;23169:20:0;;:::o;23565:28::-;;;;:::o;25099:1396::-;24663:8;;-1:-1:-1;;;;;24663:8:0;24675:10;24663:22;24655:79;;;;-1:-1:-1;;;24655:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25304:3:::1;25296:4;:11;;25288:60;;;;-1:-1:-1::0;;;25288:60:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25359:26;25378:6;25359:18;:26::i;:::-;25400:11;25396:61;;;25428:17;:15;:17::i;:::-;25489:13;;25471:15;:31;25467:534;;;25556:20:::0;25552:243:::1;;25615:13;;25597:31;;25552:243;;;25691:13;;25673:15;:31;25669:111;;;25747:13;;25729:31;;25669:111;25467:534;;;25863:20:::0;;;:57:::1;;;25905:15;25887;:33;25863:57;25859:131;;;25959:15;25941:33;;25859:131;26011:15;26058:13;;26039:15;:32;;26038:83;;;;26105:15;26086;:34;;26038:83;26146:237;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;26146:237:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;26146:237:0;;;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;26132:8:::1;:252:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;26132:252:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;26132:252:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;;;;;;;26146:237;;-1:-1:-1;26395:93:0::1;;26444:15;::::0;:32:::1;::::0;26464:11;26444:19:::1;:32::i;:::-;26426:15;:50:::0;26395:93:::1;24745:1;25099:1396:::0;;;;;:::o;28729:180::-;28791:8;:15;28774:14;28817:85;28845:6;28839:3;:12;28817:85;;;28875:15;28886:3;28875:10;:15::i;:::-;28853:5;;28817:85;;;;28729:180;:::o;23644:26::-;;;;:::o;22462:22::-;;;-1:-1:-1;;;;;22462:22:0;;:::o;23317:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;23783:37::-;;;;:::o;32720:101::-;24663:8;;-1:-1:-1;;;;;24663:8:0;24675:10;24663:22;24655:79;;;;-1:-1:-1;;;24655:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32793:8:::1;:20:::0;;-1:-1:-1;;;;;;32793:20:0::1;-1:-1:-1::0;;;;;32793:20:0;;;::::1;::::0;;;::::1;::::0;;32720:101::o;27860:786::-;27934:7;27954:21;27978:8;27987:4;27978:14;;;;;;;;;;;;;;;;28027;;;:8;:14;;;;;;;-1:-1:-1;;;;;28027:21:0;;;;;;;;;;;27978:14;;;;;;;;28087:22;;;;28142:10;;:35;;-1:-1:-1;;;28142:35:0;;28171:4;28142:35;;;;;;;;;27978:14;;-1:-1:-1;28027:21:0;;27978:14;28142:10;;;;;:20;;:35;;;;;27978:14;28142:35;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28142:35:0;28210:19;;;;28142:35;;-1:-1:-1;28192:15:0;:37;:57;;;;-1:-1:-1;28233:16:0;;;28192:57;28188:368;;;28266:24;28293:56;28312:4;:19;;;28333:15;28293:18;:56::i;:::-;28266:83;;28364:21;28388:58;28430:15;;28388:37;28409:4;:15;;;28388:16;:20;;:37;;;;:::i;:58::-;28364:82;-1:-1:-1;28481:63:0;28503:40;28531:11;28503:23;28364:82;28521:4;28503:17;:23::i;:40::-;28481:17;;:21;:63::i;:::-;28461:83;;28188:368;;;28573:65;28622:4;:15;;;28573:44;28612:4;28573:34;28589:17;28573:4;:11;;;:15;;:34;;;;:::i;:65::-;28566:72;27860:786;-1:-1:-1;;;;;;;27860:786:0:o;29936:994::-;30002:15;30020:10;30002:28;;30041:21;30065:8;30074:4;30065:14;;;;;;;;;;;;;;;;30114;;;:8;:14;;;;;;-1:-1:-1;;;;;30114:23:0;;;;;;;;;30065:14;;;;;;;;-1:-1:-1;30148:16:0;30123:4;30148:10;:16::i;:::-;30179:11;;:15;30175:294;;30211:16;30230:70;30284:4;:15;;;30230:49;30274:4;30230:39;30246:4;:22;;;30230:4;:11;;;:15;;:39;;;;:::i;:70::-;30211:89;-1:-1:-1;30319:12:0;;30315:143;;30352:37;30371:7;30380:8;30352:18;:37::i;:::-;30413:29;;;;;;;;-1:-1:-1;;;;;30413:29:0;;;;;;;;;;;;;30315:143;30175:294;;30483:11;;30479:319;;30511:11;30525:32;30551:5;30525:21;30537:4;:8;;;30525:7;:11;;:21;;;;:::i;:32::-;30572:10;;30511:46;;-1:-1:-1;30572:60:0;;-1:-1:-1;;;;;30572:10:0;30600:7;30617:4;30624:7;30572:27;:60::i;:::-;30651:7;;30647:81;;30679:10;;;30699:7;30679:33;;;-1:-1:-1;;;30679:33:0;;-1:-1:-1;;;;;30699:7:0;;;30679:33;;;;;;;;;;;;:10;;;;;:19;;:33;;;;;;;;;;;;;;:10;;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;30647:81:0;30756:11;;:30;;30772:13;;;30756:15;:30::i;:::-;30742:44;;-1:-1:-1;30479:319:0;30842:22;;;;30826:11;;:49;;30870:4;;30826:39;;:15;:39::i;:49::-;30808:15;;;:67;30891:31;;;;;;;;30908:4;;-1:-1:-1;;;;;30891:31:0;;;;;;;;;;;;29936:994;;;;;:::o;6050:158::-;6108:7;6141:1;6136;:6;;6128:49;;;;;-1:-1:-1;;;6128:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6195:5:0;;;6050:158::o;6467:220::-;6525:7;6549:6;6545:20;;-1:-1:-1;6564:1:0;6557:8;;6545:20;6588:5;;;6592:1;6588;:5;:1;6612:5;;;;;:10;6604:56;;;;-1:-1:-1;;;6604:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6678:1;6467:220;-1:-1:-1;;;6467:220:0:o;5588:179::-;5646:7;5678:5;;;5702:6;;;;5694:46;;;;;-1:-1:-1;;;5694:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;7165:153;7223:7;7255:1;7251;:5;7243:44;;;;;-1:-1:-1;;;7243:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7309:1;7305;:5;;;;;;;7165:153;-1:-1:-1;;;7165:153:0:o;32347:365::-;32446:6;;:31;;;-1:-1:-1;;;32446:31:0;;32471:4;32446:31;;;;;;32425:18;;-1:-1:-1;;;;;32446:6:0;;:16;;:31;;;;;;;;;;;;;;:6;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32446:31:0;;-1:-1:-1;32492:14:0;;32488:217;;32537:10;32527:7;:20;32523:171;;;32568:6;;:36;;-1:-1:-1;;;;;32568:6:0;32588:3;32593:10;32568:19;:36::i;:::-;32523:171;;;32645:6;;:33;;-1:-1:-1;;;;;32645:6:0;32665:3;32670:7;18968:177;19078:58;;;-1:-1:-1;;;;;19078:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19078:58:0;-1:-1:-1;;;19078:58:0;;;19051:86;;19071:5;;19051:19;:86::i;24762:262::-;24847:8;:15;24830:14;24873:144;24901:6;24895:3;:12;24873:144;;;24962:6;-1:-1:-1;;;;;24939:29:0;:8;24948:3;24939:13;;;;;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;;;;24939:19:0;:29;;24931:74;;;;;-1:-1:-1;;;24931:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24909:5;;24873:144;;19153:205;19281:68;;;-1:-1:-1;;;;;19281:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19281:68:0;-1:-1:-1;;;19281:68:0;;;19254:96;;19274:5;;19254:19;:96::i;:::-;19153:205;;;;:::o;21273:761::-;21697:23;21723:69;21751:4;21723:69;;;;;;;;;;;;;;;;;21731:5;-1:-1:-1;;;;;21723:27:0;;;:69;;;;;:::i;:::-;21807:17;;21697:95;;-1:-1:-1;21807:21:0;21803:224;;21949:10;21938:30;;;;;;;;;;;;;;;-1:-1:-1;21938:30:0;21930:85;;;;-1:-1:-1;;;21930:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13955:195;14058:12;14090:52;14112:6;14120:4;14126:1;14129:12;14090:21;:52::i;:::-;14083:59;13955:195;-1:-1:-1;;;;13955:195:0:o;15007:530::-;15134:12;15192:5;15167:21;:30;;15159:81;;;;-1:-1:-1;;;15159:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15259:18;15270:6;15259:10;:18::i;:::-;15251:60;;;;;-1:-1:-1;;;15251:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15385:12;15399:23;15426:6;-1:-1:-1;;;;;15426:11:0;15446:5;15454:4;15426:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15426:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15384:75;;;;15477:52;15495:7;15504:10;15516:12;15477:17;:52::i;11037:422::-;11404:20;11443:8;;;11037:422::o;17547:742::-;17662:12;17691:7;17687:595;;;-1:-1:-1;17722:10:0;17715:17;;17687:595;17836:17;;:21;17832:439;;18099:10;18093:17;18160:15;18147:10;18143:2;18139:19;18132:44;18047:148;18242:12;18235:20;;-1:-1:-1;;;18235:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://be807f03b7e6ace213822e9dbfe866fb2488b74c5568dd22d0517573fa1fbc4a
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Validator ID :
0 FTM
Amount Staked
0
Amount Delegated
0
Staking Total
0
Staking Start Epoch
0
Staking Start Time
0
Proof of Importance
0
Origination Score
0
Validation Score
0
Active
0
Online
0
Downtime
0 s
Address | Amount | claimed Rewards | Created On Epoch | Created On |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.