sUSDe

Ethereum ERC-20 Token 浏览链

0x9d39a5de30e57443bff2a8307a4256c8797a3497

Solidity v0.8.19+commit.7dd6d404

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: susde-eth 0x9d39a5de30e57443bff2a8307a4256c8797a3497
示例提示词: "Tell me the current state of susde-eth"
还没有接入 AI?→ mcp.smarts.md · 浏览链

管理与风险

谁能修改规则?

Block #25,493,688

Detected mintable, ownable, and role based controls from the verified ABI.

Mintable Ownable Role Based

当前控制

Owner
0x3b0aaf6e6fcd4a7ceef8c92c32dfea9e64dc1862 ↗ Etherscan → smarts

概览

读取函数
33
写入函数
24
事件
13

读取函数

Block #25,493,688 · 31s ago
DEFAULT_ADMIN_ROLE() view → 0x0000000000000000000000000000000000000000000000000000000000000000

Returns 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
DOMAIN_SEPARATOR() view → 0x940284ae30a8660e5c2bae12953bc4bd5a028a0f55e1dd2c19a8c1473d3eb553

Returns the EIP-712 domain separator used to verify typed signatures (EIP-2612).✨ AI

开发者: Computed from the contract name, version, chainId, and address per EIP-712; it changes if chainId or address change.✨ AI

返回值

名称 类型 描述
bytes32 EIP-712 domain separator (bytes32) used to validate typed signatures such as permit.✨ AI
MAX_COOLDOWN_DURATION() view → 7,776,000

Returns the maximum cooldown duration allowed for unstaking, expressed in seconds.✨ AI

返回值

名称 类型 描述
uint24 The maximum cooldown duration in seconds, returned as a uint24.✨ AI
allowance(owner: address, spender: address) view

Returns the remaining token allowance that owner granted to spender.✨ AI

开发者: 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.

参数

名称 类型 描述
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
asset() view → 0x4c9edd5852cd905f086c759e8383e09bff1e68b3

Return the address of the underlying asset token used by this staked USDe contract.✨ AI

开发者: See {IERC4626-asset}.

返回值

名称 类型 描述
address The ERC-20 token contract address that serves as the underlying asset for staking.✨ AI
balanceOf(account: address) view

Return the token balance for the specified account.✨ AI

开发者: Returns the amount of tokens owned by `account`.

参数

名称 类型 描述
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
convertToAssets(shares: uint256) view

Converts a number of vault shares into the corresponding amount of underlying assets.✨ AI

开发者: See {IERC4626-convertToAssets}.

参数

名称 类型 描述
shares uint256 Number of vault shares to convert to underlying assets.✨ AI

返回值

名称 类型 描述
uint256 Amount of underlying assets that the provided shares currently represent.✨ AI
convertToShares(assets: uint256) view

Convert an asset token amount into the equivalent number of vault shares.✨ AI

开发者: See {IERC4626-convertToShares}.

参数

名称 类型 描述
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
cooldownDuration() view → 86,400

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
cooldowns(address) view

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
decimals() pure → 18

Return the number of decimal places used by the token.✨ AI

开发者: Necessary because both ERC20 (from ERC20Permit) and ERC4626 declare decimals()

返回值

名称 类型 描述
uint8 The token's decimals as a uint8 representing the number of decimal places.✨ AI
eip712Domain() view → 0x0f, sUSDe, 1, 1, 0x9d39a5de30e57443bff2a8307a4256c8797a3497, 0x0000000000000000000000000000000000000000000000000000000000000000, []

Return the EIP-712 domain components used for signing permits and meta-transactions.✨ AI

开发者: See {EIP-5267}. _Available since v4.9._

返回值

名称 类型 描述
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
getRoleAdmin(role: bytes32) view

Returns the admin role that controls the given role.✨ AI

开发者: Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.

参数

名称 类型 描述
role bytes32 Role identifier as a bytes32 value.✨ AI

返回值

名称 类型 描述
bytes32 Admin role identifier (bytes32) that can grant or revoke the specified role.✨ AI
getUnvestedAmount() view → 10,737,867,329,166,666,666,666

Returns the amount of USDe tokens that are unvested in the contract.

返回值

名称 类型 描述
uint256
hasRole(role: bytes32, account: address) view

Check if an account currently holds a specific role identifier.✨ AI

开发者: Returns `true` if `account` has been granted `role`.

参数

名称 类型 描述
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
lastDistributionTimestamp() view → 1,783,560,647

Returns the Unix timestamp of the last reward distribution.✨ AI

返回值

名称 类型 描述
uint256 Unix timestamp (seconds) when the contract last distributed staking rewards.✨ AI
maxDeposit(address) view

Return the maximum amount the given address can deposit into the contract.✨ AI

开发者: See {IERC4626-maxDeposit}.

参数

名称 类型 描述
address

返回值

名称 类型 描述
uint256 Maximum deposit allowed for the given address, expressed in the underlying token's smallest units.✨ AI
maxMint(address) view

