ERC-20
DeFi
Overview
Max Total Supply
82.880040988139882887 vETH
Holders
284 ( 0.352%)
Market
Price
$3,649.24 @ 0.975778 ETH (+1.22%)
Onchain Market Cap
$302,449.16
Circulating Supply Market Cap
$302,449.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.005603093600558827 vETHValue
$20.45 ( ~0.00546816606385161 Eth) [0.0068%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
VectorETH
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.19; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; contract VectorETH is ERC20, Ownable { /// DEPENDENCIES /// using SafeERC20 for IERC20; /// STATE VARIABLES /// /// @notice Array of approved restaked LSTs address[] public approvedRestakedLSTs; /// @notice Amount of total token deposited mapping(address => uint256) public totalRestakedLSTDeposited; /// @notice Amount of token managed mapping(address => uint256) public restakedLSTManaged; /// @notice Amount of vETH for token mapping(address => uint256) public vETHPerRestakedLST; /// @notice Address to send token to mapping(address => address) public routeRestakedLSTTo; /// @notice Bool if address is restaked LST mapping(address => bool) public restakedLST; /// @notice Bool if address is approved manager mapping(address => bool) public approvedManager; /// @notice Bool if redemtions are active bool public redemtionsActive; /// @notice Bool if deposits are open bool public depositsOpen; /// @notice Number of approved tokens uint256 public approvedTokens; /// EVENTS /// event Deposit(address indexed staker, uint256 vETHReceived); event Redeemed(address indexed staker, uint256 vETHBurned); event TokenBalanceUpdated(address indexed token, uint256 newBalance); event RestakedLSTAdded(address tokenAdded, uint256 vETHPerToken); event RestakedLSTRemoved(address tokenRemoved); event vETHPerTokenUpdated(address restakedLST, uint256 vETHPerToken); event TokenRouteUpdated(address restakedLST, address routedTo); event RedemtionsActivated(); event RedemtionUnactivated(); event ApprovedManagerAdded(address approvedManager); event ApprovedManagerRemoved(address removedManaged); event TokenManaged(address indexed byAddress, address indexed tokenManaged, uint256 amountManaged); event TokenManagedReaded(address indexed fromAddress, address indexed tokenAdded, uint256 amountAdded); event DepositsOpened(); /// CONSTRUCTOR /// constructor() ERC20("Vector ETH", "vETH") {} /// MUTATIVE FUNCTIONS /// /// @notice Deposit `_restakedLST` to receive vETH /// @param _restakedLST Restaked LST to deposit /// @param _to Address to send minted vETH to /// @param _amount Amount of `_restakedLST` to deposit function deposit( address _restakedLST, address _to, uint256 _amount ) external { if (!depositsOpen) require(msg.sender == owner(), "Deposits not open"); require(restakedLST[_restakedLST], "Not approved restaked LST"); require(_amount > 0, "Can not deposit 0"); uint256 _amountToMint = (vETHPerRestakedLST[_restakedLST] * _amount) / (10 ** IERC20Metadata(_restakedLST).decimals()); _mint(_to, _amountToMint); emit Deposit(_to, _amountToMint); totalRestakedLSTDeposited[_restakedLST] += _amount; if (routeRestakedLSTTo[_restakedLST] == address(0)) { IERC20(_restakedLST).safeTransferFrom( _msgSender(), address(this), _amount ); } else { IERC20(_restakedLST).safeTransferFrom( _msgSender(), routeRestakedLSTTo[_restakedLST], _amount ); restakedLSTManaged[_restakedLST] += _amount; } } /// @notice Redeem vETH to receive `_restakedLSTToReceive` /// @param _restakedLSTToReceive Restaked LST to receive /// @param _to Address to send receive redeemed `_restakedLSTToReceive` /// @param _vETHToRedeem Amount of vETH to redeem function redeem( address _restakedLSTToReceive, address _to, uint256 _vETHToRedeem ) external { require(redemtionsActive, "Redemtions not active"); require(restakedLST[_restakedLSTToReceive], "Not restaked LST"); uint256 _restakedLSTToSend = ((10 ** IERC20Metadata(_restakedLSTToReceive).decimals()) * _vETHToRedeem) / vETHPerRestakedLST[_restakedLSTToReceive]; require( totalRestakedLSTDeposited[_restakedLSTToReceive] >= _restakedLSTToSend, "Not enough funds to redeem LST" ); totalRestakedLSTDeposited[_restakedLSTToReceive] -= _restakedLSTToSend; _burn(_msgSender(), _vETHToRedeem); IERC20(_restakedLSTToReceive).safeTransfer(_to, _restakedLSTToSend); emit Redeemed(_to, _vETHToRedeem); } /// @notice Update balaces of restaked LST /// @param _restakedLST Address of restaked LST to update function updateDeposit(address _restakedLST) public { uint256 totalDepositsInContract = totalRestakedLSTDeposited[ _restakedLST ] - restakedLSTManaged[_restakedLST]; uint256 accruedLST = IERC20(_restakedLST).balanceOf(address(this)) - totalDepositsInContract; totalRestakedLSTDeposited[_restakedLST] += accruedLST; emit TokenBalanceUpdated( _restakedLST, totalRestakedLSTDeposited[_restakedLST] ); } /// OWNER FUNCTION /// /// @notice Add restaked LST /// @param _restakedLST Address of restaked LST to add /// @param _vETHPerLST Amount of vETH per `_restakedLST` function addRestakedLST( address _restakedLST, uint256 _vETHPerLST ) external onlyOwner { require(!restakedLST[_restakedLST], "Already added"); restakedLST[_restakedLST] = true; vETHPerRestakedLST[_restakedLST] = _vETHPerLST; approvedRestakedLSTs.push(_restakedLST); ++approvedTokens; emit RestakedLSTAdded(_restakedLST, _vETHPerLST); } /// @notice Remove `_restakedLST` /// @param _restakedLST Address of restaked LST to remove function removeRestakedLST(address _restakedLST) external onlyOwner { require(restakedLST[_restakedLST], "Not restaked LST"); restakedLST[_restakedLST] = false; vETHPerRestakedLST[_restakedLST] = 0; uint256 _arrLength = approvedRestakedLSTs.length; for (uint i; i < _arrLength; ++i) { if (approvedRestakedLSTs[i] == _restakedLST) { approvedRestakedLSTs[i] = approvedRestakedLSTs[_arrLength - 1]; approvedRestakedLSTs.pop(); break; } } --approvedTokens; emit RestakedLSTRemoved(_restakedLST); } /// @notice Update amount of vETH per `_restakedLST` /// @param _restakedLST Address of restaked LST to update `_vETHPerLST` for /// @param _vETHPerLST Amount of vETH per `_restakedLST` function updatevETHPerLST( address _restakedLST, uint256 _vETHPerLST ) external onlyOwner { require(restakedLST[_restakedLST], "Not restaked LST"); vETHPerRestakedLST[_restakedLST] = _vETHPerLST; emit vETHPerTokenUpdated(_restakedLST, _vETHPerLST); } /// @notice Update address to route `_restakedLST` to /// @param _restakedLST Address of restaked LST to add where to route /// @param _where Address of where to route `_restakedLST` function updateRouteRestakedLSTTo( address _restakedLST, address _where ) external onlyOwner { require(restakedLST[_restakedLST], "Not restaked LST"); routeRestakedLSTTo[_restakedLST] = _where; emit TokenRouteUpdated(_restakedLST, _where); } /// @notice Set redemtions active function setRedemtionActive() external onlyOwner { redemtionsActive = true; emit RedemtionsActivated(); } /// @notice Set redemtions unactive function setRedemtionUnactive() external onlyOwner { redemtionsActive = false; emit RedemtionUnactivated(); } /// @notice Add approved manager function addApprovedManager(address _manager) external onlyOwner { approvedManager[_manager] = true; emit ApprovedManagerAdded(_manager); } /// @notice Remove approved manage function removeApprovedManager(address _manager) external onlyOwner { approvedManager[_manager] = false; emit ApprovedManagerRemoved(_manager); } /// @notice Recover tokens /// @param _to Address to send recovered tokens /// @param _token Address of token to recover /// @param _amount Amount of token to recover function recoverTokens( address _to, address _token, uint256 _amount ) external onlyOwner { require(!restakedLST[_token], "Can Not transfer restaked LST"); IERC20(_token).safeTransfer(_to, _amount); } /// @notice Open deposits function openDeposits() external onlyOwner { require(!depositsOpen, "Deposits already opened"); depositsOpen = true; emit DepositsOpened(); } /// MANAGER FUNCTIONS /// /// @notice Manage restaked LST /// @param _restakedLST Address of restaked LST to manage /// @param _to Address of where to send `_amount` of `_restakedLST` /// @param _amount Amount to manage function manageRestakedLST( address _restakedLST, address _to, uint256 _amount ) external { require(approvedManager[msg.sender], "Not approved manager"); require(restakedLST[_restakedLST], "Not restaked LST"); updateDeposit(_restakedLST); IERC20(_restakedLST).safeTransfer(_to, _amount); restakedLSTManaged[_restakedLST] += _amount; emit TokenManaged(msg.sender, _restakedLST, _amount); } /// @notice Add back managed restaked LST /// @param _restakedLST Address of restaked LST to add back /// @param _amount Amount to add back manage function addMangedRestakedLST( address _restakedLST, uint256 _amount ) external { require(approvedManager[msg.sender], "Not approved manager"); require(restakedLST[_restakedLST], "Not restaked LST"); if (_amount > restakedLSTManaged[_restakedLST]) restakedLSTManaged[_restakedLST] = 0; else restakedLSTManaged[_restakedLST] -= _amount; IERC20(_restakedLST).safeTransferFrom(msg.sender, address(this), _amount); emit TokenManagedReaded(msg.sender, _restakedLST, _amount); } /// VIEW FUNCTIONS /// /// @notice Returns amount of `_restakedLST` the contract has, including that being managed /// @param _restakedLST Address of restaked LST to check balance for /// @return _balance Balance of `_restakedLST` for contract function currentBalance( address _restakedLST ) external view returns (uint256 _balance) { uint256 totalDepositsInContract = totalRestakedLSTDeposited[ _restakedLST ] - restakedLSTManaged[_restakedLST]; uint256 accruedLST = IERC20(_restakedLST).balanceOf(address(this)) - totalDepositsInContract; return totalRestakedLSTDeposited[_restakedLST] + accruedLST; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../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. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @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 { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.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}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * 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 ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => 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 override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override 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 `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` 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 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * 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 `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `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. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` 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. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ 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 v4.9.0) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ 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 amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @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. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @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 silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://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.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) 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 /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with 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; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":false,"internalType":"address","name":"approvedManager","type":"address"}],"name":"ApprovedManagerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"removedManaged","type":"address"}],"name":"ApprovedManagerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"vETHReceived","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[],"name":"DepositsOpened","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"vETHBurned","type":"uint256"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[],"name":"RedemtionUnactivated","type":"event"},{"anonymous":false,"inputs":[],"name":"RedemtionsActivated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAdded","type":"address"},{"indexed":false,"internalType":"uint256","name":"vETHPerToken","type":"uint256"}],"name":"RestakedLSTAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenRemoved","type":"address"}],"name":"RestakedLSTRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"TokenBalanceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"byAddress","type":"address"},{"indexed":true,"internalType":"address","name":"tokenManaged","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountManaged","type":"uint256"}],"name":"TokenManaged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fromAddress","type":"address"},{"indexed":true,"internalType":"address","name":"tokenAdded","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountAdded","type":"uint256"}],"name":"TokenManagedReaded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"restakedLST","type":"address"},{"indexed":false,"internalType":"address","name":"routedTo","type":"address"}],"name":"TokenRouteUpdated","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":"restakedLST","type":"address"},{"indexed":false,"internalType":"uint256","name":"vETHPerToken","type":"uint256"}],"name":"vETHPerTokenUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"addApprovedManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_restakedLST","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"addMangedRestakedLST","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_restakedLST","type":"address"},{"internalType":"uint256","name":"_vETHPerLST","type":"uint256"}],"name":"addRestakedLST","outputs":[],"stateMutability":"nonpayable","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":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedManager","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"approvedRestakedLSTs","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"approvedTokens","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":[{"internalType":"address","name":"_restakedLST","type":"address"}],"name":"currentBalance","outputs":[{"internalType":"uint256","name":"_balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_restakedLST","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_restakedLST","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"manageRestakedLST","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_restakedLSTToReceive","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_vETHToRedeem","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redemtionsActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_manager","type":"address"}],"name":"removeApprovedManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_restakedLST","type":"address"}],"name":"removeRestakedLST","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"restakedLST","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"restakedLSTManaged","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"routeRestakedLSTTo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setRedemtionActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setRedemtionUnactive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"totalRestakedLSTDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"amount","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":"amount","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":[{"internalType":"address","name":"_restakedLST","type":"address"}],"name":"updateDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_restakedLST","type":"address"},{"internalType":"address","name":"_where","type":"address"}],"name":"updateRouteRestakedLSTTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_restakedLST","type":"address"},{"internalType":"uint256","name":"_vETHPerLST","type":"uint256"}],"name":"updatevETHPerLST","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vETHPerRestakedLST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040518060400160405280600a8152602001690accac6e8dee4408aa8960b31b815250604051806040016040528060048152602001630ec8aa8960e31b815250816003908162000063919062000190565b50600462000072828262000190565b5050506200008f620000896200009560201b60201c565b62000099565b6200025c565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200011657607f821691505b6020821081036200013757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200018b57600081815260208120601f850160051c81016020861015620001665750805b601f850160051c820191505b81811015620001875782815560010162000172565b5050505b505050565b81516001600160401b03811115620001ac57620001ac620000eb565b620001c481620001bd845462000101565b846200013d565b602080601f831160018114620001fc5760008415620001e35750858301515b600019600386901b1c1916600185901b17855562000187565b600085815260208120601f198616915b828110156200022d578886015182559484019460019091019084016200020c565b50858210156200024c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61279a806200026c6000396000f3fe608060405234801561001057600080fd5b50600436106102c85760003560e01c806395d89b411161017b578063d59c8a36116100d8578063f21594161161008c578063f3d88cb311610071578063f3d88cb3146105fb578063fa7292621461060e578063ff15c7731461062157600080fd5b8063f2159416146105bf578063f2fde38b146105e857600080fd5b8063dd62ed3e116100bd578063dd62ed3e14610553578063e8836d4a1461058c578063eca478401461059f57600080fd5b8063d59c8a3614610520578063d60e12171461054057600080fd5b8063a9059cbb1161012f578063c3f81cc511610114578063c3f81cc5146104e2578063c4ecdee4146104ea578063c53a2ced146104fd57600080fd5b8063a9059cbb146104bc578063b3961af6146104cf57600080fd5b806396c705e51161016057806396c705e51461048d5780639e546c3814610496578063a457c2d7146104a957600080fd5b806395d89b411461047857806396be161a1461048057600080fd5b8063549c46271161022957806370a08231116101dd57806375a44363116101c257806375a44363146104385780638340f549146104405780638da5cb5b1461045357600080fd5b806370a0823114610407578063715018a61461043057600080fd5b806360303ff41161020e57806360303ff4146103d957806366f114e9146103e15780636af67546146103f457600080fd5b8063549c4627146103b45780635f3e849f146103c657600080fd5b80632332519111610280578063313ce56711610265578063313ce5671461037f578063395093511461038e57806347a2797e146103a157600080fd5b8063233251911461035957806323b872dd1461036c57600080fd5b8063095ea7b3116102b1578063095ea7b3146103195780630e6dfcd51461033c57806318160ddd1461035157600080fd5b806306fdde03146102cd57806308195ee6146102eb575b600080fd5b6102d5610644565b6040516102e291906123c9565b60405180910390f35b61030b6102f9366004612418565b60076020526000908152604090205481565b6040519081526020016102e2565b61032c61032736600461243a565b6106d6565b60405190151581526020016102e2565b61034f61034a366004612464565b6106f0565b005b60025461030b565b61034f61036736600461243a565b61094c565b61032c61037a366004612464565b610acc565b604051601281526020016102e2565b61032c61039c36600461243a565b610af0565b61034f6103af366004612464565b610b2f565b600d5461032c90610100900460ff1681565b61034f6103d4366004612464565b610c79565b61034f610d03565b61034f6103ef3660046124a0565b610d43565b61034f610402366004612418565b610e1f565b61030b610415366004612418565b6001600160a01b031660009081526020819052604090205490565b61034f61100c565b61034f611020565b61034f61044e366004612464565b61105d565b6005546001600160a01b03165b6040516001600160a01b0390911681526020016102e2565b6102d561132b565b600d5461032c9060ff1681565b61030b600e5481565b61030b6104a4366004612418565b61133a565b61032c6104b736600461243a565b611412565b61032c6104ca36600461243a565b6114bc565b61034f6104dd366004612418565b6114ca565b61034f61152a565b61034f6104f836600461243a565b6115c4565b61032c61050b366004612418565b600c6020526000908152604090205460ff1681565b61030b61052e366004612418565b60096020526000908152604090205481565b61034f61054e366004612418565b611678565b61030b6105613660046124a0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61034f61059a366004612418565b6116d4565b61030b6105ad366004612418565b60086020526000908152604090205481565b6104606105cd366004612418565b600a602052600090815260409020546001600160a01b031681565b61034f6105f6366004612418565b611800565b6104606106093660046124d3565b611890565b61034f61061c36600461243a565b6118ba565b61032c61062f366004612418565b600b6020526000908152604090205460ff1681565b606060038054610653906124ec565b80601f016020809104026020016040519081016040528092919081815260200182805461067f906124ec565b80156106cc5780601f106106a1576101008083540402835291602001916106cc565b820191906000526020600020905b8154815290600101906020018083116106af57829003601f168201915b5050505050905090565b6000336106e48185856119fd565b60019150505b92915050565b600d5460ff166107475760405162461bcd60e51b815260206004820152601560248201527f526564656d74696f6e73206e6f7420616374697665000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b0383166000908152600b602052604090205460ff166107a25760405162461bcd60e51b815260206004820152601060248201526f139bdd081c995cdd185ad959081314d560821b604482015260640161073e565b600060096000856001600160a01b03166001600160a01b031681526020019081526020016000205482856001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610809573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082d9190612526565b61083890600a612643565b6108429190612652565b61084c9190612669565b6001600160a01b0385166000908152600760205260409020549091508111156108b75760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420656e6f7567682066756e647320746f2072656465656d204c53540000604482015260640161073e565b6001600160a01b038416600090815260076020526040812080548392906108df90849061268b565b909155506108ef90503383611b4d565b6109036001600160a01b0385168483611cb6565b826001600160a01b03167f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b93698360405161093e91815260200190565b60405180910390a250505050565b336000908152600c602052604090205460ff166109ab5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420617070726f766564206d616e61676572000000000000000000000000604482015260640161073e565b6001600160a01b0382166000908152600b602052604090205460ff16610a065760405162461bcd60e51b815260206004820152601060248201526f139bdd081c995cdd185ad959081314d560821b604482015260640161073e565b6001600160a01b038216600090815260086020526040902054811115610a44576001600160a01b038216600090815260086020526040812055610a72565b6001600160a01b03821660009081526008602052604081208054839290610a6c90849061268b565b90915550505b610a876001600160a01b038316333084611d5f565b6040518181526001600160a01b0383169033907fa7fd4c9c28dd3fd667f7b40000eaa499f3aabca6455ef44a5e0353dc7b48c165906020015b60405180910390a35050565b600033610ada858285611db0565b610ae5858585611e3c565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906106e49082908690610b2a90879061269e565b6119fd565b336000908152600c602052604090205460ff16610b8e5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420617070726f766564206d616e61676572000000000000000000000000604482015260640161073e565b6001600160a01b0383166000908152600b602052604090205460ff16610be95760405162461bcd60e51b815260206004820152601060248201526f139bdd081c995cdd185ad959081314d560821b604482015260640161073e565b610bf2836116d4565b610c066001600160a01b0384168383611cb6565b6001600160a01b03831660009081526008602052604081208054839290610c2e90849061269e565b90915550506040518181526001600160a01b0384169033907f6575fcff0d82da58f4778580adc86f7932e8dae160f7202cd12a50304f9022ae906020015b60405180910390a3505050565b610c81612029565b6001600160a01b0382166000908152600b602052604090205460ff1615610cea5760405162461bcd60e51b815260206004820152601d60248201527f43616e204e6f74207472616e736665722072657374616b6564204c5354000000604482015260640161073e565b610cfe6001600160a01b0383168483611cb6565b505050565b610d0b612029565b600d805460ff191660011790556040517f4970bdaa4064103d1bed778693908e0ff28014070ecf559f34387aa7ae8746ca90600090a1565b610d4b612029565b6001600160a01b0382166000908152600b602052604090205460ff16610da65760405162461bcd60e51b815260206004820152601060248201526f139bdd081c995cdd185ad959081314d560821b604482015260640161073e565b6001600160a01b038281166000818152600a6020908152604091829020805473ffffffffffffffffffffffffffffffffffffffff1916948616948517905581519283528201929092527f7a67ca1f57903f175257511522d890735fbbc27954f1f89cde5a8cc0de5505ed91015b60405180910390a15050565b610e27612029565b6001600160a01b0381166000908152600b602052604090205460ff16610e825760405162461bcd60e51b815260206004820152601060248201526f139bdd081c995cdd185ad959081314d560821b604482015260640161073e565b6001600160a01b0381166000908152600b60209081526040808320805460ff1916905560099091528120819055600654905b81811015610fbf57826001600160a01b031660068281548110610ed957610ed96126b1565b6000918252602090912001546001600160a01b031603610faf576006610f0060018461268b565b81548110610f1057610f106126b1565b600091825260209091200154600680546001600160a01b039092169183908110610f3c57610f3c6126b1565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506006805480610f7b57610f7b6126c7565b6000828152602090208101600019908101805473ffffffffffffffffffffffffffffffffffffffff19169055019055610fbf565b610fb8816126dd565b9050610eb4565b50600e60008154610fcf906126f6565b909155506040516001600160a01b03831681527f5521ba30e01d3b6624049ade770a53b3c7f2f37336f0d29eefb3d88976a78a5090602001610e13565b611014612029565b61101e6000612083565b565b611028612029565b600d805460ff191690556040517f950c628a0800376ef5559fb6018224eb67fe5428d1c91265dea13b624daade7890600090a1565b600d54610100900460ff166110c6576005546001600160a01b031633146110c65760405162461bcd60e51b815260206004820152601160248201527f4465706f73697473206e6f74206f70656e000000000000000000000000000000604482015260640161073e565b6001600160a01b0383166000908152600b602052604090205460ff1661112e5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420617070726f7665642072657374616b6564204c535400000000000000604482015260640161073e565b6000811161117e5760405162461bcd60e51b815260206004820152601160248201527f43616e206e6f74206465706f7369742030000000000000000000000000000000604482015260640161073e565b6000836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e29190612526565b6111ed90600a612643565b6001600160a01b038516600090815260096020526040902054611211908490612652565b61121b9190612669565b905061122783826120e2565b826001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c8260405161126291815260200190565b60405180910390a26001600160a01b0384166000908152600760205260408120805484929061129290849061269e565b90915550506001600160a01b038481166000908152600a6020526040902054166112d0576112cb6001600160a01b038516333085611d5f565b611325565b6001600160a01b038481166000818152600a60205260409020546112f79233911685611d5f565b6001600160a01b0384166000908152600860205260408120805484929061131f90849061269e565b90915550505b50505050565b606060048054610653906124ec565b6001600160a01b038116600090815260086020908152604080832054600790925282205482916113699161268b565b6040516370a0823160e01b815230600482015290915060009082906001600160a01b038616906370a0823190602401602060405180830381865afa1580156113b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d9919061270d565b6113e3919061268b565b6001600160a01b03851660009081526007602052604090205490915061140a90829061269e565b949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156114af5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161073e565b610ae582868684036119fd565b6000336106e4818585611e3c565b6114d2612029565b6001600160a01b0381166000818152600c6020908152604091829020805460ff1916905590519182527f1baf958f35b2f9f5101da644dfa498b61850ef0e1d4bac1cceb9e759929aea4691015b60405180910390a150565b611532612029565b600d54610100900460ff161561158a5760405162461bcd60e51b815260206004820152601760248201527f4465706f7369747320616c7265616479206f70656e6564000000000000000000604482015260640161073e565b600d805461ff0019166101001790556040517fbd0d1cedfd4b96931ddded2368f63c090b88e5e313b383f6f95480bd4835acde90600090a1565b6115cc612029565b6001600160a01b0382166000908152600b602052604090205460ff166116275760405162461bcd60e51b815260206004820152601060248201526f139bdd081c995cdd185ad959081314d560821b604482015260640161073e565b6001600160a01b038216600081815260096020908152604091829020849055815192835282018390527fb17332318aa2c6e1338beb2b53ac19707f1a79cf215f4ac2cb3a40923820967a9101610e13565b611680612029565b6001600160a01b0381166000818152600c6020908152604091829020805460ff1916600117905590519182527f5ea5c05050a8c10862f7c18e9dc7f4e70eb53881a67a1f7b55e562a65dfc7109910161151f565b6001600160a01b0381166000908152600860209081526040808320546007909252822054611702919061268b565b6040516370a0823160e01b815230600482015290915060009082906001600160a01b038516906370a0823190602401602060405180830381865afa15801561174e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611772919061270d565b61177c919061268b565b6001600160a01b0384166000908152600760205260408120805492935083929091906117a990849061269e565b90915550506001600160a01b0383166000818152600760209081526040918290205491519182527fe45c01138e54bb610afd62c8b625077319978702155f247426c51b533c04c5d2910160405180910390a2505050565b611808612029565b6001600160a01b0381166118845760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161073e565b61188d81612083565b50565b600681815481106118a057600080fd5b6000918252602090912001546001600160a01b0316905081565b6118c2612029565b6001600160a01b0382166000908152600b602052604090205460ff161561192b5760405162461bcd60e51b815260206004820152600d60248201527f416c726561647920616464656400000000000000000000000000000000000000604482015260640161073e565b6001600160a01b0382166000818152600b60209081526040808320805460ff191660019081179091556009909252822084905560068054918201815582527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff1916909217909155600e80549091906119ba906126dd565b90915550604080516001600160a01b0384168152602081018390527f45db53fa0ccfc42c516974052a8699fd6a35f22b3a961ef319fc36ee4a258ac69101610e13565b6001600160a01b038316611a785760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b038216611af45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610c6c565b6001600160a01b038216611bc95760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b03821660009081526020819052604090205481811015611c585760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6040516001600160a01b038316602482015260448101829052610cfe9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261219a565b6040516001600160a01b03808516602483015283166044820152606481018290526113259085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611cfb565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146113255781811015611e2f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161073e565b61132584848484036119fd565b6001600160a01b038316611eb85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b038216611f345760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b03831660009081526020819052604090205481811015611fc35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611325565b6005546001600160a01b0316331461101e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073e565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166121385760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161073e565b806002600082825461214a919061269e565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610ac0565b60006121ef826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122829092919063ffffffff16565b90508051600014806122105750808060200190518101906122109190612726565b610cfe5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161073e565b606061140a848460008585600080866001600160a01b031685876040516122a99190612748565b60006040518083038185875af1925050503d80600081146122e6576040519150601f19603f3d011682016040523d82523d6000602084013e6122eb565b606091505b50915091506122fc87838387612307565b979650505050505050565b6060831561237657825160000361236f576001600160a01b0385163b61236f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161073e565b508161140a565b61140a838381511561238b5781518083602001fd5b8060405162461bcd60e51b815260040161073e91906123c9565b60005b838110156123c05781810151838201526020016123a8565b50506000910152565b60208152600082518060208401526123e88160408501602087016123a5565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461241357600080fd5b919050565b60006020828403121561242a57600080fd5b612433826123fc565b9392505050565b6000806040838503121561244d57600080fd5b612456836123fc565b946020939093013593505050565b60008060006060848603121561247957600080fd5b612482846123fc565b9250612490602085016123fc565b9150604084013590509250925092565b600080604083850312156124b357600080fd5b6124bc836123fc565b91506124ca602084016123fc565b90509250929050565b6000602082840312156124e557600080fd5b5035919050565b600181811c9082168061250057607f821691505b60208210810361252057634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561253857600080fd5b815160ff8116811461243357600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561259a57816000190482111561258057612580612549565b8085161561258d57918102915b93841c9390800290612564565b509250929050565b6000826125b1575060016106ea565b816125be575060006106ea565b81600181146125d457600281146125de576125fa565b60019150506106ea565b60ff8411156125ef576125ef612549565b50506001821b6106ea565b5060208310610133831016604e8410600b841016171561261d575081810a6106ea565b612627838361255f565b806000190482111561263b5761263b612549565b029392505050565b600061243360ff8416836125a2565b80820281158282048414176106ea576106ea612549565b60008261268657634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156106ea576106ea612549565b808201808211156106ea576106ea612549565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b6000600182016126ef576126ef612549565b5060010190565b60008161270557612705612549565b506000190190565b60006020828403121561271f57600080fd5b5051919050565b60006020828403121561273857600080fd5b8151801515811461243357600080fd5b6000825161275a8184602087016123a5565b919091019291505056fea26469706673582212204709ce247730141a656dd5a34b288a46ae3afdbcd4b2dc5b2d1820cdfc6bde1f64736f6c63430008130033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106102c85760003560e01c806395d89b411161017b578063d59c8a36116100d8578063f21594161161008c578063f3d88cb311610071578063f3d88cb3146105fb578063fa7292621461060e578063ff15c7731461062157600080fd5b8063f2159416146105bf578063f2fde38b146105e857600080fd5b8063dd62ed3e116100bd578063dd62ed3e14610553578063e8836d4a1461058c578063eca478401461059f57600080fd5b8063d59c8a3614610520578063d60e12171461054057600080fd5b8063a9059cbb1161012f578063c3f81cc511610114578063c3f81cc5146104e2578063c4ecdee4146104ea578063c53a2ced146104fd57600080fd5b8063a9059cbb146104bc578063b3961af6146104cf57600080fd5b806396c705e51161016057806396c705e51461048d5780639e546c3814610496578063a457c2d7146104a957600080fd5b806395d89b411461047857806396be161a1461048057600080fd5b8063549c46271161022957806370a08231116101dd57806375a44363116101c257806375a44363146104385780638340f549146104405780638da5cb5b1461045357600080fd5b806370a0823114610407578063715018a61461043057600080fd5b806360303ff41161020e57806360303ff4146103d957806366f114e9146103e15780636af67546146103f457600080fd5b8063549c4627146103b45780635f3e849f146103c657600080fd5b80632332519111610280578063313ce56711610265578063313ce5671461037f578063395093511461038e57806347a2797e146103a157600080fd5b8063233251911461035957806323b872dd1461036c57600080fd5b8063095ea7b3116102b1578063095ea7b3146103195780630e6dfcd51461033c57806318160ddd1461035157600080fd5b806306fdde03146102cd57806308195ee6146102eb575b600080fd5b6102d5610644565b6040516102e291906123c9565b60405180910390f35b61030b6102f9366004612418565b60076020526000908152604090205481565b6040519081526020016102e2565b61032c61032736600461243a565b6106d6565b60405190151581526020016102e2565b61034f61034a366004612464565b6106f0565b005b60025461030b565b61034f61036736600461243a565b61094c565b61032c61037a366004612464565b610acc565b604051601281526020016102e2565b61032c61039c36600461243a565b610af0565b61034f6103af366004612464565b610b2f565b600d5461032c90610100900460ff1681565b61034f6103d4366004612464565b610c79565b61034f610d03565b61034f6103ef3660046124a0565b610d43565b61034f610402366004612418565b610e1f565b61030b610415366004612418565b6001600160a01b031660009081526020819052604090205490565b61034f61100c565b61034f611020565b61034f61044e366004612464565b61105d565b6005546001600160a01b03165b6040516001600160a01b0390911681526020016102e2565b6102d561132b565b600d5461032c9060ff1681565b61030b600e5481565b61030b6104a4366004612418565b61133a565b61032c6104b736600461243a565b611412565b61032c6104ca36600461243a565b6114bc565b61034f6104dd366004612418565b6114ca565b61034f61152a565b61034f6104f836600461243a565b6115c4565b61032c61050b366004612418565b600c6020526000908152604090205460ff1681565b61030b61052e366004612418565b60096020526000908152604090205481565b61034f61054e366004612418565b611678565b61030b6105613660046124a0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61034f61059a366004612418565b6116d4565b61030b6105ad366004612418565b60086020526000908152604090205481565b6104606105cd366004612418565b600a602052600090815260409020546001600160a01b031681565b61034f6105f6366004612418565b611800565b6104606106093660046124d3565b611890565b61034f61061c36600461243a565b6118ba565b61032c61062f366004612418565b600b6020526000908152604090205460ff1681565b606060038054610653906124ec565b80601f016020809104026020016040519081016040528092919081815260200182805461067f906124ec565b80156106cc5780601f106106a1576101008083540402835291602001916106cc565b820191906000526020600020905b8154815290600101906020018083116106af57829003601f168201915b5050505050905090565b6000336106e48185856119fd565b60019150505b92915050565b600d5460ff166107475760405162461bcd60e51b815260206004820152601560248201527f526564656d74696f6e73206e6f7420616374697665000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b0383166000908152600b602052604090205460ff166107a25760405162461bcd60e51b815260206004820152601060248201526f139bdd081c995cdd185ad959081314d560821b604482015260640161073e565b600060096000856001600160a01b03166001600160a01b031681526020019081526020016000205482856001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610809573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082d9190612526565b61083890600a612643565b6108429190612652565b61084c9190612669565b6001600160a01b0385166000908152600760205260409020549091508111156108b75760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420656e6f7567682066756e647320746f2072656465656d204c53540000604482015260640161073e565b6001600160a01b038416600090815260076020526040812080548392906108df90849061268b565b909155506108ef90503383611b4d565b6109036001600160a01b0385168483611cb6565b826001600160a01b03167f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b93698360405161093e91815260200190565b60405180910390a250505050565b336000908152600c602052604090205460ff166109ab5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420617070726f766564206d616e61676572000000000000000000000000604482015260640161073e565b6001600160a01b0382166000908152600b602052604090205460ff16610a065760405162461bcd60e51b815260206004820152601060248201526f139bdd081c995cdd185ad959081314d560821b604482015260640161073e565b6001600160a01b038216600090815260086020526040902054811115610a44576001600160a01b038216600090815260086020526040812055610a72565b6001600160a01b03821660009081526008602052604081208054839290610a6c90849061268b565b90915550505b610a876001600160a01b038316333084611d5f565b6040518181526001600160a01b0383169033907fa7fd4c9c28dd3fd667f7b40000eaa499f3aabca6455ef44a5e0353dc7b48c165906020015b60405180910390a35050565b600033610ada858285611db0565b610ae5858585611e3c565b506001949350505050565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091906106e49082908690610b2a90879061269e565b6119fd565b336000908152600c602052604090205460ff16610b8e5760405162461bcd60e51b815260206004820152601460248201527f4e6f7420617070726f766564206d616e61676572000000000000000000000000604482015260640161073e565b6001600160a01b0383166000908152600b602052604090205460ff16610be95760405162461bcd60e51b815260206004820152601060248201526f139bdd081c995cdd185ad959081314d560821b604482015260640161073e565b610bf2836116d4565b610c066001600160a01b0384168383611cb6565b6001600160a01b03831660009081526008602052604081208054839290610c2e90849061269e565b90915550506040518181526001600160a01b0384169033907f6575fcff0d82da58f4778580adc86f7932e8dae160f7202cd12a50304f9022ae906020015b60405180910390a3505050565b610c81612029565b6001600160a01b0382166000908152600b602052604090205460ff1615610cea5760405162461bcd60e51b815260206004820152601d60248201527f43616e204e6f74207472616e736665722072657374616b6564204c5354000000604482015260640161073e565b610cfe6001600160a01b0383168483611cb6565b505050565b610d0b612029565b600d805460ff191660011790556040517f4970bdaa4064103d1bed778693908e0ff28014070ecf559f34387aa7ae8746ca90600090a1565b610d4b612029565b6001600160a01b0382166000908152600b602052604090205460ff16610da65760405162461bcd60e51b815260206004820152601060248201526f139bdd081c995cdd185ad959081314d560821b604482015260640161073e565b6001600160a01b038281166000818152600a6020908152604091829020805473ffffffffffffffffffffffffffffffffffffffff1916948616948517905581519283528201929092527f7a67ca1f57903f175257511522d890735fbbc27954f1f89cde5a8cc0de5505ed91015b60405180910390a15050565b610e27612029565b6001600160a01b0381166000908152600b602052604090205460ff16610e825760405162461bcd60e51b815260206004820152601060248201526f139bdd081c995cdd185ad959081314d560821b604482015260640161073e565b6001600160a01b0381166000908152600b60209081526040808320805460ff1916905560099091528120819055600654905b81811015610fbf57826001600160a01b031660068281548110610ed957610ed96126b1565b6000918252602090912001546001600160a01b031603610faf576006610f0060018461268b565b81548110610f1057610f106126b1565b600091825260209091200154600680546001600160a01b039092169183908110610f3c57610f3c6126b1565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506006805480610f7b57610f7b6126c7565b6000828152602090208101600019908101805473ffffffffffffffffffffffffffffffffffffffff19169055019055610fbf565b610fb8816126dd565b9050610eb4565b50600e60008154610fcf906126f6565b909155506040516001600160a01b03831681527f5521ba30e01d3b6624049ade770a53b3c7f2f37336f0d29eefb3d88976a78a5090602001610e13565b611014612029565b61101e6000612083565b565b611028612029565b600d805460ff191690556040517f950c628a0800376ef5559fb6018224eb67fe5428d1c91265dea13b624daade7890600090a1565b600d54610100900460ff166110c6576005546001600160a01b031633146110c65760405162461bcd60e51b815260206004820152601160248201527f4465706f73697473206e6f74206f70656e000000000000000000000000000000604482015260640161073e565b6001600160a01b0383166000908152600b602052604090205460ff1661112e5760405162461bcd60e51b815260206004820152601960248201527f4e6f7420617070726f7665642072657374616b6564204c535400000000000000604482015260640161073e565b6000811161117e5760405162461bcd60e51b815260206004820152601160248201527f43616e206e6f74206465706f7369742030000000000000000000000000000000604482015260640161073e565b6000836001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e29190612526565b6111ed90600a612643565b6001600160a01b038516600090815260096020526040902054611211908490612652565b61121b9190612669565b905061122783826120e2565b826001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c8260405161126291815260200190565b60405180910390a26001600160a01b0384166000908152600760205260408120805484929061129290849061269e565b90915550506001600160a01b038481166000908152600a6020526040902054166112d0576112cb6001600160a01b038516333085611d5f565b611325565b6001600160a01b038481166000818152600a60205260409020546112f79233911685611d5f565b6001600160a01b0384166000908152600860205260408120805484929061131f90849061269e565b90915550505b50505050565b606060048054610653906124ec565b6001600160a01b038116600090815260086020908152604080832054600790925282205482916113699161268b565b6040516370a0823160e01b815230600482015290915060009082906001600160a01b038616906370a0823190602401602060405180830381865afa1580156113b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113d9919061270d565b6113e3919061268b565b6001600160a01b03851660009081526007602052604090205490915061140a90829061269e565b949350505050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156114af5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f000000000000000000000000000000000000000000000000000000606482015260840161073e565b610ae582868684036119fd565b6000336106e4818585611e3c565b6114d2612029565b6001600160a01b0381166000818152600c6020908152604091829020805460ff1916905590519182527f1baf958f35b2f9f5101da644dfa498b61850ef0e1d4bac1cceb9e759929aea4691015b60405180910390a150565b611532612029565b600d54610100900460ff161561158a5760405162461bcd60e51b815260206004820152601760248201527f4465706f7369747320616c7265616479206f70656e6564000000000000000000604482015260640161073e565b600d805461ff0019166101001790556040517fbd0d1cedfd4b96931ddded2368f63c090b88e5e313b383f6f95480bd4835acde90600090a1565b6115cc612029565b6001600160a01b0382166000908152600b602052604090205460ff166116275760405162461bcd60e51b815260206004820152601060248201526f139bdd081c995cdd185ad959081314d560821b604482015260640161073e565b6001600160a01b038216600081815260096020908152604091829020849055815192835282018390527fb17332318aa2c6e1338beb2b53ac19707f1a79cf215f4ac2cb3a40923820967a9101610e13565b611680612029565b6001600160a01b0381166000818152600c6020908152604091829020805460ff1916600117905590519182527f5ea5c05050a8c10862f7c18e9dc7f4e70eb53881a67a1f7b55e562a65dfc7109910161151f565b6001600160a01b0381166000908152600860209081526040808320546007909252822054611702919061268b565b6040516370a0823160e01b815230600482015290915060009082906001600160a01b038516906370a0823190602401602060405180830381865afa15801561174e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611772919061270d565b61177c919061268b565b6001600160a01b0384166000908152600760205260408120805492935083929091906117a990849061269e565b90915550506001600160a01b0383166000818152600760209081526040918290205491519182527fe45c01138e54bb610afd62c8b625077319978702155f247426c51b533c04c5d2910160405180910390a2505050565b611808612029565b6001600160a01b0381166118845760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161073e565b61188d81612083565b50565b600681815481106118a057600080fd5b6000918252602090912001546001600160a01b0316905081565b6118c2612029565b6001600160a01b0382166000908152600b602052604090205460ff161561192b5760405162461bcd60e51b815260206004820152600d60248201527f416c726561647920616464656400000000000000000000000000000000000000604482015260640161073e565b6001600160a01b0382166000818152600b60209081526040808320805460ff191660019081179091556009909252822084905560068054918201815582527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01805473ffffffffffffffffffffffffffffffffffffffff1916909217909155600e80549091906119ba906126dd565b90915550604080516001600160a01b0384168152602081018390527f45db53fa0ccfc42c516974052a8699fd6a35f22b3a961ef319fc36ee4a258ac69101610e13565b6001600160a01b038316611a785760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b038216611af45760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f7373000000000000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101610c6c565b6001600160a01b038216611bc95760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b03821660009081526020819052604090205481811015611c585760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f6365000000000000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6040516001600160a01b038316602482015260448101829052610cfe9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261219a565b6040516001600160a01b03808516602483015283166044820152606481018290526113259085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611cfb565b6001600160a01b0383811660009081526001602090815260408083209386168352929052205460001981146113255781811015611e2f5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e6365000000604482015260640161073e565b61132584848484036119fd565b6001600160a01b038316611eb85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f6472657373000000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b038216611f345760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f6573730000000000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b03831660009081526020819052604090205481811015611fc35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e63650000000000000000000000000000000000000000000000000000606482015260840161073e565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3611325565b6005546001600160a01b0316331461101e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161073e565b600580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166121385760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161073e565b806002600082825461214a919061269e565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9101610ac0565b60006121ef826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166122829092919063ffffffff16565b90508051600014806122105750808060200190518101906122109190612726565b610cfe5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f74207375636365656400000000000000000000000000000000000000000000606482015260840161073e565b606061140a848460008585600080866001600160a01b031685876040516122a99190612748565b60006040518083038185875af1925050503d80600081146122e6576040519150601f19603f3d011682016040523d82523d6000602084013e6122eb565b606091505b50915091506122fc87838387612307565b979650505050505050565b6060831561237657825160000361236f576001600160a01b0385163b61236f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161073e565b508161140a565b61140a838381511561238b5781518083602001fd5b8060405162461bcd60e51b815260040161073e91906123c9565b60005b838110156123c05781810151838201526020016123a8565b50506000910152565b60208152600082518060208401526123e88160408501602087016123a5565b601f01601f19169190910160400192915050565b80356001600160a01b038116811461241357600080fd5b919050565b60006020828403121561242a57600080fd5b612433826123fc565b9392505050565b6000806040838503121561244d57600080fd5b612456836123fc565b946020939093013593505050565b60008060006060848603121561247957600080fd5b612482846123fc565b9250612490602085016123fc565b9150604084013590509250925092565b600080604083850312156124b357600080fd5b6124bc836123fc565b91506124ca602084016123fc565b90509250929050565b6000602082840312156124e557600080fd5b5035919050565b600181811c9082168061250057607f821691505b60208210810361252057634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561253857600080fd5b815160ff8116811461243357600080fd5b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561259a57816000190482111561258057612580612549565b8085161561258d57918102915b93841c9390800290612564565b509250929050565b6000826125b1575060016106ea565b816125be575060006106ea565b81600181146125d457600281146125de576125fa565b60019150506106ea565b60ff8411156125ef576125ef612549565b50506001821b6106ea565b5060208310610133831016604e8410600b841016171561261d575081810a6106ea565b612627838361255f565b806000190482111561263b5761263b612549565b029392505050565b600061243360ff8416836125a2565b80820281158282048414176106ea576106ea612549565b60008261268657634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156106ea576106ea612549565b808201808211156106ea576106ea612549565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b6000600182016126ef576126ef612549565b5060010190565b60008161270557612705612549565b506000190190565b60006020828403121561271f57600080fd5b5051919050565b60006020828403121561273857600080fd5b8151801515811461243357600080fd5b6000825161275a8184602087016123a5565b919091019291505056fea26469706673582212204709ce247730141a656dd5a34b288a46ae3afdbcd4b2dc5b2d1820cdfc6bde1f64736f6c63430008130033
Loading...
Loading
Loading...
Loading
[ 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.