Source Code
Latest 25 from a total of 200 transactions
| Transaction Hash |
Method
|
Block
|
From
|
|
To
|
||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 20840589 | 542 days ago | IN | 0 ETH | 0.00115049 | ||||
| Withdraw | 14295472 | 1483 days ago | IN | 0 ETH | 0.00563728 | ||||
| Withdraw | 14295470 | 1483 days ago | IN | 0 ETH | 0.00675589 | ||||
| Withdraw | 14208013 | 1497 days ago | IN | 0 ETH | 0.00464057 | ||||
| Withdraw | 14203160 | 1498 days ago | IN | 0 ETH | 0.00465216 | ||||
| Withdraw | 14177411 | 1502 days ago | IN | 0 ETH | 0.00561232 | ||||
| Withdraw | 14177404 | 1502 days ago | IN | 0 ETH | 0.00409119 | ||||
| Withdraw | 14177404 | 1502 days ago | IN | 0 ETH | 0.00408992 | ||||
| Withdraw | 14027676 | 1525 days ago | IN | 0 ETH | 0.00843034 | ||||
| Withdraw | 14016942 | 1526 days ago | IN | 0 ETH | 0.00670375 | ||||
| Withdraw | 14016933 | 1526 days ago | IN | 0 ETH | 0.0131634 | ||||
| Withdraw | 14016571 | 1526 days ago | IN | 0 ETH | 0.00763234 | ||||
| Withdraw | 14008727 | 1528 days ago | IN | 0 ETH | 0.01180185 | ||||
| Withdraw | 13999630 | 1529 days ago | IN | 0 ETH | 0.0195542 | ||||
| Withdraw | 13998182 | 1529 days ago | IN | 0 ETH | 0.01686628 | ||||
| Withdraw | 13994616 | 1530 days ago | IN | 0 ETH | 0.0131573 | ||||
| Withdraw | 13990009 | 1531 days ago | IN | 0 ETH | 0.00801963 | ||||
| Withdraw | 13989996 | 1531 days ago | IN | 0 ETH | 0.0080183 | ||||
| Withdraw | 13989983 | 1531 days ago | IN | 0 ETH | 0.00877144 | ||||
| Withdraw | 13989974 | 1531 days ago | IN | 0 ETH | 0.00877011 | ||||
| Withdraw | 13989799 | 1531 days ago | IN | 0 ETH | 0.00748919 | ||||
| Withdraw | 13989792 | 1531 days ago | IN | 0 ETH | 0.00833288 | ||||
| Withdraw | 13989779 | 1531 days ago | IN | 0 ETH | 0.01052679 | ||||
| Withdraw | 13989779 | 1531 days ago | IN | 0 ETH | 0.0105253 | ||||
| Withdraw | 13989192 | 1531 days ago | IN | 0 ETH | 0.00801763 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
MatrixFarm
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2021-11-22
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
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;
}
}
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b > a) return (false, 0);
return (true, a - b);
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a / b);
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
if (b == 0) return (false, 0);
return (true, a % b);
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
require(b <= a, "SafeMath: subtraction overflow");
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) return 0;
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: division by zero");
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
require(b > 0, "SafeMath: modulo by zero");
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
return a - b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryDiv}.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
return a % b;
}
}
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];
}
// Bytes32Set
struct Bytes32Set {
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(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _add(set._inner, 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(Bytes32Set storage set, bytes32 value) internal returns (bool) {
return _remove(set._inner, value);
}
/**
* @dev Returns true if the value is in the set. O(1).
*/
function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
return _contains(set._inner, value);
}
/**
* @dev Returns the number of values in the set. O(1).
*/
function length(Bytes32Set 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(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
return _at(set._inner, 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(uint160(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(uint160(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(uint160(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(uint160(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));
}
}
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
// solhint-disable-next-line no-inline-assembly
assembly { size := extcodesize(account) }
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain`call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.call{ value: value }(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.staticcall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
// solhint-disable-next-line avoid-low-level-calls
(bool success, bytes memory returndata) = target.delegatecall(data);
return _verifyCallResult(success, returndata, errorMessage);
}
function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
// solhint-disable-next-line no-inline-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
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);
}
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");
}
}
}
contract MatrixFarm is Ownable {
using SafeMath for uint256;
using SafeERC20 for IERC20;
// Info of each user.
struct UserInfo {
uint256 amount; // How many LP tokens the user has provided.
uint256 rewardDebt; // Reward debt. See explanation below.
//
// We do some fancy math here. Basically, any point in time, the amount of tokens
// entitled to a user but is pending to be distributed is:
//
// pending reward = (user.amount * pool.accTokenPerShare) - user.rewardDebt
//
// Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
// 1. The pool's `accTokenPerShare` (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;
uint256 lastRewardBlock; // Last block number that tokens distribution occurs.
uint256 accTokenPerShare; // Accumulated TOkens per share, times 1e12. See below.
uint256 tokenPerBlock;
uint256 startBlock;
uint256 bonusEndBlock;
}
// The reward TOKEN!
IERC20 public rewardToken;
//if lpToken==rewardToken ,The user total deposit TOKEN!
uint256 public userTotalDepositToken;
// Info of each pool.
PoolInfo[] public poolInfo;
// Info of each user that stakes LP tokens.
mapping(uint256 => mapping(address => UserInfo)) public userInfo;
event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
event EmergencyWithdraw(
address indexed user,
uint256 indexed pid,
uint256 amount
);
event AddNewPool();
event SetPool(uint256 indexed pid);
constructor(
IERC20 _rewardToken
) public {
rewardToken = _rewardToken;
}
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.
* @param _lpToken Address of LP token contract.
* @param _withUpdate update pool
* @param _tokenPerBlock token tokens created per block.
* @param _startBlock The block number when n mining starts.
* @param _bonusEndBlock Block number when bonus token period ends.
*/
function add(
IERC20 _lpToken,
bool _withUpdate,
uint256 _tokenPerBlock,
uint256 _startBlock,
uint256 _bonusEndBlock
) public onlyOwner {
if (_withUpdate) {
massUpdatePools();
}
uint256 lastRewardBlock =
block.number > _startBlock ? block.number : _startBlock;
require(_bonusEndBlock > lastRewardBlock, "invalid bonusEndBlock");
poolInfo.push(
PoolInfo({
lpToken : _lpToken,
lastRewardBlock : lastRewardBlock,
accTokenPerShare : 0,
tokenPerBlock : _tokenPerBlock,
startBlock : _startBlock,
bonusEndBlock : _bonusEndBlock
}));
emit AddNewPool();
}
// Update the given pool's n tokenPerBlock. Can only be called by the owner.
function set(
uint256 _pid,
uint256 _tokenPerBlock,
bool _withUpdate
) public onlyOwner {
require(_pid < poolInfo.length, "invalid pool id");
if (_withUpdate) {
massUpdatePools();
}
poolInfo[_pid].tokenPerBlock = _tokenPerBlock;
emit SetPool(_pid);
}
//early end farm pool. set new end block. Can only be called by the owner.
function farmEarlyEnd(
uint256 _pid,
uint256 _bonusEndBlock
) public onlyOwner {
require(_pid < poolInfo.length, "invalid pool id");
poolInfo[_pid].bonusEndBlock = _bonusEndBlock;
updatePool(_pid);
}
//get back the reward in pool. Can only be called by the owner.
function backRewardToken(
uint256 amount
) public onlyOwner {
safeTokenTransfer(owner(), amount);
}
// Return reward multiplier over the given _from to _to block.
function getMultiplier(uint256 bonusEndBlock, uint256 lastRewardBlock, uint256 blockNumber)
public
pure
returns (uint256)
{
if (blockNumber <= bonusEndBlock) {
return blockNumber.sub(lastRewardBlock);
} else {
return bonusEndBlock.sub(lastRewardBlock);
}
}
// View function to see pending ns on frontend.
function pendingToken(uint256 _pid, address _user)
external
view
returns (uint256)
{
require(_pid < poolInfo.length, "invalid pool id");
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][_user];
uint256 accTokenPerShare = pool.accTokenPerShare;
uint256 lpSupply;
if (address(pool.lpToken) == address(rewardToken)) {
lpSupply = userTotalDepositToken;
} else {
lpSupply = pool.lpToken.balanceOf(address(this));
}
if (block.number > pool.lastRewardBlock && lpSupply != 0) {
uint256 multiplier =
getMultiplier(pool.bonusEndBlock, pool.lastRewardBlock, block.number);
uint256 tokenReward = multiplier.mul(pool.tokenPerBlock);
accTokenPerShare = accTokenPerShare.add(
tokenReward.mul(1e12).div(lpSupply)
);
}
return user.amount.mul(accTokenPerShare).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 {
require(_pid < poolInfo.length, "invalid pool id");
PoolInfo storage pool = poolInfo[_pid];
if (block.number <= pool.lastRewardBlock) {
return;
}
uint256 lpSupply;
if (address(pool.lpToken) == address(rewardToken)) {
lpSupply = userTotalDepositToken;
} else {
lpSupply = pool.lpToken.balanceOf(address(this));
}
if (lpSupply == 0) {
if (block.number >= pool.bonusEndBlock) {
pool.lastRewardBlock = pool.bonusEndBlock;
} else {
pool.lastRewardBlock = block.number;
}
return;
}
uint256 multiplier = getMultiplier(pool.bonusEndBlock, pool.lastRewardBlock, block.number);
uint256 tokenReward =
multiplier.mul(pool.tokenPerBlock);
pool.accTokenPerShare = pool.accTokenPerShare.add(
tokenReward.mul(1e12).div(lpSupply)
);
if (block.number >= pool.bonusEndBlock) {
pool.lastRewardBlock = pool.bonusEndBlock;
} else {
pool.lastRewardBlock = block.number;
}
}
// Deposit LP tokens to MatrixFarm for Token allocation.
function deposit(uint256 _pid, uint256 _amount) public {
require(_pid < poolInfo.length, "invalid pool id");
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(block.number >= pool.startBlock, "farming Not start");
require(block.number <= pool.bonusEndBlock, "farming end");
updatePool(_pid);
if (address(pool.lpToken) == address(rewardToken)) {
userTotalDepositToken = userTotalDepositToken.add(_amount);
}
if (user.amount > 0) {
uint256 pending =
user.amount.mul(pool.accTokenPerShare).div(1e12).sub(
user.rewardDebt
);
safeTokenTransfer(msg.sender, pending);
}
pool.lpToken.safeTransferFrom(
address(msg.sender),
address(this),
_amount
);
user.amount = user.amount.add(_amount);
user.rewardDebt = user.amount.mul(pool.accTokenPerShare).div(1e12);
emit Deposit(msg.sender, _pid, _amount);
}
// Withdraw LP tokens from MatrixFarm.
function withdraw(uint256 _pid, uint256 _amount) public {
require(_pid < poolInfo.length, "invalid pool id");
PoolInfo storage pool = poolInfo[_pid];
UserInfo storage user = userInfo[_pid][msg.sender];
require(user.amount >= _amount, "invalid withdraw amount");
updatePool(_pid);
if (address(pool.lpToken) == address(rewardToken)) {
userTotalDepositToken = userTotalDepositToken.sub(_amount);
}
uint256 pending =
user.amount.mul(pool.accTokenPerShare).div(1e12).sub(
user.rewardDebt
);
safeTokenTransfer(msg.sender, pending);
user.amount = user.amount.sub(_amount);
user.rewardDebt = user.amount.mul(pool.accTokenPerShare).div(1e12);
pool.lpToken.safeTransfer(address(msg.sender), _amount);
emit Withdraw(msg.sender, _pid, _amount);
}
// Safe token transfer function, just in case if rounding error causes pool to not have enough tokens.
function safeTokenTransfer(address _to, uint256 _amount) internal {
uint256 tokenBal = rewardToken.balanceOf(address(this));
if (_amount > tokenBal) {
rewardToken.transfer(_to, tokenBal);
} else {
rewardToken.transfer(_to, _amount);
}
}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"contract IERC20","name":"_rewardToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[],"name":"AddNewPool","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":"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":"uint256","name":"pid","type":"uint256"}],"name":"SetPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_tokenPerBlock","type":"uint256"},{"internalType":"uint256","name":"_startBlock","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"backRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_bonusEndBlock","type":"uint256"}],"name":"farmEarlyEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"bonusEndBlock","type":"uint256"},{"internalType":"uint256","name":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingToken","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":"lastRewardBlock","type":"uint256"},{"internalType":"uint256","name":"accTokenPerShare","type":"uint256"},{"internalType":"uint256","name":"tokenPerBlock","type":"uint256"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"bonusEndBlock","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":"rewardToken","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_tokenPerBlock","type":"uint256"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"userTotalDepositToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b50604051611a70380380611a708339818101604052602081101561003357600080fd5b5051600061003f6100ae565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b03929092169190911790556100b2565b3390565b6119af806100c16000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063acdb910411610071578063acdb91041461032d578063dac177911461034a578063e2bbb15814610352578063f2fde38b14610375578063f7c618c11461039b57610116565b80638da5cb5b1461026157806393f1a40b1461028557806394536547146102ca578063a58d28f5146102ed57610116565b806351eb05a6116100e957806351eb05a6146101e0578063630b5ba1146101fd57806364482f7914610205578063715018a6146102305780637bafb0291461023857610116565b8063081e3eda1461011b5780631526fe2714610135578063441a3e701461018f57806348e43af4146101b4575b600080fd5b6101236103a3565b60408051918252519081900360200190f35b6101526004803603602081101561014b57600080fd5b50356103a9565b604080516001600160a01b0390971687526020870195909552858501939093526060850191909152608084015260a0830152519081900360c00190f35b6101b2600480360360408110156101a557600080fd5b50803590602001356103f6565b005b610123600480360360408110156101ca57600080fd5b50803590602001356001600160a01b03166105c5565b6101b2600480360360208110156101f657600080fd5b503561078d565b6101b2610950565b6101b26004803603606081101561021b57600080fd5b50803590602081013590604001351515610973565b6101b2610a7c565b6101236004803603606081101561024e57600080fd5b5080359060208101359060400135610b28565b610269610b53565b604080516001600160a01b039092168252519081900360200190f35b6102b16004803603604081101561029b57600080fd5b50803590602001356001600160a01b0316610b62565b6040805192835260208301919091528051918290030190f35b6101b2600480360360408110156102e057600080fd5b5080359060200135610b86565b6101b2600480360360a081101561030357600080fd5b506001600160a01b0381351690602081013515159060408101359060608101359060800135610c5c565b6101b26004803603602081101561034357600080fd5b5035610ea1565b610123610f14565b6101b26004803603604081101561036857600080fd5b5080359060200135610f1a565b6101b26004803603602081101561038b57600080fd5b50356001600160a01b0316611128565b61026961122a565b60035490565b600381815481106103b657fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909286565b600354821061043e576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c1bdbdb081a59608a1b604482015290519081900360640190fd5b60006003838154811061044d57fe5b6000918252602080832086845260048252604080852033865290925292208054600690920290920192508311156104cb576040805162461bcd60e51b815260206004820152601760248201527f696e76616c696420776974686472617720616d6f756e74000000000000000000604482015290519081900360640190fd5b6104d48461078d565b60015482546001600160a01b03908116911614156104fd576002546104f99084611239565b6002555b6000610537826001015461053164e8d4a5100061052b8760020154876000015461129690919063ffffffff16565b906112ef565b90611239565b90506105433382611356565b815461054f9085611239565b808355600284015461056c9164e8d4a510009161052b9190611296565b60018301558254610587906001600160a01b031633866114e4565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b6003546000908310610610576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c1bdbdb081a59608a1b604482015290519081900360640190fd5b60006003848154811061061f57fe5b600091825260208083208784526004825260408085206001600160a01b0389811687529352842060069390930201600281015460015482549296509394909390929081169116141561067457506002546106ed565b8354604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156106be57600080fd5b505afa1580156106d2573d6000803e3d6000fd5b505050506040513d60208110156106e857600080fd5b505190505b8360010154431180156106ff57508015155b156107585760006107198560050154866001015443610b28565b9050600061073486600301548361129690919063ffffffff16565b905061075361074c8461052b8464e8d4a51000611296565b8590611536565b935050505b610780836001015461053164e8d4a5100061052b86886000015461129690919063ffffffff16565b9450505050505b92915050565b60035481106107d5576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c1bdbdb081a59608a1b604482015290519081900360640190fd5b6000600382815481106107e457fe5b9060005260206000209060060201905080600101544311610805575061094d565b60015481546000916001600160a01b039182169116141561082957506002546108a2565b8154604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561087357600080fd5b505afa158015610887573d6000803e3d6000fd5b505050506040513d602081101561089d57600080fd5b505190505b806108cf57816005015443106108c157600582015460018301556108c8565b4360018301555b505061094d565b60006108e48360050154846001015443610b28565b905060006108ff84600301548361129690919063ffffffff16565b90506109226109178461052b8464e8d4a51000611296565b600286015490611536565b6002850155600584015443106109415760058401546001850155610948565b4360018501555b505050505b50565b60035460005b8181101561096f576109678161078d565b600101610956565b5050565b61097b611590565b6001600160a01b031661098c610b53565b6001600160a01b0316146109d5576040805162461bcd60e51b81526020600482018190526024820152600080516020611930833981519152604482015290519081900360640190fd5b6003548310610a1d576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c1bdbdb081a59608a1b604482015290519081900360640190fd5b8015610a2b57610a2b610950565b8160038481548110610a3957fe5b6000918252602082206003600690920201019190915560405184917f30932cbd98f47dcd146d81a1e02f9c7117856d02ae0d4e3262315fe89f88adc291a2505050565b610a84611590565b6001600160a01b0316610a95610b53565b6001600160a01b031614610ade576040805162461bcd60e51b81526020600482018190526024820152600080516020611930833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000838211610b4257610b3b8284611239565b9050610b4c565b610b3b8484611239565b9392505050565b6000546001600160a01b031690565b60046020908152600092835260408084209091529082529020805460019091015482565b610b8e611590565b6001600160a01b0316610b9f610b53565b6001600160a01b031614610be8576040805162461bcd60e51b81526020600482018190526024820152600080516020611930833981519152604482015290519081900360640190fd5b6003548210610c30576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c1bdbdb081a59608a1b604482015290519081900360640190fd5b8060038381548110610c3e57fe5b90600052602060002090600602016005018190555061096f8261078d565b610c64611590565b6001600160a01b0316610c75610b53565b6001600160a01b031614610cbe576040805162461bcd60e51b81526020600482018190526024820152600080516020611930833981519152604482015290519081900360640190fd5b8315610ccc57610ccc610950565b6000824311610cdb5782610cdd565b435b9050808211610d2b576040805162461bcd60e51b8152602060048201526015602482015274696e76616c696420626f6e7573456e64426c6f636b60581b604482015290519081900360640190fd5b6040805160c0810182526001600160a01b038881168252602082018481526000838501818152606085018a8152608086018a815260a087018a81526003805460018101825590865297517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600690990298890180546001600160a01b031916919098161790965593517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c87015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d860155517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e85015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f84015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f8609092019190915590517f90435c1a8903252333d8bdc4910782d4db2ee30536cef772b523de7d584c2b0c9190a1505050505050565b610ea9611590565b6001600160a01b0316610eba610b53565b6001600160a01b031614610f03576040805162461bcd60e51b81526020600482018190526024820152600080516020611930833981519152604482015290519081900360640190fd5b61094d610f0e610b53565b82611356565b60025481565b6003548210610f62576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c1bdbdb081a59608a1b604482015290519081900360640190fd5b600060038381548110610f7157fe5b60009182526020808320868452600480835260408086203387529093529190932060069092029092019182015491925090431015610fea576040805162461bcd60e51b815260206004820152601160248201527019985c9b5a5b99c8139bdd081cdd185c9d607a1b604482015290519081900360640190fd5b8160050154431115611031576040805162461bcd60e51b815260206004820152600b60248201526a19985c9b5a5b99c8195b9960aa1b604482015290519081900360640190fd5b61103a8461078d565b60015482546001600160a01b03908116911614156110635760025461105f9084611536565b6002555b8054156110a6576000611098826001015461053164e8d4a5100061052b8760020154876000015461129690919063ffffffff16565b90506110a43382611356565b505b81546110bd906001600160a01b0316333086611594565b80546110c99084611536565b80825560028301546110e69164e8d4a510009161052b9190611296565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b611130611590565b6001600160a01b0316611141610b53565b6001600160a01b03161461118a576040805162461bcd60e51b81526020600482018190526024820152600080516020611930833981519152604482015290519081900360640190fd5b6001600160a01b0381166111cf5760405162461bcd60e51b81526004018080602001828103825260268152602001806118c36026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b600082821115611290576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000826112a557506000610787565b828202828482816112b257fe5b0414610b4c5760405162461bcd60e51b815260040180806020018281038252602181526020018061190f6021913960400191505060405180910390fd5b6000808211611345576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161134e57fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156113a157600080fd5b505afa1580156113b5573d6000803e3d6000fd5b505050506040513d60208110156113cb57600080fd5b505190508082111561145f576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561142d57600080fd5b505af1158015611441573d6000803e3d6000fd5b505050506040513d602081101561145757600080fd5b506114df9050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156114b557600080fd5b505af11580156114c9573d6000803e3d6000fd5b505050506040513d602081101561094857600080fd5b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114df9084906115f4565b600082820183811015610b4c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526115ee9085906115f4565b50505050565b6060611649826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116a59092919063ffffffff16565b8051909150156114df5780806020019051602081101561166857600080fd5b50516114df5760405162461bcd60e51b815260040180806020018281038252602a815260200180611950602a913960400191505060405180910390fd5b60606116b484846000856116bc565b949350505050565b6060824710156116fd5760405162461bcd60e51b81526004018080602001828103825260268152602001806118e96026913960400191505060405180910390fd5b61170685611818565b611757576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106117965780518252601f199092019160209182019101611777565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117f8576040519150601f19603f3d011682016040523d82523d6000602084013e6117fd565b606091505b509150915061180d82828661181e565b979650505050505050565b3b151590565b6060831561182d575081610b4c565b82511561183d5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561188757818101518382015260200161186f565b50505050905090810190601f1680156118b45780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206f69e01da26e9efa6183482ca4f332e2e8520d143b370239fb2073668c913b4364736f6c634300060c00330000000000000000000000001a57367c6194199e5d9aea1ce027431682dfb411
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c80638da5cb5b116100a2578063acdb910411610071578063acdb91041461032d578063dac177911461034a578063e2bbb15814610352578063f2fde38b14610375578063f7c618c11461039b57610116565b80638da5cb5b1461026157806393f1a40b1461028557806394536547146102ca578063a58d28f5146102ed57610116565b806351eb05a6116100e957806351eb05a6146101e0578063630b5ba1146101fd57806364482f7914610205578063715018a6146102305780637bafb0291461023857610116565b8063081e3eda1461011b5780631526fe2714610135578063441a3e701461018f57806348e43af4146101b4575b600080fd5b6101236103a3565b60408051918252519081900360200190f35b6101526004803603602081101561014b57600080fd5b50356103a9565b604080516001600160a01b0390971687526020870195909552858501939093526060850191909152608084015260a0830152519081900360c00190f35b6101b2600480360360408110156101a557600080fd5b50803590602001356103f6565b005b610123600480360360408110156101ca57600080fd5b50803590602001356001600160a01b03166105c5565b6101b2600480360360208110156101f657600080fd5b503561078d565b6101b2610950565b6101b26004803603606081101561021b57600080fd5b50803590602081013590604001351515610973565b6101b2610a7c565b6101236004803603606081101561024e57600080fd5b5080359060208101359060400135610b28565b610269610b53565b604080516001600160a01b039092168252519081900360200190f35b6102b16004803603604081101561029b57600080fd5b50803590602001356001600160a01b0316610b62565b6040805192835260208301919091528051918290030190f35b6101b2600480360360408110156102e057600080fd5b5080359060200135610b86565b6101b2600480360360a081101561030357600080fd5b506001600160a01b0381351690602081013515159060408101359060608101359060800135610c5c565b6101b26004803603602081101561034357600080fd5b5035610ea1565b610123610f14565b6101b26004803603604081101561036857600080fd5b5080359060200135610f1a565b6101b26004803603602081101561038b57600080fd5b50356001600160a01b0316611128565b61026961122a565b60035490565b600381815481106103b657fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909286565b600354821061043e576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c1bdbdb081a59608a1b604482015290519081900360640190fd5b60006003838154811061044d57fe5b6000918252602080832086845260048252604080852033865290925292208054600690920290920192508311156104cb576040805162461bcd60e51b815260206004820152601760248201527f696e76616c696420776974686472617720616d6f756e74000000000000000000604482015290519081900360640190fd5b6104d48461078d565b60015482546001600160a01b03908116911614156104fd576002546104f99084611239565b6002555b6000610537826001015461053164e8d4a5100061052b8760020154876000015461129690919063ffffffff16565b906112ef565b90611239565b90506105433382611356565b815461054f9085611239565b808355600284015461056c9164e8d4a510009161052b9190611296565b60018301558254610587906001600160a01b031633866114e4565b604080518581529051869133917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a35050505050565b6003546000908310610610576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c1bdbdb081a59608a1b604482015290519081900360640190fd5b60006003848154811061061f57fe5b600091825260208083208784526004825260408085206001600160a01b0389811687529352842060069390930201600281015460015482549296509394909390929081169116141561067457506002546106ed565b8354604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156106be57600080fd5b505afa1580156106d2573d6000803e3d6000fd5b505050506040513d60208110156106e857600080fd5b505190505b8360010154431180156106ff57508015155b156107585760006107198560050154866001015443610b28565b9050600061073486600301548361129690919063ffffffff16565b905061075361074c8461052b8464e8d4a51000611296565b8590611536565b935050505b610780836001015461053164e8d4a5100061052b86886000015461129690919063ffffffff16565b9450505050505b92915050565b60035481106107d5576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c1bdbdb081a59608a1b604482015290519081900360640190fd5b6000600382815481106107e457fe5b9060005260206000209060060201905080600101544311610805575061094d565b60015481546000916001600160a01b039182169116141561082957506002546108a2565b8154604080516370a0823160e01b815230600482015290516001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561087357600080fd5b505afa158015610887573d6000803e3d6000fd5b505050506040513d602081101561089d57600080fd5b505190505b806108cf57816005015443106108c157600582015460018301556108c8565b4360018301555b505061094d565b60006108e48360050154846001015443610b28565b905060006108ff84600301548361129690919063ffffffff16565b90506109226109178461052b8464e8d4a51000611296565b600286015490611536565b6002850155600584015443106109415760058401546001850155610948565b4360018501555b505050505b50565b60035460005b8181101561096f576109678161078d565b600101610956565b5050565b61097b611590565b6001600160a01b031661098c610b53565b6001600160a01b0316146109d5576040805162461bcd60e51b81526020600482018190526024820152600080516020611930833981519152604482015290519081900360640190fd5b6003548310610a1d576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c1bdbdb081a59608a1b604482015290519081900360640190fd5b8015610a2b57610a2b610950565b8160038481548110610a3957fe5b6000918252602082206003600690920201019190915560405184917f30932cbd98f47dcd146d81a1e02f9c7117856d02ae0d4e3262315fe89f88adc291a2505050565b610a84611590565b6001600160a01b0316610a95610b53565b6001600160a01b031614610ade576040805162461bcd60e51b81526020600482018190526024820152600080516020611930833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000838211610b4257610b3b8284611239565b9050610b4c565b610b3b8484611239565b9392505050565b6000546001600160a01b031690565b60046020908152600092835260408084209091529082529020805460019091015482565b610b8e611590565b6001600160a01b0316610b9f610b53565b6001600160a01b031614610be8576040805162461bcd60e51b81526020600482018190526024820152600080516020611930833981519152604482015290519081900360640190fd5b6003548210610c30576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c1bdbdb081a59608a1b604482015290519081900360640190fd5b8060038381548110610c3e57fe5b90600052602060002090600602016005018190555061096f8261078d565b610c64611590565b6001600160a01b0316610c75610b53565b6001600160a01b031614610cbe576040805162461bcd60e51b81526020600482018190526024820152600080516020611930833981519152604482015290519081900360640190fd5b8315610ccc57610ccc610950565b6000824311610cdb5782610cdd565b435b9050808211610d2b576040805162461bcd60e51b8152602060048201526015602482015274696e76616c696420626f6e7573456e64426c6f636b60581b604482015290519081900360640190fd5b6040805160c0810182526001600160a01b038881168252602082018481526000838501818152606085018a8152608086018a815260a087018a81526003805460018101825590865297517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b600690990298890180546001600160a01b031916919098161790965593517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85c87015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85d860155517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85e85015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85f84015590517fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f8609092019190915590517f90435c1a8903252333d8bdc4910782d4db2ee30536cef772b523de7d584c2b0c9190a1505050505050565b610ea9611590565b6001600160a01b0316610eba610b53565b6001600160a01b031614610f03576040805162461bcd60e51b81526020600482018190526024820152600080516020611930833981519152604482015290519081900360640190fd5b61094d610f0e610b53565b82611356565b60025481565b6003548210610f62576040805162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a59081c1bdbdb081a59608a1b604482015290519081900360640190fd5b600060038381548110610f7157fe5b60009182526020808320868452600480835260408086203387529093529190932060069092029092019182015491925090431015610fea576040805162461bcd60e51b815260206004820152601160248201527019985c9b5a5b99c8139bdd081cdd185c9d607a1b604482015290519081900360640190fd5b8160050154431115611031576040805162461bcd60e51b815260206004820152600b60248201526a19985c9b5a5b99c8195b9960aa1b604482015290519081900360640190fd5b61103a8461078d565b60015482546001600160a01b03908116911614156110635760025461105f9084611536565b6002555b8054156110a6576000611098826001015461053164e8d4a5100061052b8760020154876000015461129690919063ffffffff16565b90506110a43382611356565b505b81546110bd906001600160a01b0316333086611594565b80546110c99084611536565b80825560028301546110e69164e8d4a510009161052b9190611296565b6001820155604080518481529051859133917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a350505050565b611130611590565b6001600160a01b0316611141610b53565b6001600160a01b03161461118a576040805162461bcd60e51b81526020600482018190526024820152600080516020611930833981519152604482015290519081900360640190fd5b6001600160a01b0381166111cf5760405162461bcd60e51b81526004018080602001828103825260268152602001806118c36026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031681565b600082821115611290576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6000826112a557506000610787565b828202828482816112b257fe5b0414610b4c5760405162461bcd60e51b815260040180806020018281038252602181526020018061190f6021913960400191505060405180910390fd5b6000808211611345576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161134e57fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156113a157600080fd5b505afa1580156113b5573d6000803e3d6000fd5b505050506040513d60208110156113cb57600080fd5b505190508082111561145f576001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561142d57600080fd5b505af1158015611441573d6000803e3d6000fd5b505050506040513d602081101561145757600080fd5b506114df9050565b6001546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b1580156114b557600080fd5b505af11580156114c9573d6000803e3d6000fd5b505050506040513d602081101561094857600080fd5b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526114df9084906115f4565b600082820183811015610b4c576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526115ee9085906115f4565b50505050565b6060611649826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166116a59092919063ffffffff16565b8051909150156114df5780806020019051602081101561166857600080fd5b50516114df5760405162461bcd60e51b815260040180806020018281038252602a815260200180611950602a913960400191505060405180910390fd5b60606116b484846000856116bc565b949350505050565b6060824710156116fd5760405162461bcd60e51b81526004018080602001828103825260268152602001806118e96026913960400191505060405180910390fd5b61170685611818565b611757576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106117965780518252601f199092019160209182019101611777565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146117f8576040519150601f19603f3d011682016040523d82523d6000602084013e6117fd565b606091505b509150915061180d82828661181e565b979650505050505050565b3b151590565b6060831561182d575081610b4c565b82511561183d5782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561188757818101518382015260200161186f565b50505050905090810190601f1680156118b45780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212206f69e01da26e9efa6183482ca4f332e2e8520d143b370239fb2073668c913b4364736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000001a57367c6194199e5d9aea1ce027431682dfb411
-----Decoded View---------------
Arg [0] : _rewardToken (address): 0x1a57367C6194199e5D9aEa1cE027431682dfB411
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001a57367c6194199e5d9aea1ce027431682dfb411
Deployed Bytecode Sourcemap
31535:10019:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33626:95;;;:::i;:::-;;;;;;;;;;;;;;;;33012:26;;;;;;;;;;;;;;;;-1:-1:-1;33012:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;33012:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40232:900;;;;;;;;;;;;;;;;-1:-1:-1;40232:900:0;;;;;;;:::i;:::-;;36407:1038;;;;;;;;;;;;;;;;-1:-1:-1;36407:1038:0;;;;;;-1:-1:-1;;;;;36407:1038:0;;:::i;37784:1224::-;;;;;;;;;;;;;;;;-1:-1:-1;37784:1224:0;;:::i;37528:180::-;;;:::i;35045:345::-;;;;;;;;;;;;;;;;-1:-1:-1;35045:345:0;;;;;;;;;;;;;;:::i;1610:148::-;;;:::i;36012:334::-;;;;;;;;;;;;;;;;-1:-1:-1;36012:334:0;;;;;;;;;;;;:::i;959:87::-;;;:::i;:::-;;;;-1:-1:-1;;;;;959:87:0;;;;;;;;;;;;;;33094:64;;;;;;;;;;;;;;;;-1:-1:-1;33094:64:0;;;;;;-1:-1:-1;;;;;33094:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;35478:254;;;;;;;;;;;;;;;;-1:-1:-1;35478:254:0;;;;;;;:::i;34202:753::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;34202:753:0;;;;;;;;;;;;;;;;;;;;;;;;;:::i;35809:127::-;;;;;;;;;;;;;;;;-1:-1:-1;35809:127:0;;:::i;32940:36::-;;;:::i;39078:1102::-;;;;;;;;;;;;;;;;-1:-1:-1;39078:1102:0;;;;;;;:::i;1913:244::-;;;;;;;;;;;;;;;;-1:-1:-1;1913:244:0;-1:-1:-1;;;;;1913:244:0;;:::i;32846:25::-;;;:::i;33626:95::-;33698:8;:15;33626:95;:::o;33012:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33012:26:0;;;;-1:-1:-1;33012:26:0;;;;;:::o;40232:900::-;40314:8;:15;40307:22;;40299:50;;;;;-1:-1:-1;;;40299:50:0;;;;;;;;;;;;-1:-1:-1;;;40299:50:0;;;;;;;;;;;;;;;40360:21;40384:8;40393:4;40384:14;;;;;;;;;;;;;;;;40433;;;:8;:14;;;;;;40448:10;40433:26;;;;;;;40478:11;;40384:14;;;;;;;;-1:-1:-1;40478:22:0;-1:-1:-1;40478:22:0;40470:58;;;;;-1:-1:-1;;;40470:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;40539:16;40550:4;40539:10;:16::i;:::-;40603:11;;40578:12;;-1:-1:-1;;;;;40578:12:0;;;40603:11;;40570:45;40566:136;;;40656:21;;:34;;40682:7;40656:25;:34::i;:::-;40632:21;:58;40566:136;40712:15;40739:93;40806:4;:15;;;40739:48;40782:4;40739:38;40755:4;:21;;;40739:4;:11;;;:15;;:38;;;;:::i;:::-;:42;;:48::i;:::-;:52;;:93::i;:::-;40712:120;;40843:38;40861:10;40873:7;40843:17;:38::i;:::-;40906:11;;:24;;40922:7;40906:15;:24::i;:::-;40892:38;;;40975:21;;;;40959:48;;41002:4;;40959:38;;40892;40959:15;:38::i;:48::-;40941:15;;;:66;41018:12;;:55;;-1:-1:-1;;;;;41018:12:0;41052:10;41065:7;41018:25;:55::i;:::-;41089:35;;;;;;;;41110:4;;41098:10;;41089:35;;;;;;;;;40232:900;;;;;:::o;36407:1038::-;36536:8;:15;36496:7;;36529:22;;36521:50;;;;;-1:-1:-1;;;36521:50:0;;;;;;;;;;;;-1:-1:-1;;;36521:50:0;;;;;;;;;;;;;;;36582:21;36606:8;36615:4;36606:14;;;;;;;;;;;;;;;;36655;;;:8;:14;;;;;;-1:-1:-1;;;;;36655:21:0;;;;;;;;;36606:14;;;;;;36714:21;;;;36810:11;;36785:12;;36606:14;;-1:-1:-1;36655:21:0;;36714;;36606:14;;36810:11;;;36785:12;;36777:45;36773:191;;;-1:-1:-1;36850:21:0;;36773:191;;;36915:12;;:37;;;-1:-1:-1;;;36915:37:0;;36946:4;36915:37;;;;;;-1:-1:-1;;;;;36915:12:0;;;;:22;;:37;;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36915:37:0;;-1:-1:-1;36773:191:0;36993:4;:20;;;36978:12;:35;:52;;;;-1:-1:-1;37017:13:0;;;36978:52;36974:382;;;37047:18;37081:69;37095:4;:18;;;37115:4;:20;;;37137:12;37081:13;:69::i;:::-;37047:103;;37165:19;37187:34;37202:4;:18;;;37187:10;:14;;:34;;;;:::i;:::-;37165:56;-1:-1:-1;37255:89:0;37294:35;37320:8;37294:21;37165:56;37310:4;37294:15;:21::i;:35::-;37255:16;;:20;:89::i;:::-;37236:108;;36974:382;;;37373:64;37421:4;:15;;;37373:43;37411:4;37373:33;37389:16;37373:4;:11;;;:15;;:33;;;;:::i;:64::-;37366:71;;;;;;36407:1038;;;;;:::o;37784:1224::-;37851:8;:15;37844:22;;37836:50;;;;;-1:-1:-1;;;37836:50:0;;;;;;;;;;;;-1:-1:-1;;;37836:50:0;;;;;;;;;;;;;;;37897:21;37921:8;37930:4;37921:14;;;;;;;;;;;;;;;;;;37897:38;;37966:4;:20;;;37950:12;:36;37946:75;;38003:7;;;37946:75;38095:11;;38070:12;;38031:16;;-1:-1:-1;;;;;38070:12:0;;;38095:11;;38062:45;38058:191;;;-1:-1:-1;38135:21:0;;38058:191;;;38200:12;;:37;;;-1:-1:-1;;;38200:37:0;;38231:4;38200:37;;;;;;-1:-1:-1;;;;;38200:12:0;;;;:22;;:37;;;;;;;;;;;;;;;:12;:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38200:37:0;;-1:-1:-1;38058:191:0;38263:13;38259:258;;38313:4;:18;;;38297:12;:34;38293:192;;38375:18;;;;38352:20;;;:41;38293:192;;;38457:12;38434:20;;;:35;38293:192;38499:7;;;;38259:258;38527:18;38548:69;38562:4;:18;;;38582:4;:20;;;38604:12;38548:13;:69::i;:::-;38527:90;;38628:19;38659:34;38674:4;:18;;;38659:10;:14;;:34;;;;:::i;:::-;38628:65;-1:-1:-1;38728:86:0;38768:35;38794:8;38768:21;38628:65;38784:4;38768:15;:21::i;:35::-;38728:21;;;;;:25;:86::i;:::-;38704:21;;;:110;38845:18;;;;38829:12;:34;38825:176;;38903:18;;;;38880:20;;;:41;38825:176;;;38977:12;38954:20;;;:35;38825:176;37784:1224;;;;;;:::o;37528:180::-;37590:8;:15;37573:14;37616:85;37644:6;37638:3;:12;37616:85;;;37674:15;37685:3;37674:10;:15::i;:::-;37652:5;;37616:85;;;;37528:180;:::o;35045:345::-;1190:12;:10;:12::i;:::-;-1:-1:-1;;;;;1179:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1179:23:0;;1171:68;;;;;-1:-1:-1;;;1171:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1171:68:0;;;;;;;;;;;;;;;35191:8:::1;:15:::0;35184:22;::::1;35176:50;;;::::0;;-1:-1:-1;;;35176:50:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;35176:50:0;;;;;;;;;;;;;::::1;;35241:11;35237:61;;;35269:17;:15;:17::i;:::-;35339:14;35308:8;35317:4;35308:14;;;;;;;;;::::0;;;::::1;::::0;;:28:::1;:14;::::0;;::::1;;:28;:45:::0;;;;35369:13:::1;::::0;35377:4;;35369:13:::1;::::0;::::1;35045:345:::0;;;:::o;1610:148::-;1190:12;:10;:12::i;:::-;-1:-1:-1;;;;;1179:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1179:23:0;;1171:68;;;;;-1:-1:-1;;;1171:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1171:68:0;;;;;;;;;;;;;;;1717:1:::1;1701:6:::0;;1680:40:::1;::::0;-1:-1:-1;;;;;1701:6:0;;::::1;::::0;1680:40:::1;::::0;1717:1;;1680:40:::1;1748:1;1731:19:::0;;-1:-1:-1;;;;;;1731:19:0::1;::::0;;1610:148::o;36012:334::-;36140:7;36184:13;36169:11;:28;36165:174;;36221:32;:11;36237:15;36221;:32::i;:::-;36214:39;;;;36165:174;36293:34;:13;36311:15;36293:17;:34::i;36165:174::-;36012:334;;;;;:::o;959:87::-;1005:7;1032:6;-1:-1:-1;;;;;1032:6:0;959:87;:::o;33094:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;35478:254::-;1190:12;:10;:12::i;:::-;-1:-1:-1;;;;;1179:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1179:23:0;;1171:68;;;;;-1:-1:-1;;;1171:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1171:68:0;;;;;;;;;;;;;;;35606:8:::1;:15:::0;35599:22;::::1;35591:50;;;::::0;;-1:-1:-1;;;35591:50:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;35591:50:0;;;;;;;;;;;;;::::1;;35683:14;35652:8;35661:4;35652:14;;;;;;;;;;;;;;;;;;:28;;:45;;;;35708:16;35719:4;35708:10;:16::i;34202:753::-:0;1190:12;:10;:12::i;:::-;-1:-1:-1;;;;;1179:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1179:23:0;;1171:68;;;;;-1:-1:-1;;;1171:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1171:68:0;;;;;;;;;;;;;;;34403:11:::1;34399:61;;;34431:17;:15;:17::i;:::-;34470:23;34520:11;34505:12;:26;:55;;34549:11;34505:55;;;34534:12;34505:55;34470:90;;34596:15;34579:14;:32;34571:66;;;::::0;;-1:-1:-1;;;34571:66:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;34571:66:0;;;;;;;;;;;;;::::1;;34676:242;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;34676:242:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;-1:-1:-1;34676:242:0;;;;;;;;;;;;;;;;;;;;;;;;34648:8:::1;:271:::0;;::::1;::::0;::::1;::::0;;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;34648:271:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34935:12;;::::1;::::0;-1:-1:-1;34935:12:0::1;1250:1;34202:753:::0;;;;;:::o;35809:127::-;1190:12;:10;:12::i;:::-;-1:-1:-1;;;;;1179:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1179:23:0;;1171:68;;;;;-1:-1:-1;;;1171:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1171:68:0;;;;;;;;;;;;;;;35894:34:::1;35912:7;:5;:7::i;:::-;35921:6;35894:17;:34::i;32940:36::-:0;;;;:::o;39078:1102::-;39159:8;:15;39152:22;;39144:50;;;;;-1:-1:-1;;;39144:50:0;;;;;;;;;;;;-1:-1:-1;;;39144:50:0;;;;;;;;;;;;;;;39205:21;39229:8;39238:4;39229:14;;;;;;;;;;;;;;;;39278;;;:8;:14;;;;;;;39293:10;39278:26;;;;;;;;;39229:14;;;;;;;39339:15;;;;39229:14;;-1:-1:-1;39278:26:0;39323:12;:31;;39315:61;;;;;-1:-1:-1;;;39315:61:0;;;;;;;;;;;;-1:-1:-1;;;39315:61:0;;;;;;;;;;;;;;;39411:4;:18;;;39395:12;:34;;39387:58;;;;;-1:-1:-1;;;39387:58:0;;;;;;;;;;;;-1:-1:-1;;;39387:58:0;;;;;;;;;;;;;;;39456:16;39467:4;39456:10;:16::i;:::-;39520:11;;39495:12;;-1:-1:-1;;;;;39495:12:0;;;39520:11;;39487:45;39483:136;;;39573:21;;:34;;39599:7;39573:25;:34::i;:::-;39549:21;:58;39483:136;39633:11;;:15;39629:233;;39665:15;39696:101;39767:4;:15;;;39696:48;39739:4;39696:38;39712:4;:21;;;39696:4;:11;;;:15;;:38;;;;:::i;:101::-;39665:132;;39812:38;39830:10;39842:7;39812:17;:38::i;:::-;39629:233;;39872:12;;:124;;-1:-1:-1;;;;;39872:12:0;39924:10;39958:4;39978:7;39872:29;:124::i;:::-;40021:11;;:24;;40037:7;40021:15;:24::i;:::-;40007:38;;;40090:21;;;;40074:48;;40117:4;;40074:38;;40007;40074:15;:38::i;:48::-;40056:15;;;:66;40138:34;;;;;;;;40158:4;;40146:10;;40138:34;;;;;;;;;39078:1102;;;;:::o;1913:244::-;1190:12;:10;:12::i;:::-;-1:-1:-1;;;;;1179:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;1179:23:0;;1171:68;;;;;-1:-1:-1;;;1171:68:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;1171:68:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;2002:22:0;::::1;1994:73;;;;-1:-1:-1::0;;;1994:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2104:6;::::0;;2083:38:::1;::::0;-1:-1:-1;;;;;2083:38:0;;::::1;::::0;2104:6;::::1;::::0;2083:38:::1;::::0;::::1;2132:6;:17:::0;;-1:-1:-1;;;;;;2132:17:0::1;-1:-1:-1::0;;;;;2132:17:0;;;::::1;::::0;;;::::1;::::0;;1913:244::o;32846:25::-;;;-1:-1:-1;;;;;32846:25:0;;:::o;4753:158::-;4811:7;4844:1;4839;:6;;4831:49;;;;;-1:-1:-1;;;4831:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4898:5:0;;;4753:158::o;5170:220::-;5228:7;5252:6;5248:20;;-1:-1:-1;5267:1:0;5260:8;;5248:20;5291:5;;;5295:1;5291;:5;:1;5315:5;;;;;:10;5307:56;;;;-1:-1:-1;;;5307:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5868:153;5926:7;5958:1;5954;:5;5946:44;;;;;-1:-1:-1;;;5946:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6012:1;6008;:5;;;;;;;5868:153;-1:-1:-1;;;5868:153:0:o;41248:303::-;41344:11;;:36;;;-1:-1:-1;;;41344:36:0;;41374:4;41344:36;;;;;;41325:16;;-1:-1:-1;;;;;41344:11:0;;:21;;:36;;;;;;;;;;;;;;:11;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41344:36:0;;-1:-1:-1;41395:18:0;;;41391:153;;;41430:11;;:35;;;-1:-1:-1;;;41430:35:0;;-1:-1:-1;;;;;41430:35:0;;;;;;;;;;;;;;;:11;;;;;:20;;:35;;;;;;;;;;;;;;:11;;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41391:153:0;;-1:-1:-1;41391:153:0;;41498:11;;:34;;;-1:-1:-1;;;41498:34:0;;-1:-1:-1;;;;;41498:34:0;;;;;;;;;;;;;;;:11;;;;;:20;;:34;;;;;;;;;;;;;;:11;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41391:153;41248:303;;;:::o;28464:177::-;28574:58;;;-1:-1:-1;;;;;28574:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28574:58:0;-1:-1:-1;;;28574:58:0;;;28547:86;;28567:5;;28547:19;:86::i;4291:179::-;4349:7;4381:5;;;4405:6;;;;4397:46;;;;;-1:-1:-1;;;4397:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;95:106;183:10;95:106;:::o;28649:205::-;28777:68;;;-1:-1:-1;;;;;28777:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28777:68:0;-1:-1:-1;;;28777:68:0;;;28750:96;;28770:5;;28750:19;:96::i;:::-;28649:205;;;;:::o;30769:761::-;31193:23;31219:69;31247:4;31219:69;;;;;;;;;;;;;;;;;31227:5;-1:-1:-1;;;;;31219:27:0;;;:69;;;;;:::i;:::-;31303:17;;31193:95;;-1:-1:-1;31303:21:0;31299:224;;31445:10;31434:30;;;;;;;;;;;;;;;-1:-1:-1;31434:30:0;31426:85;;;;-1:-1:-1;;;31426:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21392:195;21495:12;21527:52;21549:6;21557:4;21563:1;21566:12;21527:21;:52::i;:::-;21520:59;21392:195;-1:-1:-1;;;;21392:195:0:o;22444:530::-;22571:12;22629:5;22604:21;:30;;22596:81;;;;-1:-1:-1;;;22596:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22696:18;22707:6;22696:10;:18::i;:::-;22688:60;;;;;-1:-1:-1;;;22688:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;22822:12;22836:23;22863:6;-1:-1:-1;;;;;22863:11:0;22883:5;22891:4;22863:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;22863:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22821:75;;;;22914:52;22932:7;22941:10;22953:12;22914:17;:52::i;:::-;22907:59;22444:530;-1:-1:-1;;;;;;;22444:530:0:o;18474:422::-;18841:20;18880:8;;;18474:422::o;24984:742::-;25099:12;25128:7;25124:595;;;-1:-1:-1;25159:10:0;25152:17;;25124:595;25273:17;;:21;25269:439;;25536:10;25530:17;25597:15;25584:10;25580:2;25576:19;25569:44;25484:148;25679:12;25672:20;;-1:-1:-1;;;25672:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://6f69e01da26e9efa6183482ca4f332e2e8520d143b370239fb2073668c913b43
Loading...
Loading
Loading...
Loading
Net Worth in USD
$417.36
Net Worth in ETH
0.195893
Token Allocations
MDF
100.00%
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| ETH | 100.00% | $0.000343 | 1,218,207.9452 | $417.36 |
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.