SavingsXDaiAdapter

Gnosis

0xd499b51fcfc66bd31248ef4b28d656d67e591a94

Solidity v0.8.21+commit.d9974bed

🤖
透過你的 AI 查詢此合約
參考: 0xd499b51fcfc66bd31248ef4b28d656d67e591a94
範例提示詞: "Tell me the current state of gnosis/0xd499b51fcfc66bd31248ef4b28d656d67e591a94"
還沒有接入 AI?→ mcp.smarts.md
Gnosis 在 Smarts 上是僅文件鏈:原始碼和 ABI 已索引,但目前不提供即時鏈上資料(狀態、最新事件、管理員概覽)。AI 代理仍可透過 MCP 呼叫 get_contract_info 和 get_contract_source。

概覽

讀取函式
4
寫入函式
9
事件
0

讀取函式

interestReceiver() view

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
sDAI() view

Returns the sDAI token contract address used by this adapter.✨ AI

回傳值

名稱 類型 描述
address The sDAI token contract address that the adapter interacts with.✨ AI
vaultAPY() view

Return the current annual percentage yield (APY) for the vault.✨ AI

開發者: APY returned as uint256 in contract-specific fixed-point format; check docs for scaling (e.g. 1e18).✨ AI

回傳值

名稱 類型 描述
uint256 Vault APY as a uint256; interpretation depends on the contract's fixed-point scaling.✨ AI
wxdai() view

Get the wXDAI token contract address.✨ AI

回傳值

名稱 類型 描述
address Address of the wrapped XDAI (wXDAI) token contract.✨ AI

寫入函式

deposit(assets: uint256, receiver: address) nonpayable

Deposit a specified amount of assets into the adapter and mint shares to the receiver.✨ AI

開發者: See {IERC4626-deposit}.

參數

名稱 類型 描述
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
depositXDAI(receiver: address) payable

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(shares: uint256, receiver: address) nonpayable

Mint adapter shares and assign them to the specified receiver.✨ AI

開發者: 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 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
redeem(shares: uint256, receiver: address) nonpayable

Redeems the specified number of vault shares and sends the resulting underlying assets to the receiver.✨ AI

開發者: See {IERC4626-redeem}.

參數

名稱 類型 描述
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
redeemAll(receiver: address) nonpayable

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
redeemAllXDAI(receiver: address) payable

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
redeemXDAI(shares: uint256, receiver: address) payable

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
withdraw(assets: uint256, receiver: address) nonpayable

Withdraws the specified amount of assets and sends them to the receiver.✨ AI

開發者: See {IERC4626-withdraw}.

參數

名稱 類型 描述
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
withdrawXDAI(assets: uint256, receiver: address) payable

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