Source Code
Overview
ETH Balance
0 ETH
Token Holdings
More Info
ContractCreator
Multichain Info
N/A
Latest 25 from a total of 4,694 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit | 3382834 | 31 days ago | IN | 44 ETH | 0.00000875 | ||||
Deposit | 3382829 | 31 days ago | IN | 30 ETH | 0.00000032 | ||||
Deposit | 3382819 | 31 days ago | IN | 40 ETH | 0.00000875 | ||||
Deposit | 3356306 | 35 days ago | IN | 86 ETH | 0.00000043 | ||||
Deposit | 3326693 | 39 days ago | IN | 34 ETH | 0.00032733 | ||||
Deposit | 3316527 | 41 days ago | IN | 68 ETH | 0.00000032 | ||||
Deposit | 3292987 | 44 days ago | IN | 43 ETH | 0.00000032 | ||||
Deposit | 3279488 | 46 days ago | IN | 13 ETH | 0.00032732 | ||||
Deposit | 3272862 | 47 days ago | IN | 23 ETH | 0.00032733 | ||||
Deposit | 3272859 | 47 days ago | IN | 50 ETH | 0.00032733 | ||||
Deposit | 3272843 | 47 days ago | IN | 50 ETH | 0.00032733 | ||||
Deposit | 3214549 | 56 days ago | IN | 15.5 ETH | 0.00000032 | ||||
Deposit | 3214543 | 56 days ago | IN | 25 ETH | 0.00000032 | ||||
Deposit | 3214528 | 56 days ago | IN | 25 ETH | 0.00000032 | ||||
Deposit | 3214520 | 56 days ago | IN | 25 ETH | 0.00000032 | ||||
Deposit | 3214517 | 56 days ago | IN | 25 ETH | 0.00000032 | ||||
Deposit | 3187338 | 60 days ago | IN | 3.2 ETH | 0.00000032 | ||||
Deposit | 3187320 | 60 days ago | IN | 1 ETH | 0.00000032 | ||||
Deposit | 3184862 | 60 days ago | IN | 67.8 ETH | 0.00000032 | ||||
Deposit | 3181774 | 61 days ago | IN | 10.5 ETH | 0.00030797 | ||||
Deposit | 3179213 | 61 days ago | IN | 2.8 ETH | 0.00000032 | ||||
Deposit | 3179205 | 61 days ago | IN | 4.6 ETH | 0.00000032 | ||||
Deposit | 3176191 | 62 days ago | IN | 1 ETH | 0.00030821 | ||||
Deposit | 3168201 | 63 days ago | IN | 1 ETH | 0.00000044 | ||||
Deposit | 3168195 | 63 days ago | IN | 1 ETH | 0.0000003 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Submit | 3382834 | 31 days ago | 44 ETH | ||||
Submit | 3382829 | 31 days ago | 30 ETH | ||||
Submit | 3382819 | 31 days ago | 40 ETH | ||||
Submit | 3356306 | 35 days ago | 86 ETH | ||||
Submit | 3326693 | 39 days ago | 34 ETH | ||||
Submit | 3316527 | 41 days ago | 68 ETH | ||||
Submit | 3292987 | 44 days ago | 43 ETH | ||||
Submit | 3279488 | 46 days ago | 13 ETH | ||||
Submit | 3272862 | 47 days ago | 23 ETH | ||||
Submit | 3272859 | 47 days ago | 50 ETH | ||||
Submit | 3272843 | 47 days ago | 50 ETH | ||||
Submit | 3214549 | 56 days ago | 15.5 ETH | ||||
Submit | 3214543 | 56 days ago | 25 ETH | ||||
Submit | 3214528 | 56 days ago | 25 ETH | ||||
Submit | 3214520 | 56 days ago | 25 ETH | ||||
Submit | 3214517 | 56 days ago | 25 ETH | ||||
Submit | 3187338 | 60 days ago | 3.2 ETH | ||||
Submit | 3187320 | 60 days ago | 1 ETH | ||||
Submit | 3184862 | 60 days ago | 67.8 ETH | ||||
Submit | 3181774 | 61 days ago | 10.5 ETH | ||||
Submit | 3179213 | 61 days ago | 2.8 ETH | ||||
Submit | 3179205 | 61 days ago | 4.6 ETH | ||||
Submit | 3176191 | 62 days ago | 1 ETH | ||||
Submit | 3168201 | 63 days ago | 1 ETH | ||||
Submit | 3168195 | 63 days ago | 1 ETH |
Loading...
Loading
Contract Name:
PrimisBondLiquidityDeposit
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import {IStETH} from "./interfaces/IStETH.sol"; import {IBondNFT} from "./interfaces/IBondNFT.sol"; import {IPrimisBondLiquidityDeposit} from "./interfaces/IPrimisBondLiquidityDeposit.sol"; import {Errors} from "./library/Errors.sol"; contract PrimisBondLiquidityDeposit is IPrimisBondLiquidityDeposit, Ownable, ReentrancyGuard { using SafeERC20 for IStETH; bool public depositEnable; // Used for go live on a particular time IStETH public stETH; // address of stETH IBondNFT public bondNFT; // bond nft contract address address public primisBond; // address of primisBond uint256 public minDepositAmount; // minimum deposit amount for PrimisBondLiquidityDeposit mapping(uint256 => Bond) public bonds; // user info struct mapping with index event DepositEnableSet(bool depositEnable); event MinDepAmountSet(uint256 indexed newAmount); event Deposit( address indexed sender, uint256 index, uint256 bondFees, uint256 principal, uint256 maturity, address token ); constructor(address _stETH) { stETH = IStETH(_stETH); minDepositAmount = 0.1 ether; depositEnable = true; } modifier depositEnabled() { if (!depositEnable) revert Errors.PrimisBondLiquidityDepositNotAllowed(); _; } /** * @notice Updates the minimum deposit amount. * @dev Sets the minimum deposit amount. Only callable by the contract owner. * @param _amt The amount to be updated. */ function setMinDepAmount(uint256 _amt) public onlyOwner { minDepositAmount = _amt; emit MinDepAmountSet(_amt); } /** * @notice Updates whether deposit is enabled or not. * @dev Sets whether deposit is enabled or not. Only callable by the contract owner. * @param _depositEnable true if enabled otherwise false. */ function setDepositEnable(bool _depositEnable) external onlyOwner { depositEnable = _depositEnable; emit DepositEnableSet(depositEnable); } /** * @notice Updates contract addresses. * @dev Sets contract addresses. Only callable by the contract owner. * @param _addr The address of the token or contracts to be updated. * @param _type 1 ==> stETH address, 2 ==> bond NFT address, 3 ==> bond address. */ function setAddress(address _addr, uint256 _type) external onlyOwner { if (_addr == address(0)) revert Errors.ZeroAddress(); if (_type == 1) stETH = IStETH(_addr); else if (_type == 2) bondNFT = IBondNFT(_addr); else if (_type == 3) primisBond = _addr; } /** * @notice Allows a user to deposit a specified token into a bond * @param principal The principal amount of the bond * @param maturity The maturity date of the bond (lock time) * @param bondFee Self-set bond fee * @param token The address of the token (if token is zero address, then depositing ETH) */ function deposit( uint256 principal, uint256 maturity, uint256 bondFee, address token ) external payable nonReentrant depositEnabled { if (principal < minDepositAmount) revert Errors.PrimisBondLiquidityDepositInvalidAmount(); if (maturity < 7 || maturity > 365) revert Errors.PrimisBondLiquidityDepositInvalidMaturity(); if (token != address(0) && token != address(stETH)) revert Errors.PrimisBondLiquidityDepositNotBondableToken(); if (bondFee < 0 || bondFee > 10000) revert Errors.PrimisBondLiquidityDepositInvalidBondFee(); uint256 sharesForPrincipal; // token transfer if (token == address(0)) { if (msg.value != principal) revert Errors.PrimisBondLiquidityDepositInvalidAmount(); sharesForPrincipal = stETH.submit{value: principal}(address(this)); } else { // send directly to the deposit contract stETH.safeTransferFrom(msg.sender, address(this), principal); sharesForPrincipal = stETH.getSharesByPooledEth(principal); } uint256 tokenId = bondNFT.mint(msg.sender); bonds[tokenId] = Bond(false, sharesForPrincipal, bondFee, maturity, block.timestamp); emit Deposit(msg.sender, tokenId, bondFee, principal, maturity, token); } /** * @notice Allows a user to withdraw a specified bond NFT and principal * @param tokenId The tokenId of the bond NFT */ function withdraw(uint256 tokenId) external nonReentrant { if (bondNFT.ownerOf(tokenId) != msg.sender) revert Errors.PrimisBondLiquidityDepositInvalidTokenOwner(); Bond storage bond = bonds[tokenId]; if (bond.withdrawn) revert Errors.PrimisBondLiquidityDepositAlreadyWithdrawn(); bond.withdrawn = true; // Transfer stETH stETH.transferShares(msg.sender, bond.principal); bondNFT.burn(tokenId); } /** * @notice This function is call by bond contract when bond contract go live * @param _index this is used to get user info of a particular user */ function depositedIntoBond( uint256 _index ) external view returns (uint256 principal, uint256 bondFees, uint256 maturity) { principal = IStETH(stETH).getPooledEthByShares(bonds[_index].principal); return (principal, bonds[_index].bondFee, bonds[_index].maturity); } /** * @notice This function is called by owner address when primis bond contract go live for approval of stETH * @param _amount this input is used for approval */ function approvalForBond(uint256 _amount) external onlyOwner { stETH.safeApprove(primisBond, _amount); } /** * @notice This function is called by owner address when need to transfer liquidity to treasury for bond * @param _amount this input is used for the number of stETH tokens to transfer */ function transferLiquidityToTreasury(address _treasury, uint256 _amount) external onlyOwner { stETH.safeTransfer(_treasury, _amount); } }
// 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) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (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. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ 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]. * * CAUTION: See Security Considerations above. */ 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 (last updated v4.9.4) (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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; /** * @title IBondNFT interface * @notice Interface for the BondNFT contract */ interface IBondNFT { function mint(address to) external returns (uint256 tokenId); function ownerOf(uint256 tokenId) external view returns (address); function transferFrom(address from, address to, uint256 tokenId) external; function burn(uint256 tokenId) external; }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; interface IPrimisBondLiquidityDeposit { // User info struct Bond { bool withdrawn; uint256 principal; uint256 bondFee; uint256 maturity; uint256 startTime; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IStETH is IERC20 { function getPooledEthByShares(uint256 _sharesAmount) external view returns (uint256); function getSharesByPooledEth(uint256 _pooledEthAmount) external view returns (uint256); function transferShares(address _recipient, uint256 _sharesAmount) external returns (uint256); function submit(address _referral) external payable returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; /// @title Errors library /// @notice A library for all errors that can be thrown in the Primis Protocol /// All errors will follow the following syntax: 'error ContractNameErrorName(arg1, arg2, ...)', where 'ContractName' is the name of the contract /// that the error originates from and 'ErrorName' is the name of the error. The arguments are optional and are used to provide additional context to the error /// 'Global' errors are those that are thrown from various contracts throughout the protocol and do not have a 'ContractName' prefix /// @author call-by library Errors { ///////////////////// // Global Errors // ///////////////////// /** * The state variable to set is already set to the given value or part of a given set or mapping */ error AlreadySet(); /** * Given address is zero address */ error ZeroAddress(); /** * Given param is invalid */ error InvalidParam(); /** * Given amount is zero */ error ZeroAmount(); /** * Given address is not whitelisted */ error NotWhitelisted(); /////////////////////// // PrmToken Errors // /////////////////////// error PrmTokenInvalidEarlyEpoch(); error PrmTokenZeroFeeCollected(); error PrmTokenThreeMonthVestingNotComplete(); error PrmTokenMoreThanMintAmount(); error PrmTokenVestingNotCompleted(); error PrmTokenWaitingTimeNotCompleted(); /////////////////////// // SPrmToken Errors // /////////////////////// error SPrmTokenTransactionDisabled(); /////////////////////// // BondNFT Errors // /////////////////////// error BondNFTNotBondContract(); ////////////////////////////////////////////// //// PrimisondLiquidityDeposit Errors //// ////////////////////////////////////////////// error PrimisBondLiquidityDepositInvalidAmount(); error PrimisBondLiquidityDepositInvalidMaturity(); error PrimisBondLiquidityDepositInvalidBondFee(); error PrimisBondLiquidityDepositNotAllowed(); error PrimisBondLiquidityDepositNotBondableToken(); error PrimisBondLiquidityDepositInvalidTokenId(); error PrimisBondLiquidityDepositInvalidTokenOwner(); error PrimisBondLiquidityDepositAlreadyWithdrawn(); }
{ "optimizer": { "enabled": false, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_stETH","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"PrimisBondLiquidityDepositAlreadyWithdrawn","type":"error"},{"inputs":[],"name":"PrimisBondLiquidityDepositInvalidAmount","type":"error"},{"inputs":[],"name":"PrimisBondLiquidityDepositInvalidBondFee","type":"error"},{"inputs":[],"name":"PrimisBondLiquidityDepositInvalidMaturity","type":"error"},{"inputs":[],"name":"PrimisBondLiquidityDepositInvalidTokenOwner","type":"error"},{"inputs":[],"name":"PrimisBondLiquidityDepositNotAllowed","type":"error"},{"inputs":[],"name":"PrimisBondLiquidityDepositNotBondableToken","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bondFees","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"principal","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maturity","type":"uint256"},{"indexed":false,"internalType":"address","name":"token","type":"address"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"depositEnable","type":"bool"}],"name":"DepositEnableSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"newAmount","type":"uint256"}],"name":"MinDepAmountSet","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"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approvalForBond","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"bondNFT","outputs":[{"internalType":"contract IBondNFT","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bonds","outputs":[{"internalType":"bool","name":"withdrawn","type":"bool"},{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"uint256","name":"bondFee","type":"uint256"},{"internalType":"uint256","name":"maturity","type":"uint256"},{"internalType":"uint256","name":"startTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"uint256","name":"maturity","type":"uint256"},{"internalType":"uint256","name":"bondFee","type":"uint256"},{"internalType":"address","name":"token","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"depositEnable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"depositedIntoBond","outputs":[{"internalType":"uint256","name":"principal","type":"uint256"},{"internalType":"uint256","name":"bondFees","type":"uint256"},{"internalType":"uint256","name":"maturity","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minDepositAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"primisBond","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_type","type":"uint256"}],"name":"setAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_depositEnable","type":"bool"}],"name":"setDepositEnable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amt","type":"uint256"}],"name":"setMinDepAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stETH","outputs":[{"internalType":"contract IStETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_treasury","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferLiquidityToTreasury","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200246e3803806200246e833981810160405281019062000037919062000206565b620000576200004b620000d060201b60201c565b620000d860201b60201c565b6001808190555080600260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555067016345785d8a00006005819055506001600260006101000a81548160ff0219169083151502179055505062000238565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620001ce82620001a1565b9050919050565b620001e081620001c1565b8114620001ec57600080fd5b50565b6000815190506200020081620001d5565b92915050565b6000602082840312156200021f576200021e6200019c565b5b60006200022f84828501620001ef565b91505092915050565b61222680620002486000396000f3fe6080604052600436106100fe5760003560e01c80637935707a11610095578063b7fc591311610064578063b7fc591314610313578063bd095bbd1461033c578063c1fe3e4814610367578063f2fde38b14610392578063fad3cc4b146103bb576100fe565b80637935707a1461026b5780638b261e1f146102945780638da5cb5b146102bd578063b0f3af47146102e8576100fe565b80635f1c17c0116100d15780635f1c17c0146101bf578063645006ca1461020057806370db69021461022b578063715018a614610254576100fe565b80631faf4fe1146101035780632e1a7d4d146101425780632eb5c7601461016b578063516be0f814610196575b600080fd5b34801561010f57600080fd5b5061012a60048036038101906101259190611830565b6103d7565b6040516101399392919061186c565b60405180910390f35b34801561014e57600080fd5b5061016960048036038101906101649190611830565b6104cc565b005b34801561017757600080fd5b5061018061078f565b60405161018d91906118be565b60405180910390f35b3480156101a257600080fd5b506101bd60048036038101906101b89190611905565b6107a2565b005b3480156101cb57600080fd5b506101e660048036038101906101e19190611830565b61080d565b6040516101f7959493929190611932565b60405180910390f35b34801561020c57600080fd5b50610215610850565b6040516102229190611985565b60405180910390f35b34801561023757600080fd5b50610252600480360381019061024d91906119fe565b610856565b005b34801561026057600080fd5b506102696109b0565b005b34801561027757600080fd5b50610292600480360381019061028d9190611830565b6109c4565b005b3480156102a057600080fd5b506102bb60048036038101906102b691906119fe565b610a03565b005b3480156102c957600080fd5b506102d2610a5c565b6040516102df9190611a4d565b60405180910390f35b3480156102f457600080fd5b506102fd610a85565b60405161030a9190611ac7565b60405180910390f35b34801561031f57600080fd5b5061033a60048036038101906103359190611830565b610aab565b005b34801561034857600080fd5b50610351610b25565b60405161035e9190611a4d565b60405180910390f35b34801561037357600080fd5b5061037c610b4b565b6040516103899190611b03565b60405180910390f35b34801561039e57600080fd5b506103b960048036038101906103b49190611b1e565b610b71565b005b6103d560048036038101906103d09190611b4b565b610bf4565b005b6000806000600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637a28fb8860066000878152602001908152602001600020600101546040518263ffffffff1660e01b815260040161044d9190611985565b602060405180830381865afa15801561046a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048e9190611bc7565b925082600660008681526020019081526020016000206002015460066000878152602001908152602001600020600301549250925092509193909250565b6104d4611160565b3373ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016105469190611985565b602060405180830381865afa158015610563573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105879190611c09565b73ffffffffffffffffffffffffffffffffffffffff16146105d4576040517ffaf309a100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006006600083815260200190815260200160002090508060000160009054906101000a900460ff1615610634576040517f078c807e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018160000160006101000a81548160ff021916908315150217905550600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638fcb4e5b3383600101546040518363ffffffff1660e01b81526004016106b2929190611c36565b6020604051808303816000875af11580156106d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f59190611bc7565b50600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68836040518263ffffffff1660e01b81526004016107519190611985565b600060405180830381600087803b15801561076b57600080fd5b505af115801561077f573d6000803e3d6000fd5b505050505061078c6111af565b50565b600260009054906101000a900460ff1681565b6107aa6111b8565b80600260006101000a81548160ff0219169083151502179055507f92f936530172dd653973aa4c69556bede2c12b670ddb86677bfb89a68ea24c4e600260009054906101000a900460ff1660405161080291906118be565b60405180910390a150565b60066020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154908060020154908060030154908060040154905085565b60055481565b61085e6111b8565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036108c4576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600181036109125781600260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506109ac565b600281036109605781600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506109ab565b600381036109aa5781600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b5b5050565b6109b86111b8565b6109c26000611236565b565b6109cc6111b8565b80600581905550807f05625a0f1171b5e8585c9019c420fefb294d1f26ee3db33c7d243b3cdf12c37b60405160405180910390a250565b610a0b6111b8565b610a588282600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112fa9092919063ffffffff16565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ab36111b8565b610b22600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166113809092919063ffffffff16565b50565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b796111b8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610be8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdf90611ce2565b60405180910390fd5b610bf181611236565b50565b610bfc611160565b600260009054906101000a900460ff16610c42576040517f5580666500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600554841015610c7e576040517f83f6f80200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007831080610c8e575061016d83115b15610cc5576040517fb3c71e8f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015610d505750600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b15610d87576040517f65bd43ef00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821080610d97575061271082115b15610dce576040517f797aef8500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ee257843414610e3c576040517f83f6f80200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a1903eab86306040518363ffffffff1660e01b8152600401610e989190611a4d565b60206040518083038185885af1158015610eb6573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610edb9190611bc7565b9050610fd0565b610f31333087600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114cf909392919063ffffffff16565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166319208451866040518263ffffffff1660e01b8152600401610f8c9190611985565b602060405180830381865afa158015610fa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fcd9190611bc7565b90505b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636a627842336040518263ffffffff1660e01b815260040161102d9190611a4d565b6020604051808303816000875af115801561104c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110709190611bc7565b90506040518060a00160405280600015158152602001838152602001858152602001868152602001428152506006600083815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002015560608201518160030155608082015181600401559050503373ffffffffffffffffffffffffffffffffffffffff167fd2d20e69c4772a959fae177f20d86f2d40cd940cf11e356d0306670ea7df42278286898988604051611148959493929190611d02565b60405180910390a2505061115a6111af565b50505050565b6002600154036111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119c90611da1565b60405180910390fd5b6002600181905550565b60018081905550565b6111c0611558565b73ffffffffffffffffffffffffffffffffffffffff166111de610a5c565b73ffffffffffffffffffffffffffffffffffffffff1614611234576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122b90611e0d565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61137b8363a9059cbb60e01b8484604051602401611319929190611c36565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611560565b505050565b600081148061140a575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016113c7929190611e2d565b602060405180830381865afa1580156113e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114089190611bc7565b145b611449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144090611ec8565b60405180910390fd5b6114ca8363095ea7b360e01b8484604051602401611468929190611c36565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611560565b505050565b611552846323b872dd60e01b8585856040516024016114f093929190611ee8565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611560565b50505050565b600033905090565b60006115c2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166116289092919063ffffffff16565b90506000815114806115e45750808060200190518101906115e39190611f34565b5b611623576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161a90611fd3565b60405180910390fd5b505050565b60606116378484600085611640565b90509392505050565b606082471015611685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167c90612065565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116ae91906120f6565b60006040518083038185875af1925050503d80600081146116eb576040519150601f19603f3d011682016040523d82523d6000602084013e6116f0565b606091505b50915091506117018783838761170d565b92505050949350505050565b6060831561176f5760008351036117675761172785611782565b611766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175d90612159565b60405180910390fd5b5b82905061177a565b61177983836117a5565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156117b85781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ec91906121ce565b60405180910390fd5b600080fd5b6000819050919050565b61180d816117fa565b811461181857600080fd5b50565b60008135905061182a81611804565b92915050565b600060208284031215611846576118456117f5565b5b60006118548482850161181b565b91505092915050565b611866816117fa565b82525050565b6000606082019050611881600083018661185d565b61188e602083018561185d565b61189b604083018461185d565b949350505050565b60008115159050919050565b6118b8816118a3565b82525050565b60006020820190506118d360008301846118af565b92915050565b6118e2816118a3565b81146118ed57600080fd5b50565b6000813590506118ff816118d9565b92915050565b60006020828403121561191b5761191a6117f5565b5b6000611929848285016118f0565b91505092915050565b600060a08201905061194760008301886118af565b611954602083018761185d565b611961604083018661185d565b61196e606083018561185d565b61197b608083018461185d565b9695505050505050565b600060208201905061199a600083018461185d565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006119cb826119a0565b9050919050565b6119db816119c0565b81146119e657600080fd5b50565b6000813590506119f8816119d2565b92915050565b60008060408385031215611a1557611a146117f5565b5b6000611a23858286016119e9565b9250506020611a348582860161181b565b9150509250929050565b611a47816119c0565b82525050565b6000602082019050611a626000830184611a3e565b92915050565b6000819050919050565b6000611a8d611a88611a83846119a0565b611a68565b6119a0565b9050919050565b6000611a9f82611a72565b9050919050565b6000611ab182611a94565b9050919050565b611ac181611aa6565b82525050565b6000602082019050611adc6000830184611ab8565b92915050565b6000611aed82611a94565b9050919050565b611afd81611ae2565b82525050565b6000602082019050611b186000830184611af4565b92915050565b600060208284031215611b3457611b336117f5565b5b6000611b42848285016119e9565b91505092915050565b60008060008060808587031215611b6557611b646117f5565b5b6000611b738782880161181b565b9450506020611b848782880161181b565b9350506040611b958782880161181b565b9250506060611ba6878288016119e9565b91505092959194509250565b600081519050611bc181611804565b92915050565b600060208284031215611bdd57611bdc6117f5565b5b6000611beb84828501611bb2565b91505092915050565b600081519050611c03816119d2565b92915050565b600060208284031215611c1f57611c1e6117f5565b5b6000611c2d84828501611bf4565b91505092915050565b6000604082019050611c4b6000830185611a3e565b611c58602083018461185d565b9392505050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611ccc602683611c5f565b9150611cd782611c70565b604082019050919050565b60006020820190508181036000830152611cfb81611cbf565b9050919050565b600060a082019050611d17600083018861185d565b611d24602083018761185d565b611d31604083018661185d565b611d3e606083018561185d565b611d4b6080830184611a3e565b9695505050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611d8b601f83611c5f565b9150611d9682611d55565b602082019050919050565b60006020820190508181036000830152611dba81611d7e565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611df7602083611c5f565b9150611e0282611dc1565b602082019050919050565b60006020820190508181036000830152611e2681611dea565b9050919050565b6000604082019050611e426000830185611a3e565b611e4f6020830184611a3e565b9392505050565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b6000611eb2603683611c5f565b9150611ebd82611e56565b604082019050919050565b60006020820190508181036000830152611ee181611ea5565b9050919050565b6000606082019050611efd6000830186611a3e565b611f0a6020830185611a3e565b611f17604083018461185d565b949350505050565b600081519050611f2e816118d9565b92915050565b600060208284031215611f4a57611f496117f5565b5b6000611f5884828501611f1f565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611fbd602a83611c5f565b9150611fc882611f61565b604082019050919050565b60006020820190508181036000830152611fec81611fb0565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061204f602683611c5f565b915061205a82611ff3565b604082019050919050565b6000602082019050818103600083015261207e81612042565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156120b957808201518184015260208101905061209e565b60008484015250505050565b60006120d082612085565b6120da8185612090565b93506120ea81856020860161209b565b80840191505092915050565b600061210282846120c5565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612143601d83611c5f565b915061214e8261210d565b602082019050919050565b6000602082019050818103600083015261217281612136565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006121a082612179565b6121aa8185611c5f565b93506121ba81856020860161209b565b6121c381612184565b840191505092915050565b600060208201905081810360008301526121e88184612195565b90509291505056fea2646970667358221220f276d2961701e8f1c071dc28573e8db7294632943982adf1168d5e21614fd45464736f6c634300081200330000000000000000000000003f1c547b21f65e10480de3ad8e19faac46c95034
Deployed Bytecode
0x6080604052600436106100fe5760003560e01c80637935707a11610095578063b7fc591311610064578063b7fc591314610313578063bd095bbd1461033c578063c1fe3e4814610367578063f2fde38b14610392578063fad3cc4b146103bb576100fe565b80637935707a1461026b5780638b261e1f146102945780638da5cb5b146102bd578063b0f3af47146102e8576100fe565b80635f1c17c0116100d15780635f1c17c0146101bf578063645006ca1461020057806370db69021461022b578063715018a614610254576100fe565b80631faf4fe1146101035780632e1a7d4d146101425780632eb5c7601461016b578063516be0f814610196575b600080fd5b34801561010f57600080fd5b5061012a60048036038101906101259190611830565b6103d7565b6040516101399392919061186c565b60405180910390f35b34801561014e57600080fd5b5061016960048036038101906101649190611830565b6104cc565b005b34801561017757600080fd5b5061018061078f565b60405161018d91906118be565b60405180910390f35b3480156101a257600080fd5b506101bd60048036038101906101b89190611905565b6107a2565b005b3480156101cb57600080fd5b506101e660048036038101906101e19190611830565b61080d565b6040516101f7959493929190611932565b60405180910390f35b34801561020c57600080fd5b50610215610850565b6040516102229190611985565b60405180910390f35b34801561023757600080fd5b50610252600480360381019061024d91906119fe565b610856565b005b34801561026057600080fd5b506102696109b0565b005b34801561027757600080fd5b50610292600480360381019061028d9190611830565b6109c4565b005b3480156102a057600080fd5b506102bb60048036038101906102b691906119fe565b610a03565b005b3480156102c957600080fd5b506102d2610a5c565b6040516102df9190611a4d565b60405180910390f35b3480156102f457600080fd5b506102fd610a85565b60405161030a9190611ac7565b60405180910390f35b34801561031f57600080fd5b5061033a60048036038101906103359190611830565b610aab565b005b34801561034857600080fd5b50610351610b25565b60405161035e9190611a4d565b60405180910390f35b34801561037357600080fd5b5061037c610b4b565b6040516103899190611b03565b60405180910390f35b34801561039e57600080fd5b506103b960048036038101906103b49190611b1e565b610b71565b005b6103d560048036038101906103d09190611b4b565b610bf4565b005b6000806000600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16637a28fb8860066000878152602001908152602001600020600101546040518263ffffffff1660e01b815260040161044d9190611985565b602060405180830381865afa15801561046a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061048e9190611bc7565b925082600660008681526020019081526020016000206002015460066000878152602001908152602001600020600301549250925092509193909250565b6104d4611160565b3373ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016105469190611985565b602060405180830381865afa158015610563573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105879190611c09565b73ffffffffffffffffffffffffffffffffffffffff16146105d4576040517ffaf309a100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006006600083815260200190815260200160002090508060000160009054906101000a900460ff1615610634576040517f078c807e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018160000160006101000a81548160ff021916908315150217905550600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638fcb4e5b3383600101546040518363ffffffff1660e01b81526004016106b2929190611c36565b6020604051808303816000875af11580156106d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f59190611bc7565b50600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166342966c68836040518263ffffffff1660e01b81526004016107519190611985565b600060405180830381600087803b15801561076b57600080fd5b505af115801561077f573d6000803e3d6000fd5b505050505061078c6111af565b50565b600260009054906101000a900460ff1681565b6107aa6111b8565b80600260006101000a81548160ff0219169083151502179055507f92f936530172dd653973aa4c69556bede2c12b670ddb86677bfb89a68ea24c4e600260009054906101000a900460ff1660405161080291906118be565b60405180910390a150565b60066020528060005260406000206000915090508060000160009054906101000a900460ff16908060010154908060020154908060030154908060040154905085565b60055481565b61085e6111b8565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036108c4576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600181036109125781600260016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506109ac565b600281036109605781600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506109ab565b600381036109aa5781600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b5b5050565b6109b86111b8565b6109c26000611236565b565b6109cc6111b8565b80600581905550807f05625a0f1171b5e8585c9019c420fefb294d1f26ee3db33c7d243b3cdf12c37b60405160405180910390a250565b610a0b6111b8565b610a588282600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166112fa9092919063ffffffff16565b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610ab36111b8565b610b22600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166113809092919063ffffffff16565b50565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b610b796111b8565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610be8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bdf90611ce2565b60405180910390fd5b610bf181611236565b50565b610bfc611160565b600260009054906101000a900460ff16610c42576040517f5580666500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600554841015610c7e576040517f83f6f80200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6007831080610c8e575061016d83115b15610cc5576040517fb3c71e8f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614158015610d505750600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b15610d87576040517f65bd43ef00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000821080610d97575061271082115b15610dce576040517f797aef8500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610ee257843414610e3c576040517f83f6f80200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a1903eab86306040518363ffffffff1660e01b8152600401610e989190611a4d565b60206040518083038185885af1158015610eb6573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610edb9190611bc7565b9050610fd0565b610f31333087600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166114cf909392919063ffffffff16565b600260019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166319208451866040518263ffffffff1660e01b8152600401610f8c9190611985565b602060405180830381865afa158015610fa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fcd9190611bc7565b90505b6000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636a627842336040518263ffffffff1660e01b815260040161102d9190611a4d565b6020604051808303816000875af115801561104c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110709190611bc7565b90506040518060a00160405280600015158152602001838152602001858152602001868152602001428152506006600083815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002015560608201518160030155608082015181600401559050503373ffffffffffffffffffffffffffffffffffffffff167fd2d20e69c4772a959fae177f20d86f2d40cd940cf11e356d0306670ea7df42278286898988604051611148959493929190611d02565b60405180910390a2505061115a6111af565b50505050565b6002600154036111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161119c90611da1565b60405180910390fd5b6002600181905550565b60018081905550565b6111c0611558565b73ffffffffffffffffffffffffffffffffffffffff166111de610a5c565b73ffffffffffffffffffffffffffffffffffffffff1614611234576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161122b90611e0d565b60405180910390fd5b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b61137b8363a9059cbb60e01b8484604051602401611319929190611c36565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611560565b505050565b600081148061140a575060008373ffffffffffffffffffffffffffffffffffffffff1663dd62ed3e30856040518363ffffffff1660e01b81526004016113c7929190611e2d565b602060405180830381865afa1580156113e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114089190611bc7565b145b611449576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144090611ec8565b60405180910390fd5b6114ca8363095ea7b360e01b8484604051602401611468929190611c36565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611560565b505050565b611552846323b872dd60e01b8585856040516024016114f093929190611ee8565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050611560565b50505050565b600033905090565b60006115c2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166116289092919063ffffffff16565b90506000815114806115e45750808060200190518101906115e39190611f34565b5b611623576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161a90611fd3565b60405180910390fd5b505050565b60606116378484600085611640565b90509392505050565b606082471015611685576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167c90612065565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040516116ae91906120f6565b60006040518083038185875af1925050503d80600081146116eb576040519150601f19603f3d011682016040523d82523d6000602084013e6116f0565b606091505b50915091506117018783838761170d565b92505050949350505050565b6060831561176f5760008351036117675761172785611782565b611766576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175d90612159565b60405180910390fd5b5b82905061177a565b61177983836117a5565b5b949350505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000825111156117b85781518083602001fd5b806040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ec91906121ce565b60405180910390fd5b600080fd5b6000819050919050565b61180d816117fa565b811461181857600080fd5b50565b60008135905061182a81611804565b92915050565b600060208284031215611846576118456117f5565b5b60006118548482850161181b565b91505092915050565b611866816117fa565b82525050565b6000606082019050611881600083018661185d565b61188e602083018561185d565b61189b604083018461185d565b949350505050565b60008115159050919050565b6118b8816118a3565b82525050565b60006020820190506118d360008301846118af565b92915050565b6118e2816118a3565b81146118ed57600080fd5b50565b6000813590506118ff816118d9565b92915050565b60006020828403121561191b5761191a6117f5565b5b6000611929848285016118f0565b91505092915050565b600060a08201905061194760008301886118af565b611954602083018761185d565b611961604083018661185d565b61196e606083018561185d565b61197b608083018461185d565b9695505050505050565b600060208201905061199a600083018461185d565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006119cb826119a0565b9050919050565b6119db816119c0565b81146119e657600080fd5b50565b6000813590506119f8816119d2565b92915050565b60008060408385031215611a1557611a146117f5565b5b6000611a23858286016119e9565b9250506020611a348582860161181b565b9150509250929050565b611a47816119c0565b82525050565b6000602082019050611a626000830184611a3e565b92915050565b6000819050919050565b6000611a8d611a88611a83846119a0565b611a68565b6119a0565b9050919050565b6000611a9f82611a72565b9050919050565b6000611ab182611a94565b9050919050565b611ac181611aa6565b82525050565b6000602082019050611adc6000830184611ab8565b92915050565b6000611aed82611a94565b9050919050565b611afd81611ae2565b82525050565b6000602082019050611b186000830184611af4565b92915050565b600060208284031215611b3457611b336117f5565b5b6000611b42848285016119e9565b91505092915050565b60008060008060808587031215611b6557611b646117f5565b5b6000611b738782880161181b565b9450506020611b848782880161181b565b9350506040611b958782880161181b565b9250506060611ba6878288016119e9565b91505092959194509250565b600081519050611bc181611804565b92915050565b600060208284031215611bdd57611bdc6117f5565b5b6000611beb84828501611bb2565b91505092915050565b600081519050611c03816119d2565b92915050565b600060208284031215611c1f57611c1e6117f5565b5b6000611c2d84828501611bf4565b91505092915050565b6000604082019050611c4b6000830185611a3e565b611c58602083018461185d565b9392505050565b600082825260208201905092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611ccc602683611c5f565b9150611cd782611c70565b604082019050919050565b60006020820190508181036000830152611cfb81611cbf565b9050919050565b600060a082019050611d17600083018861185d565b611d24602083018761185d565b611d31604083018661185d565b611d3e606083018561185d565b611d4b6080830184611a3e565b9695505050505050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000611d8b601f83611c5f565b9150611d9682611d55565b602082019050919050565b60006020820190508181036000830152611dba81611d7e565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611df7602083611c5f565b9150611e0282611dc1565b602082019050919050565b60006020820190508181036000830152611e2681611dea565b9050919050565b6000604082019050611e426000830185611a3e565b611e4f6020830184611a3e565b9392505050565b7f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60008201527f20746f206e6f6e2d7a65726f20616c6c6f77616e636500000000000000000000602082015250565b6000611eb2603683611c5f565b9150611ebd82611e56565b604082019050919050565b60006020820190508181036000830152611ee181611ea5565b9050919050565b6000606082019050611efd6000830186611a3e565b611f0a6020830185611a3e565b611f17604083018461185d565b949350505050565b600081519050611f2e816118d9565b92915050565b600060208284031215611f4a57611f496117f5565b5b6000611f5884828501611f1f565b91505092915050565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b6000611fbd602a83611c5f565b9150611fc882611f61565b604082019050919050565b60006020820190508181036000830152611fec81611fb0565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b600061204f602683611c5f565b915061205a82611ff3565b604082019050919050565b6000602082019050818103600083015261207e81612042565b9050919050565b600081519050919050565b600081905092915050565b60005b838110156120b957808201518184015260208101905061209e565b60008484015250505050565b60006120d082612085565b6120da8185612090565b93506120ea81856020860161209b565b80840191505092915050565b600061210282846120c5565b915081905092915050565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b6000612143601d83611c5f565b915061214e8261210d565b602082019050919050565b6000602082019050818103600083015261217281612136565b9050919050565b600081519050919050565b6000601f19601f8301169050919050565b60006121a082612179565b6121aa8185611c5f565b93506121ba81856020860161209b565b6121c381612184565b840191505092915050565b600060208201905081810360008301526121e88184612195565b90509291505056fea2646970667358221220f276d2961701e8f1c071dc28573e8db7294632943982adf1168d5e21614fd45464736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003f1c547b21f65e10480de3ad8e19faac46c95034
-----Decoded View---------------
Arg [0] : _stETH (address): 0x3F1c547b21f65e10480dE3ad8E19fAAC46C95034
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003f1c547b21f65e10480de3ad8e19faac46c95034
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.