Contract Overview
My Name Tag:
Not Available
[ Download CSV Export ]
Latest 25 internal transaction
[ Download CSV Export ]
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x0583da6ad17b11fe8de5266f1ab6effd1bc32606 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
AChessRewards
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Arbiscan.io on 2021-09-17 */ // Dependency file: @openzeppelin/contracts/token/ERC20/IERC20.sol // 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); } // Dependency file: @openzeppelin/contracts/math/SafeMath.sol // 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; } } // Dependency file: @openzeppelin/contracts/utils/Address.sol // 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); } } } } // Dependency file: @openzeppelin/contracts/token/ERC20/SafeERC20.sol // pragma solidity >=0.6.0 <0.8.0; // import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; // import "@openzeppelin/contracts/math/SafeMath.sol"; // import "@openzeppelin/contracts/utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // 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"); } } } // Dependency file: @openzeppelin/contracts/utils/Context.sol // pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // Dependency file: @openzeppelin/contracts/access/Ownable.sol // pragma solidity >=0.6.0 <0.8.0; // import "@openzeppelin/contracts/utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // Dependency file: @openzeppelin/contracts/utils/ReentrancyGuard.sol // pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // Dependency file: contracts/StakedTokenWrapper.sol /** * site: https://arbichess.com */ // pragma solidity >=0.6.0 <0.8.0; contract StakedTokenWrapper { using SafeMath for uint256; using SafeERC20 for IERC20; uint256 public totalSupply; mapping(address => uint256) private _balances; IERC20 public stakedToken; event Staked(address indexed user, uint256 amount); event Withdrawn(address indexed user, uint256 amount); function balanceOf(address account) public view returns (uint256) { return _balances[account]; } function stakeFor(address forWhom, uint256 amount) public payable virtual { IERC20 st = stakedToken; if (st == IERC20(address(0))) { //eth totalSupply = totalSupply.add(msg.value); _balances[forWhom] = _balances[forWhom].add(msg.value); } else { require(msg.value == 0, 'non-zero eth'); require(amount > 0, 'Cannot stake 0'); st.safeTransferFrom(msg.sender, address(this), amount); totalSupply = totalSupply.add(amount); _balances[forWhom] = _balances[forWhom].add(amount); } emit Staked(forWhom, amount); } function withdraw(uint256 amount) public virtual { require(amount <= _balances[msg.sender], 'withdraw: balance is lower'); _balances[msg.sender] = _balances[msg.sender].sub(amount); totalSupply = totalSupply.sub(amount); IERC20 st = stakedToken; if (st == IERC20(address(0))) { // //eth msg.sender.transfer(amount); } else { stakedToken.safeTransfer(msg.sender, amount); } emit Withdrawn(msg.sender, amount); } } // Root file: contracts/AChessRewards.sol /** * site: https://arbichess.com */ pragma solidity >=0.6.10 <0.8.0; contract AChessRewards is StakedTokenWrapper, Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeERC20 for IERC20; IERC20 public rewardToken; uint256 public rewardRate; uint256 public periodFinish; uint256 public lastUpdateTime; uint256 public rewardPerTokenStored; uint256 public immutable startTime = 1640376000; // 2021-12-24T20:00:00 UTC uint256 public immutable endTime = 1703448000; // 2023-12-24T20:00:00 UTC uint256 public immutable vestedAtStartRate = 1e17; // 10%, 10^17 struct UserRewards { uint256 userRewardPerTokenPaid; uint256 rewards; } mapping(address => UserRewards) public userRewards; mapping(address => uint256) public userClaimed; event RewardAdded(uint256 reward); event Claim(address indexed user, uint256 reward); event ClaimedParamsChange(uint256 startTime, uint256 endTime, uint256 vestedAtStartRate); constructor(IERC20 _rewardToken, IERC20 _stakedToken) public { rewardToken = _rewardToken; stakedToken = _stakedToken; } modifier updateReward(address account) { uint256 _rewardPerTokenStored = rewardPerToken(); lastUpdateTime = lastTimeRewardApplicable(); rewardPerTokenStored = _rewardPerTokenStored; userRewards[account].rewards = earned(account); userRewards[account].userRewardPerTokenPaid = _rewardPerTokenStored; _; } function lastTimeRewardApplicable() public view returns (uint256) { uint256 blockTimestamp = uint256(block.timestamp); return blockTimestamp < periodFinish ? blockTimestamp : periodFinish; } function rewardPerToken() public view returns (uint256) { uint256 totalStakedSupply = totalSupply; if (totalStakedSupply == 0) { return rewardPerTokenStored; } uint256 rewardDuration = lastTimeRewardApplicable().sub(lastUpdateTime); return rewardPerTokenStored.add(rewardDuration.mul(rewardRate).mul(1e18).div(totalStakedSupply)); } function earned(address account) public view returns (uint256) { uint256 balance = balanceOf(account); uint256 rewardIndex = rewardPerToken().sub(userRewards[account].userRewardPerTokenPaid); return balance.mul(rewardIndex).div(1e18).add(userRewards[account].rewards); } function stake(uint256 amount) external payable { stakeFor(msg.sender, amount); } function stakeFor(address forWhom, uint256 amount) public payable override updateReward(forWhom) { super.stakeFor(forWhom, amount); } function withdraw(uint256 amount) public override nonReentrant updateReward(msg.sender) { super.withdraw(amount); } function setRewardParams(uint256 reward, uint256 duration) external onlyOwner { require(reward > 0); rewardPerTokenStored = rewardPerToken(); uint256 blockTimestamp = uint256(block.timestamp); uint256 maxRewardSupply = rewardToken.balanceOf(address(this)); if (rewardToken == stakedToken) { maxRewardSupply = maxRewardSupply.sub(totalSupply); } uint256 leftover = 0; if (blockTimestamp >= periodFinish) { rewardRate = reward.div(duration); } else { uint256 remaining = periodFinish.sub(blockTimestamp); leftover = remaining.mul(rewardRate); rewardRate = reward.add(leftover).div(duration); } require(reward.add(leftover) <= maxRewardSupply, 'not enough tokens'); lastUpdateTime = blockTimestamp; periodFinish = blockTimestamp.add(duration); emit RewardAdded(reward); } function withdrawReward() external onlyOwner { uint256 rewardSupply = rewardToken.balanceOf(address(this)); //ensure funds staked by users can't be transferred out if (rewardToken == stakedToken) { rewardSupply = rewardSupply.sub(totalSupply); } rewardToken.safeTransfer(msg.sender, rewardSupply); rewardRate = 0; periodFinish = uint64(block.timestamp); } function claim() external nonReentrant { require(block.timestamp >= startTime, "reward claimed hasn't started yet"); uint256 reward = earned(msg.sender); require(reward > 0, 'you have no reward'); uint256 totalClaimed = userClaimed[msg.sender]; uint256 claimable = _totalVestedOf(block.timestamp, msg.sender).sub(totalClaimed); require(claimable > 0, 'you have no claimable'); require(reward >= totalClaimed.add(claimable), 'you have claimed all reward'); userClaimed[msg.sender] = totalClaimed.add(claimable); rewardToken.safeTransfer(msg.sender, claimable); emit Claim(msg.sender, claimable); } function vestedSupply(address account) external view returns (uint256) { return _totalVestedOf(block.timestamp, account); } function lockedSupply(address account) external view returns (uint256) { uint256 reward = earned(account); return reward.sub(_totalVestedOf(block.timestamp, account)); } function _totalVestedOf(uint256 timestamp, address account) internal view returns (uint256) { uint256 start = startTime; uint256 end = endTime; uint256 locked = earned(account); if (timestamp < start) { return 0; } else if (timestamp > end) { return locked; } uint256 vestedAtStart_ = locked.mul(vestedAtStartRate).div(1e18); return locked.sub(vestedAtStart_).mul(timestamp - start).div(end - start).add(vestedAtStart_); } }
[{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"},{"internalType":"contract IERC20","name":"_stakedToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"vestedAtStartRate","type":"uint256"}],"name":"ClaimedParamsChange","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":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","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":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"lockedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"}],"name":"setRewardParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"forWhom","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stakeFor","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"stakedToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","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":"userClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewards","outputs":[{"internalType":"uint256","name":"userRewardPerTokenPaid","type":"uint256"},{"internalType":"uint256","name":"rewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vestedAtStartRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"vestedSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawReward","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Deployed Bytecode
0x60806040526004361061019b5760003560e01c806380faa57d116100ec578063cb9aaf121161008a578063df136d6511610064578063df136d65146104cf578063ebe2b12b146104e4578063f2fde38b146104f9578063f7c618c11461052c5761019b565b8063cb9aaf1214610472578063cc7a262e146104a5578063cd3daf9d146104ba5761019b565b806396c3bdb9116100c657806396c3bdb9146103f8578063a694fc3a1461042b578063c885bc5814610448578063c8f33c911461045d5761019b565b806380faa57d1461039d57806387fa5ad2146103b25780638da5cb5b146103c75761019b565b80633197cbb61161015957806370a082311161013357806370a082311461032b578063715018a61461035e57806378e97925146103735780637b0a47ee146103885761019b565b80633197cbb6146102ce5780633b7fcdca146102e35780634e71d92d146103165761019b565b80628cc262146101a05780630660f1e8146101e557806318160ddd146102315780631c31e751146102465780632e1a7d4d146102785780632ee40908146102a2575b600080fd5b3480156101ac57600080fd5b506101d3600480360360208110156101c357600080fd5b50356001600160a01b0316610541565b60408051918252519081900360200190f35b3480156101f157600080fd5b506102186004803603602081101561020857600080fd5b50356001600160a01b03166105c9565b6040805192835260208301919091528051918290030190f35b34801561023d57600080fd5b506101d36105e2565b34801561025257600080fd5b506102766004803603604081101561026957600080fd5b50803590602001356105e8565b005b34801561028457600080fd5b506102766004803603602081101561029b57600080fd5b5035610802565b610276600480360360408110156102b857600080fd5b506001600160a01b0381351690602001356108bb565b3480156102da57600080fd5b506101d3610914565b3480156102ef57600080fd5b506101d36004803603602081101561030657600080fd5b50356001600160a01b0316610938565b34801561032257600080fd5b5061027661094a565b34801561033757600080fd5b506101d36004803603602081101561034e57600080fd5b50356001600160a01b0316610ba2565b34801561036a57600080fd5b50610276610bbd565b34801561037f57600080fd5b506101d3610c69565b34801561039457600080fd5b506101d3610c8d565b3480156103a957600080fd5b506101d3610c93565b3480156103be57600080fd5b506101d3610cb2565b3480156103d357600080fd5b506103dc610cd6565b604080516001600160a01b039092168252519081900360200190f35b34801561040457600080fd5b506101d36004803603602081101561041b57600080fd5b50356001600160a01b0316610ce5565b6102766004803603602081101561044157600080fd5b5035610d0e565b34801561045457600080fd5b50610276610d1b565b34801561046957600080fd5b506101d3610e4e565b34801561047e57600080fd5b506101d36004803603602081101561049557600080fd5b50356001600160a01b0316610e54565b3480156104b157600080fd5b506103dc610e66565b3480156104c657600080fd5b506101d3610e75565b3480156104db57600080fd5b506101d3610ed8565b3480156104f057600080fd5b506101d3610ede565b34801561050557600080fd5b506102766004803603602081101561051c57600080fd5b50356001600160a01b0316610ee4565b34801561053857600080fd5b506103dc610fe7565b60008061054d83610ba2565b6001600160a01b0384166000908152600a60205260408120549192509061057c90610576610e75565b90610ff6565b6001600160a01b0385166000908152600a60205260409020600101549091506105c1906105bb670de0b6b3a76400006105b58686611053565b906110ac565b90611113565b949350505050565b600a602052600090815260409020805460019091015482565b60005481565b6105f061116d565b6001600160a01b0316610601610cd6565b6001600160a01b03161461064a576040805162461bcd60e51b81526020600482018190526024820152600080516020611873833981519152604482015290519081900360640190fd5b6000821161065757600080fd5b61065f610e75565b600955600554604080516370a0823160e01b8152306004820152905142926000926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b1580156106b257600080fd5b505afa1580156106c6573d6000803e3d6000fd5b505050506040513d60208110156106dc57600080fd5b50516002546005549192506001600160a01b039182169116141561070b57600054610708908290610ff6565b90505b600060075483106107285761072085856110ac565b600655610764565b6007546000906107389085610ff6565b905061074f6006548261105390919063ffffffff16565b915061075f856105b58885611113565b600655505b8161076f8683611113565b11156107b6576040805162461bcd60e51b81526020600482015260116024820152706e6f7420656e6f75676820746f6b656e7360781b604482015290519081900360640190fd5b60088390556107c58385611113565b6007556040805186815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050505050565b6002600454141561085a576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260045533600061086a610e75565b9050610874610c93565b600855600981905561088582610541565b6001600160a01b0383166000908152600a6020526040902060018101919091558190556108b183611171565b5050600160045550565b8160006108c6610e75565b90506108d0610c93565b60085560098190556108e182610541565b6001600160a01b0383166000908152600a60205260409020600181019190915581905561090e84846112a5565b50505050565b7f0000000000000000000000000000000000000000000000000000000065888dc081565b600b6020526000908152604090205481565b600260045414156109a2576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026004557f0000000000000000000000000000000000000000000000000000000061c626c0421015610a065760405162461bcd60e51b81526004018080602001828103825260218152602001806118936021913960400191505060405180910390fd5b6000610a1133610541565b905060008111610a5d576040805162461bcd60e51b81526020600482015260126024820152711e5bdd481a185d99481b9bc81c995dd85c9960721b604482015290519081900360640190fd5b336000818152600b602052604081205491610a7f908390610576904290611433565b905060008111610ace576040805162461bcd60e51b8152602060048201526015602482015274796f752068617665206e6f20636c61696d61626c6560581b604482015290519081900360640190fd5b610ad88282611113565b831015610b2c576040805162461bcd60e51b815260206004820152601b60248201527f796f75206861766520636c61696d656420616c6c207265776172640000000000604482015290519081900360640190fd5b610b368282611113565b336000818152600b6020526040902091909155600554610b62916001600160a01b039091169083611508565b60408051828152905133917f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d4919081900360200190a25050600160045550565b6001600160a01b031660009081526001602052604090205490565b610bc561116d565b6001600160a01b0316610bd6610cd6565b6001600160a01b031614610c1f576040805162461bcd60e51b81526020600482018190526024820152600080516020611873833981519152604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b7f0000000000000000000000000000000000000000000000000000000061c626c081565b60065481565b60075460009042908110610ca957600754610cab565b805b9150505b90565b7f000000000000000000000000000000000000000000000000016345785d8a000081565b6003546001600160a01b031690565b600080610cf183610541565b9050610d07610d004285611433565b8290610ff6565b9392505050565b610d1833826108bb565b50565b610d2361116d565b6001600160a01b0316610d34610cd6565b6001600160a01b031614610d7d576040805162461bcd60e51b81526020600482018190526024820152600080516020611873833981519152604482015290519081900360640190fd5b600554604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610dc857600080fd5b505afa158015610ddc573d6000803e3d6000fd5b505050506040513d6020811015610df257600080fd5b50516002546005549192506001600160a01b0391821691161415610e2157600054610e1e908290610ff6565b90505b600554610e38906001600160a01b03163383611508565b50600060065567ffffffffffffffff4216600755565b60085481565b6000610e604283611433565b92915050565b6002546001600160a01b031681565b6000805480610e88575050600954610caf565b6000610e98600854610576610c93565b9050610ed1610ec8836105b5670de0b6b3a7640000610ec26006548761105390919063ffffffff16565b90611053565b60095490611113565b9250505090565b60095481565b60075481565b610eec61116d565b6001600160a01b0316610efd610cd6565b6001600160a01b031614610f46576040805162461bcd60e51b81526020600482018190526024820152600080516020611873833981519152604482015290519081900360640190fd5b6001600160a01b038116610f8b5760405162461bcd60e51b815260040180806020018281038252602681526020018061182c6026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b6005546001600160a01b031681565b60008282111561104d576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008261106257506000610e60565b8282028284828161106f57fe5b0414610d075760405162461bcd60e51b81526004018080602001828103825260218152602001806118526021913960400191505060405180910390fd5b6000808211611102576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161110b57fe5b049392505050565b600082820183811015610d07576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b336000908152600160205260409020548111156111d5576040805162461bcd60e51b815260206004820152601a60248201527f77697468647261773a2062616c616e6365206973206c6f776572000000000000604482015290519081900360640190fd5b336000908152600160205260409020546111ef9082610ff6565b336000908152600160205260408120919091555461120d9082610ff6565b6000556002546001600160a01b03168061125457604051339083156108fc029084906000818181858888f1935050505015801561124e573d6000803e3d6000fd5b5061126b565b60025461126b906001600160a01b03163384611508565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b6002546001600160a01b031680611306576000546112c39034611113565b60009081556001600160a01b0384168152600160205260409020546112e89034611113565b6001600160a01b0384166000908152600160205260409020556113ef565b3415611348576040805162461bcd60e51b815260206004820152600c60248201526b0dcdedc5af4cae4de40cae8d60a31b604482015290519081900360640190fd5b6000821161138e576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b6113a36001600160a01b03821633308561155f565b6000546113b09083611113565b60009081556001600160a01b0384168152600160205260409020546113d59083611113565b6001600160a01b0384166000908152600160205260409020555b6040805183815290516001600160a01b038516917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a2505050565b60007f0000000000000000000000000000000000000000000000000000000061c626c07f0000000000000000000000000000000000000000000000000000000065888dc08261148185610541565b9050828610156114975760009350505050610e60565b818611156114a9579250610e60915050565b60006114e1670de0b6b3a76400006105b5847f000000000000000000000000000000000000000000000000016345785d8a0000611053565b90506114fd816105bb8686036105b5888c03610ec28886610ff6565b979650505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261155a9084906115b5565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261090e9085905b606061160a826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116669092919063ffffffff16565b80519091501561155a5780806020019051602081101561162957600080fd5b505161155a5760405162461bcd60e51b815260040180806020018281038252602a8152602001806118b4602a913960400191505060405180910390fd5b60606105c184846000858561167a85611781565b6116cb576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061170a5780518252601f1990920191602091820191016116eb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461176c576040519150601f19603f3d011682016040523d82523d6000602084013e611771565b606091505b50915091506114fd828286611787565b3b151590565b60608315611796575081610d07565b8251156117a65782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156117f05781810151838201526020016117d8565b50505050905090810190601f16801561181d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657272657761726420636c61696d6564206861736e27742073746172746564207965745361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220a0bcaa0b6a4787b72af0fa350f3a663dca611d04fa99f33272ee0ca2d116e73464736f6c634300060c0033
Deployed ByteCode Sourcemap
30344:5807:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32452:302;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32452:302:0;-1:-1:-1;;;;;32452:302:0;;:::i;:::-;;;;;;;;;;;;;;;;31002:50;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31002:50:0;-1:-1:-1;;;;;31002:50:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;28657:26;;;;;;;;;;;;;:::i;33157:964::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33157:964:0;;;;;;;:::i;:::-;;33020:129;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33020:129:0;;:::i;32865:147::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;32865:147:0;;;;;;;;:::i;30749:45::-;;;;;;;;;;;;;:::i;31059:46::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31059:46:0;-1:-1:-1;;;;;31059:46:0;;:::i;34573:697::-;;;;;;;;;;;;;:::i;28897:110::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28897:110:0;-1:-1:-1;;;;;28897:110:0;;:::i;25139:148::-;;;;;;;;;;;;;:::i;30668:47::-;;;;;;;;;;;;;:::i;30522:25::-;;;;;;;;;;;;;:::i;31828:213::-;;;;;;;;;;;;;:::i;30828:49::-;;;;;;;;;;;;;:::i;24488:87::-;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;24488:87:0;;;;;;;;;;;;;;35423:192;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35423:192:0;-1:-1:-1;;;;;35423:192:0;;:::i;32762:95::-;;;;;;;;;;;;;;;;-1:-1:-1;32762:95:0;;:::i;34129:436::-;;;;;;;;;;;;;:::i;30588:29::-;;;;;;;;;;;;;:::i;35278:137::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35278:137:0;-1:-1:-1;;;;;35278:137:0;;:::i;28744:25::-;;;;;;;;;;;;;:::i;32049:395::-;;;;;;;;;;;;;:::i;30624:35::-;;;;;;;;;;;;;:::i;30554:27::-;;;;;;;;;;;;;:::i;25442:244::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25442:244:0;-1:-1:-1;;;;;25442:244:0;;:::i;30490:25::-;;;;;;;;;;;;;:::i;32452:302::-;32506:7;32526:15;32544:18;32554:7;32544:9;:18::i;:::-;-1:-1:-1;;;;;32616:20:0;;32573:19;32616:20;;;:11;:20;;;;;:43;32526:36;;-1:-1:-1;32573:19:0;32595:65;;:16;:14;:16::i;:::-;:20;;:65::i;:::-;-1:-1:-1;;;;;32717:20:0;;;;;;:11;:20;;;;;:28;;;32573:87;;-1:-1:-1;32678:68:0;;:34;32707:4;32678:24;:7;32573:87;32678:11;:24::i;:::-;:28;;:34::i;:::-;:38;;:68::i;:::-;32671:75;32452:302;-1:-1:-1;;;;32452:302:0:o;31002:50::-;;;;;;;;;;;;;;;;;;;:::o;28657:26::-;;;;:::o;33157:964::-;24719:12;:10;:12::i;:::-;-1:-1:-1;;;;;24708:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24708:23:0;;24700:68;;;;;-1:-1:-1;;;24700:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24700:68:0;;;;;;;;;;;;;;;33263:1:::1;33254:6;:10;33246:19;;;::::0;::::1;;33299:16;:14;:16::i;:::-;33276:20;:39:::0;33412:11:::1;::::0;:36:::1;::::0;;-1:-1:-1;;;33412:36:0;;33442:4:::1;33412:36;::::0;::::1;::::0;;;33359:15:::1;::::0;33326:22:::1;::::0;-1:-1:-1;;;;;33412:11:0;;::::1;::::0;:21:::1;::::0;:36;;;;;::::1;::::0;;;;;;;;;:11;:36;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;33412:36:0;33478:11:::1;::::0;33463::::1;::::0;33412:36;;-1:-1:-1;;;;;;33463:11:0;;::::1;33478::::0;::::1;33463:26;33459:109;;;33544:11;::::0;33524:32:::1;::::0;:15;;:19:::1;:32::i;:::-;33506:50;;33459:109;33578:16;33631:12;;33613:14;:30;33609:294;;33673:20;:6:::0;33684:8;33673:10:::1;:20::i;:::-;33660:10;:33:::0;33609:294:::1;;;33746:12;::::0;33726:17:::1;::::0;33746:32:::1;::::0;33763:14;33746:16:::1;:32::i;:::-;33726:52;;33804:25;33818:10;;33804:9;:13;;:25;;;;:::i;:::-;33793:36:::0;-1:-1:-1;33857:34:0::1;33882:8:::0;33857:20:::1;:6:::0;33793:36;33857:10:::1;:20::i;:34::-;33844:10;:47:::0;-1:-1:-1;33609:294:0::1;33945:15:::0;33921:20:::1;:6:::0;33932:8;33921:10:::1;:20::i;:::-;:39;;33913:69;;;::::0;;-1:-1:-1;;;33913:69:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;33913:69:0;;;;;;;;;;;;;::::1;;33993:14;:31:::0;;;34050:28:::1;34010:14:::0;34069:8;34050:18:::1;:28::i;:::-;34035:12;:43:::0;34094:19:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;24779:1;;;33157:964:::0;;:::o;33020:129::-;27459:1;28065:7;;:19;;28057:63;;;;;-1:-1:-1;;;28057:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27459:1;28198:7;:18;33096:10:::1;31508:29;31540:16;:14;:16::i;:::-;31508:48;;31584:26;:24;:26::i;:::-;31567:14;:43:::0;31621:20:::1;:44:::0;;;31707:15:::1;31714:7:::0;31707:6:::1;:15::i;:::-;-1:-1:-1::0;;;;;31676:20:0;::::1;;::::0;;;:11:::1;:20;::::0;;;;:28:::1;::::0;::::1;:46:::0;;;;31733:67;;;33119:22:::2;33134:6:::0;33119:14:::2;:22::i;:::-;-1:-1:-1::0;;27415:1:0;28377:7;:22;-1:-1:-1;33020:129:0:o;32865:147::-;32953:7;31508:29;31540:16;:14;:16::i;:::-;31508:48;;31584:26;:24;:26::i;:::-;31567:14;:43;31621:20;:44;;;31707:15;31714:7;31707:6;:15::i;:::-;-1:-1:-1;;;;;31676:20:0;;;;;;:11;:20;;;;;:28;;;:46;;;;31733:67;;;32973:31:::1;32988:7:::0;32997:6;32973:14:::1;:31::i;:::-;32865:147:::0;;;;:::o;30749:45::-;;;:::o;31059:46::-;;;;;;;;;;;;;:::o;34573:697::-;27459:1;28065:7;;:19;;28057:63;;;;;-1:-1:-1;;;28057:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;27459:1;28198:7;:18;34650:9:::1;34631:15;:28;;34623:74;;;;-1:-1:-1::0;;;34623:74:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34710:14;34727:18;34734:10;34727:6;:18::i;:::-;34710:35;;34773:1;34764:6;:10;34756:41;;;::::0;;-1:-1:-1;;;34756:41:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;34756:41:0;;;;;;;;;;;;;::::1;;34845:10;34810:20;34833:23:::0;;;:11:::1;:23;::::0;;;;;;34887:61:::1;::::0;34833:23;;34887:43:::1;::::0;34902:15:::1;::::0;34887:14:::1;:43::i;:61::-;34867:81;;34979:1;34967:9;:13;34959:47;;;::::0;;-1:-1:-1;;;34959:47:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;34959:47:0;;;;;;;;;;;;;::::1;;35035:27;:12:::0;35052:9;35035:16:::1;:27::i;:::-;35025:6;:37;;35017:77;;;::::0;;-1:-1:-1;;;35017:77:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;35133:27;:12:::0;35150:9;35133:16:::1;:27::i;:::-;35119:10;35107:23;::::0;;;:11:::1;:23;::::0;;;;:53;;;;35171:11:::1;::::0;:47:::1;::::0;-1:-1:-1;;;;;35171:11:0;;::::1;::::0;35208:9;35171:24:::1;:47::i;:::-;35234:28;::::0;;;;;;;35240:10:::1;::::0;35234:28:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;27415:1:0;28377:7;:22;-1:-1:-1;34573:697:0:o;28897:110::-;-1:-1:-1;;;;;28981:18:0;28954:7;28981:18;;;:9;:18;;;;;;;28897:110::o;25139:148::-;24719:12;:10;:12::i;:::-;-1:-1:-1;;;;;24708:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24708:23:0;;24700:68;;;;;-1:-1:-1;;;24700:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24700:68:0;;;;;;;;;;;;;;;25230:6:::1;::::0;25209:40:::1;::::0;25246:1:::1;::::0;-1:-1:-1;;;;;25230:6:0::1;::::0;25209:40:::1;::::0;25246:1;;25209:40:::1;25260:6;:19:::0;;-1:-1:-1;;;;;;25260:19:0::1;::::0;;25139:148::o;30668:47::-;;;:::o;30522:25::-;;;;:::o;31828:213::-;31989:12;;31885:7;;31938:15;;31972:29;;:61;;32021:12;;31972:61;;;32004:14;31972:61;31965:68;;;31828:213;;:::o;30828:49::-;;;:::o;24488:87::-;24561:6;;-1:-1:-1;;;;;24561:6:0;24488:87;:::o;35423:192::-;35485:7;35505:14;35522:15;35529:7;35522:6;:15::i;:::-;35505:32;;35555:52;35566:40;35581:15;35598:7;35566:14;:40::i;:::-;35555:6;;:10;:52::i;:::-;35548:59;35423:192;-1:-1:-1;;;35423:192:0:o;32762:95::-;32821:28;32830:10;32842:6;32821:8;:28::i;:::-;32762:95;:::o;34129:436::-;24719:12;:10;:12::i;:::-;-1:-1:-1;;;;;24708:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24708:23:0;;24700:68;;;;;-1:-1:-1;;;24700:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24700:68:0;;;;;;;;;;;;;;;34208:11:::1;::::0;:36:::1;::::0;;-1:-1:-1;;;34208:36:0;;34238:4:::1;34208:36;::::0;::::1;::::0;;;34185:20:::1;::::0;-1:-1:-1;;;;;34208:11:0::1;::::0;:21:::1;::::0;:36;;;;;::::1;::::0;;;;;;;;:11;:36;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;34208:36:0;34339:11:::1;::::0;34324::::1;::::0;34208:36;;-1:-1:-1;;;;;;34324:11:0;;::::1;34339::::0;::::1;34324:26;34320:103;;;34399:11;::::0;34382:29:::1;::::0;:12;;:16:::1;:29::i;:::-;34367:44;;34320:103;34433:11;::::0;:50:::1;::::0;-1:-1:-1;;;;;34433:11:0::1;34458:10;34470:12:::0;34433:24:::1;:50::i;:::-;-1:-1:-1::0;34507:1:0::1;34494:10;:14:::0;34519:38:::1;34541:15;34519:38;:12;:38:::0;34129:436::o;30588:29::-;;;;:::o;35278:137::-;35340:7;35367:40;35382:15;35399:7;35367:14;:40::i;:::-;35360:47;35278:137;-1:-1:-1;;35278:137:0:o;28744:25::-;;;-1:-1:-1;;;;;28744:25:0;;:::o;32049:395::-;32096:7;32144:11;;32170:22;32166:82;;-1:-1:-1;;32216:20:0;;32209:27;;32166:82;32258:22;32283:46;32314:14;;32283:26;:24;:26::i;:46::-;32258:71;;32347:89;32372:63;32417:17;32372:40;32407:4;32372:30;32391:10;;32372:14;:18;;:30;;;;:::i;:::-;:34;;:40::i;:63::-;32347:20;;;:24;:89::i;:::-;32340:96;;;;32049:395;:::o;30624:35::-;;;;:::o;30554:27::-;;;;:::o;25442:244::-;24719:12;:10;:12::i;:::-;-1:-1:-1;;;;;24708:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;24708:23:0;;24700:68;;;;;-1:-1:-1;;;24700:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;24700:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;25531:22:0;::::1;25523:73;;;;-1:-1:-1::0;;;25523:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25633:6;::::0;25612:38:::1;::::0;-1:-1:-1;;;;;25612:38:0;;::::1;::::0;25633:6:::1;::::0;25612:38:::1;::::0;25633:6:::1;::::0;25612:38:::1;25661:6;:17:::0;;-1:-1:-1;;;;;;25661:17:0::1;-1:-1:-1::0;;;;;25661:17:0;;;::::1;::::0;;;::::1;::::0;;25442:244::o;30490:25::-;;;-1:-1:-1;;;;;30490:25:0;;:::o;6129:158::-;6187:7;6220:1;6215;:6;;6207:49;;;;;-1:-1:-1;;;6207:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6274:5:0;;;6129:158::o;6546:220::-;6604:7;6628:6;6624:20;;-1:-1:-1;6643:1:0;6636:8;;6624:20;6667:5;;;6671:1;6667;:5;:1;6691:5;;;;;:10;6683:56;;;;-1:-1:-1;;;6683:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7244:153;7302:7;7334:1;7330;:5;7322:44;;;;;-1:-1:-1;;;7322:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7388:1;7384;:5;;;;;;;7244:153;-1:-1:-1;;;7244:153:0:o;5667:179::-;5725:7;5757:5;;;5781:6;;;;5773:46;;;;;-1:-1:-1;;;5773:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;22953:106;23041:10;22953:106;:::o;29684:526::-;29772:10;29762:21;;;;:9;:21;;;;;;29752:31;;;29744:70;;;;;-1:-1:-1;;;29744:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;29859:10;29849:21;;;;:9;:21;;;;;;:33;;29875:6;29849:25;:33::i;:::-;29835:10;29825:21;;;;:9;:21;;;;;:57;;;;29907:11;:23;;29923:6;29907:15;:23::i;:::-;29893:11;:37;29953:11;;-1:-1:-1;;;;;29953:11:0;29979:24;29975:183;;30042:27;;:10;;:27;;;;;30062:6;;30042:27;;;;30062:6;30042:10;:27;;;;;;;;;;;;;;;;;;;;;29975:183;;;30102:11;;:44;;-1:-1:-1;;;;;30102:11:0;30127:10;30139:6;30102:24;:44::i;:::-;30173:29;;;;;;;;30183:10;;30173:29;;;;;;;;;;29684:526;;:::o;29015:661::-;29112:11;;-1:-1:-1;;;;;29112:11:0;29138:24;29134:496;;29212:11;;:26;;29228:9;29212:15;:26::i;:::-;29198:11;:40;;;-1:-1:-1;;;;;29274:18:0;;;;:9;:18;;;;;;:33;;29297:9;29274:22;:33::i;:::-;-1:-1:-1;;;;;29253:18:0;;;;;;:9;:18;;;;;:54;29134:496;;;29348:9;:14;29340:39;;;;;-1:-1:-1;;;29340:39:0;;;;;;;;;;;;-1:-1:-1;;;29340:39:0;;;;;;;;;;;;;;;29411:1;29402:6;:10;29394:37;;;;;-1:-1:-1;;;29394:37:0;;;;;;;;;;;;-1:-1:-1;;;29394:37:0;;;;;;;;;;;;;;;29446:54;-1:-1:-1;;;;;29446:19:0;;29466:10;29486:4;29493:6;29446:19;:54::i;:::-;29529:11;;:23;;29545:6;29529:15;:23::i;:::-;29515:11;:37;;;-1:-1:-1;;;;;29588:18:0;;;;:9;:18;;;;;;:30;;29611:6;29588:22;:30::i;:::-;-1:-1:-1;;;;;29567:18:0;;;;;;:9;:18;;;;;:51;29134:496;29645:23;;;;;;;;-1:-1:-1;;;;;29645:23:0;;;;;;;;;;;;;29015:661;;;:::o;35623:525::-;35706:7;35742:9;35776:7;35706;35811:15;35818:7;35811:6;:15::i;:::-;35794:32;;35853:5;35841:9;:17;35837:125;;;35882:1;35875:8;;;;;;;35837:125;35917:3;35905:9;:15;35901:61;;;35944:6;-1:-1:-1;35937:13:0;;-1:-1:-1;;35937:13:0;35901:61;35972:22;35997:39;36031:4;35997:29;:6;36008:17;35997:10;:29::i;:39::-;35972:64;-1:-1:-1;36054:86:0;35972:64;36054:66;36108:11;;;36054:49;36085:17;;;36054:26;:6;35972:64;36054:10;:26::i;:86::-;36047:93;35623:525;-1:-1:-1;;;;;;;35623:525:0:o;19230:177::-;19340:58;;;-1:-1:-1;;;;;19340:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19340:58:0;-1:-1:-1;;;19340:58:0;;;19313:86;;19333:5;;19313:19;:86::i;:::-;19230:177;;;:::o;19415:205::-;19543:68;;;-1:-1:-1;;;;;19543:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19543:68:0;-1:-1:-1;;;19543:68:0;;;19516:96;;19536:5;;21535:761;21959:23;21985:69;22013:4;21985:69;;;;;;;;;;;;;;;;;21993:5;-1:-1:-1;;;;;21985:27:0;;;:69;;;;;:::i;:::-;22069:17;;21959:95;;-1:-1:-1;22069:21:0;22065:224;;22211:10;22200:30;;;;;;;;;;;;;;;-1:-1:-1;22200:30:0;22192:85;;;;-1:-1:-1;;;22192:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14040:195;14143:12;14175:52;14197:6;14205:4;14211:1;14214:12;14143;15344:18;15355:6;15344:10;:18::i;:::-;15336:60;;;;;-1:-1:-1;;;15336:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15470:12;15484:23;15511:6;-1:-1:-1;;;;;15511:11:0;15531:5;15539:4;15511:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15511:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15469:75;;;;15562:52;15580:7;15589:10;15601:12;15562:17;:52::i;11122:422::-;11489:20;11528:8;;;11122:422::o;17632:742::-;17747:12;17776:7;17772:595;;;-1:-1:-1;17807:10:0;17800:17;;17772:595;17921:17;;:21;17917:439;;18184:10;18178:17;18245:15;18232:10;18228:2;18224:19;18217:44;18132:148;18327:12;18320:20;;-1:-1:-1;;;18320:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Metadata Hash
a0bcaa0b6a4787b72af0fa350f3a663dca611d04fa99f33272ee0ca2d116e734
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.