Source Code
Latest 25 from a total of 6,745 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Deposit | 5950671 | 650 days ago | IN | 0 GLMR | 0.02462206 | ||||
| Deposit | 5950659 | 650 days ago | IN | 0 GLMR | 0.02466117 | ||||
| Deposit | 5950657 | 650 days ago | IN | 0 GLMR | 0.02431051 | ||||
| Deposit | 5950655 | 650 days ago | IN | 0 GLMR | 0.02420246 | ||||
| Deposit | 5950631 | 650 days ago | IN | 0 GLMR | 0.02428141 | ||||
| Deposit | 5950629 | 650 days ago | IN | 0 GLMR | 0.02464968 | ||||
| Deposit | 5891794 | 658 days ago | IN | 0 GLMR | 0.02984254 | ||||
| Deposit | 5891794 | 658 days ago | IN | 0 GLMR | 0.02984254 | ||||
| Deposit | 5803355 | 671 days ago | IN | 0 GLMR | 0.0287738 | ||||
| Deposit | 5784562 | 674 days ago | IN | 0 GLMR | 0.04442187 | ||||
| Deposit | 5784561 | 674 days ago | IN | 0 GLMR | 0.04445474 | ||||
| Deposit | 5717225 | 683 days ago | IN | 0 GLMR | 0.0288495 | ||||
| Deposit | 5717222 | 683 days ago | IN | 0 GLMR | 0.02889871 | ||||
| Deposit | 5674271 | 689 days ago | IN | 0 GLMR | 0.03899813 | ||||
| Deposit | 5674269 | 689 days ago | IN | 0 GLMR | 0.03900596 | ||||
| Deposit | 5648171 | 693 days ago | IN | 0 GLMR | 0.02540015 | ||||
| Withdraw | 5639487 | 694 days ago | IN | 0 GLMR | 0.02629571 | ||||
| Deposit | 5595030 | 700 days ago | IN | 0 GLMR | 0.02440628 | ||||
| Deposit | 5595028 | 700 days ago | IN | 0 GLMR | 0.0244342 | ||||
| Deposit | 5567254 | 704 days ago | IN | 0 GLMR | 0.02868651 | ||||
| Deposit | 5567251 | 704 days ago | IN | 0 GLMR | 0.02871939 | ||||
| Deposit | 5547390 | 707 days ago | IN | 0 GLMR | 0.04262484 | ||||
| Deposit | 5547389 | 707 days ago | IN | 0 GLMR | 0.04262674 | ||||
| Deposit | 5492415 | 715 days ago | IN | 0 GLMR | 0.02596197 | ||||
| Deposit | 5489625 | 715 days ago | IN | 0 GLMR | 0.02616555 |
Latest 25 internal transactions (View All)
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 5950671 | 650 days ago | 0 GLMR | ||||
| 5950671 | 650 days ago | 0 GLMR | ||||
| 5950671 | 650 days ago | 0 GLMR | ||||
| 5950671 | 650 days ago | 0 GLMR | ||||
| 5950671 | 650 days ago | 0 GLMR | ||||
| 5950671 | 650 days ago | 0 GLMR | ||||
| 5950659 | 650 days ago | 0 GLMR | ||||
| 5950659 | 650 days ago | 0 GLMR | ||||
| 5950659 | 650 days ago | 0 GLMR | ||||
| 5950659 | 650 days ago | 0 GLMR | ||||
| 5950659 | 650 days ago | 0 GLMR | ||||
| 5950659 | 650 days ago | 0 GLMR | ||||
| 5950657 | 650 days ago | 0 GLMR | ||||
| 5950657 | 650 days ago | 0 GLMR | ||||
| 5950657 | 650 days ago | 0 GLMR | ||||
| 5950657 | 650 days ago | 0 GLMR | ||||
| 5950657 | 650 days ago | 0 GLMR | ||||
| 5950655 | 650 days ago | 0 GLMR | ||||
| 5950655 | 650 days ago | 0 GLMR | ||||
| 5950655 | 650 days ago | 0 GLMR | ||||
| 5950655 | 650 days ago | 0 GLMR | ||||
| 5950655 | 650 days ago | 0 GLMR | ||||
| 5950655 | 650 days ago | 0 GLMR | ||||
| 5950631 | 650 days ago | 0 GLMR | ||||
| 5950631 | 650 days ago | 0 GLMR |
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MasterChef
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/**
*Submitted for verification at moonbeam.moonscan.io on 2022-01-27
*/
//SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
pragma experimental ABIEncoderV2;
/**
* @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.0;
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin guidelines: functions revert instead
* of returning `false` on failure. This behavior is nonetheless conventional
* and does not conflict with the expectations of ERC20 applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be set once during
* construction.
*/
constructor (string memory name, string memory symbol) public {
_name = name;
_symbol = symbol;
_decimals = 18;
}
/**
* @dev Returns the name of the token.
*/
function name() public view returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
* called.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view returns (uint8) {
return _decimals;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/
function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}
// File: contracts/KwikToken.sol
pragma solidity 0.6.12;
contract ROAR {
/// @notice EIP-20 token name for this token
string public constant name = "Alphadex";
/// @notice EIP-20 token symbol for this token
string public constant symbol = "ROAR";
/// @notice EIP-20 token decimals for this token
uint8 public constant decimals = 18;
/// @notice Total number of tokens in circulation
uint public totalSupply = 250_000_000e18; // 250,000,000 ROAR
/// @notice Address which may mint new tokens
address public minter;
/// @notice The timestamp after which minting may occur
uint public mintingAllowedAfter;
/// @notice Minimum time between mints
uint32 public constant minimumTimeBetweenMints = 1 days * 365;
/// @notice Cap on the percentage of totalSupply that can be minted at each mint
uint8 public constant mintCap = 2;
mapping (address => mapping (address => uint96)) internal allowances;
mapping (address => uint96) internal balances;
/// @notice A record of each accounts delegate
mapping (address => address) public delegates;
/// @notice A checkpoint for marking number of votes from a given block
struct Checkpoint {
uint32 fromBlock;
uint96 votes;
}
/// @notice A record of votes checkpoints for each account, by index
mapping (address => mapping (uint32 => Checkpoint)) public checkpoints;
/// @notice The number of checkpoints for each account
mapping (address => uint32) public numCheckpoints;
/// @notice The EIP-712 typehash for the contract's domain
bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)");
/// @notice The EIP-712 typehash for the delegation struct used by the contract
bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");
/// @notice The EIP-712 typehash for the permit struct used by the contract
bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
/// @notice A record of states for signing / validating signatures
mapping (address => uint) public nonces;
/// @notice An event thats emitted when the minter address is changed
event MinterChanged(address minter, address newMinter);
/// @notice An event thats emitted when an account changes its delegate
event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate);
/// @notice An event thats emitted when a delegate account's vote balance changes
event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance);
/// @notice The standard EIP-20 transfer event
event Transfer(address indexed from, address indexed to, uint256 amount);
/// @notice The standard EIP-20 approval event
event Approval(address indexed owner, address indexed spender, uint256 amount);
constructor(address account, address minter_, uint mintingAllowedAfter_) public {
require(mintingAllowedAfter_ >= block.timestamp, "ROAR::constructor: minting can only begin after deployment");
balances[account] = uint96(totalSupply);
emit Transfer(address(0), account, totalSupply);
minter = minter_;
emit MinterChanged(address(0), minter);
mintingAllowedAfter = mintingAllowedAfter_;
}
function setMinter(address minter_) external {
require(msg.sender == minter, "ROAR::setMinter: only the minter can change the minter address");
emit MinterChanged(minter, minter_);
minter = minter_;
}
function mint(address dst, uint rawAmount) external {
require(msg.sender == minter, "ROAR::mint: only the minter can mint");
require(block.timestamp >= mintingAllowedAfter, "ROAR::mint: minting not allowed yet");
require(dst != address(0), "ROAR::mint: cannot transfer to the zero address");
// record the mint
mintingAllowedAfter = SafeMath.add(block.timestamp, minimumTimeBetweenMints);
// mint the amount
uint96 amount = safe96(rawAmount, "ROAR::mint: amount exceeds 96 bits");
require(amount <= SafeMath.div(SafeMath.mul(totalSupply, mintCap), 100), "ROAR::mint: exceeded mint cap");
totalSupply = safe96(SafeMath.add(totalSupply, amount), "ROAR::mint: totalSupply exceeds 96 bits");
// transfer the amount to the recipient
balances[dst] = add96(balances[dst], amount, "ROAR::mint: transfer amount overflows");
emit Transfer(address(0), dst, amount);
// move delegates
_moveDelegates(address(0), delegates[dst], amount);
}
/**
* @notice Get the number of tokens `spender` is approved to spend on behalf of `account`
* @param account The address of the account holding the funds
* @param spender The address of the account spending the funds
* @return The number of tokens approved
*/
function allowance(address account, address spender) external view returns (uint) {
return allowances[account][spender];
}
function approve(address spender, uint rawAmount) external returns (bool) {
uint96 amount;
if (rawAmount == uint(-1)) {
amount = uint96(-1);
} else {
amount = safe96(rawAmount, "ROAR::approve: amount exceeds 96 bits");
}
allowances[msg.sender][spender] = amount;
emit Approval(msg.sender, spender, amount);
return true;
}
function permit(address owner, address spender, uint rawAmount, uint deadline, uint8 v, bytes32 r, bytes32 s) external {
uint96 amount;
if (rawAmount == uint(-1)) {
amount = uint96(-1);
} else {
amount = safe96(rawAmount, "ROAR::permit: amount exceeds 96 bits");
}
bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), getChainId(), address(this)));
bytes32 structHash = keccak256(abi.encode(PERMIT_TYPEHASH, owner, spender, rawAmount, nonces[owner]++, deadline));
bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
address signatory = ecrecover(digest, v, r, s);
require(signatory != address(0), "ROAR::permit: invalid signature");
require(signatory == owner, "ROAR::permit: unauthorized");
require(now <= deadline, "ROAR::permit: signature expired");
allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function transfer(address dst, uint rawAmount) external returns (bool) {
uint96 amount = safe96(rawAmount, "ROAR::transfer: amount exceeds 96 bits");
_transferTokens(msg.sender, dst, amount);
return true;
}
function transferFrom(address src, address dst, uint rawAmount) external returns (bool) {
address spender = msg.sender;
uint96 spenderAllowance = allowances[src][spender];
uint96 amount = safe96(rawAmount, "ROAR::approve: amount exceeds 96 bits");
if (spender != src && spenderAllowance != uint96(-1)) {
uint96 newAllowance = sub96(spenderAllowance, amount, "ROAR::transferFrom: transfer amount exceeds spender allowance");
allowances[src][spender] = newAllowance;
emit Approval(src, spender, newAllowance);
}
_transferTokens(src, dst, amount);
return true;
}
function balanceOf(address account) external view returns (uint) {
return balances[account];
}
function delegate(address delegatee) public {
return _delegate(msg.sender, delegatee);
}
function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s) public {
bytes32 domainSeparator = keccak256(abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), getChainId(), address(this)));
bytes32 structHash = keccak256(abi.encode(DELEGATION_TYPEHASH, delegatee, nonce, expiry));
bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
address signatory = ecrecover(digest, v, r, s);
require(signatory != address(0), "ROAR::delegateBySig: invalid signature");
require(nonce == nonces[signatory]++, "ROAR::delegateBySig: invalid nonce");
require(now <= expiry, "ROAR::delegateBySig: signature expired");
return _delegate(signatory, delegatee);
}
function getPriorVotes(address account, uint blockNumber) public view returns (uint96) {
require(blockNumber < block.number, "ROAR::getPriorVotes: not yet determined");
uint32 nCheckpoints = numCheckpoints[account];
if (nCheckpoints == 0) {
return 0;
}
// First check most recent balance
if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) {
return checkpoints[account][nCheckpoints - 1].votes;
}
// Next check implicit zero balance
if (checkpoints[account][0].fromBlock > blockNumber) {
return 0;
}
uint32 lower = 0;
uint32 upper = nCheckpoints - 1;
while (upper > lower) {
uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow
Checkpoint memory cp = checkpoints[account][center];
if (cp.fromBlock == blockNumber) {
return cp.votes;
} else if (cp.fromBlock < blockNumber) {
lower = center;
} else {
upper = center - 1;
}
}
return checkpoints[account][lower].votes;
}
function getCurrentVotes(address account) external view returns (uint96) {
uint32 nCheckpoints = numCheckpoints[account];
return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0;
}
function _delegate(address delegator, address delegatee) internal {
address currentDelegate = delegates[delegator];
uint96 delegatorBalance = balances[delegator];
delegates[delegator] = delegatee;
emit DelegateChanged(delegator, currentDelegate, delegatee);
_moveDelegates(currentDelegate, delegatee, delegatorBalance);
}
function _moveDelegates(address srcRep, address dstRep, uint96 amount) internal {
if (srcRep != dstRep && amount > 0) {
if (srcRep != address(0)) {
uint32 srcRepNum = numCheckpoints[srcRep];
uint96 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0;
uint96 srcRepNew = sub96(srcRepOld, amount, "ROAR::_moveVotes: vote amount underflows");
_writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew);
}
if (dstRep != address(0)) {
uint32 dstRepNum = numCheckpoints[dstRep];
uint96 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0;
uint96 dstRepNew = add96(dstRepOld, amount, "ROAR::_moveVotes: vote amount overflows");
_writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew);
}
}
}
function _transferTokens(address src, address dst, uint96 amount) internal {
require(src != address(0), "ROAR::_transferTokens: cannot transfer from the zero address");
require(dst != address(0), "ROAR::_transferTokens: cannot transfer to the zero address");
balances[src] = sub96(balances[src], amount, "ROAR::_transferTokens: transfer amount exceeds balance");
balances[dst] = add96(balances[dst], amount, "ROAR::_transferTokens: transfer amount overflows");
emit Transfer(src, dst, amount);
_moveDelegates(delegates[src], delegates[dst], amount);
}
function _writeCheckpoint(address delegatee, uint32 nCheckpoints, uint96 oldVotes, uint96 newVotes) internal {
uint32 blockNumber = safe32(block.number, "ROAR::_writeCheckpoint: block number exceeds 32 bits");
if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) {
checkpoints[delegatee][nCheckpoints - 1].votes = newVotes;
} else {
checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes);
numCheckpoints[delegatee] = nCheckpoints + 1;
}
emit DelegateVotesChanged(delegatee, oldVotes, newVotes);
}
function safe96(uint n, string memory errorMessage) internal pure returns (uint96) {
require(n < 2**96, errorMessage);
return uint96(n);
}
function safe32(uint n, string memory errorMessage) internal pure returns (uint32) {
require(n < 2**32, errorMessage);
return uint32(n);
}
function sub96(uint96 a, uint96 b, string memory errorMessage) internal pure returns (uint96) {
require(b <= a, errorMessage);
return a - b;
}
function add96(uint96 a, uint96 b, string memory errorMessage) internal pure returns (uint96) {
uint96 c = a + b;
require(c >= a, errorMessage);
return c;
}
function getChainId() internal pure returns (uint) {
uint256 chainId;
assembly { chainId := chainid() }
return chainId;
}
}
// File: contracts/MasterChef.sol
pragma solidity 0.6.12;
interface IMigratorChef {
// Perform LP token migration from legacy UniswapV2 to Alphadex.
// Take the current LP token address and return the new LP token address.
// Migrator should have full access to the caller's LP token.
// Return the new LP token address.
//
// XXX Migrator must have allowance access to UniswapV2 LP tokens.
// Alphadex must mint EXACTLY the same amount of Alphadex LP tokens or
// else something bad will happen. Traditional UniswapV2 does not
// do that so be careful!
function migrate(IERC20 token) external returns (IERC20);
}
interface IMasterChef {
using SafeERC20 for IERC20;
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
}
struct PoolInfo {
IERC20 lpToken; // Address of LP token contract.
uint256 allocPoint; // How many allocation points assigned to this pool. roar to distribute per block.
uint256 lastRewardBlock; // Last block number that roar distribution occurs.
uint256 accKwikPerShare; // Accumulated roar per share, times 1e12. See below.
}
function poolInfo(uint256 pid) external view returns (IMasterChef.PoolInfo memory);
function userInfo(uint256 pid,address user) external view returns(IMasterChef.UserInfo memory);
function totalAllocPoint() external view returns (uint256);
function deposit(uint256 _pid, uint256 _amount) external;
}
// MasterChef is the master of Roar. He can make Roar and he is a fair guy.
//
// Note that it's ownable and the owner wields tremendous power. The ownership
// will be transferred to a governance smart contract once ROAR is sufficiently
// distributed and the community can show to govern itself.
//
// Have fun reading it. Hopefully it's bug-free. God bless.
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.
bool migrated;
//
// We do some fancy math here. Basically, any point in time, the amount of ROARs
// entitled to a user but is pending to be distributed is:
//
// pending reward = (user.amount * pool.accKwikPerShare) - user.rewardDebt
//
// Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
// 1. The pool's `accKwikPerShare` (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.
}
// Info of each pool.
struct PoolInfo {
IERC20 lpToken; // Address of LP token contract.
uint256 allocPoint; // How many allocation points assigned to this pool. ROARs to distribute per block.
uint256 lastRewardBlock; // Last block number that ROARs distribution occurs.
uint256 accKwikPerShare; // Accumulated ROARs per share, times 1e12. See below.
}
// The ROAR TOKEN!
ROAR public roar;
// Block number when bonus ROAR period ends.
uint256 public bonusEndBlock;
// ROAR tokens created per block.
uint256 public roarPerBlock;
// Bonus muliplier for early roar makers.
uint256 public constant BONUS_MULTIPLIER = 10;
// The migrator contract. It has a lot of power. Can only be set through governance (owner).
IMigratorChef public migrator;
// 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;
// The block number when ROAR mining starts.
uint256 public startBlock;
// only can claim reward after this time.
uint256 public claimWait;
/// @notice Address of MCV1 contract.
IMasterChef public immutable OLD_MASTER_CHEF;
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(
ROAR _roar,
uint256 _roarPerBlock,
uint256 _startBlock,
uint256 _bonusEndBlock,
uint256 _claimWait,
IMasterChef _oldMasterChef
) public {
roar = _roar;
roarPerBlock = _roarPerBlock;
bonusEndBlock = _bonusEndBlock;
startBlock = _startBlock;
claimWait = _claimWait;
OLD_MASTER_CHEF = _oldMasterChef;
}
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 lastRewardBlock = block.number > startBlock ? block.number : startBlock;
totalAllocPoint = totalAllocPoint.add(_allocPoint);
IMasterChef.PoolInfo memory oldPool = OLD_MASTER_CHEF.poolInfo(poolInfo.length);
if(address(oldPool.lpToken) == address(_lpToken)){
lastRewardBlock = 262874;
}
poolInfo.push(PoolInfo({
lpToken: _lpToken,
allocPoint: _allocPoint,
lastRewardBlock: lastRewardBlock,
accKwikPerShare: 0
}));
}
// function to update the lastRewardBlock of specific pool.
function setLastRewardBlock ( uint256 _pid,uint256 _lastRewardBlock) public onlyOwner{
poolInfo[_pid].lastRewardBlock= _lastRewardBlock;
}
// Update the given pool's ROAR 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;
}
// Set the migrator contract. Can only be called by the owner.
function setMigrator(IMigratorChef _migrator) public onlyOwner {
migrator = _migrator;
}
// Migrate lp token to another lp contract. Can be called by anyone. We trust that migrator contract is good.
function migrate(uint256 _pid) public {
require(address(migrator) != address(0), "migrate: no migrator");
PoolInfo storage pool = poolInfo[_pid];
IERC20 lpToken = pool.lpToken;
uint256 bal = lpToken.balanceOf(address(this));
lpToken.safeApprove(address(migrator), bal);
IERC20 newLpToken = migrator.migrate(lpToken);
require(bal == newLpToken.balanceOf(address(this)), "migrate: bad");
pool.lpToken = newLpToken;
}
// function to update the last block
function updateRewardBlock(uint _blockNumber) public onlyOwner{
bonusEndBlock = _blockNumber;
}
function updateRoar(ROAR _address) public onlyOwner {
roar = _address;
}
// function to update the first block
function updateRewardFirstBlock(uint _blockNumber) public onlyOwner{
startBlock = _blockNumber;
}
// function to update claimWait
function updateClaimWait(uint256 _claimWait) public onlyOwner{
require(block.timestamp < _claimWait , "claimWait has to be in future");
claimWait = _claimWait;
}
// function to withdraw the reward token
function rewardWithdraw() public onlyOwner{
roar.transfer(msg.sender, roar.balanceOf(address(this)));
}
// Return reward multiplier over the given _from to _to block.
function getMultiplier(uint256 _from, uint256 _to) public view returns (uint256) {
if (_to <= bonusEndBlock) {
return _to.sub(_from).mul(BONUS_MULTIPLIER);
} else if (_from >= bonusEndBlock) {
return _to.sub(_from);
} else {
return bonusEndBlock.sub(_from).mul(BONUS_MULTIPLIER).add(
_to.sub(bonusEndBlock)
);
}
}
// update the reward per block
function setBlockReward(uint _tokens) public onlyOwner {
roarPerBlock = _tokens;
}
// View function to see pending ROARs on frontend.
function pendingKwik(uint256 _pid, address _user) external view returns (uint256) {
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
IMasterChef.UserInfo memory oldUser = OLD_MASTER_CHEF.userInfo(_pid,_user);
uint256 accKwikPerShare = pool.accKwikPerShare;
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (block.number > pool.lastRewardBlock && lpSupply != 0) {
uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
uint256 roarReward = multiplier.mul(roarPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
if(block.timestamp>claimWait)
accKwikPerShare = accKwikPerShare.add(roarReward.mul(1e12).div(lpSupply));
else
accKwikPerShare= roarReward.mul(1e12).div(lpSupply);
}
if(oldUser.amount > 0&& !user.migrated)
{
return oldUser.amount.mul(accKwikPerShare).div(1e12);
}
return user.amount.mul(accKwikPerShare).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.number <= pool.lastRewardBlock) {
return;
}
uint256 lpSupply = pool.lpToken.balanceOf(address(this));
if (lpSupply == 0) {
pool.lastRewardBlock = block.number;
return;
}
if(block.timestamp>claimWait){
uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
uint256 roarReward = multiplier.mul(roarPerBlock).mul(pool.allocPoint).div(totalAllocPoint);
pool.accKwikPerShare = pool.accKwikPerShare.add(roarReward.mul(1e12).div(lpSupply));
roar.transfer(address(this), roarReward);
pool.lastRewardBlock = block.number;
}
}
function migrateUser(uint256 _pid) internal {
UserInfo storage user = userInfo[_pid][msg.sender];
if(!user.migrated)
{
IMasterChef.UserInfo memory oldUser = OLD_MASTER_CHEF.userInfo(_pid,msg.sender);
if(oldUser.amount>0 ){
user.amount = user.amount.add(oldUser.amount);
user.migrated = true;
}
}
}
// Deposit LP tokens to MasterChef for ROAR allocation.
function deposit(uint256 _pid, uint256 _amount) public {
migrateUser(_pid);
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
updatePool(_pid);
// only give reward if claimWait is passed.
if (user.amount > 0 && block.timestamp > claimWait) {
uint256 pending = user.amount.mul(pool.accKwikPerShare).div(1e12).sub(user.rewardDebt);
safeKwikTransfer(msg.sender, pending);
}
pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
user.amount = user.amount.add(_amount);
if (block.timestamp > claimWait) {
user.rewardDebt = user.amount.mul(pool.accKwikPerShare).div(1e12);
}
emit Deposit(msg.sender, _pid, _amount);
}
// Withdraw LP tokens from MasterChef.
function withdraw(uint256 _pid, uint256 _amount) public {
migrateUser(_pid);
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.amount >= _amount, "withdraw: not good");
updatePool(_pid);
// only give reward if claimWait is passed.
if(block.timestamp > claimWait){
uint256 pending = user.amount.mul(pool.accKwikPerShare).div(1e12).sub(user.rewardDebt);
safeKwikTransfer(msg.sender, pending);
}
user.amount = user.amount.sub(_amount);
if(block.timestamp > claimWait){
user.rewardDebt = user.amount.mul(pool.accKwikPerShare).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;
}
// Safe roar transfer function, just in case if rounding error causes pool to not have enough ROARs.
function safeKwikTransfer(address _to, uint256 _amount) internal {
uint256 roarBal = roar.balanceOf(address(this));
if (_amount > roarBal) {
roar.transfer(_to, roarBal);
} else {
roar.transfer(_to, _amount);
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract ROAR","name":"_roar","type":"address"},{"internalType":"uint256","name":"_roarPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"},{"internalType":"uint256","name":"_claimWait","type":"uint256"},{"internalType":"contract IMasterChef","name":"_oldMasterChef","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":[],"name":"BONUS_MULTIPLIER","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OLD_MASTER_CHEF","outputs":[{"internalType":"contract IMasterChef","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"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":[],"name":"bonusEndBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"claimWait","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrator","outputs":[{"internalType":"contract IMigratorChef","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingKwik","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":"accKwikPerShare","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":[],"name":"rewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"roar","outputs":[{"internalType":"contract ROAR","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roarPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"uint256","name":"_tokens","type":"uint256"}],"name":"setBlockReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_lastRewardBlock","type":"uint256"}],"name":"setLastRewardBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMigratorChef","name":"_migrator","type":"address"}],"name":"setMigrator","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":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_claimWait","type":"uint256"}],"name":"updateClaimWait","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"updateRewardBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockNumber","type":"uint256"}],"name":"updateRewardFirstBlock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract ROAR","name":"_address","type":"address"}],"name":"updateRoar","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"},{"internalType":"bool","name":"migrated","type":"bool"}],"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
60a060405260006007553480156200001657600080fd5b50604051620024ff380380620024ff8339810160408190526200003991620000d9565b600062000045620000d5565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03979097169690961790955560039390935560025560085560095560601b6001600160601b03191660805262000156565b3390565b60008060008060008060c08789031215620000f2578182fd5b8651620000ff816200013d565b809650506020870151945060408701519350606087015192506080870151915060a08701516200012f816200013d565b809150509295509295509295565b6001600160a01b03811681146200015357600080fd5b50565b60805160601c61237c6200018360003980610540528061079052806109c05280611793525061237c6000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c80636f2789ec1161011a578063d12facd4116100ad578063e598dd9d1161007c578063e598dd9d146103d4578063e98030c7146103dc578063f1b37093146103ef578063f2fde38b146103f7578063fbd01c3d1461040a576101fb565b8063d12facd414610393578063ddb54192146103a6578063df5d0341146103b9578063e2bbb158146103c1576101fb565b80638da5cb5b116100e95780638da5cb5b146103435780638dbb1e3a1461034b57806393f1a40b1461035e578063cde0e83214610380576101fb565b80636f2789ec14610323578063715018a61461032b5780637cd07e47146103335780638aa285501461033b576101fb565b806342697c021161019257806351eb05a61161016157806351eb05a6146102e25780635312ea8e146102f5578063630b5ba11461030857806364482f7914610310576101fb565b806342697c021461029f578063441a3e70146102b4578063454b0608146102c757806348cd4cb1146102da576101fb565b80631aed6553116101ce5780631aed65531461025e5780631eaaa0451461026657806323cf3118146102795780633cbbd6f21461028c576101fb565b8063081e3eda146102005780631526fe271461021e57806317caf6f1146102415780631a18e70714610249575b600080fd5b61020861041d565b6040516102159190612298565b60405180910390f35b61023161022c366004611e49565b610423565b6040516102159493929190611fbe565b610208610464565b61025c610257366004611e49565b61046a565b005b6102086104ad565b61025c610274366004611ea8565b6104b3565b61025c610287366004611d70565b6106d9565b61020861029a366004611e79565b610730565b6102a76109be565b6040516102159190611f53565b61025c6102c2366004611ee9565b6109e2565b61025c6102d5366004611e49565b610b29565b610208610d4f565b61025c6102f0366004611e49565b610d55565b61025c610303366004611e49565b610f16565b61025c610fb5565b61025c61031e366004611f0a565b610fd8565b610208611086565b61025c61108c565b6102a761110b565b61020861111a565b6102a761111f565b610208610359366004611ee9565b61112e565b61037161036c366004611e79565b611194565b604051610215939291906122b8565b61025c61038e366004611e49565b6111c3565b61025c6103a1366004611ee9565b6111fd565b61025c6103b4366004611e49565b611259565b61025c611293565b61025c6103cf366004611ee9565b6113c1565b6102086114e6565b61025c6103ea366004611e49565b6114ec565b6102a7611545565b61025c610405366004611d70565b611554565b61025c610418366004611d70565b61160a565b60055490565b6005818154811061043057fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60075481565b610472611661565b6000546001600160a01b039081169116146104a85760405162461bcd60e51b815260040161049f906120d5565b60405180910390fd5b600355565b60025481565b6104bb611661565b6000546001600160a01b039081169116146104e85760405162461bcd60e51b815260040161049f906120d5565b80156104f6576104f6610fb5565b600060085443116105095760085461050b565b435b60075490915061051b9085611665565b600755610526611d25565b600554604051631526fe2760e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001691631526fe27916105749190600401612298565b60806040518083038186803b15801561058c57600080fd5b505afa1580156105a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c49190611dc4565b9050836001600160a01b031681600001516001600160a01b031614156105eb57620402da91505b50604080516080810182526001600160a01b0394851681526020810195865290810191825260006060820181815260058054600181018255925291517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0600490920291820180546001600160a01b031916919096161790945593517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db1840155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db28301555090517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db390910155565b6106e1611661565b6000546001600160a01b0390811691161461070e5760405162461bcd60e51b815260040161049f906120d5565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000806005848154811061074057fe5b600091825260208083208784526006825260408085206001600160a01b0389168652909252922060049091029091019150610779611d56565b6040516393f1a40b60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906393f1a40b906107c790899089906004016122a1565b604080518083038186803b1580156107de57600080fd5b505afa1580156107f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108169190611e16565b600384015484546040516370a0823160e01b815292935090916000916001600160a01b0316906370a0823190610850903090600401611f53565b60206040518083038186803b15801561086857600080fd5b505afa15801561087c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a09190611e61565b90508460020154431180156108b457508015155b156109455760006108c986600201544361112e565b905060006108fc6007546108f689600101546108f06003548761169190919063ffffffff16565b90611691565b906116cb565b905060095442111561092c5761092561091e846108f68464e8d4a51000611691565b8590611665565b9350610942565b61093f836108f68364e8d4a51000611691565b93505b50505b82511580159061095a5750600284015460ff16155b156109825782516109769064e8d4a51000906108f69085611691565b955050505050506109b8565b6109b084600101546109aa64e8d4a510006108f686896000015461169190919063ffffffff16565b9061170d565b955050505050505b92915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6109eb8261174f565b6000600583815481106109fa57fe5b600091825260208083208684526006825260408085203386529092529220805460049092029092019250831115610a435760405162461bcd60e51b815260040161049f90612178565b610a4c84610d55565b600954421115610a92576000610a8482600101546109aa64e8d4a510006108f68760030154876000015461169190919063ffffffff16565b9050610a903382611846565b505b8054610a9e908461170d565b8155600954421115610acb5760038201548154610ac59164e8d4a51000916108f691611691565b60018201555b8154610ae1906001600160a01b031633856119e5565b83336001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56885604051610b1b9190612298565b60405180910390a350505050565b6004546001600160a01b0316610b515760405162461bcd60e51b815260040161049f9061226a565b600060058281548110610b6057fe5b60009182526020822060049182020180546040516370a0823160e01b81529194506001600160a01b0316929183916370a0823191610ba091309101611f53565b60206040518083038186803b158015610bb857600080fd5b505afa158015610bcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf09190611e61565b600454909150610c0d906001600160a01b03848116911683611a3b565b6004805460405163ce5494bb60e01b81526000926001600160a01b039092169163ce5494bb91610c3f91879101611f53565b602060405180830381600087803b158015610c5957600080fd5b505af1158015610c6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c919190611da8565b6040516370a0823160e01b81529091506001600160a01b038216906370a0823190610cc0903090600401611f53565b60206040518083038186803b158015610cd857600080fd5b505afa158015610cec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d109190611e61565b8214610d2e5760405162461bcd60e51b815260040161049f906121ee565b83546001600160a01b0319166001600160a01b039190911617909255505050565b60085481565b600060058281548110610d6457fe5b9060005260206000209060040201905080600201544311610d855750610f13565b80546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610db5903090600401611f53565b60206040518083038186803b158015610dcd57600080fd5b505afa158015610de1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e059190611e61565b905080610e19575043600290910155610f13565b600954421115610f10576000610e3383600201544361112e565b90506000610e5a6007546108f686600101546108f06003548761169190919063ffffffff16565b9050610e7d610e72846108f68464e8d4a51000611691565b600386015490611665565b600385015560015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90610eb49030908590600401611f67565b602060405180830381600087803b158015610ece57600080fd5b505af1158015610ee2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f069190611d8c565b5050436002840155505b50505b50565b600060058281548110610f2557fe5b60009182526020808320858452600682526040808520338087529352909320805460049093029093018054909450610f6a926001600160a01b039190911691906119e5565b8054604051849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059591610f9e91612298565b60405180910390a360008082556001909101555050565b60055460005b81811015610fd457610fcc81610d55565b600101610fbb565b5050565b610fe0611661565b6000546001600160a01b0390811691161461100d5760405162461bcd60e51b815260040161049f906120d5565b801561101b5761101b610fb5565b611058826110526005868154811061102f57fe5b90600052602060002090600402016001015460075461170d90919063ffffffff16565b90611665565b600781905550816005848154811061106c57fe5b906000526020600020906004020160010181905550505050565b60095481565b611094611661565b6000546001600160a01b039081169116146110c15760405162461bcd60e51b815260040161049f906120d5565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6004546001600160a01b031681565b600a81565b6000546001600160a01b031690565b6000600254821161114f57611148600a6108f0848661170d565b90506109b8565b600254831061116257611148828461170d565b61114861117a6002548461170d90919063ffffffff16565b611052600a6108f08760025461170d90919063ffffffff16565b600660209081526000928352604080842090915290825290208054600182015460029092015490919060ff1683565b6111cb611661565b6000546001600160a01b039081169116146111f85760405162461bcd60e51b815260040161049f906120d5565b600255565b611205611661565b6000546001600160a01b039081169116146112325760405162461bcd60e51b815260040161049f906120d5565b806005838154811061124057fe5b9060005260206000209060040201600201819055505050565b611261611661565b6000546001600160a01b0390811691161461128e5760405162461bcd60e51b815260040161049f906120d5565b600855565b61129b611661565b6000546001600160a01b039081169116146112c85760405162461bcd60e51b815260040161049f906120d5565b6001546040516370a0823160e01b81526001600160a01b039091169063a9059cbb90339083906370a0823190611302903090600401611f53565b60206040518083038186803b15801561131a57600080fd5b505afa15801561132e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113529190611e61565b6040518363ffffffff1660e01b815260040161136f929190611f67565b602060405180830381600087803b15801561138957600080fd5b505af115801561139d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f139190611d8c565b6113ca8261174f565b6000600583815481106113d957fe5b6000918252602080832086845260068252604080852033865290925292206004909102909101915061140a84610d55565b80541580159061141b575060095442115b1561145c57600061144e82600101546109aa64e8d4a510006108f68760030154876000015461169190919063ffffffff16565b905061145a3382611846565b505b8154611473906001600160a01b0316333086611afe565b805461147f9084611665565b81556009544211156114ac57600382015481546114a69164e8d4a51000916108f691611691565b60018201555b83336001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1585604051610b1b9190612298565b60035481565b6114f4611661565b6000546001600160a01b039081169116146115215760405162461bcd60e51b815260040161049f906120d5565b8042106115405760405162461bcd60e51b815260040161049f9061210a565b600955565b6001546001600160a01b031681565b61155c611661565b6000546001600160a01b039081169116146115895760405162461bcd60e51b815260040161049f906120d5565b6001600160a01b0381166115af5760405162461bcd60e51b815260040161049f90612017565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611612611661565b6000546001600160a01b0390811691161461163f5760405162461bcd60e51b815260040161049f906120d5565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60008282018381101561168a5760405162461bcd60e51b815260040161049f9061205d565b9392505050565b6000826116a0575060006109b8565b828202828482816116ad57fe5b041461168a5760405162461bcd60e51b815260040161049f90612094565b600061168a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b1f565b600061168a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611b56565b60008181526006602090815260408083203384529091529020600281015460ff16610fd45761177c611d56565b6040516393f1a40b60e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906393f1a40b906117ca90869033906004016122a1565b604080518083038186803b1580156117e157600080fd5b505afa1580156117f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118199190611e16565b805190915015610f10578051825461183091611665565b825560028201805460ff19166001179055505050565b6001546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611877903090600401611f53565b60206040518083038186803b15801561188f57600080fd5b505afa1580156118a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c79190611e61565b90508082111561195b5760015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906119039086908590600401611f67565b602060405180830381600087803b15801561191d57600080fd5b505af1158015611931573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119559190611d8c565b50610f10565b60015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb9061198d9086908690600401611f67565b602060405180830381600087803b1580156119a757600080fd5b505af11580156119bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119df9190611d8c565b50505050565b610f108363a9059cbb60e01b8484604051602401611a04929190611f67565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611b82565b801580611ac35750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90611a719030908690600401611f80565b60206040518083038186803b158015611a8957600080fd5b505afa158015611a9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac19190611e61565b155b611adf5760405162461bcd60e51b815260040161049f90612214565b610f108363095ea7b360e01b8484604051602401611a04929190611f67565b6119df846323b872dd60e01b858585604051602401611a0493929190611f9a565b60008183611b405760405162461bcd60e51b815260040161049f9190611fe4565b506000838581611b4c57fe5b0495945050505050565b60008184841115611b7a5760405162461bcd60e51b815260040161049f9190611fe4565b505050900390565b6060611bd7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c119092919063ffffffff16565b805190915015610f105780806020019051810190611bf59190611d8c565b610f105760405162461bcd60e51b815260040161049f906121a4565b6060611c208484600085611c28565b949350505050565b6060611c3385611cec565b611c4f5760405162461bcd60e51b815260040161049f90612141565b60006060866001600160a01b03168587604051611c6c9190611f37565b60006040518083038185875af1925050503d8060008114611ca9576040519150601f19603f3d011682016040523d82523d6000602084013e611cae565b606091505b50915091508115611cc2579150611c209050565b805115611cd25780518082602001fd5b8360405162461bcd60e51b815260040161049f9190611fe4565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611c20575050151592915050565b604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b604051806040016040528060008152602001600081525090565b600060208284031215611d81578081fd5b813561168a81612323565b600060208284031215611d9d578081fd5b815161168a81612338565b600060208284031215611db9578081fd5b815161168a81612323565b600060808284031215611dd5578081fd5b611ddf60806122d0565b8251611dea81612323565b808252506020830151602082015260408301516040820152606083015160608201528091505092915050565b600060408284031215611e27578081fd5b611e3160406122d0565b82518152602083015160208201528091505092915050565b600060208284031215611e5a578081fd5b5035919050565b600060208284031215611e72578081fd5b5051919050565b60008060408385031215611e8b578081fd5b823591506020830135611e9d81612323565b809150509250929050565b600080600060608486031215611ebc578081fd5b833592506020840135611ece81612323565b91506040840135611ede81612338565b809150509250925092565b60008060408385031215611efb578182fd5b50508035926020909101359150565b600080600060608486031215611f1e578283fd5b83359250602084013591506040840135611ede81612338565b60008251611f498184602087016122f7565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394909416845260208401929092526040830152606082015260800190565b60006020825282518060208401526120038160408501602087016122f7565b601f01601f19169190910160400192915050565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f636c61696d576169742068617320746f20626520696e20667574757265000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601290820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252600c908201526b1b5a59dc985d194e8818985960a21b604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b60208082526014908201527336b4b3b930ba329d1037379036b4b3b930ba37b960611b604082015260600190565b90815260200190565b9182526001600160a01b0316602082015260400190565b92835260208301919091521515604082015260600190565b60405181810167ffffffffffffffff811182821017156122ef57600080fd5b604052919050565b60005b838110156123125781810151838201526020016122fa565b838111156119df5750506000910152565b6001600160a01b0381168114610f1357600080fd5b8015158114610f1357600080fdfea2646970667358221220e62a4c4ae7bcb24da1e46d22a6ee7adbbc10e6a1d25ea5b90b008643e3022a2764736f6c634300060c003300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004563918244f4000000000000000000000000000000000000000000000000000000000000000453dd00000000000000000000000000000000000000000000000000000000000454410000000000000000000000000000000000000000000000000000000061fe66c00000000000000000000000004caf187b7d021279b25532449fa84a8cfeb1cdc4
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c80636f2789ec1161011a578063d12facd4116100ad578063e598dd9d1161007c578063e598dd9d146103d4578063e98030c7146103dc578063f1b37093146103ef578063f2fde38b146103f7578063fbd01c3d1461040a576101fb565b8063d12facd414610393578063ddb54192146103a6578063df5d0341146103b9578063e2bbb158146103c1576101fb565b80638da5cb5b116100e95780638da5cb5b146103435780638dbb1e3a1461034b57806393f1a40b1461035e578063cde0e83214610380576101fb565b80636f2789ec14610323578063715018a61461032b5780637cd07e47146103335780638aa285501461033b576101fb565b806342697c021161019257806351eb05a61161016157806351eb05a6146102e25780635312ea8e146102f5578063630b5ba11461030857806364482f7914610310576101fb565b806342697c021461029f578063441a3e70146102b4578063454b0608146102c757806348cd4cb1146102da576101fb565b80631aed6553116101ce5780631aed65531461025e5780631eaaa0451461026657806323cf3118146102795780633cbbd6f21461028c576101fb565b8063081e3eda146102005780631526fe271461021e57806317caf6f1146102415780631a18e70714610249575b600080fd5b61020861041d565b6040516102159190612298565b60405180910390f35b61023161022c366004611e49565b610423565b6040516102159493929190611fbe565b610208610464565b61025c610257366004611e49565b61046a565b005b6102086104ad565b61025c610274366004611ea8565b6104b3565b61025c610287366004611d70565b6106d9565b61020861029a366004611e79565b610730565b6102a76109be565b6040516102159190611f53565b61025c6102c2366004611ee9565b6109e2565b61025c6102d5366004611e49565b610b29565b610208610d4f565b61025c6102f0366004611e49565b610d55565b61025c610303366004611e49565b610f16565b61025c610fb5565b61025c61031e366004611f0a565b610fd8565b610208611086565b61025c61108c565b6102a761110b565b61020861111a565b6102a761111f565b610208610359366004611ee9565b61112e565b61037161036c366004611e79565b611194565b604051610215939291906122b8565b61025c61038e366004611e49565b6111c3565b61025c6103a1366004611ee9565b6111fd565b61025c6103b4366004611e49565b611259565b61025c611293565b61025c6103cf366004611ee9565b6113c1565b6102086114e6565b61025c6103ea366004611e49565b6114ec565b6102a7611545565b61025c610405366004611d70565b611554565b61025c610418366004611d70565b61160a565b60055490565b6005818154811061043057fe5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169350919084565b60075481565b610472611661565b6000546001600160a01b039081169116146104a85760405162461bcd60e51b815260040161049f906120d5565b60405180910390fd5b600355565b60025481565b6104bb611661565b6000546001600160a01b039081169116146104e85760405162461bcd60e51b815260040161049f906120d5565b80156104f6576104f6610fb5565b600060085443116105095760085461050b565b435b60075490915061051b9085611665565b600755610526611d25565b600554604051631526fe2760e01b81526001600160a01b037f0000000000000000000000004caf187b7d021279b25532449fa84a8cfeb1cdc41691631526fe27916105749190600401612298565b60806040518083038186803b15801561058c57600080fd5b505afa1580156105a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c49190611dc4565b9050836001600160a01b031681600001516001600160a01b031614156105eb57620402da91505b50604080516080810182526001600160a01b0394851681526020810195865290810191825260006060820181815260058054600181018255925291517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0600490920291820180546001600160a01b031916919096161790945593517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db1840155517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db28301555090517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db390910155565b6106e1611661565b6000546001600160a01b0390811691161461070e5760405162461bcd60e51b815260040161049f906120d5565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000806005848154811061074057fe5b600091825260208083208784526006825260408085206001600160a01b0389168652909252922060049091029091019150610779611d56565b6040516393f1a40b60e01b81526001600160a01b037f0000000000000000000000004caf187b7d021279b25532449fa84a8cfeb1cdc416906393f1a40b906107c790899089906004016122a1565b604080518083038186803b1580156107de57600080fd5b505afa1580156107f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108169190611e16565b600384015484546040516370a0823160e01b815292935090916000916001600160a01b0316906370a0823190610850903090600401611f53565b60206040518083038186803b15801561086857600080fd5b505afa15801561087c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108a09190611e61565b90508460020154431180156108b457508015155b156109455760006108c986600201544361112e565b905060006108fc6007546108f689600101546108f06003548761169190919063ffffffff16565b90611691565b906116cb565b905060095442111561092c5761092561091e846108f68464e8d4a51000611691565b8590611665565b9350610942565b61093f836108f68364e8d4a51000611691565b93505b50505b82511580159061095a5750600284015460ff16155b156109825782516109769064e8d4a51000906108f69085611691565b955050505050506109b8565b6109b084600101546109aa64e8d4a510006108f686896000015461169190919063ffffffff16565b9061170d565b955050505050505b92915050565b7f0000000000000000000000004caf187b7d021279b25532449fa84a8cfeb1cdc481565b6109eb8261174f565b6000600583815481106109fa57fe5b600091825260208083208684526006825260408085203386529092529220805460049092029092019250831115610a435760405162461bcd60e51b815260040161049f90612178565b610a4c84610d55565b600954421115610a92576000610a8482600101546109aa64e8d4a510006108f68760030154876000015461169190919063ffffffff16565b9050610a903382611846565b505b8054610a9e908461170d565b8155600954421115610acb5760038201548154610ac59164e8d4a51000916108f691611691565b60018201555b8154610ae1906001600160a01b031633856119e5565b83336001600160a01b03167ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b56885604051610b1b9190612298565b60405180910390a350505050565b6004546001600160a01b0316610b515760405162461bcd60e51b815260040161049f9061226a565b600060058281548110610b6057fe5b60009182526020822060049182020180546040516370a0823160e01b81529194506001600160a01b0316929183916370a0823191610ba091309101611f53565b60206040518083038186803b158015610bb857600080fd5b505afa158015610bcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf09190611e61565b600454909150610c0d906001600160a01b03848116911683611a3b565b6004805460405163ce5494bb60e01b81526000926001600160a01b039092169163ce5494bb91610c3f91879101611f53565b602060405180830381600087803b158015610c5957600080fd5b505af1158015610c6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c919190611da8565b6040516370a0823160e01b81529091506001600160a01b038216906370a0823190610cc0903090600401611f53565b60206040518083038186803b158015610cd857600080fd5b505afa158015610cec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d109190611e61565b8214610d2e5760405162461bcd60e51b815260040161049f906121ee565b83546001600160a01b0319166001600160a01b039190911617909255505050565b60085481565b600060058281548110610d6457fe5b9060005260206000209060040201905080600201544311610d855750610f13565b80546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610db5903090600401611f53565b60206040518083038186803b158015610dcd57600080fd5b505afa158015610de1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e059190611e61565b905080610e19575043600290910155610f13565b600954421115610f10576000610e3383600201544361112e565b90506000610e5a6007546108f686600101546108f06003548761169190919063ffffffff16565b9050610e7d610e72846108f68464e8d4a51000611691565b600386015490611665565b600385015560015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb90610eb49030908590600401611f67565b602060405180830381600087803b158015610ece57600080fd5b505af1158015610ee2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f069190611d8c565b5050436002840155505b50505b50565b600060058281548110610f2557fe5b60009182526020808320858452600682526040808520338087529352909320805460049093029093018054909450610f6a926001600160a01b039190911691906119e5565b8054604051849133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae059591610f9e91612298565b60405180910390a360008082556001909101555050565b60055460005b81811015610fd457610fcc81610d55565b600101610fbb565b5050565b610fe0611661565b6000546001600160a01b0390811691161461100d5760405162461bcd60e51b815260040161049f906120d5565b801561101b5761101b610fb5565b611058826110526005868154811061102f57fe5b90600052602060002090600402016001015460075461170d90919063ffffffff16565b90611665565b600781905550816005848154811061106c57fe5b906000526020600020906004020160010181905550505050565b60095481565b611094611661565b6000546001600160a01b039081169116146110c15760405162461bcd60e51b815260040161049f906120d5565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6004546001600160a01b031681565b600a81565b6000546001600160a01b031690565b6000600254821161114f57611148600a6108f0848661170d565b90506109b8565b600254831061116257611148828461170d565b61114861117a6002548461170d90919063ffffffff16565b611052600a6108f08760025461170d90919063ffffffff16565b600660209081526000928352604080842090915290825290208054600182015460029092015490919060ff1683565b6111cb611661565b6000546001600160a01b039081169116146111f85760405162461bcd60e51b815260040161049f906120d5565b600255565b611205611661565b6000546001600160a01b039081169116146112325760405162461bcd60e51b815260040161049f906120d5565b806005838154811061124057fe5b9060005260206000209060040201600201819055505050565b611261611661565b6000546001600160a01b0390811691161461128e5760405162461bcd60e51b815260040161049f906120d5565b600855565b61129b611661565b6000546001600160a01b039081169116146112c85760405162461bcd60e51b815260040161049f906120d5565b6001546040516370a0823160e01b81526001600160a01b039091169063a9059cbb90339083906370a0823190611302903090600401611f53565b60206040518083038186803b15801561131a57600080fd5b505afa15801561132e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113529190611e61565b6040518363ffffffff1660e01b815260040161136f929190611f67565b602060405180830381600087803b15801561138957600080fd5b505af115801561139d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f139190611d8c565b6113ca8261174f565b6000600583815481106113d957fe5b6000918252602080832086845260068252604080852033865290925292206004909102909101915061140a84610d55565b80541580159061141b575060095442115b1561145c57600061144e82600101546109aa64e8d4a510006108f68760030154876000015461169190919063ffffffff16565b905061145a3382611846565b505b8154611473906001600160a01b0316333086611afe565b805461147f9084611665565b81556009544211156114ac57600382015481546114a69164e8d4a51000916108f691611691565b60018201555b83336001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1585604051610b1b9190612298565b60035481565b6114f4611661565b6000546001600160a01b039081169116146115215760405162461bcd60e51b815260040161049f906120d5565b8042106115405760405162461bcd60e51b815260040161049f9061210a565b600955565b6001546001600160a01b031681565b61155c611661565b6000546001600160a01b039081169116146115895760405162461bcd60e51b815260040161049f906120d5565b6001600160a01b0381166115af5760405162461bcd60e51b815260040161049f90612017565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b611612611661565b6000546001600160a01b0390811691161461163f5760405162461bcd60e51b815260040161049f906120d5565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b60008282018381101561168a5760405162461bcd60e51b815260040161049f9061205d565b9392505050565b6000826116a0575060006109b8565b828202828482816116ad57fe5b041461168a5760405162461bcd60e51b815260040161049f90612094565b600061168a83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611b1f565b600061168a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611b56565b60008181526006602090815260408083203384529091529020600281015460ff16610fd45761177c611d56565b6040516393f1a40b60e01b81526001600160a01b037f0000000000000000000000004caf187b7d021279b25532449fa84a8cfeb1cdc416906393f1a40b906117ca90869033906004016122a1565b604080518083038186803b1580156117e157600080fd5b505afa1580156117f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118199190611e16565b805190915015610f10578051825461183091611665565b825560028201805460ff19166001179055505050565b6001546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611877903090600401611f53565b60206040518083038186803b15801561188f57600080fd5b505afa1580156118a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c79190611e61565b90508082111561195b5760015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb906119039086908590600401611f67565b602060405180830381600087803b15801561191d57600080fd5b505af1158015611931573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119559190611d8c565b50610f10565b60015460405163a9059cbb60e01b81526001600160a01b039091169063a9059cbb9061198d9086908690600401611f67565b602060405180830381600087803b1580156119a757600080fd5b505af11580156119bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119df9190611d8c565b50505050565b610f108363a9059cbb60e01b8484604051602401611a04929190611f67565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611b82565b801580611ac35750604051636eb1769f60e11b81526001600160a01b0384169063dd62ed3e90611a719030908690600401611f80565b60206040518083038186803b158015611a8957600080fd5b505afa158015611a9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ac19190611e61565b155b611adf5760405162461bcd60e51b815260040161049f90612214565b610f108363095ea7b360e01b8484604051602401611a04929190611f67565b6119df846323b872dd60e01b858585604051602401611a0493929190611f9a565b60008183611b405760405162461bcd60e51b815260040161049f9190611fe4565b506000838581611b4c57fe5b0495945050505050565b60008184841115611b7a5760405162461bcd60e51b815260040161049f9190611fe4565b505050900390565b6060611bd7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611c119092919063ffffffff16565b805190915015610f105780806020019051810190611bf59190611d8c565b610f105760405162461bcd60e51b815260040161049f906121a4565b6060611c208484600085611c28565b949350505050565b6060611c3385611cec565b611c4f5760405162461bcd60e51b815260040161049f90612141565b60006060866001600160a01b03168587604051611c6c9190611f37565b60006040518083038185875af1925050503d8060008114611ca9576040519150601f19603f3d011682016040523d82523d6000602084013e611cae565b606091505b50915091508115611cc2579150611c209050565b805115611cd25780518082602001fd5b8360405162461bcd60e51b815260040161049f9190611fe4565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470818114801590611c20575050151592915050565b604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b604051806040016040528060008152602001600081525090565b600060208284031215611d81578081fd5b813561168a81612323565b600060208284031215611d9d578081fd5b815161168a81612338565b600060208284031215611db9578081fd5b815161168a81612323565b600060808284031215611dd5578081fd5b611ddf60806122d0565b8251611dea81612323565b808252506020830151602082015260408301516040820152606083015160608201528091505092915050565b600060408284031215611e27578081fd5b611e3160406122d0565b82518152602083015160208201528091505092915050565b600060208284031215611e5a578081fd5b5035919050565b600060208284031215611e72578081fd5b5051919050565b60008060408385031215611e8b578081fd5b823591506020830135611e9d81612323565b809150509250929050565b600080600060608486031215611ebc578081fd5b833592506020840135611ece81612323565b91506040840135611ede81612338565b809150509250925092565b60008060408385031215611efb578182fd5b50508035926020909101359150565b600080600060608486031215611f1e578283fd5b83359250602084013591506040840135611ede81612338565b60008251611f498184602087016122f7565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394909416845260208401929092526040830152606082015260800190565b60006020825282518060208401526120038160408501602087016122f7565b601f01601f19169190910160400192915050565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601d908201527f636c61696d576169742068617320746f20626520696e20667574757265000000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252601290820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252600c908201526b1b5a59dc985d194e8818985960a21b604082015260600190565b60208082526036908201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60408201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b606082015260800190565b60208082526014908201527336b4b3b930ba329d1037379036b4b3b930ba37b960611b604082015260600190565b90815260200190565b9182526001600160a01b0316602082015260400190565b92835260208301919091521515604082015260600190565b60405181810167ffffffffffffffff811182821017156122ef57600080fd5b604052919050565b60005b838110156123125781810151838201526020016122fa565b838111156119df5750506000910152565b6001600160a01b0381168114610f1357600080fd5b8015158114610f1357600080fdfea2646970667358221220e62a4c4ae7bcb24da1e46d22a6ee7adbbc10e6a1d25ea5b90b008643e3022a2764736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004563918244f4000000000000000000000000000000000000000000000000000000000000000453dd00000000000000000000000000000000000000000000000000000000000454410000000000000000000000000000000000000000000000000000000061fe66c00000000000000000000000004caf187b7d021279b25532449fa84a8cfeb1cdc4
-----Decoded View---------------
Arg [0] : _roar (address): 0x0000000000000000000000000000000000000000
Arg [1] : _roarPerBlock (uint256): 5000000000000000000
Arg [2] : _startBlock (uint256): 283613
Arg [3] : _bonusEndBlock (uint256): 283713
Arg [4] : _claimWait (uint256): 1644062400
Arg [5] : _oldMasterChef (address): 0x4CAF187b7D021279b25532449FA84a8Cfeb1CDC4
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [1] : 0000000000000000000000000000000000000000000000004563918244f40000
Arg [2] : 00000000000000000000000000000000000000000000000000000000000453dd
Arg [3] : 0000000000000000000000000000000000000000000000000000000000045441
Arg [4] : 0000000000000000000000000000000000000000000000000000000061fe66c0
Arg [5] : 0000000000000000000000004caf187b7d021279b25532449fa84a8cfeb1cdc4
Deployed Bytecode Sourcemap
56215:12290:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59293:95;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;58065:26;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;:::i;58308:34::-;;;:::i;63057:96::-;;;;;;:::i;:::-;;:::i;:::-;;57695:28;;;:::i;59557:709::-;;;;;;:::i;:::-;;:::i;60974:102::-;;;;;;:::i;:::-;;:::i;63217:1117::-;;;;;;:::i;:::-;;:::i;58554:44::-;;;:::i;:::-;;;;;;;:::i;66837:839::-;;;;;;:::i;:::-;;:::i;61199:491::-;;;;;;:::i;:::-;;:::i;58399:25::-;;;:::i;64673:787::-;;;;;;:::i;:::-;;:::i;67747:356::-;;;;;;:::i;:::-;;:::i;64417:180::-;;;:::i;60589:309::-;;;;;;:::i;:::-;;:::i;58478:24::-;;;:::i;28946:148::-;;;:::i;58000:29::-;;;:::i;57850:45::-;;;:::i;28304:79::-;;;:::i;62592:423::-;;;;;;:::i;:::-;;:::i;58147:66::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;:::i;61745:109::-;;;;;;:::i;:::-;;:::i;60340:153::-;;;;;;:::i;:::-;;:::i;62002:111::-;;;;;;:::i;:::-;;:::i;62399:117::-;;;:::i;65923:862::-;;;;;;:::i;:::-;;:::i;57769:27::-;;;:::i;62156:185::-;;;;;;:::i;:::-;;:::i;57622:16::-;;;:::i;29249:244::-;;;;;;:::i;:::-;;:::i;61860:86::-;;;;;;:::i;:::-;;:::i;59293:95::-;59365:8;:15;59293:95;:::o;58065:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;58065:26:0;;;;-1:-1:-1;58065:26:0;;;:::o;58308:34::-;;;;:::o;63057:96::-;28526:12;:10;:12::i;:::-;28516:6;;-1:-1:-1;;;;;28516:6:0;;;:22;;;28508:67;;;;-1:-1:-1;;;28508:67:0;;;;;;;:::i;:::-;;;;;;;;;63123:12:::1;:22:::0;63057:96::o;57695:28::-;;;;:::o;59557:709::-;28526:12;:10;:12::i;:::-;28516:6;;-1:-1:-1;;;;;28516:6:0;;;:22;;;28508:67;;;;-1:-1:-1;;;28508:67:0;;;;;;;:::i;:::-;59658:11:::1;59654:61;;;59686:17;:15;:17::i;:::-;59725:23;59766:10;;59751:12;:25;:53;;59794:10;;59751:53;;;59779:12;59751:53;59833:15;::::0;59725:79;;-1:-1:-1;59833:32:0::1;::::0;59853:11;59833:19:::1;:32::i;:::-;59815:15;:50:::0;59876:35:::1;;:::i;:::-;59939:8;:15:::0;59914:41:::1;::::0;-1:-1:-1;;;59914:41:0;;-1:-1:-1;;;;;59914:15:0::1;:24;::::0;::::1;::::0;:41:::1;::::0;59939:15;59914:41:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;59876:79;;60005:8;-1:-1:-1::0;;;;;59969:45:0::1;59977:7;:15;;;-1:-1:-1::0;;;;;59969:45:0::1;;59966:96;;;60044:6;60026:24;;59966:96;-1:-1:-1::0;60086:171:0::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;60086:171:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;60086:171:0;;;;;;60072:8:::1;:186:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;60072:186:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;-1:-1:-1;60072:186:0;;;;;;;59557:709::o;60974:102::-;28526:12;:10;:12::i;:::-;28516:6;;-1:-1:-1;;;;;28516:6:0;;;:22;;;28508:67;;;;-1:-1:-1;;;28508:67:0;;;;;;;:::i;:::-;61048:8:::1;:20:::0;;-1:-1:-1;;;;;;61048:20:0::1;-1:-1:-1::0;;;;;61048:20:0;;;::::1;::::0;;;::::1;::::0;;60974:102::o;63217:1117::-;63290:7;63310:21;63334:8;63343:4;63334:14;;;;;;;;;;;;;;;;63383;;;:8;:14;;;;;;-1:-1:-1;;;;;63383:21:0;;;;;;;;;63334:14;;;;;;;;-1:-1:-1;63414:35:0;;:::i;:::-;63452:36;;-1:-1:-1;;;63452:36:0;;-1:-1:-1;;;;;63452:15:0;:24;;;;:36;;63477:4;;63482:5;;63452:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63525:20;;;;63575:12;;:37;;-1:-1:-1;;;63575:37:0;;63414:74;;-1:-1:-1;63525:20:0;;63499:23;;-1:-1:-1;;;;;63575:12:0;;:22;;:37;;63606:4;;63575:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63556:56;;63642:4;:20;;;63627:12;:35;:52;;;;-1:-1:-1;63666:13:0;;;63627:52;63623:477;;;63696:18;63717:49;63731:4;:20;;;63753:12;63717:13;:49::i;:::-;63696:70;;63781:18;63802:70;63856:15;;63802:49;63835:4;:15;;;63802:28;63817:12;;63802:10;:14;;:28;;;;:::i;:::-;:32;;:49::i;:::-;:53;;:70::i;:::-;63781:91;;63906:9;;63890:15;:25;63887:201;;;63948:55;63968:34;63993:8;63968:20;:10;63983:4;63968:14;:20::i;:34::-;63948:15;;:19;:55::i;:::-;63930:73;;63887:201;;;64054:34;64079:8;64054:20;:10;64069:4;64054:14;:20::i;:34::-;64037:51;;63887:201;63623:477;;;64113:14;;:18;;;;:35;;-1:-1:-1;64135:13:0;;;;;;64134:14;64113:35;64110:136;;;64179:14;;:45;;64219:4;;64179:35;;64198:15;64179:18;:35::i;:45::-;64172:52;;;;;;;;;64110:136;64263:63;64310:4;:15;;;64263:42;64300:4;64263:32;64279:15;64263:4;:11;;;:15;;:32;;;;:::i;:42::-;:46;;:63::i;:::-;64256:70;;;;;;;63217:1117;;;;;:::o;58554:44::-;;;:::o;66837:839::-;66904:17;66916:4;66904:11;:17::i;:::-;66932:21;66956:8;66965:4;66956:14;;;;;;;;;;;;;;;;67005;;;:8;:14;;;;;;67020:10;67005:26;;;;;;;67050:11;;66956:14;;;;;;;;-1:-1:-1;67050:22:0;-1:-1:-1;67050:22:0;67042:53;;;;-1:-1:-1;;;67042:53:0;;;;;;;:::i;:::-;67106:16;67117:4;67106:10;:16::i;:::-;67207:9;;67189:15;:27;67186:188;;;67228:15;67246:68;67298:4;:15;;;67246:47;67288:4;67246:37;67262:4;:20;;;67246:4;:11;;;:15;;:37;;;;:::i;:68::-;67228:86;;67325:37;67342:10;67354:7;67325:16;:37::i;:::-;67186:188;;67398:11;;:24;;67414:7;67398:15;:24::i;:::-;67384:38;;67454:9;;67436:15;:27;67433:119;;;67509:20;;;;67493:11;;:47;;67535:4;;67493:37;;:15;:37::i;:47::-;67475:15;;;:65;67433:119;67562:12;;:55;;-1:-1:-1;;;;;67562:12:0;67596:10;67609:7;67562:25;:55::i;:::-;67654:4;67642:10;-1:-1:-1;;;;;67633:35:0;;67660:7;67633:35;;;;;;:::i;:::-;;;;;;;;66837:839;;;;:::o;61199:491::-;61264:8;;-1:-1:-1;;;;;61264:8:0;61248:64;;;;-1:-1:-1;;;61248:64:0;;;;;;;:::i;:::-;61323:21;61347:8;61356:4;61347:14;;;;;;;;;;;;;;;;;;;;61389:12;;61426:32;;-1:-1:-1;;;61426:32:0;;61347:14;;-1:-1:-1;;;;;;61389:12:0;;61347:14;61389:12;;61426:17;;:32;;61452:4;;61426:32;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61497:8;;61412:46;;-1:-1:-1;61469:43:0;;-1:-1:-1;;;;;61469:19:0;;;;61497:8;61412:46;61469:19;:43::i;:::-;61543:8;;;:25;;-1:-1:-1;;;61543:25:0;;61523:17;;-1:-1:-1;;;;;61543:8:0;;;;:16;;:25;;61560:7;;61543:25;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61594:35;;-1:-1:-1;;;61594:35:0;;61523:45;;-1:-1:-1;;;;;;61594:20:0;;;;;:35;;61623:4;;61594:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;61587:3;:42;61579:67;;;;-1:-1:-1;;;61579:67:0;;;;;;;:::i;:::-;61657:25;;-1:-1:-1;;;;;;61657:25:0;-1:-1:-1;;;;;61657:25:0;;;;;;;;-1:-1:-1;;;61199:491:0:o;58399:25::-;;;;:::o;64673:787::-;64725:21;64749:8;64758:4;64749:14;;;;;;;;;;;;;;;;;;64725:38;;64794:4;:20;;;64778:12;:36;64774:75;;64831:7;;;64774:75;64878:12;;:37;;-1:-1:-1;;;64878:37:0;;64859:16;;-1:-1:-1;;;;;64878:12:0;;:22;;:37;;64909:4;;64878:37;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;64859:56;-1:-1:-1;64930:13:0;64926:102;;-1:-1:-1;64983:12:0;64960:20;;;;:35;65010:7;;64926:102;65057:9;;65041:15;:25;65038:415;;;65078:18;65099:49;65113:4;:20;;;65135:12;65099:13;:49::i;:::-;65078:70;;65159:18;65180:70;65234:15;;65180:49;65213:4;:15;;;65180:28;65195:12;;65180:10;:14;;:28;;;;:::i;:70::-;65159:91;-1:-1:-1;65284:60:0;65309:34;65334:8;65309:20;65159:91;65324:4;65309:14;:20::i;:34::-;65284:20;;;;;:24;:60::i;:::-;65261:20;;;:83;65355:4;;:40;;-1:-1:-1;;;65355:40:0;;-1:-1:-1;;;;;65355:4:0;;;;:13;;:40;;65377:4;;65384:10;;65355:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;65429:12:0;65406:20;;;:35;-1:-1:-1;65038:415:0;64673:787;;;;:::o;67747:356::-;67806:21;67830:8;67839:4;67830:14;;;;;;;;;;;;;;;;67879;;;:8;:14;;;;;;67894:10;67879:26;;;;;;;;67963:11;;67830:14;;;;;;;67916:12;;67830:14;;-1:-1:-1;67916:59:0;;-1:-1:-1;;;;;67916:12:0;;;;;67894:10;67916:25;:59::i;:::-;68027:11;;67991:48;;68021:4;;68009:10;;67991:48;;;;;:::i;:::-;;;;;;;;68064:1;68050:15;;;68076;;;;:19;-1:-1:-1;;67747:356:0:o;64417:180::-;64479:8;:15;64462:14;64505:85;64533:6;64527:3;:12;64505:85;;;64563:15;64574:3;64563:10;:15::i;:::-;64541:5;;64505:85;;;;64417:180;:::o;60589:309::-;28526:12;:10;:12::i;:::-;28516:6;;-1:-1:-1;;;;;28516:6:0;;;:22;;;28508:67;;;;-1:-1:-1;;;28508:67:0;;;;;;;:::i;:::-;60692:11:::1;60688:61;;;60720:17;:15;:17::i;:::-;60777:63;60828:11;60777:46;60797:8;60806:4;60797:14;;;;;;;;;;;;;;;;;;:25;;;60777:15;;:19;;:46;;;;:::i;:::-;:50:::0;::::1;:63::i;:::-;60759:15;:81;;;;60879:11;60851:8;60860:4;60851:14;;;;;;;;;;;;;;;;;;:25;;:39;;;;60589:309:::0;;;:::o;58478:24::-;;;;:::o;28946:148::-;28526:12;:10;:12::i;:::-;28516:6;;-1:-1:-1;;;;;28516:6:0;;;:22;;;28508:67;;;;-1:-1:-1;;;28508:67:0;;;;;;;:::i;:::-;29053:1:::1;29037:6:::0;;29016:40:::1;::::0;-1:-1:-1;;;;;29037:6:0;;::::1;::::0;29016:40:::1;::::0;29053:1;;29016:40:::1;29084:1;29067:19:::0;;-1:-1:-1;;;;;;29067:19:0::1;::::0;;28946:148::o;58000:29::-;;;-1:-1:-1;;;;;58000:29:0;;:::o;57850:45::-;57893:2;57850:45;:::o;28304:79::-;28342:7;28369:6;-1:-1:-1;;;;;28369:6:0;28304:79;:::o;62592:423::-;62664:7;62695:13;;62688:3;:20;62684:324;;62732:36;57893:2;62732:14;:3;62740:5;62732:7;:14::i;:36::-;62725:43;;;;62684:324;62799:13;;62790:5;:22;62786:222;;62836:14;:3;62844:5;62836:7;:14::i;62786:222::-;62890:106;62959:22;62967:13;;62959:3;:7;;:22;;;;:::i;:::-;62890:46;57893:2;62890:24;62908:5;62890:13;;:17;;:24;;;;:::i;58147:66::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;61745:109::-;28526:12;:10;:12::i;:::-;28516:6;;-1:-1:-1;;;;;28516:6:0;;;:22;;;28508:67;;;;-1:-1:-1;;;28508:67:0;;;;;;;:::i;:::-;61818:13:::1;:28:::0;61745:109::o;60340:153::-;28526:12;:10;:12::i;:::-;28516:6;;-1:-1:-1;;;;;28516:6:0;;;:22;;;28508:67;;;;-1:-1:-1;;;28508:67:0;;;;;;;:::i;:::-;60469:16:::1;60437:8;60446:4;60437:14;;;;;;;;;;;;;;;;;;:30;;:48;;;;60340:153:::0;;:::o;62002:111::-;28526:12;:10;:12::i;:::-;28516:6;;-1:-1:-1;;;;;28516:6:0;;;:22;;;28508:67;;;;-1:-1:-1;;;28508:67:0;;;;;;;:::i;:::-;62080:10:::1;:25:::0;62002:111::o;62399:117::-;28526:12;:10;:12::i;:::-;28516:6;;-1:-1:-1;;;;;28516:6:0;;;:22;;;28508:67;;;;-1:-1:-1;;;28508:67:0;;;;;;;:::i;:::-;62452:4:::1;::::0;62478:29:::1;::::0;-1:-1:-1;;;62478:29:0;;-1:-1:-1;;;;;62452:4:0;;::::1;::::0;:13:::1;::::0;62466:10:::1;::::0;62452:4;;62478:14:::1;::::0;:29:::1;::::0;62501:4:::1;::::0;62478:29:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;62452:56;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;65923:862::-:0;65989:17;66001:4;65989:11;:17::i;:::-;66017:21;66041:8;66050:4;66041:14;;;;;;;;;;;;;;;;66090;;;:8;:14;;;;;;66105:10;66090:26;;;;;;;66041:14;;;;;;;;-1:-1:-1;66127:16:0;66099:4;66127:10;:16::i;:::-;66211:11;;:15;;;;:46;;;66248:9;;66230:15;:27;66211:46;66207:217;;;66274:15;66292:68;66344:4;:15;;;66292:47;66334:4;66292:37;66308:4;:20;;;66292:4;:11;;;:15;;:37;;;;:::i;:68::-;66274:86;;66375:37;66392:10;66404:7;66375:16;:37::i;:::-;66207:217;;66434:12;;:74;;-1:-1:-1;;;;;66434:12:0;66472:10;66493:4;66500:7;66434:29;:74::i;:::-;66533:11;;:24;;66549:7;66533:15;:24::i;:::-;66519:38;;66597:9;;66579:15;:27;66575:153;;;66661:20;;;;66645:11;;:47;;66687:4;;66645:37;;:15;:37::i;:47::-;66627:15;;;:65;66575:153;66763:4;66751:10;-1:-1:-1;;;;;66743:34:0;;66769:7;66743:34;;;;;;:::i;57769:27::-;;;;:::o;62156:185::-;28526:12;:10;:12::i;:::-;28516:6;;-1:-1:-1;;;;;28516:6:0;;;:22;;;28508:67;;;;-1:-1:-1;;;28508:67:0;;;;;;;:::i;:::-;62254:10:::1;62236:15;:28;62228:71;;;;-1:-1:-1::0;;;62228:71:0::1;;;;;;;:::i;:::-;62310:9;:23:::0;62156:185::o;57622:16::-;;;-1:-1:-1;;;;;57622:16:0;;:::o;29249:244::-;28526:12;:10;:12::i;:::-;28516:6;;-1:-1:-1;;;;;28516:6:0;;;:22;;;28508:67;;;;-1:-1:-1;;;28508:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;29338:22:0;::::1;29330:73;;;;-1:-1:-1::0;;;29330:73:0::1;;;;;;;:::i;:::-;29440:6;::::0;;29419:38:::1;::::0;-1:-1:-1;;;;;29419:38:0;;::::1;::::0;29440:6;::::1;::::0;29419:38:::1;::::0;::::1;29468:6;:17:::0;;-1:-1:-1;;;;;;29468:17:0::1;-1:-1:-1::0;;;;;29468:17:0;;;::::1;::::0;;;::::1;::::0;;29249:244::o;61860:86::-;28526:12;:10;:12::i;:::-;28516:6;;-1:-1:-1;;;;;28516:6:0;;;:22;;;28508:67;;;;-1:-1:-1;;;28508:67:0;;;;;;;:::i;:::-;61923:4:::1;:15:::0;;-1:-1:-1;;;;;;61923:15:0::1;-1:-1:-1::0;;;;;61923:15:0;;;::::1;::::0;;;::::1;::::0;;61860:86::o;26856:106::-;26944:10;26856:106;:::o;3734:181::-;3792:7;3824:5;;;3848:6;;;;3840:46;;;;-1:-1:-1;;;3840:46:0;;;;;;;:::i;:::-;3906:1;3734:181;-1:-1:-1;;;3734:181:0:o;5088:471::-;5146:7;5391:6;5387:47;;-1:-1:-1;5421:1:0;5414:8;;5387:47;5458:5;;;5462:1;5458;:5;:1;5482:5;;;;;:10;5474:56;;;;-1:-1:-1;;;5474:56:0;;;;;;;:::i;6035:132::-;6093:7;6120:39;6124:1;6127;6120:39;;;;;;;;;;;;;;;;;:3;:39::i;4198:136::-;4256:7;4283:43;4287:1;4290;4283:43;;;;;;;;;;;;;;;;;:3;:43::i;65469:387::-;65524:21;65548:14;;;:8;:14;;;;;;;;65563:10;65548:26;;;;;;;65588:13;;;;;;65584:262;;65622:35;;:::i;:::-;65660:41;;-1:-1:-1;;;65660:41:0;;-1:-1:-1;;;;;65660:15:0;:24;;;;:41;;65685:4;;65690:10;;65660:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;65714:14;;65622:79;;-1:-1:-1;65714:16:0;65711:123;;65774:14;;65758:11;;:31;;:15;:31::i;:::-;65744:45;;65801:13;;;:20;;-1:-1:-1;;65801:20:0;65817:4;65801:20;;;65584:262;65469:387;;:::o;68217:278::-;68311:4;;:29;;-1:-1:-1;;;68311:29:0;;68293:15;;-1:-1:-1;;;;;68311:4:0;;:14;;:29;;68334:4;;68311:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;68293:47;;68365:7;68355;:17;68351:137;;;68389:4;;:27;;-1:-1:-1;;;68389:27:0;;-1:-1:-1;;;;;68389:4:0;;;;:13;;:27;;68403:3;;68408:7;;68389:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;68351:137;;;68449:4;;:27;;-1:-1:-1;;;68449:27:0;;-1:-1:-1;;;;;68449:4:0;;;;:13;;:27;;68463:3;;68468:7;;68449:27;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;68217:278;;;:::o;15096:177::-;15179:86;15199:5;15229:23;;;15254:2;15258:5;15206:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;15206:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;15206:58:0;-1:-1:-1;;;;;;15206:58:0;;;;;;;;;;15179:19;:86::i;15755:622::-;16125:10;;;16124:62;;-1:-1:-1;16141:39:0;;-1:-1:-1;;;16141:39:0;;-1:-1:-1;;;;;16141:15:0;;;;;:39;;16165:4;;16172:7;;16141:39;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;16124:62;16116:152;;;;-1:-1:-1;;;16116:152:0;;;;;;;:::i;:::-;16279:90;16299:5;16329:22;;;16353:7;16362:5;16306:62;;;;;;;;;:::i;15281:205::-;15382:96;15402:5;15432:27;;;15461:4;15467:2;15471:5;15409:68;;;;;;;;;;:::i;6663:278::-;6749:7;6784:12;6777:5;6769:28;;;;-1:-1:-1;;;6769:28:0;;;;;;;;:::i;:::-;;6808:9;6824:1;6820;:5;;;;;;;6663:278;-1:-1:-1;;;;;6663:278:0:o;4637:192::-;4723:7;4759:12;4751:6;;;;4743:29;;;;-1:-1:-1;;;4743:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;4795:5:0;;;4637:192::o;17401:761::-;17825:23;17851:69;17879:4;17851:69;;;;;;;;;;;;;;;;;17859:5;-1:-1:-1;;;;;17851:27:0;;;:69;;;;;:::i;:::-;17935:17;;17825:95;;-1:-1:-1;17935:21:0;17931:224;;18077:10;18066:30;;;;;;;;;;;;:::i;:::-;18058:85;;;;-1:-1:-1;;;18058:85:0;;;;;;;:::i;12075:196::-;12178:12;12210:53;12233:6;12241:4;12247:1;12250:12;12210:22;:53::i;:::-;12203:60;12075:196;-1:-1:-1;;;;12075:196:0:o;13452:979::-;13582:12;13615:18;13626:6;13615:10;:18::i;:::-;13607:60;;;;-1:-1:-1;;;13607:60:0;;;;;;;:::i;:::-;13741:12;13755:23;13782:6;-1:-1:-1;;;;;13782:11:0;13802:8;13813:4;13782:36;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13740:78;;;;13833:7;13829:595;;;13864:10;-1:-1:-1;13857:17:0;;-1:-1:-1;13857:17:0;13829:595;13978:17;;:21;13974:439;;14241:10;14235:17;14302:15;14289:10;14285:2;14281:19;14274:44;14189:148;14384:12;14377:20;;-1:-1:-1;;;14377:20:0;;;;;;;;:::i;8960:619::-;9020:4;9488:20;;9331:66;9528:23;;;;;;:42;;-1:-1:-1;;9555:15:0;;;9520:51;-1:-1:-1;;8960:619:0:o;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;:::o;2806:241::-;;2910:2;2898:9;2889:7;2885:23;2881:32;2878:2;;;-1:-1;;2916:12;2878:2;85:6;72:20;97:33;124:5;97:33;:::i;3054:257::-;;3166:2;3154:9;3145:7;3141:23;3137:32;3134:2;;;-1:-1;;3172:12;3134:2;354:6;348:13;366:30;390:5;366:30;:::i;3318:289::-;;3446:2;3434:9;3425:7;3421:23;3417:32;3414:2;;;-1:-1;;3452:12;3414:2;668:6;662:13;680:46;720:5;680:46;:::i;4180:316::-;;4321:3;4309:9;4300:7;4296:23;4292:33;4289:2;;;-1:-1;;4328:12;4289:2;1278:20;4321:3;1278:20;:::i;:::-;668:6;662:13;680:46;720:5;680:46;:::i;:::-;1383:73;1365:16;1358:99;;1524:2;1593:9;1589:22;2743:13;1524:2;1543:5;1539:16;1532:86;1690:2;1759:9;1755:22;2743:13;1690:2;1709:5;1705:16;1698:86;1856:2;1925:9;1921:22;2743:13;1856:2;1875:5;1871:16;1864:86;4380:100;;;;4283:213;;;;:::o;4503:315::-;;4644:2;4632:9;4623:7;4619:23;4615:32;4612:2;;;-1:-1;;4650:12;4612:2;2174:20;4644:2;2174:20;:::i;:::-;2310:22;2743:13;2260:16;2253:86;2406:2;2475:9;2471:22;2743:13;2406:2;2425:5;2421:16;2414:86;4702:100;;;;4606:212;;;;:::o;4825:241::-;;4929:2;4917:9;4908:7;4904:23;4900:32;4897:2;;;-1:-1;;4935:12;4897:2;-1:-1;2595:20;;4891:175;-1:-1;4891:175::o;5073:263::-;;5188:2;5176:9;5167:7;5163:23;5159:32;5156:2;;;-1:-1;;5194:12;5156:2;-1:-1;2743:13;;5150:186;-1:-1;5150:186::o;5343:366::-;;;5464:2;5452:9;5443:7;5439:23;5435:32;5432:2;;;-1:-1;;5470:12;5432:2;2608:6;2595:20;5522:63;;5622:2;5665:9;5661:22;72:20;97:33;124:5;97:33;:::i;:::-;5630:63;;;;5426:283;;;;;:::o;5716:511::-;;;;5864:2;5852:9;5843:7;5839:23;5835:32;5832:2;;;-1:-1;;5870:12;5832:2;2608:6;2595:20;5922:63;;6022:2;6078:9;6074:22;488:20;513:46;553:5;513:46;:::i;:::-;6030:76;-1:-1;6143:2;6179:22;;206:20;231:30;206:20;231:30;:::i;:::-;6151:60;;;;5826:401;;;;;:::o;6234:366::-;;;6355:2;6343:9;6334:7;6330:23;6326:32;6323:2;;;-1:-1;;6361:12;6323:2;-1:-1;;2595:20;;;6513:2;6552:22;;;2595:20;;-1:-1;6317:283::o;6607:485::-;;;;6742:2;6730:9;6721:7;6717:23;6713:32;6710:2;;;-1:-1;;6748:12;6710:2;2608:6;2595:20;6800:63;;6900:2;6943:9;6939:22;2595:20;6908:63;;7008:2;7048:9;7044:22;206:20;231:30;255:5;231:30;:::i;12865:271::-;;7639:5;23184:12;7750:52;7795:6;7790:3;7783:4;7776:5;7772:16;7750:52;:::i;:::-;7814:16;;;;;12999:137;-1:-1;;12999:137::o;13143:222::-;-1:-1;;;;;24273:54;;;;7319:37;;13270:2;13255:18;;13241:124::o;13372:349::-;-1:-1;;;;;24273:54;;;;7178:58;;13707:2;13692:18;;12816:37;13535:2;13520:18;;13506:215::o;13728:333::-;-1:-1;;;;;24273:54;;;7319:37;;24273:54;;14047:2;14032:18;;7319:37;13883:2;13868:18;;13854:207::o;14068:444::-;-1:-1;;;;;24273:54;;;7319:37;;24273:54;;;;14415:2;14400:18;;7319:37;14498:2;14483:18;;12816:37;;;;14251:2;14236:18;;14222:290::o;15114:582::-;-1:-1;;;;;24273:54;;;;7926:63;;15516:2;15501:18;;12816:37;;;;15599:2;15584:18;;12816:37;15682:2;15667:18;;12816:37;15338:3;15323:19;;15309:387::o;16500:310::-;;16647:2;16668:17;16661:47;8655:5;23184:12;23623:6;16647:2;16636:9;16632:18;23611:19;8749:52;8794:6;23651:14;16636:9;23651:14;16647:2;8775:5;8771:16;8749:52;:::i;:::-;26334:7;26318:14;-1:-1;;26314:28;8813:39;;;;23651:14;8813:39;;16618:192;-1:-1;;16618:192::o;16817:416::-;17017:2;17031:47;;;9089:2;17002:18;;;23611:19;9125:34;23651:14;;;9105:55;-1:-1;;;9180:12;;;9173:30;9222:12;;;16988:245::o;17240:416::-;17440:2;17454:47;;;9473:2;17425:18;;;23611:19;9509:29;23651:14;;;9489:50;9558:12;;;17411:245::o;17663:416::-;17863:2;17877:47;;;9809:2;17848:18;;;23611:19;9845:34;23651:14;;;9825:55;-1:-1;;;9900:12;;;9893:25;9937:12;;;17834:245::o;18086:416::-;18286:2;18300:47;;;18271:18;;;23611:19;10224:34;23651:14;;;10204:55;10278:12;;;18257:245::o;18509:416::-;18709:2;18723:47;;;10529:2;18694:18;;;23611:19;10565:31;23651:14;;;10545:52;10616:12;;;18680:245::o;18932:416::-;19132:2;19146:47;;;10867:2;19117:18;;;23611:19;10903:31;23651:14;;;10883:52;10954:12;;;19103:245::o;19355:416::-;19555:2;19569:47;;;11205:2;19540:18;;;23611:19;-1:-1;;;23651:14;;;11221:41;11281:12;;;19526:245::o;19778:416::-;19978:2;19992:47;;;11532:2;19963:18;;;23611:19;11568:34;23651:14;;;11548:55;-1:-1;;;11623:12;;;11616:34;11669:12;;;19949:245::o;20201:416::-;20401:2;20415:47;;;11920:2;20386:18;;;23611:19;-1:-1;;;23651:14;;;11936:35;11990:12;;;20372:245::o;20624:416::-;20824:2;20838:47;;;12241:2;20809:18;;;23611:19;12277:34;23651:14;;;12257:55;-1:-1;;;12332:12;;;12325:46;12390:12;;;20795:245::o;21047:416::-;21247:2;21261:47;;;12641:2;21232:18;;;23611:19;-1:-1;;;23651:14;;;12657:43;12719:12;;;21218:245::o;21470:222::-;12816:37;;;21597:2;21582:18;;21568:124::o;21699:333::-;12816:37;;;-1:-1;;;;;24273:54;22018:2;22003:18;;7319:37;21854:2;21839:18;;21825:207::o;22395:432::-;12816:37;;;22736:2;22721:18;;12816:37;;;;23843:13;23836:21;22813:2;22798:18;;7433:34;22572:2;22557:18;;22543:284::o;22834:256::-;22896:2;22890:9;22922:17;;;22997:18;22982:34;;23018:22;;;22979:62;22976:2;;;23054:1;;23044:12;22976:2;22896;23063:22;22874:216;;-1:-1;22874:216::o;25974:268::-;26039:1;26046:101;26060:6;26057:1;26054:13;26046:101;;;26127:11;;;26121:18;26108:11;;;26101:39;26082:2;26075:10;26046:101;;;26162:6;26159:1;26156:13;26153:2;;;-1:-1;;26039:1;26209:16;;26202:27;26023:219::o;26355:117::-;-1:-1;;;;;24273:54;;26414:35;;26404:2;;26463:1;;26453:12;26479:111;26560:5;23843:13;23836:21;26538:5;26535:32;26525:2;;26581:1;;26571:12
Swarm Source
ipfs://e62a4c4ae7bcb24da1e46d22a6ee7adbbc10e6a1d25ea5b90b008643e3022a27
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.