SavingsXDaiAdapter
Gnosis0xd499b51fcfc66bd31248ef4b28d656d67e591a94
Solidity v0.8.21+commit.d9974bed
概覽
讀取函式
Return the address that receives accrued interest for this adapter.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address that collects or is designated to receive interest accrued by the Savings xDai adapter.✨ AI |
Returns the sDAI token contract address used by this adapter.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The sDAI token contract address that the adapter interacts with.✨ AI |
Return the current annual percentage yield (APY) for the vault.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Vault APY as a uint256; interpretation depends on the contract's fixed-point scaling.✨ AI |
Get the wXDAI token contract address.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the wrapped XDAI (wXDAI) token contract.✨ AI |
寫入函式
Deposit a specified amount of assets into the adapter and mint shares to the receiver.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| assets | uint256 | Amount of underlying assets to deposit (in the token's smallest unit).✨ AI |
| receiver | address | Address that will receive the minted adapter shares.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Number of adapter shares minted to the receiver (uint256).✨ AI |
Deposit sent xDai into the adapter and credit the receiver with minted shares.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| receiver | address | Address that will receive the minted adapter shares.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Number of adapter shares minted and credited to the receiver.✨ AI |
Mint adapter shares and assign them to the specified receiver.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| shares | uint256 | Number of adapter shares to mint.✨ AI |
| receiver | address | Address that will receive the minted shares.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The number of adapter tokens actually minted to the receiver.✨ AI |
Redeems the specified number of vault shares and sends the resulting underlying assets to the receiver.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| shares | uint256 | Number of vault shares to redeem.✨ AI |
| receiver | address | Address to receive the redeemed underlying assets.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Amount of underlying tokens returned to the receiver.✨ AI |
Redeem all of the adapter's shares and transfer the resulting underlying tokens to the given receiver.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| receiver | address | Address that will receive the redeemed underlying tokens.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total amount of underlying tokens transferred to the receiver as a uint256.✨ AI |
Redeem all saved xDAI and transfer the resulting xDAI to the specified receiver address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| receiver | address | Address that will receive the redeemed xDAI.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total amount of xDAI redeemed and sent to the receiver, expressed in wei.✨ AI |
Redeem vault shares for xDAI and send the proceeds to the specified receiver.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| shares | uint256 | Number of vault shares to redeem.✨ AI |
| receiver | address | Address that will receive the redeemed xDAI proceeds.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Amount of xDAI transferred to the receiver, denominated in wei.✨ AI |
Withdraws the specified amount of assets and sends them to the receiver.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| assets | uint256 | Number of assets to withdraw.✨ AI |
| receiver | address | Address that will receive withdrawn assets.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Actual amount of assets transferred to the receiver.✨ AI |
Withdraws a specified amount of xDAI and sends it to the receiver.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| assets | uint256 | Amount of xDAI to withdraw, specified in wei.✨ AI |
| receiver | address | Address that will receive the withdrawn xDAI.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The actual amount of xDAI withdrawn and transferred to the receiver, in wei.✨ AI |