Source Code
Latest 25 from a total of 145 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 19176265 | 257 days ago | IN | 0 ETH | 0.00000007 | ||||
| Withdraw | 16806773 | 312 days ago | IN | 0 ETH | 0.00000017 | ||||
| Withdraw | 15294128 | 347 days ago | IN | 0 ETH | 0.00000013 | ||||
| Withdraw | 12567388 | 410 days ago | IN | 0 ETH | 0.00000025 | ||||
| Deposit | 11391465 | 438 days ago | IN | 0 ETH | 0.0000003 | ||||
| Deposit | 11391419 | 438 days ago | IN | 0 ETH | 0.00000072 | ||||
| Withdraw | 9744224 | 476 days ago | IN | 0 ETH | 0.00000009 | ||||
| Withdraw | 9744197 | 476 days ago | IN | 0 ETH | 0.00000009 | ||||
| Withdraw | 9744134 | 476 days ago | IN | 0 ETH | 0.00000027 | ||||
| Withdraw | 9652524 | 478 days ago | IN | 0 ETH | 0.00000022 | ||||
| Deposit | 8833297 | 497 days ago | IN | 0 ETH | 0.00000076 | ||||
| Deposit | 8833204 | 497 days ago | IN | 0 ETH | 0.00000073 | ||||
| Deposit | 8833162 | 497 days ago | IN | 0 ETH | 0.00000205 | ||||
| Withdraw | 8712081 | 500 days ago | IN | 0 ETH | 0.00000115 | ||||
| Deposit | 8712075 | 500 days ago | IN | 0 ETH | 0.00000297 | ||||
| Withdraw | 8218080 | 511 days ago | IN | 0 ETH | 0.00000019 | ||||
| Deposit | 7413734 | 530 days ago | IN | 0 ETH | 0.00000039 | ||||
| Withdraw | 7295578 | 532 days ago | IN | 0 ETH | 0.00000018 | ||||
| Withdraw | 7282872 | 533 days ago | IN | 0 ETH | 0.00000045 | ||||
| Withdraw | 7205818 | 534 days ago | IN | 0 ETH | 0.00000025 | ||||
| Withdraw | 7205777 | 534 days ago | IN | 0 ETH | 0.00000025 | ||||
| Withdraw | 7198182 | 535 days ago | IN | 0 ETH | 0.00000022 | ||||
| Withdraw | 7170794 | 535 days ago | IN | 0 ETH | 0.00000023 | ||||
| Withdraw | 7163406 | 535 days ago | IN | 0 ETH | 0.00000051 | ||||
| Withdraw | 7149729 | 536 days ago | IN | 0 ETH | 0.00000061 |
Latest 1 internal transaction
Advanced mode:
| Parent Transaction Hash | Block | From | To | |||
|---|---|---|---|---|---|---|
| 5812393 | 567 days ago | Contract Creation | 0 ETH |
Cross-Chain Transactions
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xc566fb4A...Aa217a5Cb The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
SmartChefInitializable
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma abicoder v2;
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 `to`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address to, 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 `from` to `to` 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 from,
address to,
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
);
}
interface IERC20Metadata is IERC20 {
/**
* @dev Returns the name of the token.
*/
function name() external view returns (string memory);
/**
* @dev Returns the symbol of the token.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the decimals places of the token.
*/
function decimals() external view returns (uint8);
}
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
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 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"
);
(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");
(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");
(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");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal 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
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
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() {
_transferOwnership(_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 {
_transferOwnership(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"
);
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
library SafeERC20 {
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'
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) + value;
_callOptionalReturn(
token,
abi.encodeWithSelector(
token.approve.selector,
spender,
newAllowance
)
);
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(
oldAllowance >= value,
"SafeERC20: decreased allowance below zero"
);
uint256 newAllowance = oldAllowance - value;
_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
require(
abi.decode(returndata, (bool)),
"SafeERC20: ERC20 operation did not succeed"
);
}
}
}
interface ISquadProfile {
function createProfile(
uint256 _teamId,
address _nftAddress,
uint256 _tokenId
) external;
function increaseUserPoints(
address _userAddress,
uint256 _numberPoints,
uint256 _campaignId
) external;
function removeUserPoints(
address _userAddress,
uint256 _numberPoints
) external;
function addNftAddress(address _nftAddress) external;
function addTeam(
string calldata _teamName,
string calldata _teamDescription
) external;
function getUserProfile(
address _userAddress
) external view returns (uint256, uint256, uint256, address, uint256, bool);
function getUserStatus(address _userAddress) external view returns (bool);
function getTeamProfile(
uint256 _teamId
)
external
view
returns (string memory, string memory, uint256, uint256, bool);
}
import "./blast/interfaces/IBlast.sol";
import "./blast/interfaces/IBlastPoints.sol";
import "./blast/interfaces/IERC20Rebasing.sol";
import "./blast/interfaces/BlastModes.sol";
contract SmartChefInitializable is Ownable, ReentrancyGuard {
using SafeERC20 for IERC20Metadata;
// The address of the smart chef factory
address public immutable SMART_CHEF_FACTORY;
// Whether a limit is set for users
bool public userLimit;
// Whether it is initialized
bool public isInitialized;
// Accrued token per share
uint256 public accTokenPerShare;
// The block timestamp when SQUAD mining ends
uint256 public endTimestamp;
// The block timestamp when SQUAD mining starts
uint256 public startTimestamp;
// The block timestamp of the last pool update
uint256 public lastRewardTimestamp;
// The pool limit (0 if none)
uint256 public poolLimitPerUser;
// Seconds available for user limit (after start timestamp)
uint256 public numberSecondsForUserLimit;
// Squad profile address
address public immutable squadProfile;
// Squad Profile is requested
bool public squadProfileIsRequested;
// Squad Profile points threshold
uint256 public squadProfileThresholdPoints;
// SQUAD tokens created per second
uint256 public rewardPerSecond;
// The precision factor
uint256 public PRECISION_FACTOR;
// The reward token
IERC20Metadata public rewardToken;
// The staked token
IERC20Metadata public stakedToken;
// BLASTVARIABLES
address public pointsOperator;
address public yieldOperator;
IBlast public BLAST;
address public BlastAddress = 0x4300000000000000000000000000000000000002;
// Mainnet
address public USDBAddress = 0x4300000000000000000000000000000000000003;
address public WETHAddress = 0x4300000000000000000000000000000000000004;
// Testnet
// address public USDBAddress = 0x4200000000000000000000000000000000000022;
// address public WETHAddress = 0x4200000000000000000000000000000000000023;
// Mainnet
address public BlastPointsAddress =
0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800;
// Testnet
// address public BlastPointsAddress =
// 0x2fc95838c71e76ec69ff817983BFf17c710F34E0;
// Info of each user that stakes tokens (stakedToken)
mapping(address => UserInfo) public userInfo;
struct UserInfo {
uint256 amount; // How many staked tokens the user has provided
uint256 rewardDebt;
}
event Deposit(address indexed user, uint256 amount);
event EmergencyWithdraw(address indexed user, uint256 amount);
event NewStartAndEndTimestamp(uint256 startTimestamp, uint256 endTimestamp);
event NewRewardPerSecond(uint256 rewardPerSecond);
event NewPoolLimit(uint256 poolLimitPerUser);
event RewardsStop(uint256 blockNumber);
event TokenRecovery(address indexed token, uint256 amount);
event Withdraw(address indexed user, uint256 amount);
event UpdateProfileAndThresholdPointsRequirement(
bool isProfileRequested,
uint256 thresholdPoints
);
/**
* @notice Constructor
* @param _squadProfile: Squad Profile address
* @param _squadProfileIsRequested: Squad Profile is requested
* @param _squadProfileThresholdPoints: Squad Profile need threshold points
*/
constructor(
address _squadProfile,
bool _squadProfileIsRequested,
uint256 _squadProfileThresholdPoints
) {
SMART_CHEF_FACTORY = msg.sender;
squadProfile = _squadProfile; // It can be empty on Other chain
if (_squadProfile != address(0)) {
ISquadProfile(_squadProfile).getTeamProfile(1);
// if squadProfile is requested
squadProfileIsRequested = _squadProfileIsRequested;
// squadProfile threshold points when profile & points are requested
squadProfileThresholdPoints = _squadProfileThresholdPoints;
} else {
squadProfileIsRequested = false;
squadProfileThresholdPoints = 0;
}
}
/*
* @notice Initialize the contract
* @param _stakedToken: staked token address
* @param _rewardToken: reward token address
* @param _rewardPerSecond: reward per second (in rewardToken)
* @param _startTimestamp: start block timestamp
* @param _endTimestamp: end block timestamp
* @param _poolLimitPerUser: pool limit per user in stakedToken (if any, else 0)
* @param _numberSecondsForUserLimit: seconds available for user limit (after start timestamp)
* @param _admin: admin address with ownership
*/
function initialize(
IERC20Metadata _stakedToken,
IERC20Metadata _rewardToken,
uint256 _rewardPerSecond,
uint256 _startTimestamp,
uint256 _endTimestamp,
uint256 _poolLimitPerUser,
uint256 _numberSecondsForUserLimit,
address _admin,
address _pointsOperator,
address _yieldOperator
) external {
require(!isInitialized, "Already initialized");
require(msg.sender == SMART_CHEF_FACTORY, "Not factory");
require(
_startTimestamp < _endTimestamp,
"New startTimestamp must be lower than new endTimestamp"
);
require(
block.timestamp < _startTimestamp,
"New startTimestamp must be higher than current block timestamp"
);
// Make this contract initialized
isInitialized = true;
stakedToken = _stakedToken;
rewardToken = _rewardToken;
rewardPerSecond = _rewardPerSecond;
startTimestamp = _startTimestamp;
endTimestamp = _endTimestamp;
if (_poolLimitPerUser > 0) {
userLimit = true;
poolLimitPerUser = _poolLimitPerUser;
numberSecondsForUserLimit = _numberSecondsForUserLimit;
}
uint256 decimalsRewardToken = uint256(rewardToken.decimals());
require(decimalsRewardToken < 30, "Must be inferior to 30");
PRECISION_FACTOR = uint256(10 ** (uint256(30) - decimalsRewardToken));
// require(PRECISION_FACTOR * rewardPerSecond / (10**decimalsRewardToken) >= 100_000_000, "rewardPerSecond must be larger");
// Set the lastRewardBlock as the startTimestamp
lastRewardTimestamp = startTimestamp;
// Transfer ownership to the admin address who becomes owner of the contract
transferOwnership(_admin);
pointsOperator = _pointsOperator;
yieldOperator = _yieldOperator;
BLAST = IBlast(BlastAddress);
BLAST.configureClaimableYield();
BLAST.configureClaimableGas();
IERC20Rebasing(USDBAddress).configure(YieldMode.CLAIMABLE);
IERC20Rebasing(WETHAddress).configure(YieldMode.CLAIMABLE);
IBlastPoints(BlastPointsAddress).configurePointsOperator(
pointsOperator
);
}
/*
* @notice Deposit staked tokens and collect reward tokens (if any)
* @param _amount: amount to withdraw (in rewardToken)
*/
function deposit(uint256 _amount) external nonReentrant {
UserInfo storage user = userInfo[msg.sender];
if (squadProfile != address(0)) {
// Checks whether the user has an active profile
require(
(!squadProfileIsRequested &&
squadProfileThresholdPoints == 0) ||
ISquadProfile(squadProfile).getUserStatus(msg.sender),
"Deposit: Must have an active profile"
);
uint256 numberUserPoints = 0;
if (squadProfileThresholdPoints > 0) {
require(
squadProfile != address(0),
"Deposit: SquadProfile is not exist"
);
(, numberUserPoints, , , , ) = ISquadProfile(squadProfile)
.getUserProfile(msg.sender);
}
require(
squadProfileThresholdPoints == 0 ||
numberUserPoints >= squadProfileThresholdPoints,
"Deposit: User is not get enough user points"
);
}
userLimit = hasUserLimit();
require(
!userLimit || ((_amount + user.amount) <= poolLimitPerUser),
"Deposit: Amount above limit"
);
_updatePool();
if (user.amount > 0) {
uint256 pending = (user.amount * accTokenPerShare) /
PRECISION_FACTOR -
user.rewardDebt;
if (pending > 0) {
rewardToken.safeTransfer(address(msg.sender), pending);
}
}
if (_amount > 0) {
user.amount = user.amount + _amount;
stakedToken.safeTransferFrom(
address(msg.sender),
address(this),
_amount
);
}
user.rewardDebt = (user.amount * accTokenPerShare) / PRECISION_FACTOR;
emit Deposit(msg.sender, _amount);
}
/*
* @notice Withdraw staked tokens and collect reward tokens
* @param _amount: amount to withdraw (in rewardToken)
*/
function withdraw(uint256 _amount) external nonReentrant {
UserInfo storage user = userInfo[msg.sender];
require(user.amount >= _amount, "Amount to withdraw too high");
_updatePool();
uint256 pending = (user.amount * accTokenPerShare) /
PRECISION_FACTOR -
user.rewardDebt;
if (_amount > 0) {
user.amount = user.amount - _amount;
stakedToken.safeTransfer(address(msg.sender), _amount);
}
if (pending > 0) {
rewardToken.safeTransfer(address(msg.sender), pending);
}
user.rewardDebt = (user.amount * accTokenPerShare) / PRECISION_FACTOR;
emit Withdraw(msg.sender, _amount);
}
/*
* @notice Withdraw staked tokens without caring about rewards rewards
* @dev Needs to be for emergency.
*/
function emergencyWithdraw() external nonReentrant {
UserInfo storage user = userInfo[msg.sender];
uint256 amountToTransfer = user.amount;
user.amount = 0;
user.rewardDebt = 0;
if (amountToTransfer > 0) {
stakedToken.safeTransfer(address(msg.sender), amountToTransfer);
}
emit EmergencyWithdraw(msg.sender, user.amount);
}
/*
* @notice Stop rewards
* @dev Only callable by owner. Needs to be for emergency.
*/
function emergencyRewardWithdraw(uint256 _amount) external onlyOwner {
rewardToken.safeTransfer(address(msg.sender), _amount);
}
/**
* @notice Allows the owner to recover tokens sent to the contract by mistake
* @param _token: token address
* @dev Callable by owner
*/
function recoverToken(address _token) external onlyOwner {
require(
_token != address(stakedToken),
"Operations: Cannot recover staked token"
);
require(
_token != address(rewardToken),
"Operations: Cannot recover reward token"
);
uint256 balance = IERC20Metadata(_token).balanceOf(address(this));
require(balance != 0, "Operations: Cannot recover zero balance");
IERC20Metadata(_token).safeTransfer(address(msg.sender), balance);
emit TokenRecovery(_token, balance);
}
/*
* @notice Stop rewards
* @dev Only callable by owner
*/
function stopReward() external onlyOwner {
endTimestamp = block.timestamp;
emit RewardsStop(endTimestamp);
}
/*
* @notice Update pool limit per user
* @dev Only callable by owner.
* @param _userLimit: whether the limit remains forced
* @param _poolLimitPerUser: new pool limit per user
*/
function updatePoolLimitPerUser(
bool _userLimit,
uint256 _poolLimitPerUser
) external onlyOwner {
require(userLimit, "Must be set");
if (_userLimit) {
require(
_poolLimitPerUser > poolLimitPerUser,
"New limit must be higher"
);
poolLimitPerUser = _poolLimitPerUser;
} else {
userLimit = _userLimit;
poolLimitPerUser = 0;
}
emit NewPoolLimit(poolLimitPerUser);
}
/*
* @notice Update reward per block
* @dev Only callable by owner.
* @param _rewardPerSecond: the reward per second
*/
function updateRewardPerSecond(
uint256 _rewardPerSecond
) external onlyOwner {
require(block.timestamp < startTimestamp, "Pool has started");
// uint256 decimalsRewardToken = uint256(rewardToken.decimals());
// require(PRECISION_FACTOR * _rewardPerSecond / (10**decimalsRewardToken) >= 100_000_000, "rewardPerSecond must be larger");
rewardPerSecond = _rewardPerSecond;
emit NewRewardPerSecond(_rewardPerSecond);
}
/**
* @notice It allows the admin to update start and end blocks
* @dev This function is only callable by owner.
* @param _startTimestamp: the new start block timestamp
* @param _endTimestamp: the new end block timestamp
*/
function updateStartAndEndTimestamp(
uint256 _startTimestamp,
uint256 _endTimestamp
) external onlyOwner {
require(block.timestamp < startTimestamp, "Pool has started");
require(
_startTimestamp < _endTimestamp,
"New startTimestamp must be lower than new endTimestamp"
);
require(
block.timestamp < _startTimestamp,
"New startTimestamp must be higher than current block timestamp"
);
startTimestamp = _startTimestamp;
endTimestamp = _endTimestamp;
// Set the lastRewardTimestamp as the startTimestamp
lastRewardTimestamp = startTimestamp;
emit NewStartAndEndTimestamp(_startTimestamp, _endTimestamp);
}
/**
* @notice It allows the admin to update profile and thresholdPoints' requirement.
* @dev This function is only callable by owner.
* @param _isRequested: the profile is requested
* @param _thresholdPoints: the threshold points
*/
function updateProfileAndThresholdPointsRequirement(
bool _isRequested,
uint256 _thresholdPoints
) external onlyOwner {
require(squadProfile != address(0), "Squad profile address is null");
require(_thresholdPoints >= 0, "Threshold points need to exceed 0");
squadProfileIsRequested = _isRequested;
squadProfileThresholdPoints = _thresholdPoints;
emit UpdateProfileAndThresholdPointsRequirement(
_isRequested,
_thresholdPoints
);
}
/*
* @notice View function to see pending reward on frontend.
* @param _user: user address
* @return Pending reward for a given user
*/
function pendingReward(address _user) external view returns (uint256) {
UserInfo storage user = userInfo[_user];
uint256 stakedTokenSupply = stakedToken.balanceOf(address(this));
if (block.timestamp > lastRewardTimestamp && stakedTokenSupply != 0) {
uint256 multiplier = _getMultiplier(
lastRewardTimestamp,
block.timestamp
);
uint256 squadReward = multiplier * rewardPerSecond;
uint256 adjustedTokenPerShare = accTokenPerShare +
(squadReward * PRECISION_FACTOR) /
stakedTokenSupply;
return
(user.amount * adjustedTokenPerShare) /
PRECISION_FACTOR -
user.rewardDebt;
} else {
return
(user.amount * accTokenPerShare) /
PRECISION_FACTOR -
user.rewardDebt;
}
}
/*
* @notice Update reward variables of the given pool to be up-to-date.
*/
function _updatePool() internal {
if (block.timestamp <= lastRewardTimestamp) {
return;
}
uint256 stakedTokenSupply = stakedToken.balanceOf(address(this));
if (stakedTokenSupply == 0) {
lastRewardTimestamp = block.timestamp;
return;
}
uint256 multiplier = _getMultiplier(
lastRewardTimestamp,
block.timestamp
);
uint256 squadReward = multiplier * rewardPerSecond;
accTokenPerShare =
accTokenPerShare +
(squadReward * PRECISION_FACTOR) /
stakedTokenSupply;
lastRewardTimestamp = block.timestamp;
}
/*
* @notice Return reward multiplier over the given _from to _to block.
* @param _from: block to start
* @param _to: block to finish
*/
function _getMultiplier(
uint256 _from,
uint256 _to
) internal view returns (uint256) {
if (_to <= endTimestamp) {
return _to - _from;
} else if (_from >= endTimestamp) {
return 0;
} else {
return endTimestamp - _from;
}
}
/*
* @notice Return user limit is set or zero.
*/
function hasUserLimit() public view returns (bool) {
if (
!userLimit ||
(block.timestamp >= (startTimestamp + numberSecondsForUserLimit))
) {
return false;
}
return true;
}
modifier onlyYieldOperator() {
require(
msg.sender == yieldOperator,
"Squadswap: Only the points operator can call this function"
);
_;
}
function setPointsOperator(address _pointsOperator) external {
require(msg.sender == pointsOperator, "Squadswap: FORBIDDEN");
pointsOperator = _pointsOperator;
IBlastPoints(BlastPointsAddress).configurePointsOperator(
pointsOperator
);
}
function setYieldOperator(address _yieldOperator) external {
require(msg.sender == yieldOperator, "Squadswap: FORBIDDEN");
yieldOperator = _yieldOperator;
}
// **** Blast Claim FUNCTIONS ****
function claimYield(
uint256 amount,
address _recipient
) external onlyYieldOperator {
IBlast(BlastAddress).claimYield(address(this), _recipient, amount);
}
function claimAllYield(address _recipient) external onlyYieldOperator {
IBlast(BlastAddress).claimAllYield(address(this), _recipient);
}
function claimGas(address _recipient) external onlyYieldOperator {
IBlast(BlastAddress).claimMaxGas(address(this), _recipient);
}
function claimAllYieldERC20(
address token,
address _recipient
) external onlyYieldOperator {
uint256 amount = IERC20Rebasing(token).getClaimableAmount(
address(this)
);
IERC20Rebasing(token).claim(_recipient, amount);
}
// read claimable yield
function readClaimableYield() external view returns (uint256) {
return BLAST.readClaimableYield(address(this));
}
function readYieldConfiguration() external view returns (uint8) {
return BLAST.readYieldConfiguration(address(this));
}
function readGasParams()
external
view
returns (
uint256 etherSeconds,
uint256 etherBalance,
uint256 lastUpdated,
BlastModes.GasMode gasMode
)
{
return BLAST.readGasParams(address(this));
}
}
contract SmartChefFactory is Ownable {
event NewSmartChefContract(address indexed smartChef);
address public pointsOperator;
address public yieldOperator;
constructor(address _pointsOperator, address _yieldOperator) {
//
pointsOperator = _pointsOperator;
yieldOperator = _yieldOperator;
}
/*
* @notice Deploy the pool
* @param _stakedToken: staked token address
* @param _rewardToken: reward token address
* @param _rewardPerSecond: reward per second (in rewardToken)
* @param _startTimestamp: start block timestamp
* @param _endTimestamp: end block timestamp
* @param _poolLimitPerUser: pool limit per user in stakedToken (if any, else 0)
* @param _numberBlocksForUserLimit: block numbers available for user limit (after start block)
* @param _squadProfile: Squad Profile address
* @param _squadProfileIsRequested: Squad Profile is requested
* @param _squadProfileThresholdPoints: Squad Profile need threshold points
* @param _admin: admin address with ownership
* @return address of new smart chef contract
*/
function deployPool(
IERC20Metadata _stakedToken,
IERC20Metadata _rewardToken,
uint256 _rewardPerSecond,
uint256 _startTimestamp,
uint256 _endTimestamp,
uint256 _poolLimitPerUser,
uint256 _numberBlocksForUserLimit,
address _squadProfile,
bool _squadProfileIsRequested,
uint256 _squadProfileThresholdPoints,
address _admin
) external onlyOwner {
require(_stakedToken.totalSupply() >= 0);
require(_rewardToken.totalSupply() >= 0);
require(_stakedToken != _rewardToken, "Tokens must be be different");
bytes memory bytecode = type(SmartChefInitializable).creationCode;
// pass constructor argument
bytecode = abi.encodePacked(
bytecode,
abi.encode(
_squadProfile,
_squadProfileIsRequested,
_squadProfileThresholdPoints
)
);
bytes32 salt = keccak256(
abi.encodePacked(_stakedToken, _rewardToken, _startTimestamp)
);
address smartChefAddress;
assembly {
smartChefAddress := create2(
0,
add(bytecode, 32),
mload(bytecode),
salt
)
}
SmartChefInitializable(smartChefAddress).initialize(
_stakedToken,
_rewardToken,
_rewardPerSecond,
_startTimestamp,
_endTimestamp,
_poolLimitPerUser,
_numberBlocksForUserLimit,
_admin,
pointsOperator,
yieldOperator
);
emit NewSmartChefContract(smartChefAddress);
}
function setPointsOperator(address _pointsOperator) external {
require(msg.sender == pointsOperator, "Squadswap: FORBIDDEN");
pointsOperator = _pointsOperator;
}
function setYieldOperator(address _yieldOperator) external {
require(msg.sender == yieldOperator, "Squadswap: FORBIDDEN");
yieldOperator = _yieldOperator;
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library BlastModes {
enum YieldMode {
AUTOMATIC,
VOID,
CLAIMABLE
}
enum GasMode {
VOID,
CLAIMABLE
}
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import {BlastModes} from "./BlastModes.sol";
interface IBlast {
// configure
function configureContract(
address contractAddress,
BlastModes.YieldMode _yield,
BlastModes.GasMode gasMode,
address governor
) external;
function configure(
BlastModes.YieldMode _yield,
BlastModes.GasMode gasMode,
address governor
) external;
// base configuration options
function configureClaimableYield() external;
function configureClaimableYieldOnBehalf(address contractAddress) external;
function configureAutomaticYield() external;
function configureAutomaticYieldOnBehalf(address contractAddress) external;
function configureVoidYield() external;
function configureVoidYieldOnBehalf(address contractAddress) external;
function configureClaimableGas() external;
function configureClaimableGasOnBehalf(address contractAddress) external;
function configureVoidGas() external;
function configureVoidGasOnBehalf(address contractAddress) external;
function configureGovernor(address _governor) external;
function configureGovernorOnBehalf(
address _newGovernor,
address contractAddress
) external;
// claim yield
function claimYield(
address contractAddress,
address recipientOfYield,
uint256 amount
) external returns (uint256);
function claimAllYield(
address contractAddress,
address recipientOfYield
) external returns (uint256);
// claim gas
function claimAllGas(
address contractAddress,
address recipientOfGas
) external returns (uint256);
function claimGasAtMinClaimRate(
address contractAddress,
address recipientOfGas,
uint256 minClaimRateBips
) external returns (uint256);
function claimMaxGas(
address contractAddress,
address recipientOfGas
) external returns (uint256);
function claimGas(
address contractAddress,
address recipientOfGas,
uint256 gasToClaim,
uint256 gasSecondsToConsume
) external returns (uint256);
// read functions
function readClaimableYield(
address contractAddress
) external view returns (uint256);
function readYieldConfiguration(
address contractAddress
) external view returns (uint8);
function readGasParams(
address contractAddress
)
external
view
returns (
uint256 etherSeconds,
uint256 etherBalance,
uint256 lastUpdated,
BlastModes.GasMode
);
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface IBlastPoints {
function configurePointsOperator(address operator) external;
function configurePointsOperatorOnBehalf(
address contractAddress,
address operator
) external;
function updatePointsBalance(
address account,
uint256 blastPointsBalance,
uint256 blastGoldBalance
) external;
}// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
enum YieldMode {
AUTOMATIC,
VOID,
CLAIMABLE
}
interface IERC20Rebasing {
// changes the yield mode of the caller and update the balance
// to reflect the configuration
function configure(YieldMode) external returns (uint256);
// "claimable" yield mode accounts can call this this claim their yield
// to another address
function claim(
address recipient,
uint256 amount
) external returns (uint256);
// read the claimable amount for an account
function getClaimableAmount(
address account
) external view returns (uint256);
}{
"optimizer": {
"enabled": true,
"runs": 200
},
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_squadProfile","type":"address"},{"internalType":"bool","name":"_squadProfileIsRequested","type":"bool"},{"internalType":"uint256","name":"_squadProfileThresholdPoints","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"poolLimitPerUser","type":"uint256"}],"name":"NewPoolLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"rewardPerSecond","type":"uint256"}],"name":"NewRewardPerSecond","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"startTimestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTimestamp","type":"uint256"}],"name":"NewStartAndEndTimestamp","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"RewardsStop","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenRecovery","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isProfileRequested","type":"bool"},{"indexed":false,"internalType":"uint256","name":"thresholdPoints","type":"uint256"}],"name":"UpdateProfileAndThresholdPointsRequirement","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"BLAST","outputs":[{"internalType":"contract IBlast","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BlastAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BlastPointsAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRECISION_FACTOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SMART_CHEF_FACTORY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDBAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETHAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"accTokenPerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"claimAllYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"claimAllYieldERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"}],"name":"claimGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"_recipient","type":"address"}],"name":"claimYield","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyRewardWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"endTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasUserLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20Metadata","name":"_stakedToken","type":"address"},{"internalType":"contract IERC20Metadata","name":"_rewardToken","type":"address"},{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"},{"internalType":"uint256","name":"_startTimestamp","type":"uint256"},{"internalType":"uint256","name":"_endTimestamp","type":"uint256"},{"internalType":"uint256","name":"_poolLimitPerUser","type":"uint256"},{"internalType":"uint256","name":"_numberSecondsForUserLimit","type":"uint256"},{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_pointsOperator","type":"address"},{"internalType":"address","name":"_yieldOperator","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isInitialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRewardTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberSecondsForUserLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"pendingReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pointsOperator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLimitPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"readClaimableYield","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"readGasParams","outputs":[{"internalType":"uint256","name":"etherSeconds","type":"uint256"},{"internalType":"uint256","name":"etherBalance","type":"uint256"},{"internalType":"uint256","name":"lastUpdated","type":"uint256"},{"internalType":"enum BlastModes.GasMode","name":"gasMode","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"readYieldConfiguration","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"recoverToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rewardPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardToken","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_pointsOperator","type":"address"}],"name":"setPointsOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_yieldOperator","type":"address"}],"name":"setYieldOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"squadProfile","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"squadProfileIsRequested","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"squadProfileThresholdPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakedToken","outputs":[{"internalType":"contract IERC20Metadata","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stopReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_userLimit","type":"bool"},{"internalType":"uint256","name":"_poolLimitPerUser","type":"uint256"}],"name":"updatePoolLimitPerUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isRequested","type":"bool"},{"internalType":"uint256","name":"_thresholdPoints","type":"uint256"}],"name":"updateProfileAndThresholdPointsRequirement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rewardPerSecond","type":"uint256"}],"name":"updateRewardPerSecond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_startTimestamp","type":"uint256"},{"internalType":"uint256","name":"_endTimestamp","type":"uint256"}],"name":"updateStartAndEndTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"userLimit","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yieldOperator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]Contract Creation Code
0x60c0604052601280546001600160a01b03199081167343000000000000000000000000000000000000021790915560138054821673430000000000000000000000000000000000000317905560148054821673430000000000000000000000000000000000000417905560158054909116732536fe9ab3f511540f2f9e2ec2a805005c3dd8001790553480156200009557600080fd5b5060405162002e3a38038062002e3a833981016040819052620000b891620001ed565b620000c33362000187565b60018055336080526001600160a01b03831660a0819052156200016e5760405163aee2f47f60e01b8152600160048201526001600160a01b0384169063aee2f47f90602401600060405180830381865afa15801562000126573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262000150919081019062000303565b50506009805460ff1916861515179055505050600a8190556200017e565b6009805460ff191690556000600a555b50505062000393565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80518015158114620001e857600080fd5b919050565b6000806000606084860312156200020357600080fd5b83516001600160a01b03811681146200021b57600080fd5b92506200022b60208501620001d7565b9150604084015190509250925092565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200026357600080fd5b81516001600160401b03808211156200028057620002806200023b565b604051601f8301601f19908116603f01168101908282118183101715620002ab57620002ab6200023b565b8160405283815260209250866020858801011115620002c957600080fd5b600091505b83821015620002ed5785820183015181830184015290820190620002ce565b6000602085830101528094505050505092915050565b600080600080600060a086880312156200031c57600080fd5b85516001600160401b03808211156200033457600080fd5b6200034289838a0162000251565b965060208801519150808211156200035957600080fd5b50620003688882890162000251565b94505060408601519250606086015191506200038760808701620001d7565b90509295509295909350565b60805160a051612a57620003e3600039600081816102c401528181610c61015281816116a4015281816116ff015281816117d7015261186b01526000818161056d01526111920152612a576000f3fe608060405234801561001057600080fd5b50600436106102ba5760003560e01c80638f10369a11610182578063c2d94aec116100e9578063e6fd48bc116100a2578063f7c618c11161007c578063f7c618c114610619578063f8077fae1461062c578063f947583214610635578063fb7c12251461064257600080fd5b8063e6fd48bc146105ea578063f2fde38b146105f3578063f40f0f521461060657600080fd5b8063c2d94aec14610598578063cc356c59146105ab578063cc7a262e146105be578063ccd34cd5146105d1578063d39dd684146105da578063db2e21bc146105e257600080fd5b8063a6e1fff61161013b578063a6e1fff614610526578063a85adeab14610539578063b633fcba14610542578063b6b55f2514610555578063bd61719114610568578063bfd9889a1461058f57600080fd5b80638f10369a146104d35780638f662915146104dc57806392e8990e146104e557806397d75776146104ed5780639be65a6014610500578063a0b409051461051357600080fd5b80634357bd13116102265780635d564dd7116101df5780635d564dd71461048357806366fe9f8a14610496578063681096311461049f578063715018a6146104b257806380dc0672146104ba5780638da5cb5b146104c257600080fd5b80634357bd131461041257806344048e3d1461042557806347fb455314610438578063491ae3481461044b5780634a7c01ec146104635780634cd14dc61461047057600080fd5b80631959a002116102785780631959a0021461036857806329235e46146103a45780632e1a7d4d146103b75780633279beab146103ca578063392e53cd146103dd5780634004c8e7146103ff57600080fd5b8062c2043b146102bf5780630af88b24146103035780630c71400a146103165780631263e9161461032b5780631573ebdf1461033e57806316cfaa1614610355575b600080fd5b6102e67f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6014546102e6906001600160a01b031681565b6103296103243660046123d9565b61065c565b005b6010546102e6906001600160a01b031681565b61034760085481565b6040519081526020016102fa565b6015546102e6906001600160a01b031681565b61038f6103763660046123d9565b6016602052600090815260409020805460019091015482565b604080519283526020830191909152016102fa565b6013546102e6906001600160a01b031681565b6103296103c53660046123f6565b6106d4565b6103296103d83660046123f6565b61083d565b6002546103ef90610100900460ff1681565b60405190151581526020016102fa565b61032961040d3660046123f6565b610881565b61032961042036600461240f565b61092a565b6103296104333660046123d9565b610a3c565b600f546102e6906001600160a01b031681565b610453610b06565b6040516102fa949392919061245e565b6002546103ef9060ff1681565b61032961047e366004612492565b610b89565b6012546102e6906001600160a01b031681565b61034760075481565b6103296104ad3660046124c5565b610c35565b610329610d29565b610329610d5f565b6000546001600160a01b03166102e6565b610347600b5481565b61034760035481565b6103ef610dc4565b6011546102e6906001600160a01b031681565b61032961050e3660046123d9565b610df9565b6103296105213660046124c5565b611027565b6103296105343660046124f1565b611139565b61034760045481565b6103296105503660046123d9565b6115c7565b6103296105633660046123f6565b61166c565b6102e67f000000000000000000000000000000000000000000000000000000000000000081565b610347600a5481565b6103296105a63660046123d9565b611ac6565b6103296105b9366004612594565b611b28565b600e546102e6906001600160a01b031681565b610347600c5481565b610347611c19565b610329611c8b565b61034760055481565b6103296106013660046123d9565b611d21565b6103476106143660046123d9565b611db9565b600d546102e6906001600160a01b031681565b61034760065481565b6009546103ef9060ff1681565b61064a611f09565b60405160ff90911681526020016102fa565b6010546001600160a01b031633146106b25760405162461bcd60e51b815260206004820152601460248201527329b8bab0b239bbb0b81d102327a92124a22222a760611b60448201526064015b60405180910390fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6002600154036106f65760405162461bcd60e51b81526004016106a9906125b6565b6002600155336000908152601660205260409020805482111561075b5760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420746f20776974686472617720746f6f2068696768000000000060448201526064016106a9565b610763611f76565b60008160010154600c54600354846000015461077f9190612603565b610789919061261a565b610793919061263c565b905082156107c15781546107a890849061263c565b8255600e546107c1906001600160a01b03163385612053565b80156107de57600d546107de906001600160a01b03163383612053565b600c5460035483546107f09190612603565b6107fa919061261a565b600183015560405183815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a250506001805550565b6000546001600160a01b031633146108675760405162461bcd60e51b81526004016106a99061264f565b600d5461087e906001600160a01b03163383612053565b50565b6000546001600160a01b031633146108ab5760405162461bcd60e51b81526004016106a99061264f565b60055442106108ef5760405162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b60448201526064016106a9565b600b8190556040518181527f3fca6699460f553eae31233dba0b41f635e80f5bd8132d7f2af5456c3e247be09060200160405180910390a150565b6010546001600160a01b031633146109545760405162461bcd60e51b81526004016106a990612684565b60405163e12f3a6160e01b81523060048201526000906001600160a01b0384169063e12f3a6190602401602060405180830381865afa15801561099b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bf91906126e1565b604051635569f64b60e11b81526001600160a01b038481166004830152602482018390529192509084169063aad3ec96906044016020604051808303816000875af1158015610a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3691906126e1565b50505050565b600f546001600160a01b03163314610a8d5760405162461bcd60e51b815260206004820152601460248201527329b8bab0b239bbb0b81d102327a92124a22222a760611b60448201526064016106a9565b600f80546001600160a01b0319166001600160a01b038381169182179092556015546040516336b91f2b60e01b81526004810192909252909116906336b91f2b90602401600060405180830381600087803b158015610aeb57600080fd5b505af1158015610aff573d6000803e3d6000fd5b5050505050565b601154604051633779e62960e21b81523060048201526000918291829182916001600160a01b039091169063dde798a490602401608060405180830381865afa158015610b57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7b91906126fa565b935093509350935090919293565b6010546001600160a01b03163314610bb35760405162461bcd60e51b81526004016106a990612684565b601254604051637cb8cb3160e11b81523060048201526001600160a01b038381166024830152604482018590529091169063f9719662906064016020604051808303816000875af1158015610c0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3091906126e1565b505050565b6000546001600160a01b03163314610c5f5760405162461bcd60e51b81526004016106a99061264f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610cd55760405162461bcd60e51b815260206004820152601d60248201527f53717561642070726f66696c652061646472657373206973206e756c6c00000060448201526064016106a9565b6009805460ff1916831515908117909155600a82905560408051918252602082018390527f915d08e0e89c58e352d7c1d66c942cb15dac8a7294d2ca80ddf46f1998f0512b91015b60405180910390a15050565b6000546001600160a01b03163314610d535760405162461bcd60e51b81526004016106a99061264f565b610d5d60006120b6565b565b6000546001600160a01b03163314610d895760405162461bcd60e51b81526004016106a99061264f565b4260048190556040519081527ffed9fcb0ca3d1e761a4b929792bb24082fba92dca81252646ad306d3068065669060200160405180910390a1565b60025460009060ff161580610de85750600854600554610de4919061273f565b4210155b15610df35750600090565b50600190565b6000546001600160a01b03163314610e235760405162461bcd60e51b81526004016106a99061264f565b600e546001600160a01b0390811690821603610e915760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207374616b6560448201526632103a37b5b2b760c91b60648201526084016106a9565b600d546001600160a01b0390811690821603610eff5760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f76657220726577617260448201526632103a37b5b2b760c91b60648201526084016106a9565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610f46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6a91906126e1565b905080600003610fcc5760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207a65726f2060448201526662616c616e636560c81b60648201526084016106a9565b610fe06001600160a01b0383163383612053565b816001600160a01b03167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e988260405161101b91815260200190565b60405180910390a25050565b6000546001600160a01b031633146110515760405162461bcd60e51b81526004016106a99061264f565b60025460ff166110915760405162461bcd60e51b815260206004820152600b60248201526a135d5cdd081899481cd95d60aa1b60448201526064016106a9565b81156110f25760075481116110e85760405162461bcd60e51b815260206004820152601860248201527f4e6577206c696d6974206d75737420626520686967686572000000000000000060448201526064016106a9565b6007819055611106565b6002805460ff191683151517905560006007555b7f241f67ee5f41b7a5cabf911367329be7215900f602ebfc47f89dce2a6bcd847c600754604051610d1d91815260200190565b600254610100900460ff16156111875760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016106a9565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146111ed5760405162461bcd60e51b815260206004820152600b60248201526a4e6f7420666163746f727960a81b60448201526064016106a9565b85871061120c5760405162461bcd60e51b81526004016106a990612752565b86421061122b5760405162461bcd60e51b81526004016106a9906127a8565b6002805461ff001916610100179055600e80546001600160a01b03808d166001600160a01b031992831617909255600d8054928c1692909116919091179055600b889055600587905560048690558415611297576002805460ff19166001179055600785905560088490555b600d546040805163313ce56760e01b815290516000926001600160a01b03169163313ce5679160048083019260209291908290030181865afa1580156112e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113059190612805565b60ff169050601e81106113535760405162461bcd60e51b815260206004820152601660248201527504d75737420626520696e666572696f7220746f2033360541b60448201526064016106a9565b61135e81601e61263c565b61136990600a61290c565b600c5560055460065561137b84611d21565b600f80546001600160a01b038086166001600160a01b0319928316179092556010805485841690831617905560125460118054909216921691821790556040805163784c3b3d60e11b8152905163f098767a9160048082019260009290919082900301818387803b1580156113ef57600080fd5b505af1158015611403573d6000803e3d6000fd5b50505050601160009054906101000a90046001600160a01b03166001600160a01b0316634e606c476040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561145757600080fd5b505af115801561146b573d6000803e3d6000fd5b5050601354604051631a33757d60e01b81526001600160a01b039091169250631a33757d91506114a090600290600401612918565b6020604051808303816000875af11580156114bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e391906126e1565b50601454604051631a33757d60e01b81526001600160a01b0390911690631a33757d9061151590600290600401612918565b6020604051808303816000875af1158015611534573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155891906126e1565b50601554600f546040516336b91f2b60e01b81526001600160a01b0391821660048201529116906336b91f2b90602401600060405180830381600087803b1580156115a257600080fd5b505af11580156115b6573d6000803e3d6000fd5b505050505050505050505050505050565b6010546001600160a01b031633146115f15760405162461bcd60e51b81526004016106a990612684565b60125460405163662aa11d60e01b81523060048201526001600160a01b0383811660248301529091169063662aa11d906044015b6020604051808303816000875af1158015611644573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166891906126e1565b5050565b60026001540361168e5760405162461bcd60e51b81526004016106a9906125b6565b60026001553360009081526016602052604090207f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161561195a5760095460ff161580156116e45750600a54155b80611772575060405163ea0d5dcd60e01b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ea0d5dcd90602401602060405180830381865afa15801561174e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117729190612932565b6117ca5760405162461bcd60e51b8152602060048201526024808201527f4465706f7369743a204d757374206861766520616e206163746976652070726f60448201526366696c6560e01b60648201526084016106a9565b600a54600090156118e7577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118565760405162461bcd60e51b815260206004820152602260248201527f4465706f7369743a20537175616450726f66696c65206973206e6f74206578696044820152611cdd60f21b60648201526084016106a9565b604051634c3f70ab60e11b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063987ee1569060240160c060405180830381865afa1580156118ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118de919061294f565b50929450505050505b600a5415806118f85750600a548110155b6119585760405162461bcd60e51b815260206004820152602b60248201527f4465706f7369743a2055736572206973206e6f742067657420656e6f7567682060448201526a7573657220706f696e747360a81b60648201526084016106a9565b505b611962610dc4565b6002805460ff1916911515918217905560ff16158061198e5750600754815461198b908461273f565b11155b6119da5760405162461bcd60e51b815260206004820152601b60248201527f4465706f7369743a20416d6f756e742061626f7665206c696d6974000000000060448201526064016106a9565b6119e2611f76565b805415611a3a5760008160010154600c546003548460000154611a059190612603565b611a0f919061261a565b611a19919061263c565b90508015611a3857600d54611a38906001600160a01b03163383612053565b505b8115611a67578054611a4d90839061273f565b8155600e54611a67906001600160a01b0316333085612106565b600c546003548254611a799190612603565b611a83919061261a565b600182015560405182815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c906020015b60405180910390a2505060018055565b6010546001600160a01b03163314611af05760405162461bcd60e51b81526004016106a990612684565b60125460405163430021db60e11b81523060048201526001600160a01b0383811660248301529091169063860043b690604401611625565b6000546001600160a01b03163314611b525760405162461bcd60e51b81526004016106a99061264f565b6005544210611b965760405162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b60448201526064016106a9565b808210611bb55760405162461bcd60e51b81526004016106a990612752565b814210611bd45760405162461bcd60e51b81526004016106a9906127a8565b60058290556004819055600682905560408051838152602081018390527f600b4644e23e4e5ac956d20c02417fc8385bd0324ce2ce012b91d812ad89024b9101610d1d565b601154604051631d864f1d60e31b81523060048201526000916001600160a01b03169063ec3278e890602401602060405180830381865afa158015611c62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8691906126e1565b905090565b600260015403611cad5760405162461bcd60e51b81526004016106a9906125b6565b60026001908155336000908152601660205260408120805482825592810191909155908015611ced57600e54611ced906001600160a01b03163383612053565b815460405190815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969590602001611ab6565b6000546001600160a01b03163314611d4b5760405162461bcd60e51b81526004016106a99061264f565b6001600160a01b038116611db05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a9565b61087e816120b6565b6001600160a01b03818116600090815260166020526040808220600e5491516370a0823160e01b8152306004820152929390928492909116906370a0823190602401602060405180830381865afa158015611e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3c91906126e1565b905060065442118015611e4e57508015155b15611ed6576000611e616006544261213e565b90506000600b5482611e739190612603565b9050600083600c5483611e869190612603565b611e90919061261a565b600354611e9d919061273f565b90508460010154600c54828760000154611eb79190612603565b611ec1919061261a565b611ecb919061263c565b979650505050505050565b6001820154600c546003548454611eed9190612603565b611ef7919061261a565b611f01919061263c565b949350505050565b60115460405163fd8c4b9d60e01b81523060048201526000916001600160a01b03169063fd8c4b9d90602401602060405180830381865afa158015611f52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c869190612805565b6006544211611f8157565b600e546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611fca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fee91906126e1565b905080600003611fff575042600655565b600061200d6006544261213e565b90506000600b548261201f9190612603565b905082600c54826120309190612603565b61203a919061261a565b600354612047919061273f565b60035550504260065550565b6040516001600160a01b038316602482015260448101829052610c3090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261217f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a369085906323b872dd60e01b9060840161207f565b6000600454821161215a57612153838361263c565b9050612179565b600454831061216b57506000612179565b82600454612153919061263c565b92915050565b60006121d4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122519092919063ffffffff16565b805190915015610c3057808060200190518101906121f29190612932565b610c305760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106a9565b6060612260848460008561226a565b90505b9392505050565b6060824710156122cb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016106a9565b6001600160a01b0385163b6123225760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106a9565b600080866001600160a01b0316858760405161233e91906129d2565b60006040518083038185875af1925050503d806000811461237b576040519150601f19603f3d011682016040523d82523d6000602084013e612380565b606091505b5091509150611ecb8282866060831561239a575081612263565b8251156123aa5782518084602001fd5b8160405162461bcd60e51b81526004016106a991906129ee565b6001600160a01b038116811461087e57600080fd5b6000602082840312156123eb57600080fd5b8135612263816123c4565b60006020828403121561240857600080fd5b5035919050565b6000806040838503121561242257600080fd5b823561242d816123c4565b9150602083013561243d816123c4565b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b8481526020810184905260408101839052608081016002831061248357612483612448565b82606083015295945050505050565b600080604083850312156124a557600080fd5b82359150602083013561243d816123c4565b801515811461087e57600080fd5b600080604083850312156124d857600080fd5b82356124e3816124b7565b946020939093013593505050565b6000806000806000806000806000806101408b8d03121561251157600080fd5b8a3561251c816123c4565b995060208b013561252c816123c4565b985060408b0135975060608b0135965060808b0135955060a08b0135945060c08b0135935060e08b013561255f816123c4565b92506101008b0135612570816123c4565b91506101208b0135612581816123c4565b809150509295989b9194979a5092959850565b600080604083850312156125a757600080fd5b50508035926020909101359150565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417612179576121796125ed565b60008261263757634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115612179576121796125ed565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252603a908201527f5371756164737761703a204f6e6c792074686520706f696e7473206f7065726160408201527f746f722063616e2063616c6c20746869732066756e6374696f6e000000000000606082015260800190565b6000602082840312156126f357600080fd5b5051919050565b6000806000806080858703121561271057600080fd5b84519350602085015192506040850151915060608501516002811061273457600080fd5b939692955090935050565b80820180821115612179576121796125ed565b60208082526036908201527f4e657720737461727454696d657374616d70206d757374206265206c6f7765726040820152750207468616e206e657720656e6454696d657374616d760541b606082015260800190565b6020808252603e908201527f4e657720737461727454696d657374616d70206d75737420626520686967686560408201527f72207468616e2063757272656e7420626c6f636b2074696d657374616d700000606082015260800190565b60006020828403121561281757600080fd5b815160ff8116811461226357600080fd5b600181815b80851115612863578160001904821115612849576128496125ed565b8085161561285657918102915b93841c939080029061282d565b509250929050565b60008261287a57506001612179565b8161288757506000612179565b816001811461289d57600281146128a7576128c3565b6001915050612179565b60ff8411156128b8576128b86125ed565b50506001821b612179565b5060208310610133831016604e8410600b84101617156128e6575081810a612179565b6128f08383612828565b8060001904821115612904576129046125ed565b029392505050565b6000612263838361286b565b602081016003831061292c5761292c612448565b91905290565b60006020828403121561294457600080fd5b8151612263816124b7565b60008060008060008060c0878903121561296857600080fd5b8651955060208701519450604087015193506060870151612988816123c4565b608088015160a089015191945092506129a0816124b7565b809150509295509295509295565b60005b838110156129c95781810151838201526020016129b1565b50506000910152565b600082516129e48184602087016129ae565b9190910192915050565b6020815260008251806020840152612a0d8160408501602087016129ae565b601f01601f1916919091016040019291505056fea2646970667358221220a8f2b4b4899cf24419f74385bb430b5b41d95f511030f597e09a01c62bcdb7a564736f6c63430008180033000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102ba5760003560e01c80638f10369a11610182578063c2d94aec116100e9578063e6fd48bc116100a2578063f7c618c11161007c578063f7c618c114610619578063f8077fae1461062c578063f947583214610635578063fb7c12251461064257600080fd5b8063e6fd48bc146105ea578063f2fde38b146105f3578063f40f0f521461060657600080fd5b8063c2d94aec14610598578063cc356c59146105ab578063cc7a262e146105be578063ccd34cd5146105d1578063d39dd684146105da578063db2e21bc146105e257600080fd5b8063a6e1fff61161013b578063a6e1fff614610526578063a85adeab14610539578063b633fcba14610542578063b6b55f2514610555578063bd61719114610568578063bfd9889a1461058f57600080fd5b80638f10369a146104d35780638f662915146104dc57806392e8990e146104e557806397d75776146104ed5780639be65a6014610500578063a0b409051461051357600080fd5b80634357bd13116102265780635d564dd7116101df5780635d564dd71461048357806366fe9f8a14610496578063681096311461049f578063715018a6146104b257806380dc0672146104ba5780638da5cb5b146104c257600080fd5b80634357bd131461041257806344048e3d1461042557806347fb455314610438578063491ae3481461044b5780634a7c01ec146104635780634cd14dc61461047057600080fd5b80631959a002116102785780631959a0021461036857806329235e46146103a45780632e1a7d4d146103b75780633279beab146103ca578063392e53cd146103dd5780634004c8e7146103ff57600080fd5b8062c2043b146102bf5780630af88b24146103035780630c71400a146103165780631263e9161461032b5780631573ebdf1461033e57806316cfaa1614610355575b600080fd5b6102e67f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020015b60405180910390f35b6014546102e6906001600160a01b031681565b6103296103243660046123d9565b61065c565b005b6010546102e6906001600160a01b031681565b61034760085481565b6040519081526020016102fa565b6015546102e6906001600160a01b031681565b61038f6103763660046123d9565b6016602052600090815260409020805460019091015482565b604080519283526020830191909152016102fa565b6013546102e6906001600160a01b031681565b6103296103c53660046123f6565b6106d4565b6103296103d83660046123f6565b61083d565b6002546103ef90610100900460ff1681565b60405190151581526020016102fa565b61032961040d3660046123f6565b610881565b61032961042036600461240f565b61092a565b6103296104333660046123d9565b610a3c565b600f546102e6906001600160a01b031681565b610453610b06565b6040516102fa949392919061245e565b6002546103ef9060ff1681565b61032961047e366004612492565b610b89565b6012546102e6906001600160a01b031681565b61034760075481565b6103296104ad3660046124c5565b610c35565b610329610d29565b610329610d5f565b6000546001600160a01b03166102e6565b610347600b5481565b61034760035481565b6103ef610dc4565b6011546102e6906001600160a01b031681565b61032961050e3660046123d9565b610df9565b6103296105213660046124c5565b611027565b6103296105343660046124f1565b611139565b61034760045481565b6103296105503660046123d9565b6115c7565b6103296105633660046123f6565b61166c565b6102e67f0000000000000000000000006d3a3ac01e7adad98480b5d4951a83b141c8fd7581565b610347600a5481565b6103296105a63660046123d9565b611ac6565b6103296105b9366004612594565b611b28565b600e546102e6906001600160a01b031681565b610347600c5481565b610347611c19565b610329611c8b565b61034760055481565b6103296106013660046123d9565b611d21565b6103476106143660046123d9565b611db9565b600d546102e6906001600160a01b031681565b61034760065481565b6009546103ef9060ff1681565b61064a611f09565b60405160ff90911681526020016102fa565b6010546001600160a01b031633146106b25760405162461bcd60e51b815260206004820152601460248201527329b8bab0b239bbb0b81d102327a92124a22222a760611b60448201526064015b60405180910390fd5b601080546001600160a01b0319166001600160a01b0392909216919091179055565b6002600154036106f65760405162461bcd60e51b81526004016106a9906125b6565b6002600155336000908152601660205260409020805482111561075b5760405162461bcd60e51b815260206004820152601b60248201527f416d6f756e7420746f20776974686472617720746f6f2068696768000000000060448201526064016106a9565b610763611f76565b60008160010154600c54600354846000015461077f9190612603565b610789919061261a565b610793919061263c565b905082156107c15781546107a890849061263c565b8255600e546107c1906001600160a01b03163385612053565b80156107de57600d546107de906001600160a01b03163383612053565b600c5460035483546107f09190612603565b6107fa919061261a565b600183015560405183815233907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a94243649060200160405180910390a250506001805550565b6000546001600160a01b031633146108675760405162461bcd60e51b81526004016106a99061264f565b600d5461087e906001600160a01b03163383612053565b50565b6000546001600160a01b031633146108ab5760405162461bcd60e51b81526004016106a99061264f565b60055442106108ef5760405162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b60448201526064016106a9565b600b8190556040518181527f3fca6699460f553eae31233dba0b41f635e80f5bd8132d7f2af5456c3e247be09060200160405180910390a150565b6010546001600160a01b031633146109545760405162461bcd60e51b81526004016106a990612684565b60405163e12f3a6160e01b81523060048201526000906001600160a01b0384169063e12f3a6190602401602060405180830381865afa15801561099b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109bf91906126e1565b604051635569f64b60e11b81526001600160a01b038481166004830152602482018390529192509084169063aad3ec96906044016020604051808303816000875af1158015610a12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3691906126e1565b50505050565b600f546001600160a01b03163314610a8d5760405162461bcd60e51b815260206004820152601460248201527329b8bab0b239bbb0b81d102327a92124a22222a760611b60448201526064016106a9565b600f80546001600160a01b0319166001600160a01b038381169182179092556015546040516336b91f2b60e01b81526004810192909252909116906336b91f2b90602401600060405180830381600087803b158015610aeb57600080fd5b505af1158015610aff573d6000803e3d6000fd5b5050505050565b601154604051633779e62960e21b81523060048201526000918291829182916001600160a01b039091169063dde798a490602401608060405180830381865afa158015610b57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7b91906126fa565b935093509350935090919293565b6010546001600160a01b03163314610bb35760405162461bcd60e51b81526004016106a990612684565b601254604051637cb8cb3160e11b81523060048201526001600160a01b038381166024830152604482018590529091169063f9719662906064016020604051808303816000875af1158015610c0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c3091906126e1565b505050565b6000546001600160a01b03163314610c5f5760405162461bcd60e51b81526004016106a99061264f565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316610cd55760405162461bcd60e51b815260206004820152601d60248201527f53717561642070726f66696c652061646472657373206973206e756c6c00000060448201526064016106a9565b6009805460ff1916831515908117909155600a82905560408051918252602082018390527f915d08e0e89c58e352d7c1d66c942cb15dac8a7294d2ca80ddf46f1998f0512b91015b60405180910390a15050565b6000546001600160a01b03163314610d535760405162461bcd60e51b81526004016106a99061264f565b610d5d60006120b6565b565b6000546001600160a01b03163314610d895760405162461bcd60e51b81526004016106a99061264f565b4260048190556040519081527ffed9fcb0ca3d1e761a4b929792bb24082fba92dca81252646ad306d3068065669060200160405180910390a1565b60025460009060ff161580610de85750600854600554610de4919061273f565b4210155b15610df35750600090565b50600190565b6000546001600160a01b03163314610e235760405162461bcd60e51b81526004016106a99061264f565b600e546001600160a01b0390811690821603610e915760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207374616b6560448201526632103a37b5b2b760c91b60648201526084016106a9565b600d546001600160a01b0390811690821603610eff5760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f76657220726577617260448201526632103a37b5b2b760c91b60648201526084016106a9565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610f46573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f6a91906126e1565b905080600003610fcc5760405162461bcd60e51b815260206004820152602760248201527f4f7065726174696f6e733a2043616e6e6f74207265636f766572207a65726f2060448201526662616c616e636560c81b60648201526084016106a9565b610fe06001600160a01b0383163383612053565b816001600160a01b03167f14f11966a996e0629572e51064726d2057a80fbd34efc066682c06a71dbb6e988260405161101b91815260200190565b60405180910390a25050565b6000546001600160a01b031633146110515760405162461bcd60e51b81526004016106a99061264f565b60025460ff166110915760405162461bcd60e51b815260206004820152600b60248201526a135d5cdd081899481cd95d60aa1b60448201526064016106a9565b81156110f25760075481116110e85760405162461bcd60e51b815260206004820152601860248201527f4e6577206c696d6974206d75737420626520686967686572000000000000000060448201526064016106a9565b6007819055611106565b6002805460ff191683151517905560006007555b7f241f67ee5f41b7a5cabf911367329be7215900f602ebfc47f89dce2a6bcd847c600754604051610d1d91815260200190565b600254610100900460ff16156111875760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064016106a9565b336001600160a01b037f0000000000000000000000006d3a3ac01e7adad98480b5d4951a83b141c8fd7516146111ed5760405162461bcd60e51b815260206004820152600b60248201526a4e6f7420666163746f727960a81b60448201526064016106a9565b85871061120c5760405162461bcd60e51b81526004016106a990612752565b86421061122b5760405162461bcd60e51b81526004016106a9906127a8565b6002805461ff001916610100179055600e80546001600160a01b03808d166001600160a01b031992831617909255600d8054928c1692909116919091179055600b889055600587905560048690558415611297576002805460ff19166001179055600785905560088490555b600d546040805163313ce56760e01b815290516000926001600160a01b03169163313ce5679160048083019260209291908290030181865afa1580156112e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113059190612805565b60ff169050601e81106113535760405162461bcd60e51b815260206004820152601660248201527504d75737420626520696e666572696f7220746f2033360541b60448201526064016106a9565b61135e81601e61263c565b61136990600a61290c565b600c5560055460065561137b84611d21565b600f80546001600160a01b038086166001600160a01b0319928316179092556010805485841690831617905560125460118054909216921691821790556040805163784c3b3d60e11b8152905163f098767a9160048082019260009290919082900301818387803b1580156113ef57600080fd5b505af1158015611403573d6000803e3d6000fd5b50505050601160009054906101000a90046001600160a01b03166001600160a01b0316634e606c476040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561145757600080fd5b505af115801561146b573d6000803e3d6000fd5b5050601354604051631a33757d60e01b81526001600160a01b039091169250631a33757d91506114a090600290600401612918565b6020604051808303816000875af11580156114bf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114e391906126e1565b50601454604051631a33757d60e01b81526001600160a01b0390911690631a33757d9061151590600290600401612918565b6020604051808303816000875af1158015611534573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155891906126e1565b50601554600f546040516336b91f2b60e01b81526001600160a01b0391821660048201529116906336b91f2b90602401600060405180830381600087803b1580156115a257600080fd5b505af11580156115b6573d6000803e3d6000fd5b505050505050505050505050505050565b6010546001600160a01b031633146115f15760405162461bcd60e51b81526004016106a990612684565b60125460405163662aa11d60e01b81523060048201526001600160a01b0383811660248301529091169063662aa11d906044015b6020604051808303816000875af1158015611644573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061166891906126e1565b5050565b60026001540361168e5760405162461bcd60e51b81526004016106a9906125b6565b60026001553360009081526016602052604090207f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03161561195a5760095460ff161580156116e45750600a54155b80611772575060405163ea0d5dcd60e01b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063ea0d5dcd90602401602060405180830381865afa15801561174e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117729190612932565b6117ca5760405162461bcd60e51b8152602060048201526024808201527f4465706f7369743a204d757374206861766520616e206163746976652070726f60448201526366696c6560e01b60648201526084016106a9565b600a54600090156118e7577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166118565760405162461bcd60e51b815260206004820152602260248201527f4465706f7369743a20537175616450726f66696c65206973206e6f74206578696044820152611cdd60f21b60648201526084016106a9565b604051634c3f70ab60e11b81523360048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063987ee1569060240160c060405180830381865afa1580156118ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118de919061294f565b50929450505050505b600a5415806118f85750600a548110155b6119585760405162461bcd60e51b815260206004820152602b60248201527f4465706f7369743a2055736572206973206e6f742067657420656e6f7567682060448201526a7573657220706f696e747360a81b60648201526084016106a9565b505b611962610dc4565b6002805460ff1916911515918217905560ff16158061198e5750600754815461198b908461273f565b11155b6119da5760405162461bcd60e51b815260206004820152601b60248201527f4465706f7369743a20416d6f756e742061626f7665206c696d6974000000000060448201526064016106a9565b6119e2611f76565b805415611a3a5760008160010154600c546003548460000154611a059190612603565b611a0f919061261a565b611a19919061263c565b90508015611a3857600d54611a38906001600160a01b03163383612053565b505b8115611a67578054611a4d90839061273f565b8155600e54611a67906001600160a01b0316333085612106565b600c546003548254611a799190612603565b611a83919061261a565b600182015560405182815233907fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c906020015b60405180910390a2505060018055565b6010546001600160a01b03163314611af05760405162461bcd60e51b81526004016106a990612684565b60125460405163430021db60e11b81523060048201526001600160a01b0383811660248301529091169063860043b690604401611625565b6000546001600160a01b03163314611b525760405162461bcd60e51b81526004016106a99061264f565b6005544210611b965760405162461bcd60e51b815260206004820152601060248201526f141bdbdb081a185cc81cdd185c9d195960821b60448201526064016106a9565b808210611bb55760405162461bcd60e51b81526004016106a990612752565b814210611bd45760405162461bcd60e51b81526004016106a9906127a8565b60058290556004819055600682905560408051838152602081018390527f600b4644e23e4e5ac956d20c02417fc8385bd0324ce2ce012b91d812ad89024b9101610d1d565b601154604051631d864f1d60e31b81523060048201526000916001600160a01b03169063ec3278e890602401602060405180830381865afa158015611c62573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8691906126e1565b905090565b600260015403611cad5760405162461bcd60e51b81526004016106a9906125b6565b60026001908155336000908152601660205260408120805482825592810191909155908015611ced57600e54611ced906001600160a01b03163383612053565b815460405190815233907f5fafa99d0643513820be26656b45130b01e1c03062e1266bf36f88cbd3bd969590602001611ab6565b6000546001600160a01b03163314611d4b5760405162461bcd60e51b81526004016106a99061264f565b6001600160a01b038116611db05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106a9565b61087e816120b6565b6001600160a01b03818116600090815260166020526040808220600e5491516370a0823160e01b8152306004820152929390928492909116906370a0823190602401602060405180830381865afa158015611e18573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e3c91906126e1565b905060065442118015611e4e57508015155b15611ed6576000611e616006544261213e565b90506000600b5482611e739190612603565b9050600083600c5483611e869190612603565b611e90919061261a565b600354611e9d919061273f565b90508460010154600c54828760000154611eb79190612603565b611ec1919061261a565b611ecb919061263c565b979650505050505050565b6001820154600c546003548454611eed9190612603565b611ef7919061261a565b611f01919061263c565b949350505050565b60115460405163fd8c4b9d60e01b81523060048201526000916001600160a01b03169063fd8c4b9d90602401602060405180830381865afa158015611f52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c869190612805565b6006544211611f8157565b600e546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611fca573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fee91906126e1565b905080600003611fff575042600655565b600061200d6006544261213e565b90506000600b548261201f9190612603565b905082600c54826120309190612603565b61203a919061261a565b600354612047919061273f565b60035550504260065550565b6040516001600160a01b038316602482015260448101829052610c3090849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261217f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a369085906323b872dd60e01b9060840161207f565b6000600454821161215a57612153838361263c565b9050612179565b600454831061216b57506000612179565b82600454612153919061263c565b92915050565b60006121d4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122519092919063ffffffff16565b805190915015610c3057808060200190518101906121f29190612932565b610c305760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016106a9565b6060612260848460008561226a565b90505b9392505050565b6060824710156122cb5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016106a9565b6001600160a01b0385163b6123225760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016106a9565b600080866001600160a01b0316858760405161233e91906129d2565b60006040518083038185875af1925050503d806000811461237b576040519150601f19603f3d011682016040523d82523d6000602084013e612380565b606091505b5091509150611ecb8282866060831561239a575081612263565b8251156123aa5782518084602001fd5b8160405162461bcd60e51b81526004016106a991906129ee565b6001600160a01b038116811461087e57600080fd5b6000602082840312156123eb57600080fd5b8135612263816123c4565b60006020828403121561240857600080fd5b5035919050565b6000806040838503121561242257600080fd5b823561242d816123c4565b9150602083013561243d816123c4565b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b8481526020810184905260408101839052608081016002831061248357612483612448565b82606083015295945050505050565b600080604083850312156124a557600080fd5b82359150602083013561243d816123c4565b801515811461087e57600080fd5b600080604083850312156124d857600080fd5b82356124e3816124b7565b946020939093013593505050565b6000806000806000806000806000806101408b8d03121561251157600080fd5b8a3561251c816123c4565b995060208b013561252c816123c4565b985060408b0135975060608b0135965060808b0135955060a08b0135945060c08b0135935060e08b013561255f816123c4565b92506101008b0135612570816123c4565b91506101208b0135612581816123c4565b809150509295989b9194979a5092959850565b600080604083850312156125a757600080fd5b50508035926020909101359150565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417612179576121796125ed565b60008261263757634e487b7160e01b600052601260045260246000fd5b500490565b81810381811115612179576121796125ed565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252603a908201527f5371756164737761703a204f6e6c792074686520706f696e7473206f7065726160408201527f746f722063616e2063616c6c20746869732066756e6374696f6e000000000000606082015260800190565b6000602082840312156126f357600080fd5b5051919050565b6000806000806080858703121561271057600080fd5b84519350602085015192506040850151915060608501516002811061273457600080fd5b939692955090935050565b80820180821115612179576121796125ed565b60208082526036908201527f4e657720737461727454696d657374616d70206d757374206265206c6f7765726040820152750207468616e206e657720656e6454696d657374616d760541b606082015260800190565b6020808252603e908201527f4e657720737461727454696d657374616d70206d75737420626520686967686560408201527f72207468616e2063757272656e7420626c6f636b2074696d657374616d700000606082015260800190565b60006020828403121561281757600080fd5b815160ff8116811461226357600080fd5b600181815b80851115612863578160001904821115612849576128496125ed565b8085161561285657918102915b93841c939080029061282d565b509250929050565b60008261287a57506001612179565b8161288757506000612179565b816001811461289d57600281146128a7576128c3565b6001915050612179565b60ff8411156128b8576128b86125ed565b50506001821b612179565b5060208310610133831016604e8410600b84101617156128e6575081810a612179565b6128f08383612828565b8060001904821115612904576129046125ed565b029392505050565b6000612263838361286b565b602081016003831061292c5761292c612448565b91905290565b60006020828403121561294457600080fd5b8151612263816124b7565b60008060008060008060c0878903121561296857600080fd5b8651955060208701519450604087015193506060870151612988816123c4565b608088015160a089015191945092506129a0816124b7565b809150509295509295509295565b60005b838110156129c95781810151838201526020016129b1565b50506000910152565b600082516129e48184602087016129ae565b9190910192915050565b6020815260008251806020840152612a0d8160408501602087016129ae565b601f01601f1916919091016040019291505056fea2646970667358221220a8f2b4b4899cf24419f74385bb430b5b41d95f511030f597e09a01c62bcdb7a564736f6c63430008180033
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$10.19
Net Worth in ETH
0.003504
Token Allocations
WETH
100.00%
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|---|---|---|---|---|
| BLAST | 100.00% | $2,905.97 | 0.00350577 | $10.19 |
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ 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.