# Nexus Bridge DAI

Nexus Bridge DAI allows a rollup to deposit the DAI locked in the rollup bridge to the DSR saving contract from MakerDAO and earn yields. These are the functions used to enable the feature:

1. **Deposit DAI**: This function deposits the DAI on rollup bridge to the Maker DAO DSR contract. It is an automated action that takes place whenever a user deposits DAI to the rollup

   ```solidity
   function depositDai(uint256 amountSave)
   ```

2. **Remove DAI**: This function removes DAI from the DSR contract and gives it back to the user whenever they claim the DAI from the bridge

   ```solidity
   function removeDai(address user, uint256 amountRedeem)
   ```

3. **Claim Rewards DAI**: This function is used by the rollup governance to claim and utilize the DSR rewards

   ```solidity
   function claimRewardsDAI(address address_to_send)
   ```

*<mark style="color:blue;">The design architectures for DAI can be customized in a similar manner to ETH, which is detailed</mark>* [*<mark style="color:blue;">here</mark>*](/product-docs/developer-docs/smart-contracts/nexus-bridge-eth/different-nexus-bridge-architecture.md)


---

# Agent Instructions: 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://web3navigators.gitbook.io/product-docs/developer-docs/smart-contracts/nexus-bridge-dai.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.
