# Rebasing & Smart Contracts

Note that standard EOA wallets are automatically enrolled in receiving yield. Users don't need to call extra functions. Your anS balance will increase as yield is distributed to your wallet.

For multi-sig wallets or other smart contracts to earn yield, they must call `rebaseOptIn()`.  The Governor of anS contract can also opt in any contract that doesn't support a `rebaseOptIn()` call.

By default, anS held within smart contracts do not participate in rebasing and forfeit yield unless the smart contract explicitly opts in. This approach enhances the composability of these tokens in DeFi, as many protocols are not built to handle balance changes without specific account-related events being emitted.

To other DeFi protocols, anS behaves like a standard ERC-20 token until explicitly instructed to rebase. This makes them particularly compatible with automated market makers (AMMs) like Uniswap, which rely on fixed token balances and can malfunction if balances change unexpectedly.


---

# 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://angles.gitbook.io/angles/core-concepts/rebasing-and-smart-contracts.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.
