sUSDe
Ethereum ERC-20 Token0x9d39a5de30e57443bff2a8307a4256c8797a3497
Solidity v0.8.19+commit.7dd6d404
Fungible token following the ERC-20 standard.
Admin & Risk
Who can change the rules?
Detected mintable, ownable, and role based controls from the verified ABI.
Current controls
- Owner
- 0x3b0aaf6e6fcd4a7ceef8c92c32dfea9e64dc1862 ↗ Etherscan → smarts
Overview
Read Functions
Block #25,169,551 · just nowReturns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint24 |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| spender | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| account | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| shares | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| assets | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint24 |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| cooldownEnd | uint104 | |
| underlyingAmount | uint152 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 |
Returns
| Name | Type | Description |
|---|---|---|
| fields | bytes1 | |
| name | string | |
| version | string | |
| chainId | uint256 | |
| verifyingContract | address | |
| salt | bytes32 | |
| extensions | uint256[] |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns the amount of USDe tokens that are unvested in the contract.
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | |
| account | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| assets | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| shares | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| shares | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| assets | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| interfaceId | bytes4 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns the amount of USDe tokens that are vested in the contract.
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Write Functions
Allows the owner (DEFAULT_ADMIN_ROLE) and blacklist managers to blacklist addresses.
Parameters
| Name | Type | Description |
|---|---|---|
| target | address | The address to blacklist. |
| isFullBlacklisting | bool | Soft or full blacklisting level. |
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
redeem assets and starts a cooldown to claim the converted underlying asset
Parameters
| Name | Type | Description |
|---|---|---|
| assets | uint256 | assets to redeem |
Returns
| Name | Type | Description |
|---|---|---|
| shares | uint256 |
redeem shares into assets and starts a cooldown to claim the converted underlying asset
Parameters
| Name | Type | Description |
|---|---|---|
| shares | uint256 | shares to redeem |
Returns
| Name | Type | Description |
|---|---|---|
| assets | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| subtractedValue | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| assets | uint256 | |
| receiver | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
admin role cannot be granted externally
Parameters
| Name | Type | Description |
|---|---|---|
| role | bytes32 | bytes32 |
| account | address | address |
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| addedValue | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| shares | uint256 | |
| receiver | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| spender | address | |
| value | uint256 | |
| deadline | uint256 | |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Parameters
| Name | Type | Description |
|---|---|---|
| shares | uint256 | |
| receiver | address | |
| _owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| 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.
Parameters
| Name | Type | Description |
|---|---|---|
| target | address | The address to un-blacklist. |
| isFullBlacklisting | bool | Soft or full blacklisting level. |
Parameters
| Name | Type | Description |
|---|---|---|
| — | 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.
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| 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.
Parameters
| Name | Type | Description |
|---|---|---|
| duration | uint24 | Duration of the cooldown |
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
This can ONLY be executed by the current admin
Parameters
| Name | Type | Description |
|---|---|---|
| newAdmin | address | address |
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Allows the owner to transfer rewards from the controller contract into this contract.
Parameters
| Name | Type | Description |
|---|---|---|
| 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.
Parameters
| Name | Type | Description |
|---|---|---|
| receiver | address | Address to send the assets by the staker |
Parameters
| Name | Type | Description |
|---|---|---|
| assets | uint256 | |
| receiver | address | |
| _owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldAdmin | address | ✓ | |
| newAdmin | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldAdmin | address | ✓ | |
| newAdmin | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
Event emitted when cooldown duration updates
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousDuration | uint24 | ||
| newDuration | uint24 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| sender | address | ✓ | |
| owner | address | ✓ | |
| assets | uint256 | ||
| shares | uint256 |
Event emitted when the balance from an FULL_RESTRICTED_STAKER_ROLE user are redistributed
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| amount | uint256 |
Event emitted when the rewards are received
| Name | Type | Indexed | Description |
|---|---|---|---|
| amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| role | bytes32 | ✓ | |
| previousAdminRole | bytes32 | ✓ | |
| newAdminRole | bytes32 | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| sender | address | ✓ | |
| receiver | address | ✓ | |
| owner | address | ✓ | |
| assets | uint256 | ||
| shares | uint256 |