> For the complete documentation index, see [llms.txt](https://seer-3.gitbook.io/seer-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://seer-3.gitbook.io/seer-documentation/developers/contracts/interaction/sdai-on-gnosis/periphery/savingsxdaiadapter.md).

# SavingsXDaiAdapter

## Variables

### interestReceiver

```solidity
contract IBridgeInterestReceiver interestReceiver
```

### sDAI

```solidity
contract SavingsXDai sDAI
```

### wxdai

```solidity
contract IWXDAI wxdai
```

## Modifiers

### claim

```solidity
modifier claim()
```

## Functions

### constructor

```solidity
constructor(address interestReceiver_, address payable sDAI_) public
```

*Set the underlying asset contract. This must be an ERC20-compatible contract (ERC20 or ERC777).*

### deposit

```solidity
function deposit(uint256 assets, address receiver) public returns (uint256)
```

### mint

```solidity
function mint(uint256 shares, address receiver) public returns (uint256)
```

### withdraw

```solidity
function withdraw(uint256 assets, address receiver) public returns (uint256)
```

### redeem

```solidity
function redeem(uint256 shares, address receiver) public returns (uint256)
```

### depositXDAI

```solidity
function depositXDAI(address receiver) public payable returns (uint256)
```

### withdrawXDAI

```solidity
function withdrawXDAI(uint256 assets, address receiver) public payable returns (uint256)
```

### redeemXDAI

```solidity
function redeemXDAI(uint256 shares, address receiver) public payable returns (uint256)
```

### redeemAll

```solidity
function redeemAll(address receiver) public returns (uint256)
```

### redeemAllXDAI

```solidity
function redeemAllXDAI(address receiver) public payable returns (uint256)
```

### vaultAPY

```solidity
function vaultAPY() external view returns (uint256)
```

### receive

```solidity
receive() external payable
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://seer-3.gitbook.io/seer-documentation/developers/contracts/interaction/sdai-on-gnosis/periphery/savingsxdaiadapter.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