Return the maximum amount of tokens the address can mint.✨ AI

开发者: See {IERC4626-maxMint}.

参数

名称 类型 描述
address

返回值

名称 类型 描述
uint256 Maximum number of tokens the address is allowed to mint, expressed in the token's smallest unit.✨ AI
maxRedeem(owner: address) view

Return the maximum amount of shares the given owner can redeem right now.✨ AI

开发者: See {IERC4626-maxRedeem}.

参数

名称 类型 描述
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
maxWithdraw(owner: address) view

Return the maximum amount of underlying tokens the owner can withdraw right now.✨ AI

开发者: See {IERC4626-maxWithdraw}.

参数

名称 类型 描述
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
name() view → Staked USDe

Returns the ERC-20 token name for this StakedUSDeV2 token.✨ AI

开发者: Returns the name of the token.

返回值

名称 类型 描述
string The token name as a string.✨ AI
nonces(owner: address) view

Return the current permit nonce for an account, used to authorize off-chain approvals.✨ AI

开发者: See {IERC20Permit-nonces}.

参数

名称 类型 描述
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
owner() view → 0x3b0aaf6e6fcd4a7ceef8c92c32dfea9e64dc1862

Returns the address of the contract owner.✨ AI

开发者: See {IERC5313-owner}.

返回值

名称 类型 描述
address The address currently set as the contract owner.✨ AI
previewDeposit(assets: uint256) view

Show how many vault shares you would receive for depositing the given amount of assets.✨ AI

开发者: See {IERC4626-previewDeposit}.

参数

名称 类型 描述
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
previewMint(shares: uint256) view

Estimate the amount of underlying assets required to mint a given number of vault shares.✨ AI

开发者: See {IERC4626-previewMint}.

参数

名称 类型 描述
shares uint256 Number of vault shares to mint.✨ AI

返回值

名称 类型 描述
uint256 Amount of underlying asset tokens required to mint the specified shares.✨ AI
previewRedeem(shares: uint256) view

Estimate the amount of underlying tokens you will receive for burning the given shares.✨ AI

开发者: See {IERC4626-previewRedeem}.

参数

名称 类型 描述
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
previewWithdraw(assets: uint256) view

Preview how many vault shares you must burn to withdraw a specified amount of underlying assets.✨ AI

开发者: See {IERC4626-previewWithdraw}.

参数

名称 类型 描述
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
silo() view → 0x7fc7c91d556b400afa565013e3f32055a0713425

Returns the address of the silo contract associated with this token.✨ AI

返回值

名称 类型 描述
address The address of the silo contract used by StakedUSDeV2.✨ AI
supportsInterface(interfaceId: bytes4) view

Report whether the contract implements the interface identified by the given interfaceId.✨ AI

开发者: See {IERC165-supportsInterface}.

参数

名称 类型 描述
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
symbol() view → sUSDe

Returns the token's symbol as a short, human-readable identifier.✨ AI

开发者: Returns the symbol of the token, usually a shorter version of the name.

返回值

名称 类型 描述
string The token symbol string used as the ERC-20 identifier (e.g., "sUSDe").✨ AI
totalAssets() view → 1,616,617,179,271,575,835,101,153,340

Returns the amount of USDe tokens that are vested in the contract.

返回值

名称 类型 描述
uint256
totalSupply() view → 1,305,299,051.34 sUSDe

Returns the total supply of StakedUSDeV2 tokens.✨ AI

开发者: Returns the amount of tokens in existence.

返回值

名称 类型 描述
uint256 Total number of tokens in existence as a uint256.✨ AI
vestingAmount() view → 56,889,363,333,333,333,333,333

返回值

名称 类型 描述
uint256

写入函数

acceptAdmin() nonpayable
addToBlacklist(target: address, isFullBlacklisting: bool) nonpayable

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.
approve(spender: address, amount: uint256) nonpayable
开发者: 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.

参数

名称 类型 描述
spender address
amount uint256

返回值

名称 类型 描述
bool
cooldownAssets(assets: uint256) nonpayable

redeem assets and starts a cooldown to claim the converted underlying asset

参数

名称 类型 描述
assets uint256 assets to redeem

返回值

名称 类型 描述
shares uint256
cooldownShares(shares: uint256) nonpayable

redeem shares into assets and starts a cooldown to claim the converted underlying asset

参数

名称 类型 描述
shares uint256 shares to redeem

返回值

名称 类型 描述
assets uint256
decreaseAllowance(spender: address, subtractedValue: uint256) nonpayable
开发者: Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.

参数

名称 类型 描述
spender address
subtractedValue uint256

返回值

名称 类型 描述
bool
deposit(assets: uint256, receiver: address) nonpayable
开发者: See {IERC4626-deposit}.

参数

名称 类型 描述
assets uint256
receiver address

返回值

名称 类型 描述
uint256
grantRole(role: bytes32, account: address) nonpayable

