> For the complete documentation index, see [llms.txt](https://docs.gammaswap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gammaswap.com/risks.md).

# Risks

### Smart Contract Risk

GammaSwap uses a smart contract that handles deposits, withdrawals and transfers of funds between accounts at settlement. &#x20;

The smart contract only handles user intent verification and the transfer of funds from one user to another as a result of deposits, withdrawals, trades, and payouts at contract settlement. It does not perform the matching of orders. This vastly reduces the surface area of an exploit.

Regardless, bugs or vulnerabilities in the smart contracts could result in the loss of user funds.

### Liquidity Risk

GammaSwap V2 is a new protocol and each epoch the order books have to repopulate. At times, there may be low liquidity especially during odd hours or on the weekends.&#x20;

Be aware of market slippage which could lead to a bad trading experience or substantial losses. Holding to resolution can help you avoid slippage.

### Rollback Risk

GammaSwap maintains state between the order matching engine ledger and the Base blockchain. Transactions are settled onchain as fast as 15 seconds or up to a few minutes depending on Base network congestion. When transactions settle on Base chain, they are considered finalized.

If there is a mismatch in state due to any number of reasons (base chain down, error in matching engine), trades will be rolled back to the last moment where the state was matched correctly. Any transactions past that point will be reverted. Rollbacks should not happen frequently.

### Oracle Risk

All markets currently use Pyth as the oracle source. If Pyth is compromised or manipulated, the resolution price could be affected.&#x20;

Pyth is a battletested, robust service so the probability of this is low. Pyth mitigates manipulations by taking spot bid ask spreads from a list of 120 data publishers, large market making firms and institutions, instead of directly relying on exchange prices.

We implemented a Time Weighted Average Price (TWAP) to make oracle manipulation more difficult and provide a better trading experience.

*There may be other risks not outlined here. This is not an exhaustive set of risks.*


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.gammaswap.com/risks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
