Note: Our GLMR balance display is temporarily unavailable. Please check back later.
Contract Overview
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0xdf4e30d8deba27bf82d5b7f7853baf11b69593c3a138f18702dfc9c70194de32 | 748656 | 307 days 11 hrs ago | 0x88bd0e65c4cc363885452552889dcf8df6226cd5 | Contract Creation | 0 GLMR |
[ Download CSV Export ]
Similar Match Source Code
Note: This contract matches the deployed ByteCode of the Source Code for Contract 0xa89dd7f07ecc275656549c47787138eba7029dfd
Contract Name:
CougarBank
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at moonbeam.moonscan.io on 2022-03-07 */ /** *Submitted for verification at cronoscan.com on 2022-02-10 */ // File: node_modules\@openzeppelin\contracts\utils\Context.sol // SPDX-License-Identifier: MIT 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; } } pragma solidity >=0.6.0 <0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } pragma solidity >=0.6.0 <0.8.0; /** * @dev 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; } } pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } pragma solidity >=0.4.0; interface IBEP20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the bep token owner. */ function getOwner() external view returns (address); /** * @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); } pragma solidity >=0.6.2 <0.8.0; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } pragma solidity ^0.6.0; /** * @title SafeBEP20 * @dev Wrappers around BEP20 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 SafeBEP20 for IBEP20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeBEP20 { using SafeMath for uint256; using Address for address; function safeTransfer( IBEP20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IBEP20 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 * {IBEP20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove( IBEP20 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), "SafeBEP20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IBEP20 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( IBEP20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender).sub( value, "SafeBEP20: 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(IBEP20 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, "SafeBEP20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeBEP20: BEP20 operation did not succeed"); } } } pragma solidity 0.6.12; contract CougarBank is Ownable, ReentrancyGuard { using SafeMath for uint256; using SafeBEP20 for IBEP20; // Burn address address public constant BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD; // The address of the cougar bank factory address public COUGAR_BANK_FACTORY; // Whether a limit is set for users bool public hasUserLimit; // Whether it is initialized bool public isInitialized; // Accrued token per share uint256 public accTokenPerShare; // The block number when COUGAR mining ends. uint256 public bonusEndBlock; // The block number when COUGAR mining starts. uint256 public startBlock; // The block number of the last pool update uint256 public lastRewardBlock; // The pool limit (0 if none) uint256 public poolLimitPerUser; // reward tokens created per block. uint256 public rewardPerBlock; // The precision factor uint256 public PRECISION_FACTOR; // The reward token IBEP20 public rewardToken; // The staked token IBEP20 public stakedToken; // The transfer fee (in basis points) of staked token uint16 public stakedTokenTransferFee; // The withdrawal interval uint256 public withdrawalInterval; // Max withdrawal interval: 30 days. uint256 public constant MAXIMUM_WITHDRAWAL_INTERVAL = 30 days; // Info of each user that stakes tokens (stakedToken) mapping(address => UserInfo) public userInfo; struct UserInfo { uint256 amount; // How many staked tokens the user has provided uint256 rewardDebt; // Reward debt uint256 nextWithdrawalUntil; // When can the user withdraw again. } event AdminTokenRecovery(address tokenRecovered, uint256 amount); event Deposit(address indexed user, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 amount); event NewStartAndEndBlocks(uint256 startBlock, uint256 endBlock); event NewRewardPerBlock(uint256 rewardPerBlock); event NewPoolLimit(uint256 poolLimitPerUser); event RewardsStop(uint256 blockNumber); event Withdraw(address indexed user, uint256 amount); event NewStakedTokenTransferFee(uint16 transferFee); event NewWithdrawalInterval(uint256 interval); constructor() public { COUGAR_BANK_FACTORY = msg.sender; } /* * @notice Initialize the contract * @param _stakedToken: staked token address * @param _rewardToken: reward token address * @param _rewardPerBlock: reward per block (in rewardToken) * @param _startBlock: start block * @param _bonusEndBlock: end block * @param _poolLimitPerUser: pool limit per user in stakedToken (if any, else 0) * @param _stakedTokenTransferFee: the transfer fee of stakedToken (if any, else 0) * @param _withdrawalInterval: the withdrawal interval for stakedToken (if any, else 0) * @param _admin: admin address with ownership */ function initialize( IBEP20 _stakedToken, IBEP20 _rewardToken, uint256 _rewardPerBlock, uint256 _startBlock, uint256 _bonusEndBlock, uint256 _poolLimitPerUser, uint16 _stakedTokenTransferFee, uint256 _withdrawalInterval, address _admin ) external { require(!isInitialized, "Already initialized"); require(msg.sender == COUGAR_BANK_FACTORY, "Not factory"); require(_withdrawalInterval <= MAXIMUM_WITHDRAWAL_INTERVAL, "Invalid withdrawal interval"); // Make this contract initialized isInitialized = true; stakedToken = _stakedToken; rewardToken = _rewardToken; rewardPerBlock = _rewardPerBlock; startBlock = _startBlock; bonusEndBlock = _bonusEndBlock; stakedTokenTransferFee = _stakedTokenTransferFee; withdrawalInterval = _withdrawalInterval; if (_poolLimitPerUser > 0) { hasUserLimit = true; poolLimitPerUser = _poolLimitPerUser; } uint256 decimalsRewardToken = uint256(rewardToken.decimals()); require(decimalsRewardToken < 30, "Must be inferior to 30"); PRECISION_FACTOR = uint256(10 ** (uint256(30).sub(decimalsRewardToken))); // Set the lastRewardBlock as the startBlock lastRewardBlock = startBlock; // Transfer ownership to the admin address who becomes owner of the contract transferOwnership(_admin); } /* * @notice Deposit staked tokens and collect reward tokens (if any) * @param _amount: amount to withdraw (in rewardToken) */ function deposit(uint256 _amount) external nonReentrant { UserInfo storage user = userInfo[msg.sender]; if (hasUserLimit) { require(_amount.add(user.amount) <= poolLimitPerUser, "User amount above limit"); } _updatePool(); if (user.amount > 0) { uint256 pending = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); if (pending > 0) { rewardToken.safeTransfer(address(msg.sender), pending); user.nextWithdrawalUntil = block.timestamp.add(withdrawalInterval); } } if (_amount > 0) { // Implement transfer tax uint256 beforeDeposit = stakedToken.balanceOf(address(this)); stakedToken.safeTransferFrom(msg.sender, address(this), _amount); uint256 afterDeposit = stakedToken.balanceOf(address(this)); _amount = afterDeposit.sub(beforeDeposit); if (stakedTokenTransferFee > 0) { uint256 transferFee = _amount.mul(stakedTokenTransferFee).div(10000); // Burn this fee stakedToken.safeTransfer(BURN_ADDRESS, transferFee); _amount = _amount.sub(transferFee); } user.amount = user.amount.add(_amount); if (user.nextWithdrawalUntil == 0) { user.nextWithdrawalUntil = block.timestamp.add(withdrawalInterval); } } user.rewardDebt = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR); emit Deposit(msg.sender, _amount); } /* * @notice Withdraw staked tokens and collect reward tokens * @param _amount: amount to withdraw (in rewardToken) */ function withdraw(uint256 _amount) external nonReentrant { UserInfo storage user = userInfo[msg.sender]; require(user.amount >= _amount, "Amount to withdraw too high"); require(user.nextWithdrawalUntil <= block.timestamp, "Withdrawal locked"); _updatePool(); uint256 pending = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); if (_amount > 0) { user.amount = user.amount.sub(_amount); stakedToken.safeTransfer(address(msg.sender), _amount); } if (pending > 0) { rewardToken.safeTransfer(address(msg.sender), pending); user.nextWithdrawalUntil = block.timestamp.add(withdrawalInterval); } user.rewardDebt = user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR); emit Withdraw(msg.sender, _amount); } /* * @notice Withdraw staked tokens without caring about rewards rewards * @dev Needs to be for emergency. */ function emergencyWithdraw() external nonReentrant { UserInfo storage user = userInfo[msg.sender]; require(user.nextWithdrawalUntil <= block.timestamp, "Withdrawal locked"); uint256 amountToTransfer = user.amount; user.amount = 0; user.rewardDebt = 0; user.nextWithdrawalUntil = 0; if (amountToTransfer > 0) { stakedToken.safeTransfer(address(msg.sender), amountToTransfer); } emit EmergencyWithdraw(msg.sender, user.amount); } /* * @notice Stop rewards * @dev Only callable by owner. Needs to be for emergency. */ function emergencyRewardWithdraw(uint256 _amount) external onlyOwner { rewardToken.safeTransfer(address(msg.sender), _amount); } /** * @notice It allows the admin to recover wrong tokens sent to the contract * @param _tokenAddress: the address of the token to withdraw * @param _tokenAmount: the number of tokens to withdraw * @dev This function is only callable by admin. */ function recoverWrongTokens(address _tokenAddress, uint256 _tokenAmount) external onlyOwner { require(_tokenAddress != address(stakedToken), "Cannot be staked token"); require(_tokenAddress != address(rewardToken), "Cannot be reward token"); IBEP20(_tokenAddress).safeTransfer(address(msg.sender), _tokenAmount); emit AdminTokenRecovery(_tokenAddress, _tokenAmount); } /* * @notice Stop rewards * @dev Only callable by owner */ function stopReward() external onlyOwner { bonusEndBlock = block.number; } /* * @notice Update pool limit per user * @dev Only callable by owner. * @param _hasUserLimit: whether the limit remains forced * @param _poolLimitPerUser: new pool limit per user */ function updatePoolLimitPerUser(bool _hasUserLimit, uint256 _poolLimitPerUser) external onlyOwner { require(hasUserLimit, "Must be set"); if (_hasUserLimit) { require(_poolLimitPerUser > poolLimitPerUser, "New limit must be higher"); poolLimitPerUser = _poolLimitPerUser; } else { hasUserLimit = _hasUserLimit; poolLimitPerUser = 0; } emit NewPoolLimit(poolLimitPerUser); } /* * @notice Update reward per block * @dev Only callable by owner. * @param _rewardPerBlock: the reward per block */ function updateRewardPerBlock(uint256 _rewardPerBlock) external onlyOwner { require(block.number < startBlock, "Pool has started"); rewardPerBlock = _rewardPerBlock; emit NewRewardPerBlock(_rewardPerBlock); } /** * @notice It allows the admin to update start and end blocks * @dev This function is only callable by owner. * @param _startBlock: the new start block * @param _bonusEndBlock: the new end block */ function updateStartAndEndBlocks(uint256 _startBlock, uint256 _bonusEndBlock) external onlyOwner { require(block.number < startBlock, "Pool has started"); require(_startBlock < _bonusEndBlock, "New startBlock must be lower than new endBlock"); require(block.number < _startBlock, "New startBlock must be higher than current block"); startBlock = _startBlock; bonusEndBlock = _bonusEndBlock; // Set the lastRewardBlock as the startBlock lastRewardBlock = startBlock; emit NewStartAndEndBlocks(_startBlock, _bonusEndBlock); } /* * @notice Update staked token transfer fee * @dev Only callable by owner. * @param _transferFee: the transfer fee of staked token */ function updateStakedTokenTransferFee(uint16 _transferFee) external onlyOwner { require(_transferFee < 10000, "Invalid transfer fee of staked token"); stakedTokenTransferFee = _transferFee; emit NewStakedTokenTransferFee(_transferFee); } /* * @notice Update the withdrawal interval * @dev Only callable by owner. * @param _interval: the withdrawal interval for staked token in seconds */ function updateWithdrawalInterval(uint256 _interval) external onlyOwner { require(_interval <= MAXIMUM_WITHDRAWAL_INTERVAL, "Invalid withdrawal interval"); withdrawalInterval = _interval; emit NewWithdrawalInterval(_interval); } /* * @notice View function to see pending reward on frontend. * @param _user: user address * @return Pending reward for a given user */ function pendingReward(address _user) external view returns (uint256) { UserInfo storage user = userInfo[_user]; uint256 stakedTokenSupply = stakedToken.balanceOf(address(this)); if (block.number > lastRewardBlock && stakedTokenSupply != 0) { uint256 multiplier = _getMultiplier(lastRewardBlock, block.number); uint256 cakeReward = multiplier.mul(rewardPerBlock); uint256 adjustedTokenPerShare = accTokenPerShare.add(cakeReward.mul(PRECISION_FACTOR).div(stakedTokenSupply)); return user.amount.mul(adjustedTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); } else { return user.amount.mul(accTokenPerShare).div(PRECISION_FACTOR).sub(user.rewardDebt); } } // View function to see if user can withdraw staked token. function canWithdraw(address _user) external view returns (bool) { UserInfo storage user = userInfo[_user]; return block.timestamp >= user.nextWithdrawalUntil; } /* * @notice Update reward variables of the given pool to be up-to-date. */ function _updatePool() internal { if (block.number <= lastRewardBlock) { return; } uint256 stakedTokenSupply = stakedToken.balanceOf(address(this)); if (stakedTokenSupply == 0) { lastRewardBlock = block.number; return; } uint256 multiplier = _getMultiplier(lastRewardBlock, block.number); uint256 cakeReward = multiplier.mul(rewardPerBlock); accTokenPerShare = accTokenPerShare.add(cakeReward.mul(PRECISION_FACTOR).div(stakedTokenSupply)); lastRewardBlock = block.number; } /* * @notice Return reward multiplier over the given _from to _to block. * @param _from: block to start * @param _to: block to finish */ function _getMultiplier(uint256 _from, uint256 _to) internal view returns (uint256) { if (_to <= bonusEndBlock) { return _to.sub(_from); } else if (_from >= bonusEndBlock) { return 0; } else { return bonusEndBlock.sub(_from); } } function emittedReward() external view returns (uint256) { uint256 emitted = 0; if (block.number > startBlock) { emitted = (block.number-startBlock)*rewardPerBlock; } return emitted; } function currentBlock() external view returns (uint256) { return block.number; } }
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenRecovered","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"AdminTokenRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"poolLimitPerUser","type":"uint256"}],"name":"NewPoolLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardPerBlock","type":"uint256"}],"name":"NewRewardPerBlock","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"transferFee","type":"uint16"}],"name":"NewStakedTokenTransferFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endBlock","type":"uint256"}],"name":"NewStartAndEndBlocks","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"interval","type":"uint256"}],"name":"NewWithdrawalInterval","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":"blockNumber","type":"uint256"}],"name":"RewardsStop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BURN_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COUGAR_BANK_FACTORY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_WITHDRAWAL_INTERVAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accTokenPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bonusEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"canWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"currentBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emittedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasUserLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IBEP20","name":"_stakedToken","type":"address"},{"internalType":"contract IBEP20","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"},{"internalType":"uint256","name":"_poolLimitPerUser","type":"uint256"},{"internalType":"uint16","name":"_stakedTokenTransferFee","type":"uint16"},{"internalType":"uint256","name":"_withdrawalInterval","type":"uint256"},{"internalType":"address","name":"_admin","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLimitPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"}],"name":"recoverWrongTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakedToken","outputs":[{"internalType":"contract IBEP20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakedTokenTransferFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_hasUserLimit","type":"bool"},{"internalType":"uint256","name":"_poolLimitPerUser","type":"uint256"}],"name":"updatePoolLimitPerUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerBlock","type":"uint256"}],"name":"updateRewardPerBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_transferFee","type":"uint16"}],"name":"updateStakedTokenTransferFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"}],"name":"updateStartAndEndBlocks","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_interval","type":"uint256"}],"name":"updateWithdrawalInterval","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"},{"internalType":"uint256","name":"nextWithdrawalUntil","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalInterval","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50600061001b610080565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35060018055600280546001600160a01b03191633179055610084565b3390565b612222806100936000396000f3fe608060405234801561001057600080fd5b506004361061021c5760003560e01c80638da5cb5b11610125578063c723c64d116100ad578063e12ed13c1161007c578063e12ed13c14610506578063f2fde38b1461050e578063f40f0f5214610534578063f7c618c11461055a578063fccc2813146105625761021c565b8063c723c64d146104e6578063cc7a262e146104ee578063ccd34cd5146104f6578063db2e21bc146104fe5761021c565b8063a055baf8116100f4578063a055baf81461041b578063a0b409051461043a578063a9f8d1811461045f578063ada1bd9414610467578063b6b55f25146104c95761021c565b80638da5cb5b146103e05780638f662915146103e857806392e8990e146103f05780639513997f146103f85761021c565b80633f138d4b116101a857806366fe9f8a1161017757806366fe9f8a146103a3578063715018a6146103ab5780637d0a75cc146103b357806380dc0672146103d05780638ae39cac146103d85761021c565b80633f138d4b1461034357806342f867f71461036f57806348cd4cb1146103935780635cc6eee91461039b5761021c565b80631aed6553116101ef5780631aed6553146102df5780632e1a7d4d146102f95780632f0c370e146103165780633279beab1461031e578063392e53cd1461033b5761021c565b806301f8a976146102215780630e61dec91461024057806319262d30146102615780631959a0021461029b575b600080fd5b61023e6004803603602081101561023757600080fd5b503561056a565b005b61023e6004803603602081101561025657600080fd5b503561ffff16610650565b6102876004803603602081101561027757600080fd5b50356001600160a01b031661074c565b604080519115158252519081900360200190f35b6102c1600480360360208110156102b157600080fd5b50356001600160a01b0316610771565b60408051938452602084019290925282820152519081900360600190f35b6102e7610792565b60408051918252519081900360200190f35b61023e6004803603602081101561030f57600080fd5b5035610798565b6102e761099d565b61023e6004803603602081101561033457600080fd5b50356109a3565b610287610a1f565b61023e6004803603604081101561035957600080fd5b506001600160a01b038135169060200135610a2f565b610377610ba5565b604080516001600160a01b039092168252519081900360200190f35b6102e7610bb4565b6102e7610bba565b6102e7610bc1565b61023e610bc7565b61023e600480360360208110156103c957600080fd5b5035610c73565b61023e610d68565b6102e7610dd0565b610377610dd6565b6102e7610de5565b610287610deb565b61023e6004803603604081101561040e57600080fd5b5080359060200135610dfb565b610423610f70565b6040805161ffff9092168252519081900360200190f35b61023e6004803603604081101561045057600080fd5b50803515159060200135610f81565b6102e76110eb565b61023e600480360361012081101561047e57600080fd5b506001600160a01b038135811691602081013582169160408201359160608101359160808201359160a08101359161ffff60c0830135169160e08101359161010090910135166110f1565b61023e600480360360208110156104df57600080fd5b5035611362565b6102e76116b8565b6103776116d7565b6102e76116e6565b61023e6116ec565b6102e7611815565b61023e6004803603602081101561052457600080fd5b50356001600160a01b0316611819565b6102e76004803603602081101561054a57600080fd5b50356001600160a01b031661191b565b610377611a71565b610377611a80565b610572611a86565b6001600160a01b0316610583610dd6565b6001600160a01b0316146105cc576040805162461bcd60e51b815260206004820181905260248201526000805160206121a9833981519152604482015290519081900360640190fd5b6005544310610615576040805162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b604482015290519081900360640190fd5b60088190556040805182815290517f0c4d677eef92893ac7ec52faf8140fc6c851ab4736302b4f3a89dfb20696a0df9181900360200190a150565b610658611a86565b6001600160a01b0316610669610dd6565b6001600160a01b0316146106b2576040805162461bcd60e51b815260206004820181905260248201526000805160206121a9833981519152604482015290519081900360640190fd5b6127108161ffff16106106f65760405162461bcd60e51b81526004018080602001828103825260248152602001806121c96024913960400191505060405180910390fd5b600b805461ffff8316600160a01b810261ffff60a01b199092169190911790915560408051918252517f7e027715184f6a1949fa9869334444260da6ea402170ab8d06d0fa992ff56fb19181900360200190a150565b6001600160a01b0381166000908152600d60205260409020600201544210155b919050565b600d6020526000908152604090208054600182015460029092015490919083565b60045481565b600260015414156107f0576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600155336000908152600d60205260409020805482111561085a576040805162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420746f20776974686472617720746f6f20686967680000000000604482015290519081900360640190fd5b42816002015411156108a7576040805162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b081b1bd8dad959607a1b604482015290519081900360640190fd5b6108af611a8a565b60006108e482600101546108de6009546108d86003548760000154611b7290919063ffffffff16565b90611bd4565b90611c3b565b905082156109115781546108f89084611c3b565b8255600b54610911906001600160a01b03163385611c98565b801561094257600a5461092e906001600160a01b03163383611c98565b600c5461093c904290611cef565b60028301555b600954600354835461095992916108d89190611b72565b600183015560408051848152905133917f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364919081900360200190a250506001805550565b600c5481565b6109ab611a86565b6001600160a01b03166109bc610dd6565b6001600160a01b031614610a05576040805162461bcd60e51b815260206004820181905260248201526000805160206121a9833981519152604482015290519081900360640190fd5b600a54610a1c906001600160a01b03163383611c98565b50565b600254600160a81b900460ff1681565b610a37611a86565b6001600160a01b0316610a48610dd6565b6001600160a01b031614610a91576040805162461bcd60e51b815260206004820181905260248201526000805160206121a9833981519152604482015290519081900360640190fd5b600b546001600160a01b0383811691161415610aed576040805162461bcd60e51b815260206004820152601660248201527521b0b73737ba1031329039ba30b5b2b2103a37b5b2b760511b604482015290519081900360640190fd5b600a546001600160a01b0383811691161415610b49576040805162461bcd60e51b815260206004820152601660248201527521b0b73737ba103132903932bbb0b932103a37b5b2b760511b604482015290519081900360640190fd5b610b5d6001600160a01b0383163383611c98565b604080516001600160a01b03841681526020810183905281517f74545154aac348a3eac92596bd1971957ca94795f4e954ec5f613b55fab78129929181900390910190a15050565b6002546001600160a01b031681565b60055481565b62278d0081565b60075481565b610bcf611a86565b6001600160a01b0316610be0610dd6565b6001600160a01b031614610c29576040805162461bcd60e51b815260206004820181905260248201526000805160206121a9833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b610c7b611a86565b6001600160a01b0316610c8c610dd6565b6001600160a01b031614610cd5576040805162461bcd60e51b815260206004820181905260248201526000805160206121a9833981519152604482015290519081900360640190fd5b62278d00811115610d2d576040805162461bcd60e51b815260206004820152601b60248201527f496e76616c6964207769746864726177616c20696e74657276616c0000000000604482015290519081900360640190fd5b600c8190556040805182815290517f69fe3855170c10a3fc76e475c13958c74522b1a05679138e3bbfbd66413e9c229181900360200190a150565b610d70611a86565b6001600160a01b0316610d81610dd6565b6001600160a01b031614610dca576040805162461bcd60e51b815260206004820181905260248201526000805160206121a9833981519152604482015290519081900360640190fd5b43600455565b60085481565b6000546001600160a01b031690565b60035481565b600254600160a01b900460ff1681565b610e03611a86565b6001600160a01b0316610e14610dd6565b6001600160a01b031614610e5d576040805162461bcd60e51b815260206004820181905260248201526000805160206121a9833981519152604482015290519081900360640190fd5b6005544310610ea6576040805162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b604482015290519081900360640190fd5b808210610ee45760405162461bcd60e51b815260040180806020018281038252602e815260200180612104602e913960400191505060405180910390fd5b814310610f225760405162461bcd60e51b81526004018080602001828103825260308152602001806121586030913960400191505060405180910390fd5b600582905560048190556006829055604080518381526020810183905281517f7cd0ab87d19036f3dfadadb232c78aa4879dda3f0c994a9d637532410ee2ce06929181900390910190a15050565b600b54600160a01b900461ffff1681565b610f89611a86565b6001600160a01b0316610f9a610dd6565b6001600160a01b031614610fe3576040805162461bcd60e51b815260206004820181905260248201526000805160206121a9833981519152604482015290519081900360640190fd5b600254600160a01b900460ff1661102f576040805162461bcd60e51b815260206004820152600b60248201526a135d5cdd081899481cd95d60aa1b604482015290519081900360640190fd5b811561109557600754811161108b576040805162461bcd60e51b815260206004820152601860248201527f4e6577206c696d6974206d757374206265206869676865720000000000000000604482015290519081900360640190fd5b60078190556110b2565b6002805460ff60a01b1916600160a01b8415150217905560006007555b60075460408051918252517f241f67ee5f41b7a5cabf911367329be7215900f602ebfc47f89dce2a6bcd847c9181900360200190a15050565b60065481565b600254600160a81b900460ff1615611146576040805162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604482015290519081900360640190fd5b6002546001600160a01b03163314611193576040805162461bcd60e51b815260206004820152600b60248201526a4e6f7420666163746f727960a81b604482015290519081900360640190fd5b62278d008211156111eb576040805162461bcd60e51b815260206004820152601b60248201527f496e76616c6964207769746864726177616c20696e74657276616c0000000000604482015290519081900360640190fd5b6002805460ff60a81b1916600160a81b179055600b8054600a80546001600160a01b038c81166001600160a01b03199283161790925560088b905560058a9055600489905561ffff8716600160a01b0261ffff60a01b19928e16919093161716179055600c8290558315611272576002805460ff60a01b1916600160a01b17905560078490555b600a546040805163313ce56760e01b815290516000926001600160a01b03169163313ce567916004808301926020929190829003018186803b1580156112b757600080fd5b505afa1580156112cb573d6000803e3d6000fd5b505050506040513d60208110156112e157600080fd5b505160ff169050601e8110611336576040805162461bcd60e51b815260206004820152601660248201527504d75737420626520696e666572696f7220746f2033360541b604482015290519081900360640190fd5b611341601e82611c3b565b600a0a60095560055460065561135682611819565b50505050505050505050565b600260015414156113ba576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055336000908152600d602052604090209054600160a01b900460ff16156114445760075481546113f1908490611cef565b1115611444576040805162461bcd60e51b815260206004820152601760248201527f5573657220616d6f756e742061626f7665206c696d6974000000000000000000604482015290519081900360640190fd5b61144c611a8a565b8054156114b157600061147c82600101546108de6009546108d86003548760000154611b7290919063ffffffff16565b905080156114af57600a5461149b906001600160a01b03163383611c98565b600c546114a9904290611cef565b60028301555b505b811561165e57600b54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561150257600080fd5b505afa158015611516573d6000803e3d6000fd5b505050506040513d602081101561152c57600080fd5b5051600b54909150611549906001600160a01b0316333086611d49565b600b54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561159457600080fd5b505afa1580156115a8573d6000803e3d6000fd5b505050506040513d60208110156115be57600080fd5b505190506115cc8183611c3b565b600b54909450600160a01b900461ffff161561163057600b5460009061160690612710906108d8908890600160a01b900461ffff16611b72565b600b54909150611622906001600160a01b031661dead83611c98565b61162c8582611c3b565b9450505b825461163c9085611cef565b8355600283015461165b57600c54611655904290611cef565b60028401555b50505b600954600354825461167592916108d89190611b72565b600182015560408051838152905133917fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c919081900360200190a2505060018055565b60055460009081904311156116d257506008546005544303025b905090565b600b546001600160a01b031681565b60095481565b60026001541415611744576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b60026001819055336000908152600d60205260409020908101544210156117a6576040805162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b081b1bd8dad959607a1b604482015290519081900360640190fd5b8054600080835560018301819055600283015580156117d657600b546117d6906001600160a01b03163383611c98565b8154604080519182525133917f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd9695919081900360200190a2505060018055565b4390565b611821611a86565b6001600160a01b0316611832610dd6565b6001600160a01b03161461187b576040805162461bcd60e51b815260206004820181905260248201526000805160206121a9833981519152604482015290519081900360640190fd5b6001600160a01b0381166118c05760405162461bcd60e51b81526004018080602001828103825260268152602001806120de6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038082166000908152600d60209081526040808320600b5482516370a0823160e01b8152306004820152925194959194869491909216926370a082319260248083019392829003018186803b15801561197a57600080fd5b505afa15801561198e573d6000803e3d6000fd5b505050506040513d60208110156119a457600080fd5b5051600654909150431180156119b957508015155b15611a415760006119cc60065443611da9565b905060006119e560085483611b7290919063ffffffff16565b90506000611a0e611a05856108d860095486611b7290919063ffffffff16565b60035490611cef565b9050611a3585600101546108de6009546108d8858a60000154611b7290919063ffffffff16565b9550505050505061076c565b611a6882600101546108de6009546108d86003548760000154611b7290919063ffffffff16565b9250505061076c565b600a546001600160a01b031681565b61dead81565b3390565b6006544311611a9857611b70565b600b54604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015611ae357600080fd5b505afa158015611af7573d6000803e3d6000fd5b505050506040513d6020811015611b0d57600080fd5b5051905080611b20575043600655611b70565b6000611b2e60065443611da9565b90506000611b4760085483611b7290919063ffffffff16565b9050611b65611a05846108d860095485611b7290919063ffffffff16565b600355505043600655505b565b600082611b8157506000611bce565b82820282848281611b8e57fe5b0414611bcb5760405162461bcd60e51b81526004018080602001828103825260218152602001806121886021913960400191505060405180910390fd5b90505b92915050565b6000808211611c2a576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611c3357fe5b049392505050565b600082821115611c92576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052611cea908490611de3565b505050565b600082820183811015611bcb576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052611da3908590611de3565b50505050565b60006004548211611dc557611dbe8284611c3b565b9050611bce565b6004548310611dd657506000611bce565b600454611dbe9084611c3b565b6060611e38826040518060400160405280602081526020017f5361666542455032303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611e949092919063ffffffff16565b805190915015611cea57808060200190516020811015611e5757600080fd5b5051611cea5760405162461bcd60e51b815260040180806020018281038252602a8152602001806120b4602a913960400191505060405180910390fd5b6060611ea38484600085611ead565b90505b9392505050565b606082471015611eee5760405162461bcd60e51b81526004018080602001828103825260268152602001806121326026913960400191505060405180910390fd5b611ef785612009565b611f48576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310611f875780518252601f199092019160209182019101611f68565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611fe9576040519150601f19603f3d011682016040523d82523d6000602084013e611fee565b606091505b5091509150611ffe82828661200f565b979650505050505050565b3b151590565b6060831561201e575081611ea6565b82511561202e5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015612078578181015183820152602001612060565b50505050905090810190601f1680156120a55780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe5361666542455032303a204245503230206f7065726174696f6e20646964206e6f7420737563636565644f776e61626c653a206e6577206f776e657220697320746865207a65726f20616464726573734e6577207374617274426c6f636b206d757374206265206c6f776572207468616e206e657720656e64426c6f636b416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c4e6577207374617274426c6f636b206d75737420626520686967686572207468616e2063757272656e7420626c6f636b536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572496e76616c6964207472616e7366657220666565206f66207374616b656420746f6b656ea2646970667358221220c43552a72de77e8d03f26bb45e3280aecf207ecaa44c1255c9f8a5080e9e207764736f6c634300060c0033
Deployed ByteCode Sourcemap
28519:14857:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38639:240;;;;;;;;;;;;;;;;-1:-1:-1;38639:240:0;;:::i;:::-;;39902:269;;;;;;;;;;;;;;;;-1:-1:-1;39902:269:0;;;;:::i;41653:184::-;;;;;;;;;;;;;;;;-1:-1:-1;41653:184:0;-1:-1:-1;;;;;41653:184:0;;:::i;:::-;;;;;;;;;;;;;;;;;;30012:44;;;;;;;;;;;;;;;;-1:-1:-1;30012:44:0;-1:-1:-1;;;;;30012:44:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;29111:28;;;:::i;:::-;;;;;;;;;;;;;;;;35072:897;;;;;;;;;;;;;;;;-1:-1:-1;35072:897:0;;:::i;29799:33::-;;;:::i;36760:142::-;;;;;;;;;;;;;;;;-1:-1:-1;36760:142:0;;:::i;28955:25::-;;;:::i;37192:413::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;37192:413:0;;;;;;;;:::i;28804:34::-;;;:::i;:::-;;;;-1:-1:-1;;;;;28804:34:0;;;;;;;;;;;;;;29200:25;;;:::i;29883:61::-;;;:::i;29357:31::-;;;:::i;2811:148::-;;;:::i;40358:260::-;;;;;;;;;;;;;;;;-1:-1:-1;40358:260:0;;:::i;37695:88::-;;;:::i;29438:29::-;;;:::i;2160:87::-;;;:::i;29021:31::-;;;:::i;28888:24::-;;;:::i;39123:606::-;;;;;;;;;;;;;;;;-1:-1:-1;39123:606:0;;;;;;;:::i;29722:36::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;38009:475;;;;;;;;;;;;;;;;-1:-1:-1;38009:475:0;;;;;;;;;:::i;29283:30::-;;;:::i;31582:1532::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;31582:1532:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;33272:1650::-;;;;;;;;;;;;;;;;-1:-1:-1;33272:1650:0;;:::i;43033:238::-;;;:::i;29629:25::-;;;:::i;29505:31::-;;;:::i;36110:532::-;;;:::i;43279:94::-;;;:::i;3114:244::-;;;;;;;;;;;;;;;;-1:-1:-1;3114:244:0;-1:-1:-1;;;;;3114:244:0;;:::i;40791:790::-;;;;;;;;;;;;;;;;-1:-1:-1;40791:790:0;-1:-1:-1;;;;;40791:790:0;;:::i;29570:25::-;;;:::i;28663:81::-;;;:::i;38639:240::-;2391:12;:10;:12::i;:::-;-1:-1:-1;;;;;2380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2380:23:0;;2372:68;;;;;-1:-1:-1;;;2372:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:68:0;;;;;;;;;;;;;;;38747:10:::1;;38732:12;:25;38724:54;;;::::0;;-1:-1:-1;;;38724:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;38724:54:0;;;;;;;;;;;;;::::1;;38789:14;:32:::0;;;38837:34:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;38639:240:::0;:::o;39902:269::-;2391:12;:10;:12::i;:::-;-1:-1:-1;;;;;2380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2380:23:0;;2372:68;;;;;-1:-1:-1;;;2372:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:68:0;;;;;;;;;;;;;;;40014:5:::1;39999:12;:20;;;39991:69;;;;-1:-1:-1::0;;;39991:69:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40071:22;:37:::0;;::::1;::::0;::::1;-1:-1:-1::0;;;40071:37:0;::::1;-1:-1:-1::0;;;;40071:37:0;;::::1;::::0;;;::::1;::::0;;;40124:39:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;39902:269:::0;:::o;41653:184::-;-1:-1:-1;;;;;41753:15:0;;41712:4;41753:15;;;:8;:15;;;;;41805:24;;;41786:15;:43;;41653:184;;;;:::o;30012:44::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;29111:28::-;;;;:::o;35072:897::-;5053:1;5659:7;;:19;;5651:63;;;;;-1:-1:-1;;;5651:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5053:1;5792:7;:18;35173:10:::1;35140:21;35164:20:::0;;;:8:::1;:20;::::0;;;;35203:11;;:22;-1:-1:-1;35203:22:0::1;35195:62;;;::::0;;-1:-1:-1;;;35195:62:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;35304:15;35276:4;:24;;;:43;;35268:73;;;::::0;;-1:-1:-1;;;35268:73:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;35268:73:0;;;;;;;;;;;;;::::1;;35354:13;:11;:13::i;:::-;35380:15;35398:76;35458:4;:15;;;35398:55;35436:16;;35398:33;35414:16;;35398:4;:11;;;:15;;:33;;;;:::i;:::-;:37:::0;::::1;:55::i;:::-;:59:::0;::::1;:76::i;:::-;35380:94:::0;-1:-1:-1;35491:11:0;;35487:151:::1;;35533:11:::0;;:24:::1;::::0;35549:7;35533:15:::1;:24::i;:::-;35519:38:::0;;35572:11:::1;::::0;:54:::1;::::0;-1:-1:-1;;;;;35572:11:0::1;35605:10;35618:7:::0;35572:24:::1;:54::i;:::-;35654:11:::0;;35650:179:::1;;35682:11;::::0;:54:::1;::::0;-1:-1:-1;;;;;35682:11:0::1;35715:10;35728:7:::0;35682:24:::1;:54::i;:::-;35798:18;::::0;35778:39:::1;::::0;:15:::1;::::0;:19:::1;:39::i;:::-;35751:24;::::0;::::1;:66:::0;35650:179:::1;35897:16;::::0;35875::::1;::::0;35859:11;;:55:::1;::::0;35897:16;35859:33:::1;::::0;:11;:15:::1;:33::i;:55::-;35841:15;::::0;::::1;:73:::0;35932:29:::1;::::0;;;;;;;35941:10:::1;::::0;35932:29:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;5009:1:0;5971:22;;-1:-1:-1;35072:897:0:o;29799:33::-;;;;:::o;36760:142::-;2391:12;:10;:12::i;:::-;-1:-1:-1;;;;;2380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2380:23:0;;2372:68;;;;;-1:-1:-1;;;2372:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:68:0;;;;;;;;;;;;;;;36840:11:::1;::::0;:54:::1;::::0;-1:-1:-1;;;;;36840:11:0::1;36873:10;36886:7:::0;36840:24:::1;:54::i;:::-;36760:142:::0;:::o;28955:25::-;;;-1:-1:-1;;;28955:25:0;;;;;:::o;37192:413::-;2391:12;:10;:12::i;:::-;-1:-1:-1;;;;;2380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2380:23:0;;2372:68;;;;;-1:-1:-1;;;2372:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:68:0;;;;;;;;;;;;;;;37328:11:::1;::::0;-1:-1:-1;;;;;37303:37:0;;::::1;37328:11:::0;::::1;37303:37;;37295:72;;;::::0;;-1:-1:-1;;;37295:72:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;37295:72:0;;;;;;;;;;;;;::::1;;37411:11;::::0;-1:-1:-1;;;;;37386:37:0;;::::1;37411:11:::0;::::1;37386:37;;37378:72;;;::::0;;-1:-1:-1;;;37378:72:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;37378:72:0;;;;;;;;;;;;;::::1;;37463:69;-1:-1:-1::0;;;;;37463:34:0;::::1;37506:10;37519:12:::0;37463:34:::1;:69::i;:::-;37550:47;::::0;;-1:-1:-1;;;;;37550:47:0;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;37192:413:::0;;:::o;28804:34::-;;;-1:-1:-1;;;;;28804:34:0;;:::o;29200:25::-;;;;:::o;29883:61::-;29937:7;29883:61;:::o;29357:31::-;;;;:::o;2811:148::-;2391:12;:10;:12::i;:::-;-1:-1:-1;;;;;2380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2380:23:0;;2372:68;;;;;-1:-1:-1;;;2372:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:68:0;;;;;;;;;;;;;;;2918:1:::1;2902:6:::0;;2881:40:::1;::::0;-1:-1:-1;;;;;2902:6:0;;::::1;::::0;2881:40:::1;::::0;2918:1;;2881:40:::1;2949:1;2932:19:::0;;-1:-1:-1;;;;;;2932:19:0::1;::::0;;2811:148::o;40358:260::-;2391:12;:10;:12::i;:::-;-1:-1:-1;;;;;2380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2380:23:0;;2372:68;;;;;-1:-1:-1;;;2372:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:68:0;;;;;;;;;;;;;;;29937:7:::1;40449:9;:40;;40441:80;;;::::0;;-1:-1:-1;;;40441:80:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;40532:18;:30:::0;;;40578:32:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;40358:260:::0;:::o;37695:88::-;2391:12;:10;:12::i;:::-;-1:-1:-1;;;;;2380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2380:23:0;;2372:68;;;;;-1:-1:-1;;;2372:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:68:0;;;;;;;;;;;;;;;37763:12:::1;37747:13;:28:::0;37695:88::o;29438:29::-;;;;:::o;2160:87::-;2206:7;2233:6;-1:-1:-1;;;;;2233:6:0;2160:87;:::o;29021:31::-;;;;:::o;28888:24::-;;;-1:-1:-1;;;28888:24:0;;;;;:::o;39123:606::-;2391:12;:10;:12::i;:::-;-1:-1:-1;;;;;2380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2380:23:0;;2372:68;;;;;-1:-1:-1;;;2372:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:68:0;;;;;;;;;;;;;;;39254:10:::1;;39239:12;:25;39231:54;;;::::0;;-1:-1:-1;;;39231:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;39231:54:0;;;;;;;;;;;;;::::1;;39318:14;39304:11;:28;39296:87;;;;-1:-1:-1::0;;;39296:87:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39417:11;39402:12;:26;39394:87;;;;-1:-1:-1::0;;;39394:87:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39494:10;:24:::0;;;39529:13:::1;:30:::0;;;39626:15:::1;:28:::0;;;39672:49:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;39123:606:::0;;:::o;29722:36::-;;;-1:-1:-1;;;29722:36:0;;;;;:::o;38009:475::-;2391:12;:10;:12::i;:::-;-1:-1:-1;;;;;2380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2380:23:0;;2372:68;;;;;-1:-1:-1;;;2372:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:68:0;;;;;;;;;;;;;;;38126:12:::1;::::0;-1:-1:-1;;;38126:12:0;::::1;;;38118:36;;;::::0;;-1:-1:-1;;;38118:36:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;38118:36:0;;;;;;;;;;;;;::::1;;38169:13;38165:266;;;38227:16;;38207:17;:36;38199:73;;;::::0;;-1:-1:-1;;;38199:73:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;38287:16;:36:::0;;;38165:266:::1;;;38356:12;:28:::0;;-1:-1:-1;;;;38356:28:0::1;-1:-1:-1::0;;;38356:28:0;::::1;;;;::::0;;-1:-1:-1;38399:16:0::1;:20:::0;38165:266:::1;38459:16;::::0;38446:30:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;38009:475:::0;;:::o;29283:30::-;;;;:::o;31582:1532::-;31935:13;;-1:-1:-1;;;31935:13:0;;;;31934:14;31926:46;;;;;-1:-1:-1;;;31926:46:0;;;;;;;;;;;;-1:-1:-1;;;31926:46:0;;;;;;;;;;;;;;;32005:19;;-1:-1:-1;;;;;32005:19:0;31991:10;:33;31983:57;;;;;-1:-1:-1;;;31983:57:0;;;;;;;;;;;;-1:-1:-1;;;31983:57:0;;;;;;;;;;;;;;;29937:7;32059:19;:50;;32051:90;;;;;-1:-1:-1;;;32051:90:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;32197:13;:20;;-1:-1:-1;;;;32197:20:0;-1:-1:-1;;;32197:20:0;;;32230:11;:26;;32267:11;:26;;-1:-1:-1;;;;;32267:26:0;;;-1:-1:-1;;;;;;32267:26:0;;;;;;;32304:14;:32;;;32347:10;:24;;;32382:13;:30;;;32423:48;;;-1:-1:-1;;;32423:48:0;-1:-1:-1;;;;32230:26:0;;;;;;;;32423:48;;;;32482:18;:40;;;32539:21;;32535:124;;32577:12;:19;;-1:-1:-1;;;;32577:19:0;-1:-1:-1;;;32577:19:0;;;32611:16;:36;;;32535:124;32709:11;;:22;;;-1:-1:-1;;;32709:22:0;;;;32671:27;;-1:-1:-1;;;;;32709:11:0;;:20;;:22;;;;;;;;;;;;;;:11;:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32709:22:0;32701:31;;;-1:-1:-1;32773:2:0;32751:24;;32743:59;;;;;-1:-1:-1;;;32743:59:0;;;;;;;;;;;;-1:-1:-1;;;32743:59:0;;;;;;;;;;;;;;;32849:36;32857:2;32865:19;32849:15;:36::i;:::-;32842:2;:44;32815:16;:72;32972:10;;32954:15;:28;33081:25;33099:6;33081:17;:25::i;:::-;31582:1532;;;;;;;;;;:::o;33272:1650::-;5053:1;5659:7;;:19;;5651:63;;;;;-1:-1:-1;;;5651:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5053:1;5792:7;:18;;;33372:10:::1;33339:21;33363:20:::0;;;:8:::1;:20;::::0;;;;33400:12;;-1:-1:-1;;;33400:12:0;::::1;;;33396:125;;;33465:16;::::0;33449:11;;33437:24:::1;::::0;:7;;:11:::1;:24::i;:::-;:44;;33429:80;;;::::0;;-1:-1:-1;;;33429:80:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;33533:13;:11;:13::i;:::-;33563:11:::0;;:15;33559:347:::1;;33595:15;33613:76;33673:4;:15;;;33613:55;33651:16;;33613:33;33629:16;;33613:4;:11;;;:15;;:33;;;;:::i;:76::-;33595:94:::0;-1:-1:-1;33708:11:0;;33704:191:::1;;33740:11;::::0;:54:::1;::::0;-1:-1:-1;;;;;33740:11:0::1;33773:10;33786:7:::0;33740:24:::1;:54::i;:::-;33860:18;::::0;33840:39:::1;::::0;:15:::1;::::0;:19:::1;:39::i;:::-;33813:24;::::0;::::1;:66:::0;33704:191:::1;33559:347;;33922:11:::0;;33918:865:::1;;34013:11;::::0;:36:::1;::::0;;-1:-1:-1;;;34013:36:0;;34043:4:::1;34013:36;::::0;::::1;::::0;;;33989:21:::1;::::0;-1:-1:-1;;;;;34013: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;34013:36:0;34064:11:::1;::::0;34013:36;;-1:-1:-1;34064:64:0::1;::::0;-1:-1:-1;;;;;34064:11:0::1;34093:10;34113:4;34120:7:::0;34064:28:::1;:64::i;:::-;34166:11;::::0;:36:::1;::::0;;-1:-1:-1;;;34166:36:0;;34196:4:::1;34166:36;::::0;::::1;::::0;;;34143:20:::1;::::0;-1:-1:-1;;;;;34166: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;34166:36:0;;-1:-1:-1;34227:31:0::1;34166:36:::0;34244:13;34227:16:::1;:31::i;:::-;34279:22;::::0;34217:41;;-1:-1:-1;;;;34279:22:0;::::1;;;:26:::0;34275:292:::1;;34360:22;::::0;34326:19:::1;::::0;34348:46:::1;::::0;34388:5:::1;::::0;34348:35:::1;::::0;:7;;-1:-1:-1;;;34360:22:0;::::1;;;34348:11;:35::i;:46::-;34447:11;::::0;34326:68;;-1:-1:-1;34447:51:0::1;::::0;-1:-1:-1;;;;;34447:11:0::1;28702:42;34326:68:::0;34447:24:::1;:51::i;:::-;34527:24;:7:::0;34539:11;34527::::1;:24::i;:::-;34517:34;;34275:292;;34595:11:::0;;:24:::1;::::0;34611:7;34595:15:::1;:24::i;:::-;34581:38:::0;;34640:24:::1;::::0;::::1;::::0;34636:136:::1;;34737:18;::::0;34717:39:::1;::::0;:15:::1;::::0;:19:::1;:39::i;:::-;34690:24;::::0;::::1;:66:::0;34636:136:::1;33918:865;;;34851:16;::::0;34829::::1;::::0;34813:11;;:55:::1;::::0;34851:16;34813:33:::1;::::0;:11;:15:::1;:33::i;:55::-;34795:15;::::0;::::1;:73:::0;34886:28:::1;::::0;;;;;;;34894:10:::1;::::0;34886:28:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;5009:1:0;5971:22;;33272:1650::o;43033:238::-;43150:10;;43081:7;;;;43135:12;:25;43131:108;;;-1:-1:-1;43213:14:0;;43201:10;;43188:12;:23;43187:40;43131:108;43256:7;-1:-1:-1;43033:238:0;:::o;29629:25::-;;;-1:-1:-1;;;;;29629:25:0;;:::o;29505:31::-;;;;:::o;36110:532::-;5053:1;5659:7;;:19;;5651:63;;;;;-1:-1:-1;;;5651:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5053:1;5792:7;:18;;;36205:10:::1;36172:21;36196:20:::0;;;:8:::1;:20;::::0;;;;36235:24;;::::1;::::0;36263:15:::1;-1:-1:-1::0;36235:43:0::1;36227:73;;;::::0;;-1:-1:-1;;;36227:73:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;36227:73:0;;;;;;;;;;;;;::::1;;36340:11:::0;;36313:24:::1;36362:15:::0;;;-1:-1:-1;36388:15:0;::::1;:19:::0;;;36418:24:::1;::::0;::::1;:28:::0;36463:20;;36459:116:::1;;36500:11;::::0;:63:::1;::::0;-1:-1:-1;;;;;36500:11:0::1;36533:10;36546:16:::0;36500:24:::1;:63::i;:::-;36622:11:::0;;36592:42:::1;::::0;;;;;;36610:10:::1;::::0;36592:42:::1;::::0;;;;;::::1;::::0;;::::1;-1:-1:-1::0;;5009:1:0;5971:22;;36110:532::o;43279:94::-;43353:12;43279:94;:::o;3114:244::-;2391:12;:10;:12::i;:::-;-1:-1:-1;;;;;2380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;2380:23:0;;2372:68;;;;;-1:-1:-1;;;2372:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;2372:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;3203:22:0;::::1;3195:73;;;;-1:-1:-1::0;;;3195:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3305:6;::::0;;3284:38:::1;::::0;-1:-1:-1;;;;;3284:38:0;;::::1;::::0;3305:6;::::1;::::0;3284:38:::1;::::0;::::1;3333:6;:17:::0;;-1:-1:-1;;;;;;3333:17:0::1;-1:-1:-1::0;;;;;3333:17:0;;;::::1;::::0;;;::::1;::::0;;3114:244::o;40791:790::-;-1:-1:-1;;;;;40896:15:0;;;40852:7;40896:15;;;:8;:15;;;;;;;;40950:11;;:36;;-1:-1:-1;;;40950:36:0;;40980:4;40950:36;;;;;;40852:7;;40896:15;;40852:7;;40950:11;;;;;:21;;:36;;;;;40896:15;40950:36;;;;;:11;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40950:36:0;41016:15;;40950:36;;-1:-1:-1;41001:12:0;:30;:56;;;;-1:-1:-1;41035:22:0;;;41001:56;40997:577;;;41074:18;41095:45;41110:15;;41127:12;41095:14;:45::i;:::-;41074:66;;41155:18;41176:30;41191:14;;41176:10;:14;;:30;;;;:::i;:::-;41155:51;;41221:29;41266:77;41287:55;41324:17;41287:32;41302:16;;41287:10;:14;;:32;;;;:::i;:55::-;41266:16;;;:20;:77::i;:::-;41221:122;;41365:81;41430:4;:15;;;41365:60;41408:16;;41365:38;41381:21;41365:4;:11;;;:15;;:38;;;;:::i;:81::-;41358:88;;;;;;;;;40997:577;41486:76;41546:4;:15;;;41486:55;41524:16;;41486:33;41502:16;;41486:4;:11;;;:15;;:33;;;;:::i;:76::-;41479:83;;;;;;29570:25;;;-1:-1:-1;;;;;29570:25:0;;:::o;28663:81::-;28702:42;28663:81;:::o;752:106::-;840:10;752:106;:::o;41938:604::-;42001:15;;41985:12;:31;41981:70;;42033:7;;41981:70;42091:11;;:36;;;-1:-1:-1;;;42091:36:0;;42121:4;42091:36;;;;;;42063:25;;-1:-1:-1;;;;;42091:11:0;;:21;;:36;;;;;;;;;;;;;;:11;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42091:36:0;;-1:-1:-1;42144:22:0;42140:106;;-1:-1:-1;42201:12:0;42183:15;:30;42228:7;;42140:106;42258:18;42279:45;42294:15;;42311:12;42279:14;:45::i;:::-;42258:66;;42335:18;42356:30;42371:14;;42356:10;:14;;:30;;;;:::i;:::-;42335:51;;42416:77;42437:55;42474:17;42437:32;42452:16;;42437:10;:14;;:32;;;;:::i;42416:77::-;42397:16;:96;-1:-1:-1;;42522:12:0;42504:15;:30;-1:-1:-1;41938:604:0;:::o;9628:220::-;9686:7;9710:6;9706:20;;-1:-1:-1;9725:1:0;9718:8;;9706:20;9749:5;;;9753:1;9749;:5;:1;9773:5;;;;;:10;9765:56;;;;-1:-1:-1;;;9765:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9839:1;-1:-1:-1;9628:220:0;;;;;:::o;10326:153::-;10384:7;10416:1;10412;:5;10404:44;;;;;-1:-1:-1;;;10404:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;10470:1;10466;:5;;;;;;;10326:153;-1:-1:-1;;;10326:153:0:o;9211:158::-;9269:7;9302:1;9297;:6;;9289:49;;;;;-1:-1:-1;;;9289:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;9356:5:0;;;9211:158::o;25166:211::-;25310:58;;;-1:-1:-1;;;;;25310:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25310:58:0;-1:-1:-1;;;25310:58:0;;;25283:86;;25303:5;;25283:19;:86::i;:::-;25166:211;;;:::o;8749:179::-;8807:7;8839:5;;;8863:6;;;;8855:46;;;;;-1:-1:-1;;;8855:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;25385:248;25556:68;;;-1:-1:-1;;;;;25556:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;25556:68:0;-1:-1:-1;;;25556:68:0;;;25529:96;;25549:5;;25529:19;:96::i;:::-;25385:248;;;;:::o;42716:309::-;42791:7;42822:13;;42815:3;:20;42811:207;;42859:14;:3;42867:5;42859:7;:14::i;:::-;42852:21;;;;42811:207;42904:13;;42895:5;:22;42891:127;;-1:-1:-1;42941:1:0;42934:8;;42891:127;42982:13;;:24;;43000:5;42982:17;:24::i;27701:774::-;28125:23;28151:69;28179:4;28151:69;;;;;;;;;;;;;;;;;28159:5;-1:-1:-1;;;;;28151:27:0;;;:69;;;;;:::i;:::-;28235:17;;28125:95;;-1:-1:-1;28235:21:0;28231:237;;28390:10;28379:30;;;;;;;;;;;;;;;-1:-1:-1;28379:30:0;28371:85;;;;-1:-1:-1;;;28371:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20231:195;20334:12;20366:52;20388:6;20396:4;20402:1;20405:12;20366:21;:52::i;:::-;20359:59;;20231:195;;;;;;:::o;21283:530::-;21410:12;21468:5;21443:21;:30;;21435:81;;;;-1:-1:-1;;;21435:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21535:18;21546:6;21535:10;:18::i;:::-;21527:60;;;;;-1:-1:-1;;;21527:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21661:12;21675:23;21702:6;-1:-1:-1;;;;;21702:11:0;21722:5;21730:4;21702:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;21702:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21660:75;;;;21753:52;21771:7;21780:10;21792:12;21753:17;:52::i;:::-;21746:59;21283:530;-1:-1:-1;;;;;;;21283:530:0:o;17313:422::-;17680:20;17719:8;;;17313:422::o;23823:742::-;23938:12;23967:7;23963:595;;;-1:-1:-1;23998:10:0;23991:17;;23963:595;24112:17;;:21;24108:439;;24375:10;24369:17;24436:15;24423:10;24419:2;24415:19;24408:44;24323:148;24518:12;24511:20;;-1:-1:-1;;;24511:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://c43552a72de77e8d03f26bb45e3280aecf207ecaa44c1255c9f8a5080e9e2077
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.