Contract
0x8edce6d0e0687da9c07b36591781fb6641a53a12
1
My Name Tag:
Not Available, login to update
[ Download CSV Export ]
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | |||
---|---|---|---|---|---|---|---|
0x14e249427ec012d9fd588d19fe6efd65d152a84e332574494314a8f820f09bac | 16951087 | 628 days 16 hrs ago | 0x2981bb8f2883a462c5c413de604c3b3e36884800 | Contract Creation | 0 FTM |
[ Download CSV Export ]
Contract Name:
MasterChef
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at FtmScan.com on 2021-09-12 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/token/ERC20/IERC20.sol pragma solidity ^0.6.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File: @openzeppelin/contracts/math/SafeMath.sol pragma solidity ^0.6.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: @openzeppelin/contracts/utils/Address.sol pragma solidity ^0.6.2; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol pragma solidity ^0.6.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File: @openzeppelin/contracts/utils/EnumerableSet.sol pragma solidity ^0.6.0; /** * @dev Library for managing * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive * types. * * Sets have the following properties: * * - Elements are added, removed, and checked for existence in constant time * (O(1)). * - Elements are enumerated in O(n). No guarantees are made on the ordering. * * ``` * contract Example { * // Add the library methods * using EnumerableSet for EnumerableSet.AddressSet; * * // Declare a set state variable * EnumerableSet.AddressSet private mySet; * } * ``` * * As of v3.0.0, only sets of type `address` (`AddressSet`) and `uint256` * (`UintSet`) are supported. */ library EnumerableSet { // To implement this library for multiple types with as little code // repetition as possible, we write it in terms of a generic Set type with // bytes32 values. // The Set implementation uses private functions, and user-facing // implementations (such as AddressSet) are just wrappers around the // underlying Set. // This means that we can only create new EnumerableSets for types that fit // in bytes32. struct Set { // Storage of set values bytes32[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (bytes32 => uint256) _indexes; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function _add(Set storage set, bytes32 value) private returns (bool) { if (!_contains(set, value)) { set._values.push(value); // The value is stored at length-1, but we add 1 to all indexes // and use 0 as a sentinel value set._indexes[value] = set._values.length; return true; } else { return false; } } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function _remove(Set storage set, bytes32 value) private returns (bool) { // We read and store the value's index to prevent multiple reads from the same storage slot uint256 valueIndex = set._indexes[value]; if (valueIndex != 0) { // Equivalent to contains(set, value) // To delete an element from the _values array in O(1), we swap the element to delete with the last one in // the array, and then remove the last element (sometimes called as 'swap and pop'). // This modifies the order of the array, as noted in {at}. uint256 toDeleteIndex = valueIndex - 1; uint256 lastIndex = set._values.length - 1; // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement. bytes32 lastvalue = set._values[lastIndex]; // Move the last value to the index where the value to delete is set._values[toDeleteIndex] = lastvalue; // Update the index for the moved value set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based // Delete the slot where the moved value was stored set._values.pop(); // Delete the index for the deleted slot delete set._indexes[value]; return true; } else { return false; } } /** * @dev Returns true if the value is in the set. O(1). */ function _contains(Set storage set, bytes32 value) private view returns (bool) { return set._indexes[value] != 0; } /** * @dev Returns the number of values on the set. O(1). */ function _length(Set storage set) private view returns (uint256) { return set._values.length; } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function _at(Set storage set, uint256 index) private view returns (bytes32) { require(set._values.length > index, "EnumerableSet: index out of bounds"); return set._values[index]; } // AddressSet struct AddressSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(AddressSet storage set, address value) internal returns (bool) { return _add(set._inner, bytes32(uint256(value))); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(AddressSet storage set, address value) internal returns (bool) { return _remove(set._inner, bytes32(uint256(value))); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(AddressSet storage set, address value) internal view returns (bool) { return _contains(set._inner, bytes32(uint256(value))); } /** * @dev Returns the number of values in the set. O(1). */ function length(AddressSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(AddressSet storage set, uint256 index) internal view returns (address) { return address(uint256(_at(set._inner, index))); } // UintSet struct UintSet { Set _inner; } /** * @dev Add a value to a set. O(1). * * Returns true if the value was added to the set, that is if it was not * already present. */ function add(UintSet storage set, uint256 value) internal returns (bool) { return _add(set._inner, bytes32(value)); } /** * @dev Removes a value from a set. O(1). * * Returns true if the value was removed from the set, that is if it was * present. */ function remove(UintSet storage set, uint256 value) internal returns (bool) { return _remove(set._inner, bytes32(value)); } /** * @dev Returns true if the value is in the set. O(1). */ function contains(UintSet storage set, uint256 value) internal view returns (bool) { return _contains(set._inner, bytes32(value)); } /** * @dev Returns the number of values on the set. O(1). */ function length(UintSet storage set) internal view returns (uint256) { return _length(set._inner); } /** * @dev Returns the value stored at position `index` in the set. O(1). * * Note that there are no guarantees on the ordering of values inside the * array, and it may change when more values are added or removed. * * Requirements: * * - `index` must be strictly less than {length}. */ function at(UintSet storage set, uint256 index) internal view returns (uint256) { return uint256(_at(set._inner, index)); } } // File: @openzeppelin/contracts/GSN/Context.sol pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: @openzeppelin/contracts/access/Ownable.sol pragma solidity ^0.6.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(_owner == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = address(0); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: @openzeppelin/contracts/token/ERC20/ERC20.sol pragma solidity 0.6.12; interface ElevenToken{ function balanceOf(address) external view returns (uint); function transfer(address, uint) external; } contract MasterChef is Ownable { using SafeMath for uint256; using SafeERC20 for IERC20; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. // // We do some fancy math here. Basically, any point in time, the amount of ELEVENs // entitled to a user but is pending to be distributed is: // // pending reward = (user.amount * pool.accElevenPerShare) - user.rewardDebt // // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens: // 1. The pool's `accElevenPerShare` (and `lastRewardBlock`) gets updated. // 2. User receives the pending reward sent to his/her address. // 3. User's `amount` gets updated. // 4. User's `rewardDebt` gets updated. } mapping(address => uint) public unpaidTokens; //If calculations are good It should never happen // Info of each pool. struct PoolInfo { IERC20 lpToken; // Address of LP token contract. uint256 allocPoint; // How many allocation points assigned to this pool. ELEVENs to distribute per block. uint256 lastRewardTime; // Last timestamp that ELEVENs distribution occurs. uint256 accElevenPerShare; // Accumulated ELEVENs per share, times 1e12. See below. } // The ELEVEN TOKEN! ElevenToken public eleven; // ELEVEN tokens created per block. uint256 public elevenPerSecond; // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping (uint256 => mapping (address => UserInfo)) public userInfo; // Total allocation poitns. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; 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); constructor( ) public { eleven = ElevenToken(0xAcD7B3D9c10e97d0efA418903C0c7669E702E4C0); elevenPerSecond = 30000000000000000; } function changeElevenPerSecond(uint _elePerSecond) onlyOwner external{ require(_elePerSecond <= elevenPerSecond*10, "too much rewards"); // rug is pointless as ele token needs to be bridged anyway, therefore we choose flexibility elevenPerSecond = _elePerSecond; } function poolLength() external view returns (uint256) { return poolInfo.length; } // Add a new lp to the pool. Can only be called by the owner. // XXX DO NOT add the same LP token more than once. Rewards will be messed up if you do. function add(uint256 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner { if (_withUpdate) { massUpdatePools(); } uint256 lastRewardTime = block.timestamp; totalAllocPoint = totalAllocPoint.add(_allocPoint); poolInfo.push(PoolInfo({ lpToken: _lpToken, allocPoint: _allocPoint, lastRewardTime: lastRewardTime, accElevenPerShare: 0 })); } // Update the given pool's ELEVEN allocation point. Can only be called by the owner. function set(uint256 _pid, uint256 _allocPoint, bool _withUpdate) public onlyOwner { if (_withUpdate) { massUpdatePools(); } totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(_allocPoint); poolInfo[_pid].allocPoint = _allocPoint; } // Return reward multiplier over the given _from to _to block. function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) { return _to.sub(_from); } // View function to see pending ELEVENs on frontend. function pendingEleven(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accElevenPerShare = pool.accElevenPerShare; uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (block.timestamp > pool.lastRewardTime && lpSupply != 0) { uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp); uint256 elevenReward = multiplier.mul(elevenPerSecond).mul(pool.allocPoint).div(totalAllocPoint); accElevenPerShare = accElevenPerShare.add(elevenReward.mul(1e12).div(lpSupply)); } return user.amount.mul(accElevenPerShare).div(1e12).sub(user.rewardDebt); } // Update reward vairables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.timestamp <= pool.lastRewardTime) { return; } uint256 lpSupply = pool.lpToken.balanceOf(address(this)); if (lpSupply == 0) { pool.lastRewardTime = block.timestamp; return; } uint256 multiplier = getMultiplier(pool.lastRewardTime, block.timestamp); uint256 elevenReward = multiplier.mul(elevenPerSecond).mul(pool.allocPoint).div(totalAllocPoint); pool.accElevenPerShare = pool.accElevenPerShare.add(elevenReward.mul(1e12).div(lpSupply)); pool.lastRewardTime = block.timestamp; } // Deposit LP tokens to MasterChef for ELEVEN allocation. function deposit(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; updatePool(_pid); if (user.amount > 0) { uint256 pending = user.amount.mul(pool.accElevenPerShare).div(1e12).sub(user.rewardDebt).add(unpaidTokens[msg.sender]); safeElevenTransfer(msg.sender, pending); } pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount); user.amount = user.amount.add(_amount); user.rewardDebt = user.amount.mul(pool.accElevenPerShare).div(1e12); emit Deposit(msg.sender, _pid, _amount); } // Withdraw LP tokens from MasterChef. function withdraw(uint256 _pid, uint256 _amount) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 pending = user.amount.mul(pool.accElevenPerShare).div(1e12).sub(user.rewardDebt).add(unpaidTokens[msg.sender]); safeElevenTransfer(msg.sender, pending); user.amount = user.amount.sub(_amount); user.rewardDebt = user.amount.mul(pool.accElevenPerShare).div(1e12); pool.lpToken.safeTransfer(address(msg.sender), _amount); emit Withdraw(msg.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]; pool.lpToken.safeTransfer(address(msg.sender), user.amount); emit EmergencyWithdraw(msg.sender, _pid, user.amount); user.amount = 0; user.rewardDebt = 0; unpaidTokens[msg.sender] = 0; } // Safe eleven transfer function, just in case if rounding error causes pool to not have enough ELEVENs. function safeElevenTransfer(address _to, uint256 _amount) internal { uint256 elevenBal = eleven.balanceOf(address(this)); if (_amount > elevenBal) { eleven.transfer(_to, elevenBal); unpaidTokens[msg.sender] = _amount.sub(elevenBal); } else { eleven.transfer(_to, _amount); unpaidTokens[msg.sender] = 0; } } uint panikked; //withdraws ele from this MasterChef function panicKK() onlyOwner external{ if (now > panikked) panikked = now + 28800; else eleven.transfer(msg.sender, eleven.balanceOf(address(this))); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_elePerSecond","type":"uint256"}],"name":"changeElevenPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eleven","outputs":[{"internalType":"contract ElevenToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"elevenPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"panicKK","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingEleven","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":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accElevenPerShare","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"unpaidTokens","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
6080604052600060065534801561001557600080fd5b5060006100206100a0565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600280546001600160a01b03191673acd7b3d9c10e97d0efa418903c0c7669e702e4c0179055666a94d74f4300006003556100a4565b3390565b6117ec806100b36000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063630b5ba1116100b85780638dbb1e3a1161007c5780638dbb1e3a146102f057806393f1a40b14610313578063949177e314610358578063d4fd381814610360578063e2bbb1581461038c578063f2fde38b146103af57610137565b8063630b5ba11461026b57806364482f7914610273578063715018a61461029e5780638600adc6146102a65780638da5cb5b146102cc57610137565b80631eaaa045116100ff5780631eaaa045146101d25780632bb5cc3e14610206578063441a3e701461020e57806351eb05a6146102315780635312ea8e1461024e57610137565b8063081e3eda1461013c5780631526fe2714610156578063170a37a6146101a357806317caf6f1146101c257806317fdad6c146101ca575b600080fd5b6101446103d5565b60408051918252519081900360200190f35b6101736004803603602081101561016c57600080fd5b50356103db565b604080516001600160a01b0390951685526020850193909352838301919091526060830152519081900360800190f35b6101c0600480360360208110156101b957600080fd5b503561041c565b005b6101446104c6565b6101c06104cc565b6101c0600480360360608110156101e857600080fd5b508035906001600160a01b0360208201351690604001351515610624565b61014461078d565b6101c06004803603604081101561022457600080fd5b5080359060200135610793565b6101c06004803603602081101561024757600080fd5b50356108fa565b6101c06004803603602081101561026457600080fd5b5035610a2a565b6101c0610ad5565b6101c06004803603606081101561028957600080fd5b50803590602081013590604001351515610af8565b6101c0610bc3565b610144600480360360208110156102bc57600080fd5b50356001600160a01b0316610c65565b6102d4610c77565b604080516001600160a01b039092168252519081900360200190f35b6101446004803603604081101561030657600080fd5b5080359060200135610c86565b61033f6004803603604081101561032957600080fd5b50803590602001356001600160a01b0316610c9b565b6040805192835260208301919091528051918290030190f35b6102d4610cbf565b6101446004803603604081101561037657600080fd5b50803590602001356001600160a01b0316610cce565b6101c0600480360360408110156103a257600080fd5b5080359060200135610e30565b6101c0600480360360208110156103c557600080fd5b50356001600160a01b0316610f43565b60045490565b600481815481106103e857fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b61042461103b565b6000546001600160a01b03908116911614610474576040805162461bcd60e51b8152602060048201819052602482015260008051602061176d833981519152604482015290519081900360640190fd5b600354600a028111156104c1576040805162461bcd60e51b815260206004820152601060248201526f746f6f206d756368207265776172647360801b604482015290519081900360640190fd5b600355565b60065481565b6104d461103b565b6000546001600160a01b03908116911614610524576040805162461bcd60e51b8152602060048201819052602482015260008051602061176d833981519152604482015290519081900360640190fd5b60075442111561053b576170804201600755610622565b600254604080516370a0823160e01b815230600482015290516001600160a01b039092169163a9059cbb91339184916370a08231916024808301926020929190829003018186803b15801561058f57600080fd5b505afa1580156105a3573d6000803e3d6000fd5b505050506040513d60208110156105b957600080fd5b5051604080516001600160e01b031960e086901b1681526001600160a01b039093166004840152602483019190915251604480830192600092919082900301818387803b15801561060957600080fd5b505af115801561061d573d6000803e3d6000fd5b505050505b565b61062c61103b565b6000546001600160a01b0390811691161461067c576040805162461bcd60e51b8152602060048201819052602482015260008051602061176d833981519152604482015290519081900360640190fd5b801561068a5761068a610ad5565b6006544290610699908561103f565b600655604080516080810182526001600160a01b03948516815260208101958652908101918252600060608201818152600480546001810182559281905292517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b9290930291820180546001600160a01b031916939096169290921790945593517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c840155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d8301555090517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e90910155565b60035481565b6000600483815481106107a257fe5b600091825260208083208684526005825260408085203386529092529220805460049092029092019250831115610815576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61081e846108fa565b336000908152600160208190526040822054908301546003850154845461086c93926108669290916108609164e8d4a510009161085a91611099565b906110f2565b90611134565b9061103f565b90506108783382611176565b81546108849085611134565b80835560038401546108a19164e8d4a510009161085a9190611099565b600183015582546108bc906001600160a01b0316338661130f565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b60006004828154811061090957fe5b906000526020600020906004020190508060020154421161092a5750610a27565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561097457600080fd5b505afa158015610988573d6000803e3d6000fd5b505050506040513d602081101561099e57600080fd5b50519050806109b4575042600290910155610a27565b60006109c4836002015442610c86565b905060006109f160065461085a86600101546109eb6003548761109990919063ffffffff16565b90611099565b9050610a14610a098461085a8464e8d4a51000611099565b60038601549061103f565b6003850155505042600290920191909155505b50565b600060048281548110610a3957fe5b60009182526020808320858452600582526040808520338087529352909320805460049093029093018054909450610a7e926001600160a01b0391909116919061130f565b80546040805191825251849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a36000808255600191820181905533815260209190915260408120555050565b60045460005b81811015610af457610aec816108fa565b600101610adb565b5050565b610b0061103b565b6000546001600160a01b03908116911614610b50576040805162461bcd60e51b8152602060048201819052602482015260008051602061176d833981519152604482015290519081900360640190fd5b8015610b5e57610b5e610ad5565b610b958261086660048681548110610b7257fe5b90600052602060002090600402016001015460065461113490919063ffffffff16565b6006819055508160048481548110610ba957fe5b906000526020600020906004020160010181905550505050565b610bcb61103b565b6000546001600160a01b03908116911614610c1b576040805162461bcd60e51b8152602060048201819052602482015260008051602061176d833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60016020526000908152604090205481565b6000546001600160a01b031690565b6000610c928284611134565b90505b92915050565b60056020908152600092835260408084209091529082529020805460019091015482565b6002546001600160a01b031681565b60008060048481548110610cde57fe5b600091825260208083208784526005825260408085206001600160a01b03898116875290845281862060049586029093016003810154815484516370a0823160e01b81523098810198909852935191985093969395939492909116926370a08231926024808301939192829003018186803b158015610d5c57600080fd5b505afa158015610d70573d6000803e3d6000fd5b505050506040513d6020811015610d8657600080fd5b5051600285015490915042118015610d9d57508015155b15610dfd576000610db2856002015442610c86565b90506000610dd960065461085a88600101546109eb6003548761109990919063ffffffff16565b9050610df8610df18461085a8464e8d4a51000611099565b859061103f565b935050505b610e25836001015461086064e8d4a5100061085a86886000015461109990919063ffffffff16565b979650505050505050565b600060048381548110610e3f57fe5b60009182526020808320868452600582526040808520338652909252922060049091029091019150610e70846108fa565b805415610ec1573360009081526001602081905260408220549083015460038501548454610eb393926108669290916108609164e8d4a510009161085a91611099565b9050610ebf3382611176565b505b8154610ed8906001600160a01b0316333086611361565b8054610ee4908461103f565b8082556003830154610f019164e8d4a510009161085a9190611099565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b610f4b61103b565b6000546001600160a01b03908116911614610f9b576040805162461bcd60e51b8152602060048201819052602482015260008051602061176d833981519152604482015290519081900360640190fd5b6001600160a01b038116610fe05760405162461bcd60e51b81526004018080602001828103825260268152602001806117266026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b600082820183811015610c92576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6000826110a857506000610c95565b828202828482816110b557fe5b0414610c925760405162461bcd60e51b815260040180806020018281038252602181526020018061174c6021913960400191505060405180910390fd5b6000610c9283836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506113bb565b6000610c9283836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061145d565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156111c157600080fd5b505afa1580156111d5573d6000803e3d6000fd5b505050506040513d60208110156111eb57600080fd5b505190508082111561128c576002546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb91604480830192600092919082900301818387803b15801561124c57600080fd5b505af1158015611260573d6000803e3d6000fd5b50505050611277818361113490919063ffffffff16565b3360009081526001602052604090205561130a565b6002546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb91604480830192600092919082900301818387803b1580156112e157600080fd5b505af11580156112f5573d6000803e3d6000fd5b50503360009081526001602052604081205550505b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b17905261130a9084906114b7565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261061d9085906114b7565b600081836114475760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561140c5781810151838201526020016113f4565b50505050905090810190601f1680156114395780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50600083858161145357fe5b0495945050505050565b600081848411156114af5760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561140c5781810151838201526020016113f4565b505050900390565b606061150c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115689092919063ffffffff16565b80519091501561130a5780806020019051602081101561152b57600080fd5b505161130a5760405162461bcd60e51b815260040180806020018281038252602a81526020018061178d602a913960400191505060405180910390fd5b6060611577848460008561157f565b949350505050565b606061158a856116ec565b6115db576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b6020831061161a5780518252601f1990920191602091820191016115fb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d806000811461167c576040519150601f19603f3d011682016040523d82523d6000602084013e611681565b606091505b509150915081156116955791506115779050565b8051156116a55780518082602001fd5b60405162461bcd60e51b815260206004820181815286516024840152865187939192839260440191908501908083836000831561140c5781810151838201526020016113f4565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081811480159061157757505015159291505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220d3d10a01597c0088efb4f845214b543acefdb591f6094106e22287494205a98e64736f6c634300060c0033
Deployed ByteCode Sourcemap
29762:8603:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32404:95;;;:::i;:::-;;;;;;;;;;;;;;;;31403:26;;;;;;;;;;;;;;;;-1:-1:-1;31403:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;31403:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32109:287;;;;;;;;;;;;;;;;-1:-1:-1;32109:287:0;;:::i;:::-;;31646:34;;;:::i;38188:174::-;;;:::i;32668:474::-;;;;;;;;;;;;;;;;-1:-1:-1;32668:474:0;;;-1:-1:-1;;;;;32668:474:0;;;;;;;;;;;;:::i;31339:30::-;;;:::i;36447:688::-;;;;;;;;;;;;;;;;-1:-1:-1;36447:688:0;;;;;;;:::i;34928:704::-;;;;;;;;;;;;;;;;-1:-1:-1;34928:704:0;;:::i;37206:395::-;;;;;;;;;;;;;;;;-1:-1:-1;37206:395:0;;:::i;34672:180::-;;;:::i;33240:304::-;;;;;;;;;;;;;;;;-1:-1:-1;33240:304:0;;;;;;;;;;;;;;:::i;28975:148::-;;;:::i;30706:44::-;;;;;;;;;;;;;;;;-1:-1:-1;30706:44:0;-1:-1:-1;;;;;30706:44:0;;:::i;28333:79::-;;;:::i;:::-;;;;-1:-1:-1;;;;;28333:79:0;;;;;;;;;;;;;;33620:121;;;;;;;;;;;;;;;;-1:-1:-1;33620:121:0;;;;;;;:::i;31485:66::-;;;;;;;;;;;;;;;;-1:-1:-1;31485:66:0;;;;;;-1:-1:-1;;;;;31485:66:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;31266:25;;;:::i;33807:782::-;;;;;;;;;;;;;;;;-1:-1:-1;33807:782:0;;;;;;-1:-1:-1;;;;;33807:782:0;;:::i;35703:692::-;;;;;;;;;;;;;;;;-1:-1:-1;35703:692:0;;;;;;;:::i;29278:244::-;;;;;;;;;;;;;;;;-1:-1:-1;29278:244:0;-1:-1:-1;;;;;29278:244:0;;:::i;32404:95::-;32476:8;:15;32404:95;:::o;31403:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31403:26:0;;;;-1:-1:-1;31403:26:0;;;:::o;32109:287::-;28555:12;:10;:12::i;:::-;28545:6;;-1:-1:-1;;;;;28545:6:0;;;:22;;;28537:67;;;;;-1:-1:-1;;;28537:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28537:67:0;;;;;;;;;;;;;;;32214:15:::1;;32230:2;32214:18;32197:13;:35;;32189:64;;;::::0;;-1:-1:-1;;;32189:64:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;32189:64:0;;;;;;;;;;;;;::::1;;32357:15;:31:::0;32109:287::o;31646:34::-;;;;:::o;38188:174::-;28555:12;:10;:12::i;:::-;28545:6;;-1:-1:-1;;;;;28545:6:0;;;:22;;;28537:67;;;;;-1:-1:-1;;;28537:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28537:67:0;;;;;;;;;;;;;;;38246:8:::1;;38240:3;:14;38236:118;;;38273:5;38267:3;:11;38256:8;:22:::0;38236:118:::1;;;38294:6;::::0;38322:31:::1;::::0;;-1:-1:-1;;;38322:31:0;;38347:4:::1;38322:31;::::0;::::1;::::0;;;-1:-1:-1;;;;;38294:6:0;;::::1;::::0;:15:::1;::::0;38310:10:::1;::::0;38294:6;;38322:16:::1;::::0;:31;;;;;::::1;::::0;;;;;;;;38294:6;38322:31;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;38322:31:0;38294:60:::1;::::0;;-1:-1:-1;;;;;;38294:60:0::1;::::0;;;;;;-1:-1:-1;;;;;38294:60:0;;::::1;;::::0;::::1;::::0;;;;;;;;;;;;;;-1:-1:-1;;38294:60:0;;;;;;;-1:-1:-1;38294:60:0;;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;38236:118;38188:174::o:0;32668:474::-;28555:12;:10;:12::i;:::-;28545:6;;-1:-1:-1;;;;;28545:6:0;;;:22;;;28537:67;;;;;-1:-1:-1;;;28537:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28537:67:0;;;;;;;;;;;;;;;32769:11:::1;32765:61;;;32797:17;:15;:17::i;:::-;32905:15;::::0;32861::::1;::::0;32905:32:::1;::::0;32925:11;32905:19:::1;:32::i;:::-;32887:15;:50:::0;32962:171:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;32962:171:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;32962:171:0;;;;;;32948:8:::1;:186:::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;32948:186:0::1;::::0;;;::::1;::::0;;;::::1;::::0;;;;;;;;;;;;;;-1:-1:-1;32948:186:0;;;;;;;32668:474::o;31339:30::-;;;;:::o;36447:688::-;36514:21;36538:8;36547:4;36538:14;;;;;;;;;;;;;;;;36587;;;:8;:14;;;;;;36602:10;36587:26;;;;;;;36632:11;;36538:14;;;;;;;;-1:-1:-1;36632:22:0;-1:-1:-1;36632:22:0;36624:53;;;;;-1:-1:-1;;;36624:53:0;;;;;;;;;;;;-1:-1:-1;;;36624:53:0;;;;;;;;;;;;;;;36688:16;36699:4;36688:10;:16::i;:::-;36821:10;36715:15;36808:24;;;:12;:24;;;;;;;;36787:15;;;;36749:22;;;;36733:11;;:100;;36808:24;36733:70;;36787:15;;36733:49;;36777:4;;36733:39;;:15;:39::i;:::-;:43;;:49::i;:::-;:53;;:70::i;:::-;:74;;:100::i;:::-;36715:118;;36844:39;36863:10;36875:7;36844:18;:39::i;:::-;36908:11;;:24;;36924:7;36908:15;:24::i;:::-;36894:38;;;36977:22;;;;36961:49;;37005:4;;36961:39;;36894:38;36961:15;:39::i;:49::-;36943:15;;;:67;37021:12;;:55;;-1:-1:-1;;;;;37021:12:0;37055:10;37068:7;37021:25;:55::i;:::-;37092:35;;;;;;;;37113:4;;37101:10;;37092:35;;;;;;;;;36447:688;;;;;:::o;34928:704::-;34980:21;35004:8;35013:4;35004:14;;;;;;;;;;;;;;;;;;34980:38;;35052:4;:19;;;35033:15;:38;35029:77;;35088:7;;;35029:77;35135:12;;:37;;;-1:-1:-1;;;35135:37:0;;35166:4;35135:37;;;;;;35116:16;;-1:-1:-1;;;;;35135:12:0;;:22;;:37;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35135:37:0;;-1:-1:-1;35187:13:0;35183:104;;-1:-1:-1;35239:15:0;35217:19;;;;:37;35269:7;;35183:104;35297:18;35318:51;35332:4;:19;;;35353:15;35318:13;:51::i;:::-;35297:72;;35380:20;35403:73;35460:15;;35403:52;35439:4;:15;;;35403:31;35418:15;;35403:10;:14;;:31;;;;:::i;:::-;:35;;:52::i;:73::-;35380:96;-1:-1:-1;35512:64:0;35539:36;35566:8;35539:22;35380:96;35556:4;35539:16;:22::i;:36::-;35512:22;;;;;:26;:64::i;:::-;35487:22;;;:89;-1:-1:-1;;35609:15:0;35587:19;;;;:37;;;;-1:-1:-1;34928:704:0;;:::o;37206:395::-;37265:21;37289:8;37298:4;37289:14;;;;;;;;;;;;;;;;37338;;;:8;:14;;;;;;37353:10;37338:26;;;;;;;;37422:11;;37289:14;;;;;;;37375:12;;37289:14;;-1:-1:-1;37375:59:0;;-1:-1:-1;;;;;37375:12:0;;;;;37353:10;37375:25;:59::i;:::-;37486:11;;37450:48;;;;;;;37480:4;;37468:10;;37450:48;;;;;;;;;37523:1;37509:15;;;37535;;;;:19;;;37578:10;37565:24;;;;;;;;;;:28;-1:-1:-1;;37206:395:0:o;34672:180::-;34734:8;:15;34717:14;34760:85;34788:6;34782:3;:12;34760:85;;;34818:15;34829:3;34818:10;:15::i;:::-;34796:5;;34760:85;;;;34672:180;:::o;33240:304::-;28555:12;:10;:12::i;:::-;28545:6;;-1:-1:-1;;;;;28545:6:0;;;:22;;;28537:67;;;;;-1:-1:-1;;;28537:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28537:67:0;;;;;;;;;;;;;;;33338:11:::1;33334:61;;;33366:17;:15;:17::i;:::-;33423:63;33474:11;33423:46;33443:8;33452:4;33443:14;;;;;;;;;;;;;;;;;;:25;;;33423:15;;:19;;:46;;;;:::i;:63::-;33405:15;:81;;;;33525:11;33497:8;33506:4;33497:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;33240:304:::0;;;:::o;28975:148::-;28555:12;:10;:12::i;:::-;28545:6;;-1:-1:-1;;;;;28545:6:0;;;:22;;;28537:67;;;;;-1:-1:-1;;;28537:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28537:67:0;;;;;;;;;;;;;;;29082:1:::1;29066:6:::0;;29045:40:::1;::::0;-1:-1:-1;;;;;29066:6:0;;::::1;::::0;29045:40:::1;::::0;29082:1;;29045:40:::1;29113:1;29096:19:::0;;-1:-1:-1;;;;;;29096:19:0::1;::::0;;28975:148::o;30706:44::-;;;;;;;;;;;;;:::o;28333:79::-;28371:7;28398:6;-1:-1:-1;;;;;28398:6:0;28333:79;:::o;33620:121::-;33692:7;33719:14;:3;33727:5;33719:7;:14::i;:::-;33712:21;;33620:121;;;;;:::o;31485:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;31266:25::-;;;-1:-1:-1;;;;;31266:25:0;;:::o;33807:782::-;33882:7;33902:21;33926:8;33935:4;33926:14;;;;;;;;;;;;;;;;33975;;;:8;:14;;;;;;-1:-1:-1;;;;;33975:21:0;;;;;;;;;;;33926:14;;;;;;;34035:22;;;;34087:12;;:37;;-1:-1:-1;;;34087:37:0;;34118:4;34087:37;;;;;;;;;33926:14;;-1:-1:-1;33975:21:0;;34035:22;;33926:14;;34087:12;;;;;:22;;:37;;;;;33926:14;;34087:37;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34087:37:0;34157:19;;;;34087:37;;-1:-1:-1;34139:15:0;:37;:54;;;;-1:-1:-1;34180:13:0;;;34139:54;34135:364;;;34210:18;34231:51;34245:4;:19;;;34266:15;34231:13;:51::i;:::-;34210:72;;34297:20;34320:73;34377:15;;34320:52;34356:4;:15;;;34320:31;34335:15;;34320:10;:14;;:31;;;;:::i;:73::-;34297:96;-1:-1:-1;34428:59:0;34450:36;34477:8;34450:22;34297:96;34467:4;34450:16;:22::i;:36::-;34428:17;;:21;:59::i;:::-;34408:79;;34135:364;;;34516:65;34565:4;:15;;;34516:44;34555:4;34516:34;34532:17;34516:4;:11;;;:15;;:34;;;;:::i;:65::-;34509:72;33807:782;-1:-1:-1;;;;;;;33807:782:0:o;35703:692::-;35769:21;35793:8;35802:4;35793:14;;;;;;;;;;;;;;;;35842;;;:8;:14;;;;;;35857:10;35842:26;;;;;;;35793:14;;;;;;;;-1:-1:-1;35879:16:0;35851:4;35879:10;:16::i;:::-;35910:11;;:15;35906:220;;36048:10;35942:15;36035:24;;;:12;:24;;;;;;;;36014:15;;;;35976:22;;;;35960:11;;:100;;36035:24;35960:70;;36014:15;;35960:49;;36004:4;;35960:39;;:15;:39::i;:100::-;35942:118;;36075:39;36094:10;36106:7;36075:18;:39::i;:::-;35906:220;;36136:12;;:74;;-1:-1:-1;;;;;36136:12:0;36174:10;36195:4;36202:7;36136:29;:74::i;:::-;36235:11;;:24;;36251:7;36235:15;:24::i;:::-;36221:38;;;36304:22;;;;36288:49;;36332:4;;36288:39;;36221:38;36288:15;:39::i;:49::-;36270:15;;;:67;36353:34;;;;;;;;36373:4;;36361:10;;36353:34;;;;;;;;;35703:692;;;;:::o;29278:244::-;28555:12;:10;:12::i;:::-;28545:6;;-1:-1:-1;;;;;28545:6:0;;;:22;;;28537:67;;;;;-1:-1:-1;;;28537:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;28537:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;29367:22:0;::::1;29359:73;;;;-1:-1:-1::0;;;29359:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29469:6;::::0;;29448:38:::1;::::0;-1:-1:-1;;;;;29448:38:0;;::::1;::::0;29469:6;::::1;::::0;29448:38:::1;::::0;::::1;29497:6;:17:::0;;-1:-1:-1;;;;;;29497:17:0::1;-1:-1:-1::0;;;;;29497:17:0;;;::::1;::::0;;;::::1;::::0;;29278:244::o;26885:106::-;26973:10;26885:106;:::o;3763:181::-;3821:7;3853:5;;;3877:6;;;;3869:46;;;;;-1:-1:-1;;;3869:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;5117:471;5175:7;5420:6;5416:47;;-1:-1:-1;5450:1:0;5443:8;;5416:47;5487:5;;;5491:1;5487;:5;:1;5511:5;;;;;:10;5503:56;;;;-1:-1:-1;;;5503:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6064:132;6122:7;6149:39;6153:1;6156;6149:39;;;;;;;;;;;;;;;;;:3;:39::i;4227:136::-;4285:7;4312:43;4316:1;4319;4312:43;;;;;;;;;;;;;;;;;:3;:43::i;37719:399::-;37817:6;;:31;;;-1:-1:-1;;;37817:31:0;;37842:4;37817:31;;;;;;37797:17;;-1:-1:-1;;;;;37817:6:0;;:16;;:31;;;;;;;;;;;;;;:6;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37817:31:0;;-1:-1:-1;37863:19:0;;;37859:252;;;37899:6;;:31;;;-1:-1:-1;;;37899:31:0;;-1:-1:-1;;;;;37899:31:0;;;;;;;;;;;;;;;:6;;;;;:15;;:31;;;;;:6;;:31;;;;;;;:6;;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37972:22;37984:9;37972:7;:11;;:22;;;;:::i;:::-;37958:10;37945:24;;;;:12;:24;;;;;:49;37859:252;;;38027:6;;:29;;;-1:-1:-1;;;38027:29:0;;-1:-1:-1;;;;;38027:29:0;;;;;;;;;;;;;;;:6;;;;;:15;;:29;;;;;:6;;:29;;;;;;;:6;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;38084:10:0;38098:1;38071:24;;;:12;:24;;;;;:28;-1:-1:-1;;37859:252:0;37719:399;;;:::o;15125:177::-;15235:58;;;-1:-1:-1;;;;;15235:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15235:58:0;-1:-1:-1;;;15235:58:0;;;15208:86;;15228:5;;15208:19;:86::i;15310:205::-;15438:68;;;-1:-1:-1;;;;;15438:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;15438:68:0;-1:-1:-1;;;15438:68:0;;;15411:96;;15431:5;;15411:19;:96::i;6692:278::-;6778:7;6813:12;6806:5;6798:28;;;;-1:-1:-1;;;6798:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6837:9;6853:1;6849;:5;;;;;;;6692:278;-1:-1:-1;;;;;6692:278:0:o;4666:192::-;4752:7;4788:12;4780:6;;;;4772:29;;;;-1:-1:-1;;;4772:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4824:5:0;;;4666:192::o;17430:761::-;17854:23;17880:69;17908:4;17880:69;;;;;;;;;;;;;;;;;17888:5;-1:-1:-1;;;;;17880:27:0;;;:69;;;;;:::i;:::-;17964:17;;17854:95;;-1:-1:-1;17964:21:0;17960:224;;18106:10;18095:30;;;;;;;;;;;;;;;-1:-1:-1;18095:30:0;18087:85;;;;-1:-1:-1;;;18087:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12104:196;12207:12;12239:53;12262:6;12270:4;12276:1;12279:12;12239:22;:53::i;:::-;12232:60;12104:196;-1:-1:-1;;;;12104:196:0:o;13481:979::-;13611:12;13644:18;13655:6;13644:10;:18::i;:::-;13636:60;;;;;-1:-1:-1;;;13636:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13770:12;13784:23;13811:6;-1:-1:-1;;;;;13811:11:0;13831:8;13842:4;13811:36;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;13811:36:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13769:78;;;;13862:7;13858:595;;;13893:10;-1:-1:-1;13886:17:0;;-1:-1:-1;13886:17:0;13858:595;14007:17;;:21;14003:439;;14270:10;14264:17;14331:15;14318:10;14314:2;14310:19;14303:44;14218:148;14406:20;;-1:-1:-1;;;14406:20:0;;;;;;;;;;;;;;;;;14413:12;;14406:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8989:619;9049:4;9517:20;;9360:66;9557:23;;;;;;:42;;-1:-1:-1;;9584:15:0;;;9549:51;-1:-1:-1;;8989:619:0:o
Swarm Source
ipfs://d3d10a01597c0088efb4f845214b543acefdb591f6094106e22287494205a98e
Age | Block | Fee Address | BC Fee Address | Voting Power | Jailed | Incoming |
---|
Validator ID :
0 FTM
Amount Staked
0
Amount Delegated
0
Staking Total
0
Staking Start Epoch
0
Staking Start Time
0
Proof of Importance
0
Origination Score
0
Validation Score
0
Active
0
Online
0
Downtime
0 s
Address | Amount | claimed Rewards | Created On Epoch | Created On |
---|
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.