ERC-20
Overview
Max Total Supply
24.916476107388873279 bs-wS/STS
Holders
1
Market
Price
-
Onchain Market Cap
-
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
24.916476107388873279 bs-wS/STSValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
Blacksail_Vault
Compiler Version
v0.8.20+commit.a1b79de6
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.20; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "./BlackSail_Interface.sol"; contract Blacksail_Vault is ERC20, ReentrancyGuard, Ownable { using SafeERC20 for IERC20; mapping (address => AccountInfo) public accountData; // The last proposed strategy to switch to. UpgradedStrategy public stratCandidate; // The strategy currently in use by the vault. ISailStrategy public strategy; // The minimum time it has to pass before a strat candidate can be approved, set to 24 hours uint256 constant approvalDelay = 86400; struct AccountInfo { uint256 actionTime; uint256 amount; string lastAction; bool staked; } event ProposedStrategyUpgrade(address implementation); event UpgradeStrat(address implementation); event Deposit(address indexed user, uint256 amount); event Withdraw(address indexed user, uint256 amount); /** * @dev Initializes the vault contract. * Sets the strategy, vault token name, and symbol. * * @param _strategy Address of the strategy contract associated with this vault. * @param _name Name of the vault token (e.g., "Vault Token"). * @param _symbol Symbol of the vault token (e.g., "VT"). * * Inherits: * - ERC20: For managing the vault's token shares. * - Ownable: Assigns ownership to the deployer for administrative control. */ constructor ( ISailStrategy _strategy, string memory _name, string memory _symbol ) ERC20(_name, _symbol) Ownable(msg.sender) { strategy = _strategy; } function want() public view returns (IERC20) { return IERC20(strategy.staking_token()); } /** @dev Calculates the total value of {token} held in the system, including: * Vault balance * Strategy contract balance * Balances deployed in external contracts. */ function balance() public view returns (uint) { return want().balanceOf(address(this)) + (ISailStrategy(strategy).balanceOf()); } /** @dev Determines how much of the vault's tokens can be borrowed. */ function available() public view returns (uint256) { return want().balanceOf(address(this)); } /** @dev Provides the value of one vault share in terms of the underlying asset, with 18 decimals, for UI display. */ function getPricePerFullShare() public view returns (uint256) { return totalSupply() == 0 ? 1e18 : balance() * 1e18 / totalSupply(); } /** @dev Calls deposit() with the sender's entire balance. */ function depositAll() external { deposit(want().balanceOf(msg.sender)); } /** * @dev Handles user deposits into the vault. * Transfers the specified `_amount` of tokens from the user to the vault, updates the strategy via `earn()`, * and mints corresponding shares to the user. Shares represent the user's proportional ownership of the vault. * Includes safeguards for deflationary tokens. * * Requirements: * - `_amount` must be greater than zero. * - Caller must approve the vault to transfer their tokens.*/ function deposit(uint _amount) public nonReentrant { require(_amount > 0, "Invalid amount"); strategy.beforeDeposit(); uint256 _pool = balance(); want().safeTransferFrom(msg.sender, address(this), _amount); earn(); uint256 _after = balance(); _amount = _after - _pool; // Additional check for deflationary tokens uint256 shares = 0; if (totalSupply() == 0) { shares = _amount; } else { shares = (_amount * totalSupply()) / _pool; } emit Deposit(msg.sender, _amount); accountData[msg.sender].lastAction = "Deposit"; updateDeposit(msg.sender, shares); _mint(msg.sender, shares); } /** * @dev Transfers available funds from the vault to the strategy for yield optimization. * Moves the vault's idle balance to the strategy contract and triggers the strategy's deposit function. */ function earn() internal { uint _bal = available(); want().safeTransfer(address(strategy), _bal); strategy.deposit(); } /** @dev Helper to withdraw all funds for the sender. */ function withdrawAll() external { withdraw(balanceOf(msg.sender)); } /** * @dev Allows a user to withdraw their share of funds from the vault. * Burns the user's vault tokens, calculates the proportional amount of underlying tokens, and transfers them back to the user. * If there are insufficient funds in the vault, it withdraws the required amount from the strategy. * Updates the user's deposit record and ensures safe transfer of tokens. * @param _shares The number of vault tokens to redeem for underlying assets. */ function withdraw(uint256 _shares) public nonReentrant { uint256 r = (balance() * _shares) / totalSupply(); _burn(msg.sender, _shares); uint b = want().balanceOf(address(this)); if (b < r) { uint _withdraw = r - b; strategy.withdraw(_withdraw); uint _after = want().balanceOf(address(this)); uint _diff = _after - b; if (_diff < _withdraw) { r = b + _diff; } } emit Withdraw(msg.sender, r); accountData[msg.sender].lastAction = "Withdraw"; updateDeposit(msg.sender, _shares); want().safeTransfer(msg.sender, r); } /** * @dev Updates deposit information for an account. * This function tracks user deposit/withdrawal actions, timestamps, * and staking status for UI display purposes. * @param _account The address of the user account. * @param _shares The number of shares involved in the deposit/withdrawal. */ function updateDeposit(address _account, uint256 _shares) internal { accountData[_account].actionTime = block.timestamp; // not staked if (!accountData[_account].staked) { accountData[_account].amount = _shares * balance(); accountData[_account].lastAction = "Deposit"; accountData[_account].staked = true; // fully withdrawn } else if (accountData[_account].staked && IERC20(address(this)).balanceOf(_account) == 0) { accountData[_account].amount = 0; accountData[_account].lastAction = "Withdraw"; accountData[_account].staked = false; // modified staking } else { uint256 currentShare = IERC20(address(this)).balanceOf(_account) / totalSupply() * balance(); if (accountData[_account].amount > currentShare) { // deposit accountData[_account].lastAction = "Deposit"; } else { // withdraw accountData[_account].lastAction = "Withdraw"; } accountData[_account].amount = currentShare; } } /** * @dev Retrieves account information for UI display. * Returns the last action time, action type (Deposit/Withdraw), * and the difference in shares since the last action. * If no meaningful data exists, it returns 0 and "n/a". * @param _account The address of the user account. * @return actionTime The timestamp of the last action. * @return action The last action performed ("Deposit" or "Withdraw"). * @return difference The difference in shares since the last recorded action.*/ function earned(address _account) public view returns (uint256 actionTime, string memory action, uint256 difference) { uint256 currentShare = 0; if (IERC20(address(this)).balanceOf(_account) > 0 && totalSupply() > 0) { currentShare = IERC20(address(this)).balanceOf(_account) / totalSupply() * balance(); } if (currentShare >= accountData[_account].amount) { return(accountData[_account].actionTime, accountData[_account].lastAction, (currentShare - accountData[_account].amount)); } else { return(0,accountData[_account].lastAction,0); } } /** * @dev Proposes an upgrade to a new strategy for the vault. * Only callable by the owner. Verifies that the new strategy is valid for this vault. * The proposed strategy and the current timestamp are stored for later approval. * Emits a `ProposedStrategyUpgrade` event. * @param _implementation The address of the proposed new strategy.*/ function proposeStrategyUpgrade(address _implementation) public onlyOwner { require(address(this) == ISailStrategy(_implementation).vault(), "Proposal not valid for this Vault"); stratCandidate = UpgradedStrategy({ implementation: _implementation, proposedTime: block.timestamp }); emit ProposedStrategyUpgrade(_implementation); } /** * @dev Upgrades the vault to the proposed strategy after the approval delay has passed. * Only callable by the owner. Ensures a valid candidate strategy exists and the required delay is met. * Retires the current strategy and sets the new strategy as active. * Resets the candidate strategy details for safety and calls `earn()` to deploy funds to the new strategy. * Emits an `UpgradeStrat` event. */ function upgradeStrat() public onlyOwner { require(stratCandidate.implementation != address(0), "There is no candidate"); require(stratCandidate.proposedTime + approvalDelay < block.timestamp, "Delay has not passed"); emit UpgradeStrat(stratCandidate.implementation); strategy.retireStrat(); strategy = ISailStrategy(stratCandidate.implementation); stratCandidate.implementation = address(0); stratCandidate.proposedTime = 5000000000; earn(); } function getAccountInfo(address _account) public view returns (uint256, uint256, string memory, bool) { AccountInfo storage info = accountData[_account]; return (info.actionTime, info.amount, info.lastAction, info.staked); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling 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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC-20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC-721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in ERC-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC-1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC1363.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC165} from "./IERC165.sol"; /** * @title IERC1363 * @dev Interface of the ERC-1363 standard as defined in the https://eips.ethereum.org/EIPS/eip-1363[ERC-1363]. * * Defines an extension interface for ERC-20 tokens that supports executing code on a recipient contract * after `transfer` or `transferFrom`, or code on a spender contract after `approve`, in a single transaction. */ interface IERC1363 is IERC20, IERC165 { /* * Note: the ERC-165 identifier for this interface is 0xb0202a11. * 0xb0202a11 === * bytes4(keccak256('transferAndCall(address,uint256)')) ^ * bytes4(keccak256('transferAndCall(address,uint256,bytes)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256)')) ^ * bytes4(keccak256('transferFromAndCall(address,address,uint256,bytes)')) ^ * bytes4(keccak256('approveAndCall(address,uint256)')) ^ * bytes4(keccak256('approveAndCall(address,uint256,bytes)')) */ /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from the caller's account to `to` * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the allowance mechanism * and then calls {IERC1363Receiver-onTransferReceived} on `to`. * @param from The address which you want to send tokens from. * @param to The address which you want to transfer to. * @param value The amount of tokens to be transferred. * @param data Additional data with no specified format, sent in call to `to`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function transferFromAndCall(address from, address to, uint256 value, bytes calldata data) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value) external returns (bool); /** * @dev Sets a `value` amount of tokens as the allowance of `spender` over the * caller's tokens and then calls {IERC1363Spender-onApprovalReceived} on `spender`. * @param spender The address which will spend the funds. * @param value The amount of tokens to be spent. * @param data Additional data with no specified format, sent in call to `spender`. * @return A boolean value indicating whether the operation succeeded unless throwing. */ function approveAndCall(address spender, uint256 value, bytes calldata data) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "../utils/introspection/IERC165.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "./IERC20.sol"; import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; import {Context} from "../../utils/Context.sol"; import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC-20 * applications. */ abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { mapping(address account => uint256) private _balances; mapping(address account => mapping(address spender => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `value`. */ function transfer(address to, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _transfer(owner, to, value); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 value) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, value); return true; } /** * @dev See {IERC20-transferFrom}. * * Skips emitting an {Approval} event indicating an allowance update. This is not * required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `value`. * - the caller must have allowance for ``from``'s tokens of at least * `value`. */ function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, value); _transfer(from, to, value); return true; } /** * @dev Moves a `value` amount of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _transfer(address from, address to, uint256 value) internal { if (from == address(0)) { revert ERC20InvalidSender(address(0)); } if (to == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(from, to, value); } /** * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding * this function. * * Emits a {Transfer} event. */ function _update(address from, address to, uint256 value) internal virtual { if (from == address(0)) { // Overflow check required: The rest of the code assumes that totalSupply never overflows _totalSupply += value; } else { uint256 fromBalance = _balances[from]; if (fromBalance < value) { revert ERC20InsufficientBalance(from, fromBalance, value); } unchecked { // Overflow not possible: value <= fromBalance <= totalSupply. _balances[from] = fromBalance - value; } } if (to == address(0)) { unchecked { // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. _totalSupply -= value; } } else { unchecked { // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. _balances[to] += value; } } emit Transfer(from, to, value); } /** * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). * Relies on the `_update` mechanism * * Emits a {Transfer} event with `from` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead. */ function _mint(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidReceiver(address(0)); } _update(address(0), account, value); } /** * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. * Relies on the `_update` mechanism. * * Emits a {Transfer} event with `to` set to the zero address. * * NOTE: This function is not virtual, {_update} should be overridden instead */ function _burn(address account, uint256 value) internal { if (account == address(0)) { revert ERC20InvalidSender(address(0)); } _update(account, address(0), value); } /** * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. * * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. */ function _approve(address owner, address spender, uint256 value) internal { _approve(owner, spender, value, true); } /** * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. * * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any * `Approval` event during `transferFrom` operations. * * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to * true using the following override: * * ```solidity * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { * super._approve(owner, spender, value, true); * } * ``` * * Requirements are the same as {_approve}. */ function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { if (owner == address(0)) { revert ERC20InvalidApprover(address(0)); } if (spender == address(0)) { revert ERC20InvalidSpender(address(0)); } _allowances[owner][spender] = value; if (emitEvent) { emit Approval(owner, spender, value); } } /** * @dev Updates `owner` s allowance for `spender` based on spent `value`. * * Does not update the allowance value in case of infinite allowance. * Revert if not enough allowance is available. * * Does not emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 value) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { if (currentAllowance < value) { revert ERC20InsufficientAllowance(spender, currentAllowance, value); } unchecked { _approve(owner, spender, currentAllowance - value, false); } } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC-20 standard. */ 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-20 standard as defined in the ERC. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC1363} from "../../../interfaces/IERC1363.sol"; import {Address} from "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC-20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { /** * @dev An operation with an ERC-20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. * * IMPORTANT: If the token implements ERC-7674 (ERC-20 with temporary allowance), and if the "client" * smart contract uses ERC-7674 to set temporary allowances, then the "client" smart contract should avoid using * this function. Performing a {safeIncreaseAllowance} or {safeDecreaseAllowance} operation on a token contract * that has a non-zero temporary allowance (for that particular owner-spender) will result in unexpected behavior. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. * * NOTE: If the token implements ERC-7674, this function will not modify any temporary allowance. This function * only sets the "standard" allowance. Any temporary allowance will remain active, in addition to the value being * set here. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @dev Performs an {ERC1363} transferAndCall, with a fallback to the simple {ERC20} transfer if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { safeTransfer(token, to, value); } else if (!token.transferAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} transferFromAndCall, with a fallback to the simple {ERC20} transferFrom if the target * has no code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * Reverts if the returned value is other than `true`. */ function transferFromAndCallRelaxed( IERC1363 token, address from, address to, uint256 value, bytes memory data ) internal { if (to.code.length == 0) { safeTransferFrom(token, from, to, value); } else if (!token.transferFromAndCall(from, to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @dev Performs an {ERC1363} approveAndCall, with a fallback to the simple {ERC20} approve if the target has no * code. This can be used to implement an {ERC721}-like safe transfer that rely on {ERC1363} checks when * targeting contracts. * * NOTE: When the recipient address (`to`) has no code (i.e. is an EOA), this function behaves as {forceApprove}. * Opposedly, when the recipient address (`to`) has code, this function only attempts to call {ERC1363-approveAndCall} * once without retrying, and relies on the returned value to be true. * * Reverts if the returned value is other than `true`. */ function approveAndCallRelaxed(IERC1363 token, address to, uint256 value, bytes memory data) internal { if (to.code.length == 0) { forceApprove(token, to, value); } else if (!token.approveAndCall(to, value, data)) { revert SafeERC20FailedOperation(address(token)); } } /** * @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). * * This is a variant of {_callOptionalReturnBool} that reverts if call fails to meet the requirements. */ function _callOptionalReturn(IERC20 token, bytes memory data) private { uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { let success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) // bubble errors if iszero(success) { let ptr := mload(0x40) returndatacopy(ptr, 0, returndatasize()) revert(ptr, returndatasize()) } returnSize := returndatasize() returnValue := mload(0) } if (returnSize == 0 ? address(token).code.length == 0 : returnValue != 1) { revert SafeERC20FailedOperation(address(token)); } } /** * @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). * * This is a variant of {_callOptionalReturn} that silently catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { bool success; uint256 returnSize; uint256 returnValue; assembly ("memory-safe") { success := call(gas(), token, 0, add(data, 0x20), mload(data), 0, 0x20) returnSize := returndatasize() returnValue := mload(0) } return success && (returnSize == 0 ? address(token).code.length > 0 : returnValue == 1); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Address.sol) pragma solidity ^0.8.20; import {Errors} from "./Errors.sol"; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert Errors.InsufficientBalance(address(this).balance, amount); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert Errors.FailedCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {Errors.FailedCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert Errors.InsufficientBalance(address(this).balance, value); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {Errors.FailedCall}) in case * of an unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {Errors.FailedCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {Errors.FailedCall}. */ function _revert(bytes memory returndata) private pure { // 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 ("memory-safe") { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert Errors.FailedCall(); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/Errors.sol) pragma solidity ^0.8.20; /** * @dev Collection of common custom errors used in multiple contracts * * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library. * It is recommended to avoid relying on the error API for critical functionality. * * _Available since v5.1._ */ library Errors { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error InsufficientBalance(uint256 balance, uint256 needed); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedCall(); /** * @dev The deployment failed. */ error FailedDeployment(); /** * @dev A necessary precompile is missing. */ error MissingPrecompile(address); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC-165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[ERC]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol) pragma solidity ^0.8.20; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If EIP-1153 (transient storage) is available on the chain you're deploying at, * consider using {ReentrancyGuardTransient} instead. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ 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; /** * @dev Unauthorized reentrant call. */ error ReentrancyGuardReentrantCall(); 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() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be NOT_ENTERED if (_status == ENTERED) { revert ReentrancyGuardReentrantCall(); } // Any calls to nonReentrant after this point will fail _status = ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == ENTERED; } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.20; import '@openzeppelin/contracts/token/ERC20/IERC20.sol'; interface ISailFactory { function treasury() external view returns (address); function paused() external view returns (bool); } interface ISailCurve { function mustStaySAIL(address account) external view returns (uint256); } interface IxSAIL { function balanceOf(address account) external view returns (uint256); //function notifyRewardAmount(address _rewardsToken, uint256 reward) external; } interface ISailWhalePrevention { function timelockRemaining() external view returns (bool active, uint256 timeleft); } interface ISailStrategy { function vault() external view returns (address); function staking_token() external view returns (address); function beforeDeposit() external; function deposit() external; function withdraw(uint256) external; function balanceOf() external view returns (uint256); function lastHarvest() external view returns (uint256); function harvest() external; function retireStrat() external; function panic() external; function pause() external; function unpause() external; function paused() external view returns (bool); } interface ISailVault { function want() external view returns (IERC20); function strategy() external view returns (ISailStrategy); function balance() external view returns (uint); function available() external view returns (uint256); function getPricePerFullShare() external view returns (uint256); function earned(address account) external view returns (uint256, string memory, uint256); } struct UpgradedStrategy { address implementation; uint proposedTime; } interface IMasterChef { function deposit(uint256 poolId, uint256 _amount) external; function withdraw(uint256 poolId, uint256 _amount) external; function userInfo(uint256 _pid, address _user) external view returns (uint256, uint256); function emergencyWithdraw(uint256 _pid) external; } interface IUniswapRouter { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } interface IUniswapPair { function token0() external view returns (address); function token1() external view returns (address); } interface IRewardPool { function deposit(uint256 amount) external; function withdraw(uint256 amount) external; function getReward(address user, address[] memory rewards) external; function earned(address token, address user) external view returns (uint256); function balanceOf(address account) external view returns (uint256); function stake() external view returns (address); } interface ISolidlyRouter { // Routes struct Routes { address from; address to; bool stable; } struct Route { address from; address to; bool stable; address factory; } function addLiquidity( address tokenA, address tokenB, bool stable, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, bool stable, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, bool stable, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, bool stable, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokensSimple( uint amountIn, uint amountOutMin, address tokenFrom, address tokenTo, bool stable, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, Routes[] memory route, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, Route[] memory route, address to, uint deadline ) external returns (uint[] memory amounts); function getAmountOut( uint amountIn, address tokenIn, address tokenOut ) external view returns (uint amount, bool stable); function getAmountsOut(uint amountIn, Routes[] memory routes) external view returns (uint[] memory amounts); function getAmountsOut(uint amountIn, Route[] memory routes) external view returns (uint[] memory amounts); function quoteAddLiquidity( address tokenA, address tokenB, bool stable, uint amountADesired, uint amountBDesired ) external view returns (uint amountA, uint amountB, uint liquidity); function quoteAddLiquidity( address tokenA, address tokenB, bool stable, address _factory, uint amountADesired, uint amountBDesired ) external view returns (uint amountA, uint amountB, uint liquidity); function defaultFactory() external view returns (address); } interface IEqualizerPool { function deposit(uint256 amount) external; function withdraw(uint256 amount) external; function getReward(address user, address[] memory rewards) external; function earned(address token, address user) external view returns (uint256); function balanceOf(address account) external view returns (uint256); function stake() external view returns (address); }
{ "viaIR": true, "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
[{"inputs":[{"internalType":"contract ISailStrategy","name":"_strategy","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientAllowance","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"}],"name":"ERC20InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC20InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC20InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC20InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"spender","type":"address"}],"name":"ERC20InvalidSpender","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"implementation","type":"address"}],"name":"ProposedStrategyUpgrade","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"implementation","type":"address"}],"name":"UpgradeStrat","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":[{"internalType":"address","name":"","type":"address"}],"name":"accountData","outputs":[{"internalType":"uint256","name":"actionTime","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"lastAction","type":"string"},{"internalType":"bool","name":"staked","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"available","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"actionTime","type":"uint256"},{"internalType":"string","name":"action","type":"string"},{"internalType":"uint256","name":"difference","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getAccountInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"string","name":"","type":"string"},{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_implementation","type":"address"}],"name":"proposeStrategyUpgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stratCandidate","outputs":[{"internalType":"address","name":"implementation","type":"address"},{"internalType":"uint256","name":"proposedTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"contract ISailStrategy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"upgradeStrat","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"want","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234620003a657620022e3803803806200001d81620003ab565b9283398101606082820312620003a65781516001600160a01b039182821691829003620003a6576020848101516001600160401b039591929190868111620003a657826200006d918301620003d1565b916040820151878111620003a657620000879201620003d1565b948151818111620002a6576003908154906001948583811c931680156200039b575b8784101462000385578190601f938481116200032f575b508790848311600114620002c857600092620002bc575b505060001982851b1c191690851b1782555b8751928311620002a65760049485548581811c911680156200029b575b8282101462000286578281116200023b575b5080918411600114620001cd5750829394959697600093620001c1575b505082841b92600019911b1c19161782555b6005553315620001a9575060068054336001600160a01b03198083168217909355604051949091167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3600a541617600a55611e9f9081620004448239f35b602490600060405191631e4fbdf760e01b8352820152fd5b01519150388062000135565b9190601f198416988660005283600020936000905b8b82106200022357505084869798999a1062000208575b50505050811b01825562000147565b01519060f884600019921b161c1916905538808080620001f9565b808885978294968601518155019601930190620001e2565b86600052816000208380870160051c8201928488106200027c575b0160051c019086905b8281106200026f57505062000118565b600081550186906200025f565b9250819262000256565b602287634e487b7160e01b6000525260246000fd5b90607f169062000106565b634e487b7160e01b600052604160045260246000fd5b015190503880620000d7565b90879350601f1983169186600052896000209260005b8b828210620003185750508411620002ff575b505050811b018255620000e9565b015160001983871b60f8161c19169055388080620002f1565b8385015186558b97909501949384019301620002de565b90915084600052876000208480850160051c8201928a86106200037b575b918991869594930160051c01915b8281106200036b575050620000c0565b600081558594508991016200035b565b925081926200034d565b634e487b7160e01b600052602260045260246000fd5b92607f1692620000a9565b600080fd5b6040519190601f01601f191682016001600160401b03811183821017620002a657604052565b919080601f84011215620003a65782516001600160401b038111620002a65760209062000407601f8201601f19168301620003ab565b92818452828287010111620003a65760005b8181106200042f57508260009394955001015290565b85810183015184820184015282016200041956fe6040608081526004908136101561001557600080fd5b600091823560e01c80628cc262146112e557806306fdde031461123b578063095ea7b31461119257806318160ddd146111735780631f1fcd511461114557806323b872dd146110525780632e1a7d4d14610edc578063313ce56714610ec057806336d7d3f814610d6f57806348a0d75414610d5257806370a0823114610d1b578063715018a614610cbd57806376dfabb814610c8857806377c7b8fc14610c0b5780637b510fe814610bb1578063853828b61461093e5780638da5cb5b1461091557806395d89b411461082a578063a8c62e7614610801578063a9059cbb146107d0578063b69ef8a8146107ac578063b6b55f2514610642578063dd62ed3e146105f4578063de5f6268146103ba578063deb906e71461035b578063e6685244146101d75763f2fde38b1461014957600080fd5b346101d35760203660031901126101d35761016261132e565b9061016b61150d565b6001600160a01b039182169283156101bd575050600654826001600160601b0360a01b821617600655167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b50346101d357826003193601126101d3576101f061150d565b6008546001600160a01b039290831680156103205760095462015180810180911161030d574211156102d357907f7f37d440e85aba7fbf641c4bda5ca4ef669a80bffaacde2aa8d9feb1b048c82c60208694938351908152a183600a541691823b156102cf57815163fb61778760e01b81529284918491829084905af19081156102c657506102ae575b50506008546001600160601b0360a01b91811682600a541617600a551660085564012a05f2006009556102ab611a07565b80f35b6102b7906113ff565b6102c257813861027a565b5080fd5b513d84823e3d90fd5b8380fd5b815162461bcd60e51b8152602081850152601460248201527311195b185e481a185cc81b9bdd081c185cdcd95960621b6044820152606490fd5b634e487b7160e01b865260118452602486fd5b815162461bcd60e51b815260208185015260156024820152745468657265206973206e6f2063616e64696461746560581b6044820152606490fd5b5050346102c25760203660031901126102c2579081906001600160a01b0361038161132e565b168152600760205220906103b682549160018401549360ff60036103a760028401611467565b9201541691519485948561139a565b0390f35b50346101d357826003193601126101d3576001600160a01b0391826103dd61175f565b1681519384916370a0823160e01b8352338584015282602460209485935afa9485156105ea5786956105b6575b506104136119e4565b8415610583578590600a5416803b156102c25781809186865180948193632b9ff78560e11b83525af1801561057957610561575b50506007906104926104576117c1565b9561046061175f565b8551916323b872dd60e01b8584015233602484015230604484015260648301526064825261048d82611429565b611988565b61049a611a07565b6104ab856104a66117c1565b611944565b600254909581610549575050845b83519081527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c823392a2338652526002818520016105006104fa82546113c5565b82611951565b600e6611195c1bdcda5d60ca1b01905561051a8333611aa6565b3315610533578361052b84336116e4565b600160055580f35b5163ec442f0560e01b8152908101839052602490fd5b61055661055b9288611911565b611924565b946104b9565b61056a906113ff565b610575578438610447565b8480fd5b84513d84823e3d90fd5b50905162461bcd60e51b815291820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606490fd5b9094508181813d83116105e3575b6105ce8183611445565b810103126105de5751933861040a565b600080fd5b503d6105c4565b83513d88823e3d90fd5b5050346102c257806003193601126102c25760209161061161132e565b8261061a611344565b6001600160a01b03928316845260018652922091166000908152908352819020549051908152f35b50346101d35760203660031901126101d35780359161065f6119e4565b821561077857600a5484906001600160a01b0316803b156102c25781809185855180948193632b9ff78560e11b83525af1801561076e5761075a575b50506106df6106a86117c1565b936106b161175f565b8351916323b872dd60e01b602084015233602484015230604484015260648301526064825261048d82611429565b6106e7611a07565b6106f3836104a66117c1565b600254909381610747575050825b81519081527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c60203392a233845260076020526002818520016105006104fa82546113c5565b6105566107549286611911565b92610701565b610763906113ff565b6102cf57833861069b565b83513d84823e3d90fd5b906020606492519162461bcd60e51b8352820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152fd5b5050346102c257816003193601126102c2576020906107c96117c1565b9051908152f35b5050346102c257806003193601126102c2576020906107fa6107f061132e565b6024359033611539565b5160018152f35b5050346102c257816003193601126102c257600a5490516001600160a01b039091168152602090f35b50913461091257806003193601126109125750805190600092805461084e816113c5565b808552916001918083169081156108ea575060011461088c575b50505061087a826103b6940383611445565b5191829160208352602083019061135a565b600090815294507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8286106108d25750505061087a8260206103b69582010194610868565b805460208787018101919091529095019481016108b5565b6103b697508693506020925061087a94915060ff191682840152151560051b82010194610868565b80fd5b5050346102c257816003193601126102c25760065490516001600160a01b039091168152602090f35b50346101d357826003193601126101d35733835260209183835280842054926109656119e4565b610982610979856109746117c1565b611911565b60025490611924565b923315610b9a576109938533611628565b6001600160a01b03806109a461175f565b169184519084826024816370a0823160e01b9788825230868301525afa918215610b90578992610b61575b50868210610a4a575b8861052b88610a3c8b60028b60078c82518781527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364823392a233895252862001610a256104fa82546113c5565b601067576974686472617760c01b01905533611aa6565b33610a4561175f565b611a6a565b610a5982889795999698611944565b928981600a5416803b156102c2578180916024895180948193632e1a7d4d60e01b83528b8a8401525af18015610b5757908a94939291610b3a575b5050602490610aa161175f565b169986519a8b938492835230908301525afa968715610b30578897610aff575b50610acf8161052b98611944565b918210610ae1575b82949593966109d8565b610a3c9450610af560029392600792611605565b9450819250610ad7565b96508587813d8311610b29575b610b168183611445565b810103126105de57955195610acf610ac1565b503d610b0c565b83513d8a823e3d90fd5b610b46919294506113ff565b610b535787918a38610a94565b8980fd5b87513d84823e3d90fd5b9091508481813d8311610b89575b610b798183611445565b810103126105de575190386109cf565b503d610b6f565b86513d8b823e3d90fd5b8251634b637e8f60e11b8152908101869052602490fd5b5050346102c25760203660031901126102c2579081906001600160a01b03610bd761132e565b1681526007602052206103b6815491600181015493610c00600260ff6003850154169301611467565b90519485948561139a565b5091346109125780600319360112610912576002549081610c3d57505060209150670de0b6b3a7640000905b51908152f35b610c456117c1565b90670de0b6b3a764000091828102928184041490151715610c7557506020935090610c6f91611924565b90610c37565b634e487b7160e01b815260118552602490fd5b8284346109125780600319360112610912575060085460095491516001600160a01b0390911681526020810191909152604090f35b8334610912578060031936011261091257610cd661150d565b600680546001600160a01b031981169091556000906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5050346102c25760203660031901126102c25760209181906001600160a01b03610d4361132e565b16815280845220549051908152f35b5050346102c257816003193601126102c2576020906107c96118a3565b509190346102c257602090816003193601126101d357610d8d61132e565b90610d9661150d565b805163fbfa77cf60e01b81526001600160a01b03928316929084818881875afa9081156105ea578691610e93575b50163003610e4757805181810181811067ffffffffffffffff821117610e32577f8a3493fb3a47f4ad752dfbeb8dc0b8ce6bb6c8a55a9cf69512ca5c2cc8768adb95965082528281528342910152816001600160601b0360a01b60085416176008554260095551908152a180f35b604187634e487b7160e01b6000525260246000fd5b5162461bcd60e51b8152808501839052602160248201527f50726f706f73616c206e6f742076616c696420666f722074686973205661756c6044820152601d60fa1b6064820152608490fd5b610eb39150853d8711610eb9575b610eab8183611445565b810190611740565b38610dc4565b503d610ea1565b5050346102c257816003193601126102c2576020905160128152f35b50346101d357602091826003193601126102cf57813592610efb6119e4565b610f0a610979856109746117c1565b923315610b9a57610f1b8533611628565b6001600160a01b0380610f2c61175f565b169184519084826024816370a0823160e01b9788825230868301525afa918215610b9057899261101f575b50868210610fac578861052b88610a3c8b60028b60078c82518781527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364823392a233895252862001610a256104fa82546113c5565b610fbb82889795999698611944565b928981600a5416803b156102c25781906024885180948193632e1a7d4d60e01b83528a898401525af1801561101557610ffd575b509060248892610aa161175f565b8892919a61100c6024926113ff565b9a919250610fef565b86513d8d823e3d90fd5b9091508481813d831161104b575b6110378183611445565b8101031261104757519038610f57565b8880fd5b503d61102d565b5082346109125760603660031901126109125761106d61132e565b611075611344565b916044359360018060a01b0383168083526001602052868320338452602052868320549160001983036110b1575b6020886107fa898989611539565b8683106111195781156111025733156110eb575082526001602090815286832033845281529186902090859003905582906107fa876110a3565b8751634a1406b160e11b8152908101849052602490fd5b875163e602df0560e01b8152908101849052602490fd5b8751637dc7a0d960e11b8152339181019182526020820193909352604081018790528291506060010390fd5b5050346102c257816003193601126102c25760209061116261175f565b90516001600160a01b039091168152f35b5050346102c257816003193601126102c2576020906002549051908152f35b50346101d357816003193601126101d3576111ab61132e565b602435903315611224576001600160a01b031691821561120d57508083602095338152600187528181208582528752205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b8351634a1406b160e11b8152908101859052602490fd5b835163e602df0560e01b8152808401869052602490fd5b5050346102c257816003193601126102c2578051908260035461125d816113c5565b808552916001918083169081156108ea57506001146112885750505061087a826103b6940383611445565b9450600385527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8286106112cd5750505061087a8260206103b69582010194610868565b805460208787018101919091529095019481016112b0565b828434610912576020366003190112610912575061130961130461132e565b611cdb565b61132684929451948594855260606020860152606085019061135a565b918301520390f35b600435906001600160a01b03821682036105de57565b602435906001600160a01b03821682036105de57565b919082519283825260005b848110611386575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201611365565b926060926113bd929695968552602085015260806040850152608084019061135a565b931515910152565b90600182811c921680156113f5575b60208310146113df57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113d4565b67ffffffffffffffff811161141357604052565b634e487b7160e01b600052604160045260246000fd5b60a0810190811067ffffffffffffffff82111761141357604052565b90601f8019910116810190811067ffffffffffffffff82111761141357604052565b906040519182600082549261147b846113c5565b9081845260019485811690816000146114ea57506001146114a7575b50506114a592500383611445565b565b9093915060005260209081600020936000915b8183106114d25750506114a593508201013880611497565b855488840185015294850194879450918301916114ba565b9150506114a594506020925060ff191682840152151560051b8201013880611497565b6006546001600160a01b0316330361152157565b60405163118cdaa760e01b8152336004820152602490fd5b916001600160a01b038084169283156115ec57169283156115d357600090838252816020526040822054908382106115a157509160408282600080516020611e4a833981519152958760209652828652038282205586815220818154019055604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101839052606490fd5b60405163ec442f0560e01b815260006004820152602490fd5b604051634b637e8f60e11b815260006004820152602490fd5b9190820180921161161257565b634e487b7160e01b600052601160045260246000fd5b9091906001600160a01b03811690816116725750600080516020611e4a83398151915260208461165d60009596600254611605565b6002555b8060025403600255604051908152a3565b926000828152806020526040812054948286106116b3575081816040600080516020611e4a8339815191529460009798876020965283865203912055611661565b60405163391434e360e21b81526001600160a01b039190911660048201526024810186905260448101839052606490fd5b600080516020611e4a833981519152602060009261170485600254611605565b6002556001600160a01b0316938415841461172b5780600254036002555b604051908152a3565b84845283825260408420818154019055611722565b908160209103126105de57516001600160a01b03811681036105de5790565b600a54604051630b71f5d360e21b81526001600160a01b03916020908290600490829086165afa9081156117b55760009161179957501690565b6117b1915060203d8111610eb957610eab8183611445565b1690565b6040513d6000823e3d90fd5b6001600160a01b0390816117d361175f565b169160405180936370a0823160e01b825230600483015281602460209687935afa9182156117b5578491600093611870575b50600a5460405163722713f760e01b8152929183916004918391165afa9384156117b557600094611841575b50509161183e9192611605565b90565b81813d8311611869575b6118558183611445565b810103126102cf5751925061183e38611831565b503d61184b565b9182819492943d831161189c575b6118888183611445565b810103126109125750519083906004611805565b503d61187e565b602460206001600160a01b036118b761175f565b16604051928380926370a0823160e01b82523060048301525afa9081156117b5576000916118e3575090565b906020823d8211611909575b816118fc60209383611445565b8101031261091257505190565b3d91506118ef565b8181029291811591840414171561161257565b811561192e570490565b634e487b7160e01b600052601260045260246000fd5b9190820391821161161257565b601f821161195d575050565b6000908152601f60208220920160051c8201915b82811061197d57505050565b818155600101611971565b906000602091828151910182855af1156117b5576000513d6119db57506001600160a01b0381163b155b6119b95750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b600114156119b2565b6002600554146119f5576002600555565b604051633ee5aeb560e01b8152600490fd5b611a0f6118a3565b611a30611a1a61175f565b600a546001600160a01b03939190841690611a6a565b600a5416803b156105de5760008091600460405180948193630d0e30db60e41b83525af180156117b557611a615750565b6114a5906113ff565b60405163a9059cbb60e01b60208201526001600160a01b039290921660248301526044808301939093529181526114a59161048d606483611445565b6001600160a01b031660008181526007602081815260408084204281556003015491969590949160ff1680611b2e5750906002611aef6003979893611ae96117c1565b90611911565b82865284845286862090600182015501611b0c6104fa82546113c5565b600e6611195c1bdcda5d60ca1b0190558352522001805460ff19166001179055565b905080611c73575b15611b7f579485600395968452828252600285852085600182015501611b5f6104fa82546113c5565b601067576974686472617760c01b0190558352522001805460ff19169055565b9291908251956370a0823160e01b87528460048801528087602481305afa968715611c69578397611c38575b50611bc8611bc0600196979860025490611924565b611ae96117c1565b95808452828252848420878782015411600014611c125750808452828252600285852001611bf96104fa82546113c5565b600e6611195c1bdcda5d60ca1b0190555b835252200155565b600201611c226104fa82546113c5565b601067576974686472617760c01b019055611c0a565b96508087813d8311611c62575b611c4f8183611445565b810103126101d357955195611bc8611bab565b503d611c45565b84513d85823e3d90fd5b5083516370a0823160e01b8152600481018290528681602481305afa908115611cd1578491611ca4575b5015611b36565b90508681813d8311611cca575b611cbb8183611445565b810103126102cf575138611c9d565b503d611cb1565b85513d86823e3d90fd5b604080516370a0823160e01b8082526001600160a01b03909316600482018190526000936020928381602481305afa908115611e3f578691611e0e575b50151580611e03575b611d87575b5060008181526007835283902060018101548510611d6d5750906007916000525260002091611d696002611d61855494600187015490611944565b939401611467565b9190565b949350505050611d81600260009301611467565b90600090565b83949194519081528460048201528281602481305afa918215611df8578092611dc4575b5050611bc0611dbd9160025490611924565b9238611d26565b9091508282813d8311611df1575b611ddc8183611445565b81010312610912575051611bc0611dbd611dab565b503d611dd2565b8451903d90823e3d90fd5b506002541515611d21565b90508381813d8311611e38575b611e258183611445565b81010312611e34575138611d18565b8580fd5b503d611e1b565b85513d88823e3d90fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212206fe87cf0abc6b0eee58ac7c429791f3055bd14dfce9ac3e076ab9302d1b68d3864736f6c634300081400330000000000000000000000002691ba7548d552c116e5d4ac6de9b825fd36612a000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000962732d77732f7374730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000962732d77532f5354530000000000000000000000000000000000000000000000
Deployed Bytecode
0x6040608081526004908136101561001557600080fd5b600091823560e01c80628cc262146112e557806306fdde031461123b578063095ea7b31461119257806318160ddd146111735780631f1fcd511461114557806323b872dd146110525780632e1a7d4d14610edc578063313ce56714610ec057806336d7d3f814610d6f57806348a0d75414610d5257806370a0823114610d1b578063715018a614610cbd57806376dfabb814610c8857806377c7b8fc14610c0b5780637b510fe814610bb1578063853828b61461093e5780638da5cb5b1461091557806395d89b411461082a578063a8c62e7614610801578063a9059cbb146107d0578063b69ef8a8146107ac578063b6b55f2514610642578063dd62ed3e146105f4578063de5f6268146103ba578063deb906e71461035b578063e6685244146101d75763f2fde38b1461014957600080fd5b346101d35760203660031901126101d35761016261132e565b9061016b61150d565b6001600160a01b039182169283156101bd575050600654826001600160601b0360a01b821617600655167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a380f35b51631e4fbdf760e01b8152908101849052602490fd5b8280fd5b50346101d357826003193601126101d3576101f061150d565b6008546001600160a01b039290831680156103205760095462015180810180911161030d574211156102d357907f7f37d440e85aba7fbf641c4bda5ca4ef669a80bffaacde2aa8d9feb1b048c82c60208694938351908152a183600a541691823b156102cf57815163fb61778760e01b81529284918491829084905af19081156102c657506102ae575b50506008546001600160601b0360a01b91811682600a541617600a551660085564012a05f2006009556102ab611a07565b80f35b6102b7906113ff565b6102c257813861027a565b5080fd5b513d84823e3d90fd5b8380fd5b815162461bcd60e51b8152602081850152601460248201527311195b185e481a185cc81b9bdd081c185cdcd95960621b6044820152606490fd5b634e487b7160e01b865260118452602486fd5b815162461bcd60e51b815260208185015260156024820152745468657265206973206e6f2063616e64696461746560581b6044820152606490fd5b5050346102c25760203660031901126102c2579081906001600160a01b0361038161132e565b168152600760205220906103b682549160018401549360ff60036103a760028401611467565b9201541691519485948561139a565b0390f35b50346101d357826003193601126101d3576001600160a01b0391826103dd61175f565b1681519384916370a0823160e01b8352338584015282602460209485935afa9485156105ea5786956105b6575b506104136119e4565b8415610583578590600a5416803b156102c25781809186865180948193632b9ff78560e11b83525af1801561057957610561575b50506007906104926104576117c1565b9561046061175f565b8551916323b872dd60e01b8584015233602484015230604484015260648301526064825261048d82611429565b611988565b61049a611a07565b6104ab856104a66117c1565b611944565b600254909581610549575050845b83519081527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c823392a2338652526002818520016105006104fa82546113c5565b82611951565b600e6611195c1bdcda5d60ca1b01905561051a8333611aa6565b3315610533578361052b84336116e4565b600160055580f35b5163ec442f0560e01b8152908101839052602490fd5b61055661055b9288611911565b611924565b946104b9565b61056a906113ff565b610575578438610447565b8480fd5b84513d84823e3d90fd5b50905162461bcd60e51b815291820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152606490fd5b9094508181813d83116105e3575b6105ce8183611445565b810103126105de5751933861040a565b600080fd5b503d6105c4565b83513d88823e3d90fd5b5050346102c257806003193601126102c25760209161061161132e565b8261061a611344565b6001600160a01b03928316845260018652922091166000908152908352819020549051908152f35b50346101d35760203660031901126101d35780359161065f6119e4565b821561077857600a5484906001600160a01b0316803b156102c25781809185855180948193632b9ff78560e11b83525af1801561076e5761075a575b50506106df6106a86117c1565b936106b161175f565b8351916323b872dd60e01b602084015233602484015230604484015260648301526064825261048d82611429565b6106e7611a07565b6106f3836104a66117c1565b600254909381610747575050825b81519081527fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c60203392a233845260076020526002818520016105006104fa82546113c5565b6105566107549286611911565b92610701565b610763906113ff565b6102cf57833861069b565b83513d84823e3d90fd5b906020606492519162461bcd60e51b8352820152600e60248201526d125b9d985b1a5908185b5bdd5b9d60921b6044820152fd5b5050346102c257816003193601126102c2576020906107c96117c1565b9051908152f35b5050346102c257806003193601126102c2576020906107fa6107f061132e565b6024359033611539565b5160018152f35b5050346102c257816003193601126102c257600a5490516001600160a01b039091168152602090f35b50913461091257806003193601126109125750805190600092805461084e816113c5565b808552916001918083169081156108ea575060011461088c575b50505061087a826103b6940383611445565b5191829160208352602083019061135a565b600090815294507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8286106108d25750505061087a8260206103b69582010194610868565b805460208787018101919091529095019481016108b5565b6103b697508693506020925061087a94915060ff191682840152151560051b82010194610868565b80fd5b5050346102c257816003193601126102c25760065490516001600160a01b039091168152602090f35b50346101d357826003193601126101d35733835260209183835280842054926109656119e4565b610982610979856109746117c1565b611911565b60025490611924565b923315610b9a576109938533611628565b6001600160a01b03806109a461175f565b169184519084826024816370a0823160e01b9788825230868301525afa918215610b90578992610b61575b50868210610a4a575b8861052b88610a3c8b60028b60078c82518781527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364823392a233895252862001610a256104fa82546113c5565b601067576974686472617760c01b01905533611aa6565b33610a4561175f565b611a6a565b610a5982889795999698611944565b928981600a5416803b156102c2578180916024895180948193632e1a7d4d60e01b83528b8a8401525af18015610b5757908a94939291610b3a575b5050602490610aa161175f565b169986519a8b938492835230908301525afa968715610b30578897610aff575b50610acf8161052b98611944565b918210610ae1575b82949593966109d8565b610a3c9450610af560029392600792611605565b9450819250610ad7565b96508587813d8311610b29575b610b168183611445565b810103126105de57955195610acf610ac1565b503d610b0c565b83513d8a823e3d90fd5b610b46919294506113ff565b610b535787918a38610a94565b8980fd5b87513d84823e3d90fd5b9091508481813d8311610b89575b610b798183611445565b810103126105de575190386109cf565b503d610b6f565b86513d8b823e3d90fd5b8251634b637e8f60e11b8152908101869052602490fd5b5050346102c25760203660031901126102c2579081906001600160a01b03610bd761132e565b1681526007602052206103b6815491600181015493610c00600260ff6003850154169301611467565b90519485948561139a565b5091346109125780600319360112610912576002549081610c3d57505060209150670de0b6b3a7640000905b51908152f35b610c456117c1565b90670de0b6b3a764000091828102928184041490151715610c7557506020935090610c6f91611924565b90610c37565b634e487b7160e01b815260118552602490fd5b8284346109125780600319360112610912575060085460095491516001600160a01b0390911681526020810191909152604090f35b8334610912578060031936011261091257610cd661150d565b600680546001600160a01b031981169091556000906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b5050346102c25760203660031901126102c25760209181906001600160a01b03610d4361132e565b16815280845220549051908152f35b5050346102c257816003193601126102c2576020906107c96118a3565b509190346102c257602090816003193601126101d357610d8d61132e565b90610d9661150d565b805163fbfa77cf60e01b81526001600160a01b03928316929084818881875afa9081156105ea578691610e93575b50163003610e4757805181810181811067ffffffffffffffff821117610e32577f8a3493fb3a47f4ad752dfbeb8dc0b8ce6bb6c8a55a9cf69512ca5c2cc8768adb95965082528281528342910152816001600160601b0360a01b60085416176008554260095551908152a180f35b604187634e487b7160e01b6000525260246000fd5b5162461bcd60e51b8152808501839052602160248201527f50726f706f73616c206e6f742076616c696420666f722074686973205661756c6044820152601d60fa1b6064820152608490fd5b610eb39150853d8711610eb9575b610eab8183611445565b810190611740565b38610dc4565b503d610ea1565b5050346102c257816003193601126102c2576020905160128152f35b50346101d357602091826003193601126102cf57813592610efb6119e4565b610f0a610979856109746117c1565b923315610b9a57610f1b8533611628565b6001600160a01b0380610f2c61175f565b169184519084826024816370a0823160e01b9788825230868301525afa918215610b9057899261101f575b50868210610fac578861052b88610a3c8b60028b60078c82518781527f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364823392a233895252862001610a256104fa82546113c5565b610fbb82889795999698611944565b928981600a5416803b156102c25781906024885180948193632e1a7d4d60e01b83528a898401525af1801561101557610ffd575b509060248892610aa161175f565b8892919a61100c6024926113ff565b9a919250610fef565b86513d8d823e3d90fd5b9091508481813d831161104b575b6110378183611445565b8101031261104757519038610f57565b8880fd5b503d61102d565b5082346109125760603660031901126109125761106d61132e565b611075611344565b916044359360018060a01b0383168083526001602052868320338452602052868320549160001983036110b1575b6020886107fa898989611539565b8683106111195781156111025733156110eb575082526001602090815286832033845281529186902090859003905582906107fa876110a3565b8751634a1406b160e11b8152908101849052602490fd5b875163e602df0560e01b8152908101849052602490fd5b8751637dc7a0d960e11b8152339181019182526020820193909352604081018790528291506060010390fd5b5050346102c257816003193601126102c25760209061116261175f565b90516001600160a01b039091168152f35b5050346102c257816003193601126102c2576020906002549051908152f35b50346101d357816003193601126101d3576111ab61132e565b602435903315611224576001600160a01b031691821561120d57508083602095338152600187528181208582528752205582519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925843392a35160018152f35b8351634a1406b160e11b8152908101859052602490fd5b835163e602df0560e01b8152808401869052602490fd5b5050346102c257816003193601126102c2578051908260035461125d816113c5565b808552916001918083169081156108ea57506001146112885750505061087a826103b6940383611445565b9450600385527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8286106112cd5750505061087a8260206103b69582010194610868565b805460208787018101919091529095019481016112b0565b828434610912576020366003190112610912575061130961130461132e565b611cdb565b61132684929451948594855260606020860152606085019061135a565b918301520390f35b600435906001600160a01b03821682036105de57565b602435906001600160a01b03821682036105de57565b919082519283825260005b848110611386575050826000602080949584010152601f8019910116010190565b602081830181015184830182015201611365565b926060926113bd929695968552602085015260806040850152608084019061135a565b931515910152565b90600182811c921680156113f5575b60208310146113df57565b634e487b7160e01b600052602260045260246000fd5b91607f16916113d4565b67ffffffffffffffff811161141357604052565b634e487b7160e01b600052604160045260246000fd5b60a0810190811067ffffffffffffffff82111761141357604052565b90601f8019910116810190811067ffffffffffffffff82111761141357604052565b906040519182600082549261147b846113c5565b9081845260019485811690816000146114ea57506001146114a7575b50506114a592500383611445565b565b9093915060005260209081600020936000915b8183106114d25750506114a593508201013880611497565b855488840185015294850194879450918301916114ba565b9150506114a594506020925060ff191682840152151560051b8201013880611497565b6006546001600160a01b0316330361152157565b60405163118cdaa760e01b8152336004820152602490fd5b916001600160a01b038084169283156115ec57169283156115d357600090838252816020526040822054908382106115a157509160408282600080516020611e4a833981519152958760209652828652038282205586815220818154019055604051908152a3565b60405163391434e360e21b81526001600160a01b03919091166004820152602481019190915260448101839052606490fd5b60405163ec442f0560e01b815260006004820152602490fd5b604051634b637e8f60e11b815260006004820152602490fd5b9190820180921161161257565b634e487b7160e01b600052601160045260246000fd5b9091906001600160a01b03811690816116725750600080516020611e4a83398151915260208461165d60009596600254611605565b6002555b8060025403600255604051908152a3565b926000828152806020526040812054948286106116b3575081816040600080516020611e4a8339815191529460009798876020965283865203912055611661565b60405163391434e360e21b81526001600160a01b039190911660048201526024810186905260448101839052606490fd5b600080516020611e4a833981519152602060009261170485600254611605565b6002556001600160a01b0316938415841461172b5780600254036002555b604051908152a3565b84845283825260408420818154019055611722565b908160209103126105de57516001600160a01b03811681036105de5790565b600a54604051630b71f5d360e21b81526001600160a01b03916020908290600490829086165afa9081156117b55760009161179957501690565b6117b1915060203d8111610eb957610eab8183611445565b1690565b6040513d6000823e3d90fd5b6001600160a01b0390816117d361175f565b169160405180936370a0823160e01b825230600483015281602460209687935afa9182156117b5578491600093611870575b50600a5460405163722713f760e01b8152929183916004918391165afa9384156117b557600094611841575b50509161183e9192611605565b90565b81813d8311611869575b6118558183611445565b810103126102cf5751925061183e38611831565b503d61184b565b9182819492943d831161189c575b6118888183611445565b810103126109125750519083906004611805565b503d61187e565b602460206001600160a01b036118b761175f565b16604051928380926370a0823160e01b82523060048301525afa9081156117b5576000916118e3575090565b906020823d8211611909575b816118fc60209383611445565b8101031261091257505190565b3d91506118ef565b8181029291811591840414171561161257565b811561192e570490565b634e487b7160e01b600052601260045260246000fd5b9190820391821161161257565b601f821161195d575050565b6000908152601f60208220920160051c8201915b82811061197d57505050565b818155600101611971565b906000602091828151910182855af1156117b5576000513d6119db57506001600160a01b0381163b155b6119b95750565b604051635274afe760e01b81526001600160a01b039091166004820152602490fd5b600114156119b2565b6002600554146119f5576002600555565b604051633ee5aeb560e01b8152600490fd5b611a0f6118a3565b611a30611a1a61175f565b600a546001600160a01b03939190841690611a6a565b600a5416803b156105de5760008091600460405180948193630d0e30db60e41b83525af180156117b557611a615750565b6114a5906113ff565b60405163a9059cbb60e01b60208201526001600160a01b039290921660248301526044808301939093529181526114a59161048d606483611445565b6001600160a01b031660008181526007602081815260408084204281556003015491969590949160ff1680611b2e5750906002611aef6003979893611ae96117c1565b90611911565b82865284845286862090600182015501611b0c6104fa82546113c5565b600e6611195c1bdcda5d60ca1b0190558352522001805460ff19166001179055565b905080611c73575b15611b7f579485600395968452828252600285852085600182015501611b5f6104fa82546113c5565b601067576974686472617760c01b0190558352522001805460ff19169055565b9291908251956370a0823160e01b87528460048801528087602481305afa968715611c69578397611c38575b50611bc8611bc0600196979860025490611924565b611ae96117c1565b95808452828252848420878782015411600014611c125750808452828252600285852001611bf96104fa82546113c5565b600e6611195c1bdcda5d60ca1b0190555b835252200155565b600201611c226104fa82546113c5565b601067576974686472617760c01b019055611c0a565b96508087813d8311611c62575b611c4f8183611445565b810103126101d357955195611bc8611bab565b503d611c45565b84513d85823e3d90fd5b5083516370a0823160e01b8152600481018290528681602481305afa908115611cd1578491611ca4575b5015611b36565b90508681813d8311611cca575b611cbb8183611445565b810103126102cf575138611c9d565b503d611cb1565b85513d86823e3d90fd5b604080516370a0823160e01b8082526001600160a01b03909316600482018190526000936020928381602481305afa908115611e3f578691611e0e575b50151580611e03575b611d87575b5060008181526007835283902060018101548510611d6d5750906007916000525260002091611d696002611d61855494600187015490611944565b939401611467565b9190565b949350505050611d81600260009301611467565b90600090565b83949194519081528460048201528281602481305afa918215611df8578092611dc4575b5050611bc0611dbd9160025490611924565b9238611d26565b9091508282813d8311611df1575b611ddc8183611445565b81010312610912575051611bc0611dbd611dab565b503d611dd2565b8451903d90823e3d90fd5b506002541515611d21565b90508381813d8311611e38575b611e258183611445565b81010312611e34575138611d18565b8580fd5b503d611e1b565b85513d88823e3d90fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212206fe87cf0abc6b0eee58ac7c429791f3055bd14dfce9ac3e076ab9302d1b68d3864736f6c63430008140033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002691ba7548d552c116e5d4ac6de9b825fd36612a000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000962732d77732f7374730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000962732d77532f5354530000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _strategy (address): 0x2691bA7548D552c116e5D4AC6DE9b825fD36612a
Arg [1] : _name (string): bs-ws/sts
Arg [2] : _symbol (string): bs-wS/STS
-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000002691ba7548d552c116e5d4ac6de9b825fd36612a
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [4] : 62732d77732f7374730000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000009
Arg [6] : 62732d77532f5354530000000000000000000000000000000000000000000000
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.