admin role cannot be granted externally

参数

名称 类型 描述
role bytes32 bytes32
account address address
increaseAllowance(spender: address, addedValue: uint256) nonpayable
开发者: Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.

参数

名称 类型 描述
spender address
addedValue uint256

返回值

名称 类型 描述
bool
mint(shares: uint256, receiver: address) nonpayable
开发者: See {IERC4626-mint}. As opposed to {deposit}, minting is allowed even if the vault is in a state where the price of a share is zero. In this case, the shares will be minted without requiring any assets to be deposited.

参数

名称 类型 描述
shares uint256
receiver address

返回值

名称 类型 描述
uint256
permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable
开发者: See {IERC20Permit-permit}.

参数

名称 类型 描述
owner address
spender address
value uint256
deadline uint256
v uint8
r bytes32
s bytes32
redeem(shares: uint256, receiver: address, _owner: address) nonpayable
开发者: See {IERC4626-redeem}.

参数

名称 类型 描述
shares uint256
receiver address
_owner address

返回值

名称 类型 描述
uint256
redistributeLockedAmount(from: address, to: address) nonpayable
开发者: Burns the full restricted user amount and mints to the desired owner address.

参数

名称 类型 描述
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.
removeFromBlacklist(target: address, isFullBlacklisting: bool) nonpayable

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.
renounceRole(bytes32, address) nonpayable
开发者: Remove renounce role access from AccessControl, to prevent users to resign roles.

参数

名称 类型 描述
bytes32
address
rescueTokens(token: address, amount: uint256, to: address) nonpayable

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
revokeRole(role: bytes32, account: address) nonpayable

admin role cannot be revoked

参数

名称 类型 描述
role bytes32 bytes32
account address address
setCooldownDuration(duration: uint24) nonpayable

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
transfer(to: address, amount: uint256) nonpayable
开发者: Moves `amount` tokens from the caller's account to `to`. Returns a boolean value indicating whether the operation succeeded. Emits a {Transfer} event.

参数

名称 类型 描述
to address
amount uint256

返回值

名称 类型 描述
bool
transferAdmin(newAdmin: address) nonpayable

This can ONLY be executed by the current admin

参数

名称 类型 描述
newAdmin address address
transferFrom(from: address, to: address, amount: uint256) nonpayable
开发者: 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.

参数

名称 类型 描述
from address
to address
amount uint256

返回值

名称 类型 描述
bool
transferInRewards(amount: uint256) nonpayable

Allows the owner to transfer rewards from the controller contract into this contract.

参数

名称 类型 描述
amount uint256 The amount of rewards to transfer.
unstake(receiver: address) nonpayable

Claim the staking amount after the cooldown has finished. The address can only retire the full amount of assets.

开发者: unstake can be called after cooldown have been set to 0, to let accounts to be able to claim remaining assets locked at Silo

参数

名称 类型 描述
receiver address Address to send the assets by the staker
withdraw(assets: uint256, receiver: address, _owner: address) nonpayable
开发者: See {IERC4626-withdraw}.

参数

名称 类型 描述
assets uint256
receiver address
_owner address

返回值

名称 类型 描述
uint256

事件

AdminTransferRequested(oldAdmin: address, newAdmin: address)
名称 类型 已索引 描述
oldAdmin address
newAdmin address
AdminTransferred(oldAdmin: address, newAdmin: address)
名称 类型 已索引 描述
oldAdmin address
newAdmin address
Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address
spender address
value uint256
CooldownDurationUpdated(previousDuration: uint24, newDuration: uint24)

Event emitted when cooldown duration updates

名称 类型 已索引 描述
previousDuration uint24
newDuration uint24
Deposit(sender: address, owner: address, assets: uint256, shares: uint256)
名称 类型 已索引 描述
sender address
owner address
assets uint256
shares uint256
EIP712DomainChanged()
LockedAmountRedistributed(from: address, to: address, amount: uint256)

Event emitted when the balance from an FULL_RESTRICTED_STAKER_ROLE user are redistributed

名称 类型 已索引 描述
from address
to address
amount uint256
RewardsReceived(amount: uint256)

Event emitted when the rewards are received

名称 类型 已索引 描述
amount uint256
RoleAdminChanged(role: bytes32, previousAdminRole: bytes32, newAdminRole: bytes32)
名称 类型 已索引 描述
role bytes32
previousAdminRole bytes32
newAdminRole bytes32
RoleGranted(role: bytes32, account: address, sender: address)
名称 类型 已索引 描述
role bytes32
account address
sender address
RoleRevoked(role: bytes32, account: address, sender: address)
名称 类型 已索引 描述
role bytes32
account address
sender address
Transfer(from: address, to: address, value: uint256)
名称 类型 已索引 描述
from address
to address
value uint256
Withdraw(sender: address, receiver: address, owner: address, assets: uint256, shares: uint256)
名称 类型 已索引 描述
sender address
receiver address
owner address
assets uint256
shares uint256