SavingsXDaiAdapter

Gnosis Browse chains

0xd499b51fcfc66bd31248ef4b28d656d67e591a94

Solidity v0.8.21+commit.d9974bed

🤖
Query this contract from your AI
Reference: 0xd499b51fcfc66bd31248ef4b28d656d67e591a94
Sample prompt: "Tell me the current state of gnosis/0xd499b51fcfc66bd31248ef4b28d656d67e591a94"
No AI wired up yet? → mcp.smarts.md · Browse chains
Gnosis is a docs-only chain on Smarts: source code and ABI are indexed, but live on-chain data (state, recent events, admin profile) is not currently available. AI agents can still query get_contract_info and get_contract_source via MCP.

Overview

Read Functions
4
Write Functions
9
Events
0

Read Functions

interestReceiver() view

Return the address that receives accrued interest for this adapter.✨ AI

Returns

Name Type Description
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

Returns

Name Type Description
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

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

Returns

Name Type Description
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

Returns

Name Type Description
address Address of the wrapped XDAI (wXDAI) token contract.✨ AI

Write Functions

deposit(assets: uint256, receiver: address) nonpayable

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

dev: See {IERC4626-deposit}.

Parameters

Name Type Description
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

Returns

Name Type Description
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

Parameters

Name Type Description
receiver address Address that will receive the minted adapter shares.✨ AI

Returns

Name Type Description
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

dev: 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.

Parameters

Name Type Description
shares uint256 Number of adapter shares to mint.✨ AI
receiver address Address that will receive the minted shares.✨ AI

Returns

Name Type Description
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

dev: See {IERC4626-redeem}.

Parameters

Name Type Description
shares uint256 Number of vault shares to redeem.✨ AI
receiver address Address to receive the redeemed underlying assets.✨ AI

Returns

Name Type Description
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

Parameters

Name Type Description
receiver address Address that will receive the redeemed underlying tokens.✨ AI

Returns

Name Type Description
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

Parameters

Name Type Description
receiver address Address that will receive the redeemed xDAI.✨ AI

Returns

Name Type Description
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

Parameters

Name Type Description
shares uint256 Number of vault shares to redeem.✨ AI
receiver address Address that will receive the redeemed xDAI proceeds.✨ AI

Returns

Name Type Description
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

dev: See {IERC4626-withdraw}.

Parameters

Name Type Description
assets uint256 Number of assets to withdraw.✨ AI
receiver address Address that will receive withdrawn assets.✨ AI

Returns

Name Type Description
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

Parameters

Name Type Description
assets uint256 Amount of xDAI to withdraw, specified in wei.✨ AI
receiver address Address that will receive the withdrawn xDAI.✨ AI

Returns

Name Type Description
uint256 The actual amount of xDAI withdrawn and transferred to the receiver, in wei.✨ AI