0x9d39a5de30e57443bff2a8307a4256c8797a3497
Solidity v0.8.19+commit.7dd6d404
Fungible token following the ERC-20 standard.
管理与风险
谁能修改规则?
Detected mintable, ownable, and role based controls from the verified ABI.
当前控制
- Owner
- 0x3b0aaf6e6fcd4a7ceef8c92c32dfea9e64dc1862 ↗ Etherscan → smarts
概览
读取函数
Block #25,493,688 · 31s agoReturns the identifier for the contract's default admin role.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 role identifier that represents the DEFAULT_ADMIN_ROLE used for role-based access control✨ AI |
Returns the EIP-712 domain separator used to verify typed signatures (EIP-2612).✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | EIP-712 domain separator (bytes32) used to validate typed signatures such as permit.✨ AI |
Returns the maximum cooldown duration allowed for unstaking, expressed in seconds.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint24 | The maximum cooldown duration in seconds, returned as a uint24.✨ AI |
Returns the remaining token allowance that owner granted to spender.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address that owns the tokens.✨ AI |
| spender | address | Address authorized to spend tokens on owner's behalf.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Remaining allowance as a uint256 (amount in the token's smallest unit) that spender may transfer from owner.✨ AI |
Return the address of the underlying asset token used by this staked USDe contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The ERC-20 token contract address that serves as the underlying asset for staking.✨ AI |
Return the token balance for the specified account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address whose token balance will be returned.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The account's token balance denominated in the token's smallest units (uint256).✨ AI |
Converts a number of vault shares into the corresponding amount of underlying assets.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shares | uint256 | Number of vault shares to convert to underlying assets.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Amount of underlying assets that the provided shares currently represent.✨ AI |
Convert an asset token amount into the equivalent number of vault shares.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| assets | uint256 | Amount of underlying assets to convert to shares.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Number of shares equivalent to the provided assets, rounded down to avoid exceeding assets.✨ AI |
Returns the cooldown duration in seconds required before tokens become eligible to unstake.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint24 | The cooldown duration in seconds (uint24) that must elapse before tokens can be unstaked.✨ AI |
Returns the cooldown end timestamp and the underlying amount for a given account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| cooldownEnd | uint104 | cooldownEnd: uint104 timestamp (seconds) when the account's cooldown ends.✨ AI |
| underlyingAmount | uint152 | underlyingAmount: uint152 amount of underlying tokens tied to the cooldown for the account.✨ AI |
Return the number of decimal places used by the token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | The token's decimals as a uint8 representing the number of decimal places.✨ AI |
Return the EIP-712 domain components used for signing permits and meta-transactions.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| fields | bytes1 | fields — single byte indicating which EIP-712 domain fields are present.✨ AI |
| name | string | name — domain name string (typically the token name) used in the EIP-712 domain.✨ AI |
| version | string | version — domain version string used in the EIP-712 domain.✨ AI |
| chainId | uint256 | chainId — numeric chain identifier that signatures are bound to.✨ AI |
| verifyingContract | address | verifyingContract — address of the contract that verifies EIP-712 signatures.✨ AI |
| salt | bytes32 | salt — 32-byte salt field included in the domain for uniqueness.✨ AI |
| extensions | uint256[] | extensions — array of uint256 extension values for any custom domain fields.✨ AI |
Returns the admin role that controls the given role.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | Admin role identifier (bytes32) that can grant or revoke the specified role.✨ AI |
Returns the amount of USDe tokens that are unvested in the contract.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
Check if an account currently holds a specific role identifier.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value.✨ AI |
| account | address | Address of the account to check for the role.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the account has the role, otherwise false.✨ AI |
Returns the Unix timestamp of the last reward distribution.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Unix timestamp (seconds) when the contract last distributed staking rewards.✨ AI |
Return the maximum amount the given address can deposit into the contract.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Maximum deposit allowed for the given address, expressed in the underlying token's smallest units.✨ AI |
Return the maximum amount of tokens the address can mint.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Maximum number of tokens the address is allowed to mint, expressed in the token's smallest unit.✨ AI |
Return the maximum amount of shares the given owner can redeem right now.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address owning the shares to be potentially redeemed.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Maximum number of shares the owner can redeem, limited by balance and caller allowance.✨ AI |
Return the maximum amount of underlying tokens the owner can withdraw right now.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address whose withdrawable amount is being queried.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Maximum amount of underlying asset the owner may withdraw, expressed in the contract's asset units.✨ AI |
Returns the ERC-20 token name for this StakedUSDeV2 token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token name as a string.✨ AI |
Return the current permit nonce for an account, used to authorize off-chain approvals.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Account address whose permit nonce is returned.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Current nonce value for the owner that must be included in permit signatures to prevent replay.✨ AI |
Returns the address of the contract owner.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address currently set as the contract owner.✨ AI |
Show how many vault shares you would receive for depositing the given amount of assets.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| assets | uint256 | Amount of underlying assets to deposit (in token smallest units).✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Estimated number of shares that would be minted for the provided asset amount.✨ AI |
Estimate the amount of underlying assets required to mint a given number of vault shares.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shares | uint256 | Number of vault shares to mint.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Amount of underlying asset tokens required to mint the specified shares.✨ AI |
Estimate the amount of underlying tokens you will receive for burning the given shares.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shares | uint256 | Number of vault shares to redeem for underlying tokens.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Estimated amount of underlying USDe tokens that will be returned for the given shares.✨ AI |
Preview how many vault shares you must burn to withdraw a specified amount of underlying assets.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| assets | uint256 | Amount of underlying assets you want to withdraw from the vault.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Estimated number of vault shares required to withdraw the requested assets.✨ AI |
Returns the address of the silo contract associated with this token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the silo contract used by StakedUSDeV2.✨ AI |
Report whether the contract implements the interface identified by the given interfaceId.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| interfaceId | bytes4 | Interface identifier (4-byte) to query, following ERC‑165 conventions.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the contract implements the interface specified by interfaceId; otherwise false.✨ AI |
Returns the token's symbol as a short, human-readable identifier.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token symbol string used as the ERC-20 identifier (e.g., "sUSDe").✨ AI |
Returns the amount of USDe tokens that are vested in the contract.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
Returns the total supply of StakedUSDeV2 tokens.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Total number of tokens in existence as a uint256.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
写入函数
Allows the owner (DEFAULT_ADMIN_ROLE) and blacklist managers to blacklist addresses.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| target | address | The address to blacklist. |
| isFullBlacklisting | bool | Soft or full blacklisting level. |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | |
| amount | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
redeem assets and starts a cooldown to claim the converted underlying asset
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| assets | uint256 | assets to redeem |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| shares | uint256 |
redeem shares into assets and starts a cooldown to claim the converted underlying asset
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shares | uint256 | shares to redeem |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| assets | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | |
| subtractedValue | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| assets | uint256 | |
| receiver | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
admin role cannot be granted externally
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | bytes32 |
| account | address | address |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | |
| addedValue | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shares | uint256 | |
| receiver | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | |
| spender | address | |
| value | uint256 | |
| deadline | uint256 | |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shares | uint256 | |
| receiver | address | |
| _owner | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | The address to burn the entire balance, with the FULL_RESTRICTED_STAKER_ROLE |
| to | address | The address to mint the entire balance of "from" parameter. |
Allows the owner (DEFAULT_ADMIN_ROLE) and blacklist managers to un-blacklist addresses.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| target | address | The address to un-blacklist. |
| isFullBlacklisting | bool | Soft or full blacklisting level. |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | |
| — | address |
Allows the owner to rescue tokens accidentally sent to the contract. Note that the owner cannot rescue USDe tokens because they functionally sit here and belong to stakers but can rescue staked USDe as they should never actually sit in this contract and a staker may well transfer them here by accident.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| token | address | The token to be rescued. |
| amount | uint256 | The amount of tokens to be rescued. |
| to | address | Where to send rescued tokens |
admin role cannot be revoked
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| role | bytes32 | bytes32 |
| account | address | address |
Set cooldown duration. If cooldown duration is set to zero, the StakedUSDeV2 behavior changes to follow ERC4626 standard and disables cooldownShares and cooldownAssets methods. If cooldown duration is greater than zero, the ERC4626 withdrawal and redeem functions are disabled, breaking the ERC4626 standard, and enabling the cooldownShares and the cooldownAssets functions.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| duration | uint24 | Duration of the cooldown |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| to | address | |
| amount | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
This can ONLY be executed by the current admin
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newAdmin | address | address |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | |
| to | address | |
| amount | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool |
Allows the owner to transfer rewards from the controller contract into this contract.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| amount | uint256 | The amount of rewards to transfer. |
Claim the staking amount after the cooldown has finished. The address can only retire the full amount of assets.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| receiver | address | Address to send the assets by the staker |
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| assets | uint256 | |
| receiver | address | |
| _owner | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldAdmin | address | ✓ | |
| newAdmin | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| oldAdmin | address | ✓ | |
| newAdmin | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
Event emitted when cooldown duration updates
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| previousDuration | uint24 | ||
| newDuration | uint24 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| sender | address | ✓ | |
| owner | address | ✓ | |
| assets | uint256 | ||
| shares | uint256 |
Event emitted when the balance from an FULL_RESTRICTED_STAKER_ROLE user are redistributed
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| amount | uint256 |
Event emitted when the rewards are received
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| amount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| previousAdminRole | bytes32 | ✓ | |
| newAdminRole | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| sender | address | ✓ | |
| receiver | address | ✓ | |
| owner | address | ✓ | |
| assets | uint256 | ||
| shares | uint256 |