> For the complete documentation index, see [llms.txt](https://pegasys.gitbook.io/pegasys-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pegasys.gitbook.io/pegasys-docs/technical-details/staking.md).

# Staking

The security of the PegaSys network is derived from Ethereum. To participate in the PegaSys network, each node must stake wBTC in an Ethereum staking contract. The staked wBTC tokens are subject to slashing in the case that the node exhibits provably malicious behaviour. As demonstrated in the following section, the TVL safely manageable by the network is proportional to the square of the total stake. Therefore, in order to prevent market fluctuations from affecting this ratio, the asset staked is wBTC.&#x20;

The network is designed to withstand up to f faulty nodes out of a total of 3f + 1 nodes, meaning it can function correctly as long as fewer than one-third (approximately 33%) of the nodes are faulty. However, if more than one-third of the nodes collude, the network’s integrity may be compromised, and our users’ funds will be at risk. Since this outcome is unacceptable, the system incorporates a game theory-based mechanism which can tolerate collusion of any size in the presence of at least one honest node.

### Quadratic Staking Impact

This mechanism incentivizes nodes to detect and report collusion by offering them all the stake in the system as a reward for reporting an offense. The goal is to make it more profitable for at least one node to act honestly than for anyone to collude, thereby making collusion an irrational choice for any node.

Consider a system with N nodes, where each node must stake a fixed amount S of wBTC to participate. The total staked amount across the network would then be N · S wBTC. If the protocol allows a single honest party to provably report misconduct by a malicious majority and claim their stake, the cost of bribing a single node is (N − 1)S. It follows that the cost of bribing the whole system is N(N − 1)S, ensuring that the system can safely control O(S\*N^2 ) TVL. This is an imperative property since the network should control more in TVL than its total stake, otherwise is no incentive to be a part of the protocol.


---

# 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://pegasys.gitbook.io/pegasys-docs/technical-details/staking.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.
