BscScan - Sponsored slots available. Book your slot here!
Contract Overview
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Contract Name:
bpEURRewardPool
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at BscScan.com on 2021-04-06 */ // SPDX-License-Identifier: MIT pragma solidity 0.6.12; /** * @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); } /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } /** * @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 in 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"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue( address target, bytes memory data, uint256 weiValue, string memory errorMessage ) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{value: weiValue}(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @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"); } } } // Note that this pool has no minter key of BpEUR (rewards). // Instead, the governance will call BpEUR distributeReward method and send reward to this pool at the beginning. contract bpEURRewardPool { using SafeMath for uint256; using SafeERC20 for IERC20; // governance address public operator; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. } // Info of each pool. struct PoolInfo { IERC20 lpToken; // Address of LP token contract. uint256 allocPoint; // How many allocation points assigned to this pool. bpEURs to distribute per block. uint256 lastRewardBlock; // Last block number that bpEURs distribution occurs. uint256 accBpEurPerShare; // Accumulated bpEURs per share, times 1e18. See below. bool isStarted; // if lastRewardBlock has passed } IERC20 public bpeur = IERC20(0xC66087b151E5de3a414a22d442f073c0E19f17F2); // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; // The block number when BpEUR mining starts. uint256 public startBlock; uint256 public constant BLOCKS_PER_DAY = 28800; // Day 1 to day 5: 20,000 bpeur daily // Day 6 to day 26: 5,000 bpeur daily // Day 27 to day 180: 1,000 daily uint256[] public epochTotalRewards = [100000 ether, 105000 ether, 154000 ether]; // Block number when each epoch ends. uint256[3] public epochEndBlocks; // Reward per block for each of 3 epochs (last item is equal to 0 - for sanity). uint256[4] public epochBpEURPerBlock; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); event RewardPaid(address indexed user, uint256 amount); constructor(address _bpEUR, uint256 _startBlock) public { require(block.number < _startBlock, "late"); if (_bpEUR != address(0)) bpeur = IERC20(_bpEUR); startBlock = _startBlock; // supposed to be 6330300 (Tue Apr 06 2021 12:00:00 GMT+0) epochEndBlocks[0] = startBlock + BLOCKS_PER_DAY * 5; epochBpEURPerBlock[0] = epochTotalRewards[0].div(BLOCKS_PER_DAY * 5); epochEndBlocks[1] = epochEndBlocks[0] + BLOCKS_PER_DAY * 21; epochBpEURPerBlock[1] = epochTotalRewards[1].div(BLOCKS_PER_DAY * 21); epochEndBlocks[2] = epochEndBlocks[1] + BLOCKS_PER_DAY * 154; epochBpEURPerBlock[2] = epochTotalRewards[1].div(BLOCKS_PER_DAY * 154); epochBpEURPerBlock[3] = 0; operator = msg.sender; } modifier onlyOperator() { require(operator == msg.sender, "bpEURRewardPool: caller is not the operator"); _; } function poolLength() external view returns (uint256) { return poolInfo.length; } function checkPoolDuplicate(IERC20 _lpToken) internal view { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { require(poolInfo[pid].lpToken != _lpToken, "bpEURRewardPool: existing pool?"); } } // Add a new lp to the pool. Can only be called by the owner. function add( uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate, uint256 _lastRewardBlock ) public onlyOperator { checkPoolDuplicate(_lpToken); if (_withUpdate) { massUpdatePools(); } if (block.number < startBlock) { // chef is sleeping if (_lastRewardBlock == 0) { _lastRewardBlock = startBlock; } else { if (_lastRewardBlock < startBlock) { _lastRewardBlock = startBlock; } } } else { // chef is cooking if (_lastRewardBlock == 0 || _lastRewardBlock < block.number) { _lastRewardBlock = block.number; } } bool _isStarted = (_lastRewardBlock <= startBlock) || (_lastRewardBlock <= block.number); poolInfo.push(PoolInfo({lpToken: _lpToken, allocPoint: _allocPoint, lastRewardBlock: _lastRewardBlock, accBpEurPerShare: 0, isStarted: _isStarted})); if (_isStarted) { totalAllocPoint = totalAllocPoint.add(_allocPoint); } } // Update the given pool's BpEUR allocation point. Can only be called by the owner. function set(uint256 _pid, uint256 _allocPoint) public onlyOperator { massUpdatePools(); PoolInfo storage pool = poolInfo[_pid]; if (pool.isStarted) { totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add(_allocPoint); } pool.allocPoint = _allocPoint; } // Return accumulate rewards over the given _from to _to block. function getGeneratedReward(uint256 _from, uint256 _to) public view returns (uint256) { for (uint8 epochId = 3; epochId >= 1; --epochId) { if (_to >= epochEndBlocks[epochId - 1]) { if (_from >= epochEndBlocks[epochId - 1]) return _to.sub(_from).mul(epochBpEURPerBlock[epochId]); uint256 _generatedReward = _to.sub(epochEndBlocks[epochId - 1]).mul(epochBpEURPerBlock[epochId]); if (epochId == 1) return _generatedReward.add(epochEndBlocks[0].sub(_from).mul(epochBpEURPerBlock[0])); for (epochId = epochId - 1; epochId >= 1; --epochId) { if (_from >= epochEndBlocks[epochId - 1]) return _generatedReward.add(epochEndBlocks[epochId].sub(_from).mul(epochBpEURPerBlock[epochId])); _generatedReward = _generatedReward.add(epochEndBlocks[epochId].sub(epochEndBlocks[epochId - 1]).mul(epochBpEURPerBlock[epochId])); } return _generatedReward.add(epochEndBlocks[0].sub(_from).mul(epochBpEURPerBlock[0])); } } return _to.sub(_from).mul(epochBpEURPerBlock[0]); } // View function to see pending bpEURs on frontend. function pendingReward(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accBpEurPerShare = pool.accBpEurPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (block.number > pool.lastRewardBlock && lpSupply != 0) { uint256 _generatedReward = getGeneratedReward(pool.lastRewardBlock, block.number); uint256 _bpEURReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint); accBpEurPerShare = accBpEurPerShare.add(_bpEURReward.mul(1e18).div(lpSupply)); } return user.amount.mul(accBpEurPerShare).div(1e18).sub(user.rewardDebt); } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.number <= pool.lastRewardBlock) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0) { pool.lastRewardBlock = block.number; return; } if (!pool.isStarted) { pool.isStarted = true; totalAllocPoint = totalAllocPoint.add(pool.allocPoint); } if (totalAllocPoint > 0) { uint256 _generatedReward = getGeneratedReward(pool.lastRewardBlock, block.number); uint256 _bpEURReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint); pool.accBpEurPerShare = pool.accBpEurPerShare.add(_bpEURReward.mul(1e18).div(lpSupply)); } pool.lastRewardBlock = block.number; } // Deposit LP tokens. function deposit(uint256 _pid, uint256 _amount) public { address _sender = msg.sender; PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_sender]; updatePool(_pid); if (user.amount > 0) { uint256 _pending = user.amount.mul(pool.accBpEurPerShare).div(1e18).sub(user.rewardDebt); if (_pending > 0) { safeBpEURTransfer(_sender, _pending); emit RewardPaid(_sender, _pending); } } if (_amount > 0) { pool.lpToken.safeTransferFrom(_sender, address(this), _amount); user.amount = user.amount.add(_amount); } user.rewardDebt = user.amount.mul(pool.accBpEurPerShare).div(1e18); emit Deposit(_sender, _pid, _amount); } // Withdraw LP tokens. function withdraw(uint256 _pid, uint256 _amount) public { address _sender = msg.sender; PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 _pending = user.amount.mul(pool.accBpEurPerShare).div(1e18).sub(user.rewardDebt); if (_pending > 0) { safeBpEURTransfer(_sender, _pending); emit RewardPaid(_sender, _pending); } if (_amount > 0) { user.amount = user.amount.sub(_amount); pool.lpToken.safeTransfer(_sender, _amount); } user.rewardDebt = user.amount.mul(pool.accBpEurPerShare).div(1e18); emit Withdraw(_sender, _pid, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; uint256 _amount = user.amount; user.amount = 0; user.rewardDebt = 0; pool.lpToken.safeTransfer(msg.sender, _amount); emit EmergencyWithdraw(msg.sender, _pid, _amount); } // Safe transfer function, just in case if rounding error causes pool to not have enough bpEURs. function safeBpEURTransfer(address _to, uint256 _amount) internal { uint256 _bpEURBal = bpeur.balanceOf(address(this)); if (_bpEURBal > 0) { if (_amount > _bpEURBal) { bpeur.safeTransfer(_to, _bpEURBal); } else { bpeur.safeTransfer(_to, _amount); } } } function setOperator(address _operator) external onlyOperator { operator = _operator; } function governanceRecoverUnsupported( IERC20 _token, uint256 amount, address to ) external onlyOperator { if (block.number < epochEndBlocks[2] + BLOCKS_PER_DAY * 180) { // do not allow to drain lpToken if less than 6 months after farming ends. require(_token != bpeur, "!bpeur"); uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { PoolInfo storage pool = poolInfo[pid]; require(_token != pool.lpToken, "!pool.lpToken"); } } _token.safeTransfer(to, amount); } }
[{"inputs":[{"internalType":"address","name":"_bpEUR","type":"address"},{"internalType":"uint256","name":"_startBlock","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BLOCKS_PER_DAY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_lastRewardBlock","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bpeur","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochBpEURPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochEndBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochTotalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accBpEurPerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
600180546001600160a01b03191673c66087b151e5de3a414a22d442f073c0e19f17f2179055600060045560e060405269152d02c7e14af6800000608090815269163c0fb846284fa0000060a05269209c5b528907ec40000060c0526200006b906006906003620002bd565b503480156200007957600080fd5b506040516200218c3803806200218c833981810160405260408110156200009f57600080fd5b508051602090910151438111620000e6576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b038216156200011257600180546001600160a01b0319166001600160a01b0384161790555b60058190556202328080820160075560068054620001559291906000906200013657fe5b9060005260206000200154620001c560201b620015591790919060201c565b600a5560075462093a80908101600855600680546200017c92919060019081106200013657fe5b600b556008546243ad0090810160095560068054620001a392919060019081106200013657fe5b600c5550506000600d81905580546001600160a01b031916331790556200032f565b60006200020f83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506200021660201b60201c565b9392505050565b60008183620002a65760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156200026a57818101518382015260200162000250565b50505050905090810190601f168015620002985780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581620002b357fe5b0495945050505050565b82805482825590600052602060002090810192821562000306579160200282015b828111156200030657825182906001600160501b0316905591602001919060010190620002de565b506200031492915062000318565b5090565b5b8082111562000314576000815560010162000319565b611e4d806200033f6000396000f3fe608060405234801561001057600080fd5b50600436106101825760003560e01c806354575af4116100d857806396805e541161008c578063b3ab15fb11610066578063b3ab15fb1461044f578063bf3dea0a14610482578063e2bbb1581461049f57610182565b806396805e54146103b257806398969e82146103f95780639a25cefc1461043257610182565b8063630b5ba1116100bd578063630b5ba1146103505780636bb987fe1461035857806393f1a40b1461036057610182565b806354575af414610305578063570ca7351461034857610182565b8063231f0c6a1161013a57806348cd4cb11161011457806348cd4cb1146102c357806351eb05a6146102cb5780635312ea8e146102e857610182565b8063231f0c6a146102605780633fd5000114610283578063441a3e70146102a057610182565b80631526fe271161016b5780631526fe27146101d257806317caf6f1146102335780631ab06ee51461023b57610182565b806303be1af214610187578063081e3eda146101b8575b600080fd5b61018f6104c2565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101c06104de565b60408051918252519081900360200190f35b6101ef600480360360208110156101e857600080fd5b50356104e4565b6040805173ffffffffffffffffffffffffffffffffffffffff9096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b6101c061053c565b61025e6004803603604081101561025157600080fd5b5080359060200135610542565b005b6101c06004803603604081101561027657600080fd5b5080359060200135610617565b6101c06004803603602081101561029957600080fd5b5035610812565b61025e600480360360408110156102b657600080fd5b5080359060200135610826565b6101c0610a3c565b61025e600480360360208110156102e157600080fd5b5035610a42565b61025e600480360360208110156102fe57600080fd5b5035610be4565b61025e6004803603606081101561031b57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359160409091013516610c8d565b61018f610e81565b61025e610e9d565b6101c0610ec0565b6103996004803603604081101561037657600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16610ec6565b6040805192835260208301919091528051918290030190f35b61025e600480360360808110156103c857600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff60208201351690604081013515159060600135610eea565b6101c06004803603604081101561040f57600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff16611151565b6101c06004803603602081101561044857600080fd5b50356112d3565b61025e6004803603602081101561046557600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166112f1565b6101c06004803603602081101561049857600080fd5b50356113a8565b61025e600480360360408110156104b557600080fd5b50803590602001356113b5565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60025490565b600281815481106104f157fe5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff90931694509092909160ff1685565b60045481565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105b2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611ded602b913960400191505060405180910390fd5b6105ba610e9d565b6000600283815481106105c957fe5b60009182526020909120600590910201600481015490915060ff16156106105761060c82610606836001015460045461159b90919063ffffffff16565b906115dd565b6004555b6001015550565b600060035b60018160ff16106107f75760076001820360ff166003811061063a57fe5b015483106107d05760076001820360ff166003811061065557fe5b0154841061068a57610682600a8260ff166004811061067057fe5b015461067c858761159b565b90611651565b91505061080c565b60006106c0600a8360ff166004811061069f57fe5b015461067c60076001860360ff16600381106106b757fe5b0154879061159b565b90508160ff16600114156106fc576106f36106ec600a60005b015461067c88600760005b01549061159b565b82906115dd565b9250505061080c565b6001820391505b60018260ff16106107c15760076001830360ff166003811061072157fe5b01548510610755576106f36106ec600a8460ff166004811061073f57fe5b015461067c8860078760ff16600381106106e457fe5b6107956106ec600a8460ff166004811061076b57fe5b015461067c60076001870360ff166003811061078357fe5b015460078760ff16600381106106e457fe5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909201919050610703565b6106f36106ec600a60006106d9565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0161061c565b50600a546108099061067c848661159b565b90505b92915050565b6007816003811061081f57fe5b0154905081565b600033905060006002848154811061083a57fe5b6000918252602080832087845260038252604080852073ffffffffffffffffffffffffffffffffffffffff8816865290925292208054600590920290920192508411156108e857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f640000000000000000000000000000604482015290519081900360640190fd5b6108f185610a42565b600061092e8260010154610928670de0b6b3a76400006109228760030154876000015461165190919063ffffffff16565b90611559565b9061159b565b9050801561098d5761094084826116c4565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff8616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b84156109c457815461099f908661159b565b825582546109c49073ffffffffffffffffffffffffffffffffffffffff1685876117ba565b600383015482546109e291670de0b6b3a76400009161092291611651565b6001830155604080518681529051879173ffffffffffffffffffffffffffffffffffffffff8716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60055481565b600060028281548110610a5157fe5b9060005260206000209060050201905080600201544311610a725750610be1565b8054604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b158015610ae257600080fd5b505afa158015610af6573d6000803e3d6000fd5b505050506040513d6020811015610b0c57600080fd5b5051905080610b22575043600290910155610be1565b600482015460ff16610b7157600480830180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091558301549054610b6d916115dd565b6004555b60045415610bd8576000610b89836002015443610617565b90506000610baa60045461092286600101548561165190919063ffffffff16565b9050610bd0610bc58461092284670de0b6b3a7640000611651565b6003860154906115dd565b600385015550505b50436002909101555b50565b600060028281548110610bf357fe5b600091825260208083208584526003825260408085203380875293528420805485825560018201959095556005909302018054909450919291610c509173ffffffffffffffffffffffffffffffffffffffff9190911690836117ba565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610cfd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611ded602b913960400191505060405180910390fd5b600954624f1a0001431015610e5b5760015473ffffffffffffffffffffffffffffffffffffffff84811691161415610d9657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600660248201527f2162706575720000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b60025460005b81811015610e5857600060028281548110610db357fe5b60009182526020909120600590910201805490915073ffffffffffffffffffffffffffffffffffffffff87811691161415610e4f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f21706f6f6c2e6c70546f6b656e00000000000000000000000000000000000000604482015290519081900360640190fd5b50600101610d9c565b50505b610e7c73ffffffffffffffffffffffffffffffffffffffff841682846117ba565b505050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60025460005b81811015610ebc57610eb481610a42565b600101610ea3565b5050565b61708081565b60036020908152600092835260408084209091529082529020805460019091015482565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f5a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611ded602b913960400191505060405180910390fd5b610f6383611847565b8115610f7157610f71610e9d565b600554431015610f9d5780610f895750600554610f98565b600554811015610f9857506005545b610fb1565b801580610fa957504381105b15610fb15750435b600060055482111580610fc45750438211155b6040805160a08101825273ffffffffffffffffffffffffffffffffffffffff878116825260208201898152928201868152600060608401818152861580156080870190815260028054600181018255945295517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600590940293840180547fffffffffffffffffffffffff000000000000000000000000000000000000000016919096161790945594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf82015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad184015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad290920180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169215159290921790915590915061114a5760045461114690866115dd565b6004555b5050505050565b6000806002848154811061116157fe5b600091825260208083208784526003808352604080862073ffffffffffffffffffffffffffffffffffffffff808b168852908552818720600590960290930191820154825482517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b1580156111ff57600080fd5b505afa158015611213573d6000803e3d6000fd5b505050506040513d602081101561122957600080fd5b505160028501549091504311801561124057508015155b1561129d576000611255856002015443610617565b9050600061127660045461092288600101548561165190919063ffffffff16565b90506112986112918461092284670de0b6b3a7640000611651565b85906115dd565b935050505b6112c88360010154610928670de0b6b3a764000061092286886000015461165190919063ffffffff16565b979650505050505050565b600681815481106112e057fe5b600091825260209091200154905081565b60005473ffffffffffffffffffffffffffffffffffffffff163314611361576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b815260200180611ded602b913960400191505060405180910390fd5b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600a816004811061081f57fe5b60003390506000600284815481106113c957fe5b6000918252602080832087845260038252604080852073ffffffffffffffffffffffffffffffffffffffff8816865290925292206005909102909101915061141085610a42565b8054156114a95760006114488260010154610928670de0b6b3a76400006109228760030154876000015461165190919063ffffffff16565b905080156114a75761145a84826116c4565b60408051828152905173ffffffffffffffffffffffffffffffffffffffff8616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b83156114e25781546114d39073ffffffffffffffffffffffffffffffffffffffff16843087611915565b80546114df90856115dd565b81555b6003820154815461150091670de0b6b3a76400009161092291611651565b6001820155604080518581529051869173ffffffffffffffffffffffffffffffffffffffff8616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b600061080983836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506119b0565b600061080983836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611a6c565b60008282018381101561080957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826116605750600061080c565b8282028284828161166d57fe5b0414610809576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180611da26021913960400191505060405180910390fd5b600154604080517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152905160009273ffffffffffffffffffffffffffffffffffffffff16916370a08231916024808301926020929190829003018186803b15801561173557600080fd5b505afa158015611749573d6000803e3d6000fd5b505050506040513d602081101561175f57600080fd5b505190508015610e7c578082111561179a576001546117959073ffffffffffffffffffffffffffffffffffffffff1684836117ba565b610e7c565b600154610e7c9073ffffffffffffffffffffffffffffffffffffffff1684845b6040805173ffffffffffffffffffffffffffffffffffffffff8416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610e7c908490611ae0565b60025460005b81811015610e7c578273ffffffffffffffffffffffffffffffffffffffff166002828154811061187957fe5b600091825260209091206005909102015473ffffffffffffffffffffffffffffffffffffffff16141561190d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f6270455552526577617264506f6f6c3a206578697374696e6720706f6f6c3f00604482015290519081900360640190fd5b60010161184d565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790526119aa908590611ae0565b50505050565b60008183611a56576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611a1b578181015183820152602001611a03565b50505050905090810190601f168015611a485780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581611a6257fe5b0495945050505050565b60008184841115611ad8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152835160248401528351909283926044909101919085019080838360008315611a1b578181015183820152602001611a03565b505050900390565b6060611b42826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16611bb89092919063ffffffff16565b805190915015610e7c57808060200190516020811015611b6157600080fd5b5051610e7c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611dc3602a913960400191505060405180910390fd5b6060611bc78484600085611bcf565b949350505050565b6060611bda85611d9b565b611c4557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600060608673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b60208310611caf57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101611c72565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611d11576040519150601f19603f3d011682016040523d82523d6000602084013e611d16565b606091505b50915091508115611d2a579150611bc79050565b805115611d3a5780518082602001fd5b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201818152865160248401528651879391928392604401919085019080838360008315611a1b578181015183820152602001611a03565b3b15159056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565646270455552526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72a2646970667358221220a68cb7a1a9f27458d1042aa95c22aae7b8a378d9c4c08d2b3ff303f59a15268164736f6c634300060c0033000000000000000000000000c66087b151e5de3a414a22d442f073c0e19f17f200000000000000000000000000000000000000000000000000000000006097bc
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000c66087b151e5de3a414a22d442f073c0e19f17f200000000000000000000000000000000000000000000000000000000006097bc
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000c66087b151e5de3a414a22d442f073c0e19f17f2
Arg [1] : 00000000000000000000000000000000000000000000000000000000006097bc
Deployed ByteCode Sourcemap
18325:11762:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19141:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;21353:95;;;:::i;:::-;;;;;;;;;;;;;;;;19249:26;;;;;;;;;;;;;;;;-1:-1:-1;19249:26:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19494:34;;;:::i;23062:321::-;;;;;;;;;;;;;;;;-1:-1:-1;23062:321:0;;;;;;;:::i;:::-;;23460:1153;;;;;;;;;;;;;;;;-1:-1:-1;23460:1153:0;;;;;;;:::i;19933:32::-;;;;;;;;;;;;;;;;-1:-1:-1;19933:32:0;;:::i;27585:815::-;;;;;;;;;;;;;;;;-1:-1:-1;27585:815:0;;;;;;;:::i;19588:25::-;;;:::i;25786:897::-;;;;;;;;;;;;;;;;-1:-1:-1;25786:897:0;;:::i;28471:379::-;;;;;;;;;;;;;;;;-1:-1:-1;28471:379:0;;:::i;29434:650::-;;;;;;;;;;;;;;;;-1:-1:-1;29434:650:0;;;;;;;;;;;;;;;;;;:::i;18444:23::-;;;:::i;25530:180::-;;;:::i;19622:46::-;;;:::i;19333:64::-;;;;;;;;;;;;;;;;-1:-1:-1;19333:64:0;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;21798:1167;;;;;;;;;;;;;;;;-1:-1:-1;21798:1167:0;;;;;;;;;;;;;;;;;;;;;:::i;24678:769::-;;;;;;;;;;;;;;;;-1:-1:-1;24678:769:0;;;;;;;;;:::i;19802:79::-;;;;;;;;;;;;;;;;-1:-1:-1;19802:79:0;;:::i;29325:101::-;;;;;;;;;;;;;;;;-1:-1:-1;29325:101:0;;;;:::i;20060:36::-;;;;;;;;;;;;;;;;-1:-1:-1;20060:36:0;;:::i;26718:831::-;;;;;;;;;;;;;;;;-1:-1:-1;26718:831:0;;;;;;;:::i;19141:72::-;;;;;;:::o;21353:95::-;21425:8;:15;21353:95;:::o;19249:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19249:26:0;;;;;;;:::o;19494:34::-;;;;:::o;23062:321::-;21255:8;;:22;:8;21267:10;21255:22;21247:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23141:17:::1;:15;:17::i;:::-;23169:21;23193:8;23202:4;23193:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;23222;::::0;::::1;::::0;23193;;-1:-1:-1;23222:14:0::1;;23218:118;;;23271:53;23312:11;23271:36;23291:4;:15;;;23271;;:19;;:36;;;;:::i;:::-;:40:::0;::::1;:53::i;:::-;23253:15;:71:::0;23218:118:::1;23346:15;;:29:::0;-1:-1:-1;23062:321:0:o;23460:1153::-;23537:7;23578:1;23557:990;23592:1;23581:7;:12;;;23557:990;;23632:14;23657:1;23647:7;:11;23632:27;;;;;;;;;;;23625:3;:34;23621:915;;23693:14;23718:1;23708:7;:11;23693:27;;;;;;;;;;;23684:5;:36;23680:96;;23729:47;23748:18;23767:7;23748:27;;;;;;;;;;;23729:14;:3;23737:5;23729:7;:14::i;:::-;:18;;:47::i;:::-;23722:54;;;;;23680:96;23795:24;23822:69;23863:18;23882:7;23863:27;;;;;;;;;;;23822:36;23830:14;23855:1;23845:7;:11;23830:27;;;;;;;;;;;23822:3;;:7;:36::i;:69::-;23795:96;;23914:7;:12;;23925:1;23914:12;23910:102;;;23935:77;23956:55;23989:18;24008:1;23989:21;;;23956:28;23978:5;23956:14;23971:1;23956:17;;;;:21;:28::i;:55::-;23935:16;;:20;:77::i;:::-;23928:84;;;;;;23910:102;24056:1;24046:7;:11;24036:21;;24031:387;24070:1;24059:7;:12;;;24031:387;;24120:14;24145:1;24135:7;:11;24120:27;;;;;;;;;;;24111:5;:36;24107:138;;24156:89;24177:67;24216:18;24235:7;24216:27;;;;;;;;;;;24177:34;24205:5;24177:14;24192:7;24177:23;;;;;;;;24107:138;24287:111;24308:89;24369:18;24388:7;24369:27;;;;;;;;;;;24308:56;24336:14;24361:1;24351:7;:11;24336:27;;;;;;;;;;;24308:14;24323:7;24308:23;;;;;;;;24287:111;24073:9;;;;;24268:130;-1:-1:-1;24031:387:0;;;24443:77;24464:55;24497:18;24516:1;24497:21;;23621:915;23595:9;;23557:990;;;-1:-1:-1;24583:18:0;:21;24564:41;;:14;:3;24572:5;24564:7;:14::i;:41::-;24557:48;;23460:1153;;;;;:::o;19933:32::-;;;;;;;;;;;;;-1:-1:-1;19933:32:0;:::o;27585:815::-;27652:15;27670:10;27652:28;;27691:21;27715:8;27724:4;27715:14;;;;;;;;;;;;;;;;27764;;;:8;:14;;;;;;:23;;;;;;;;;;27806:11;;27715:14;;;;;;;;-1:-1:-1;27806:22:0;-1:-1:-1;27806:22:0;27798:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27862:16;27873:4;27862:10;:16::i;:::-;27889;27908:69;27961:4;:15;;;27908:48;27951:4;27908:38;27924:4;:21;;;27908:4;:11;;;:15;;:38;;;;:::i;:::-;:42;;:48::i;:::-;:52;;:69::i;:::-;27889:88;-1:-1:-1;27992:12:0;;27988:130;;28021:36;28039:7;28048:8;28021:17;:36::i;:::-;28077:29;;;;;;;;;;;;;;;;;;;;;;27988:130;28132:11;;28128:140;;28174:11;;:24;;28190:7;28174:15;:24::i;:::-;28160:38;;28213:12;;:43;;:12;;28239:7;28248;28213:25;:43::i;:::-;28312:21;;;;28296:11;;:48;;28339:4;;28296:38;;:15;:38::i;:48::-;28278:15;;;:66;28360:32;;;;;;;;28378:4;;28360:32;;;;;;;;;;;;;27585:815;;;;;;:::o;19588:25::-;;;;:::o;25786:897::-;25838:21;25862:8;25871:4;25862:14;;;;;;;;;;;;;;;;;;25838:38;;25907:4;:20;;;25891:12;:36;25887:75;;25944:7;;;25887:75;25991:12;;:37;;;;;;26022:4;25991:37;;;;;;25972:16;;25991:12;;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25991:37:0;;-1:-1:-1;26043:13:0;26039:102;;-1:-1:-1;26096:12:0;26073:20;;;;:35;26123:7;;26039:102;26156:14;;;;;;26151:138;;26187:14;;;;:21;;;;26204:4;26187:21;;;;;;26261:15;;;26241;;:36;;:19;:36::i;:::-;26223:15;:54;26151:138;26303:15;;:19;26299:331;;26339:24;26366:54;26385:4;:20;;;26407:12;26366:18;:54::i;:::-;26339:81;;26435:20;26458:58;26500:15;;26458:37;26479:4;:15;;;26458:16;:20;;:37;;;;:::i;:58::-;26435:81;-1:-1:-1;26555:63:0;26581:36;26608:8;26581:22;26435:81;26598:4;26581:16;:22::i;:36::-;26555:21;;;;;:25;:63::i;:::-;26531:21;;;:87;-1:-1:-1;;26299:331:0;-1:-1:-1;26663:12:0;26640:20;;;;:35;25786:897;;:::o;28471:379::-;28530:21;28554:8;28563:4;28554:14;;;;;;;;;;;;;;;;28603;;;:8;:14;;;;;;28618:10;28603:26;;;;;;;28658:11;;28680:15;;;-1:-1:-1;28706:15:0;;:19;;;;28554:14;;;;;28736:12;;28554:14;;-1:-1:-1;28603:26:0;;28658:11;28736:46;;28603:26;28736:12;;;;;28658:11;28736:25;:46::i;:::-;28798:44;;;;;;;;28828:4;;28816:10;;28798:44;;;;;;;;;28471:379;;;;:::o;29434:650::-;21255:8;;:22;:8;21267:10;21255:22;21247:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29601:17;;29621:20;29601:40:::1;29586:12;:55;29582:453;;;29764:5;::::0;::::1;29754:15:::0;;::::1;29764:5:::0;::::1;29754:15;;29746:34;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;29812:8;:15:::0;29795:14:::1;29842:182;29870:6;29864:3;:12;29842:182;;;29904:21;29928:8;29937:3;29928:13;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;29978:12:::0;;29928:13;;-1:-1:-1;29978:12:0::1;29968:22:::0;;::::1;29978:12:::0;::::1;29968:22;;29960:48;;;::::0;;::::1;::::0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;29878:5:0::1;;29842:182;;;;29582:453;;30045:31;:19;::::0;::::1;30065:2:::0;30069:6;30045:19:::1;:31::i;:::-;29434:650:::0;;;:::o;18444:23::-;;;;;;:::o;25530:180::-;25592:8;:15;25575:14;25618:85;25646:6;25640:3;:12;25618:85;;;25676:15;25687:3;25676:10;:15::i;:::-;25654:5;;25618:85;;;;25530:180;:::o;19622:46::-;19663:5;19622:46;:::o;19333:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;21798:1167::-;21255:8;;:22;:8;21267:10;21255:22;21247:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21967:28:::1;21986:8;21967:18;:28::i;:::-;22010:11;22006:61;;;22038:17;:15;:17::i;:::-;22096:10;;22081:12;:25;22077:520;;;22160:21:::0;22156:238:::1;;-1:-1:-1::0;22221:10:0::1;::::0;22156:238:::1;;;22295:10;;22276:16;:29;22272:107;;;-1:-1:-1::0;22349:10:0::1;::::0;22272:107:::1;22077:520;;;22462:21:::0;;;:56:::1;;;22506:12;22487:16;:31;22462:56;22458:128;;;-1:-1:-1::0;22558:12:0::1;22458:128;22607:15;22646:10;;22626:16;:30;;22625:70;;;;22682:12;22662:16;:32;;22625:70;22720:133;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;22720:133:0;;;;;;;::::1;::::0;::::1;::::0;;;;;;22706:8:::1;:148:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;;::::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::1;::::0;::::1;;::::0;;;::::1;::::0;;;22720:133;;-1:-1:-1;22865:93:0::1;;22914:15;::::0;:32:::1;::::0;22934:11;22914:19:::1;:32::i;:::-;22896:15;:50:::0;22865:93:::1;21336:1;21798:1167:::0;;;;:::o;24678:769::-;24753:7;24773:21;24797:8;24806:4;24797:14;;;;;;;;;;;;;;;;24846;;;:8;:14;;;;;;;:21;;;;;;;;;;;;24797:14;;;;;;;24905:21;;;;24956:12;;:37;;;;;24987:4;24956:37;;;;;;24797:14;;-1:-1:-1;24846:21:0;;24905;;24797:14;;24956:12;;;:22;;:37;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24956:37:0;25023:20;;;;24956:37;;-1:-1:-1;25008:12:0;:35;:52;;;;-1:-1:-1;25047:13:0;;;25008:52;25004:354;;;25077:24;25104:54;25123:4;:20;;;25145:12;25104:18;:54::i;:::-;25077:81;;25173:20;25196:58;25238:15;;25196:37;25217:4;:15;;;25196:16;:20;;:37;;;;:::i;:58::-;25173:81;-1:-1:-1;25288:58:0;25309:36;25336:8;25309:22;25173:81;25326:4;25309:16;:22::i;:36::-;25288:16;;:20;:58::i;:::-;25269:77;;25004:354;;;25375:64;25423:4;:15;;;25375:43;25413:4;25375:33;25391:16;25375:4;:11;;;:15;;:33;;;;:::i;:64::-;25368:71;24678:769;-1:-1:-1;;;;;;;24678:769:0:o;19802:79::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;19802:79:0;:::o;29325:101::-;21255:8;;:22;:8;21267:10;21255:22;21247:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29398:8:::1;:20:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;29325:101::o;20060:36::-;;;;;;;;;26718:831;26784:15;26802:10;26784:28;;26823:21;26847:8;26856:4;26847:14;;;;;;;;;;;;;;;;26896;;;:8;:14;;;;;;:23;;;;;;;;;;26847:14;;;;;;;;-1:-1:-1;26930:16:0;26905:4;26930:10;:16::i;:::-;26961:11;;:15;26957:292;;26993:16;27012:69;27065:4;:15;;;27012:48;27055:4;27012:38;27028:4;:21;;;27012:4;:11;;;:15;;:38;;;;:::i;:69::-;26993:88;-1:-1:-1;27100:12:0;;27096:142;;27133:36;27151:7;27160:8;27133:17;:36::i;:::-;27193:29;;;;;;;;;;;;;;;;;;;;;;27096:142;26957:292;;27263:11;;27259:159;;27291:12;;:62;;:12;;27321:7;27338:4;27345:7;27291:29;:62::i;:::-;27382:11;;:24;;27398:7;27382:15;:24::i;:::-;27368:38;;27259:159;27462:21;;;;27446:11;;:48;;27489:4;;27446:38;;:15;:38::i;:48::-;27428:15;;;:66;27510:31;;;;;;;;27527:4;;27510:31;;;;;;;;;;;;;26718:831;;;;;:::o;5984:132::-;6042:7;6069:39;6073:1;6076;6069:39;;;;;;;;;;;;;;;;;:3;:39::i;4113:136::-;4171:7;4198:43;4202:1;4205;4198:43;;;;;;;;;;;;;;;;;:3;:43::i;3649:181::-;3707:7;3739:5;;;3763:6;;;;3755:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5037:471;5095:7;5340:6;5336:47;;-1:-1:-1;5370:1:0;5363:8;;5336:47;5407:5;;;5411:1;5407;:5;:1;5431:5;;;;;:10;5423:56;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28960:357;29057:5;;:30;;;;;;29081:4;29057:30;;;;;;29037:17;;29057:5;;;:15;;:30;;;;;;;;;;;;;;:5;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29057:30:0;;-1:-1:-1;29102:13:0;;29098:212;;29146:9;29136:7;:19;29132:167;;;29176:5;;:34;;:5;;29195:3;29200:9;29176:18;:34::i;:::-;29132:167;;;29251:5;;:32;;:5;;29270:3;29275:7;14906:211;15050:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15073:23;15050:58;;;15023:86;;15043:5;;15023:19;:86::i;21456:267::-;21543:8;:15;21526:14;21569:147;21597:6;21591:3;:12;21569:147;;;21660:8;21635:33;;:8;21644:3;21635:13;;;;;;;;;;;;;;;;;;;;;:21;;;:33;;21627:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21605:5;;21569:147;;15125:248;15296:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15319:27;15296:68;;;15269:96;;15289:5;;15269:19;:96::i;:::-;15125:248;;;;:::o;6612:312::-;6732:7;6767:12;6760:5;6752:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6791:9;6807:1;6803;:5;;;;;;;6612:312;-1:-1:-1;;;;;6612:312:0:o;4552:226::-;4672:7;4708:12;4700:6;;;;4692:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4744:5:0;;;4552:226::o;17367:774::-;17791:23;17817:69;17845:4;17817:69;;;;;;;;;;;;;;;;;17825:5;17817:27;;;;:69;;;;;:::i;:::-;17901:17;;17791:95;;-1:-1:-1;17901:21:0;17897:237;;18056:10;18045:30;;;;;;;;;;;;;;;-1:-1:-1;18045:30:0;18037:85;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11832:230;11969:12;12001:53;12024:6;12032:4;12038:1;12041:12;12001:22;:53::i;:::-;11994:60;11832:230;-1:-1:-1;;;;11832:230:0:o;13320:1020::-;13493:12;13526:18;13537:6;13526:10;:18::i;:::-;13518:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13652:12;13666:23;13693:6;:11;;13712:8;13722:4;13693:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13651:76;;;;13742:7;13738:595;;;13773:10;-1:-1:-1;13766:17:0;;-1:-1:-1;13766:17:0;13738:595;13887:17;;:21;13883:439;;14150:10;14144:17;14211:15;14198:10;14194:2;14190:19;14183:44;14098:148;14286:20;;;;;;;;;;;;;;;;;;;;14293:12;;14286:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8892:444;9272:20;9320:8;;;8892:444::o
Swarm Source
ipfs://a68cb7a1a9f27458d1042aa95c22aae7b8a378d9c4c08d2b3ff303f59a152681
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.