# Technical details

Stazys delivers secure, autonomous strategies with one-click deposits and withdrawals. Here's how it works.

### Position Graphs: On-Chain Route Encoding

Strategies are encoded into **position graphs,** on-chain representations containing only token positions and protocol interactions. Routes are **encoded in the graph**, ensuring assets cannot escape their predefined paths. Custody remains with the on-chain program at all times, and the engine executes the graph exactly as designed.

### Optimistic Execution with Proof Verification

Strategy logic is assured **optimistically by our engine**. The engine executes each step and posts a **transaction proof** for every operation, including:

* The path taken through the strategy
* Token mints and amounts moved
* Protocol interactions and parameters
* Transaction hash and on-chain data

**Users can verify** that their strategies were correctly executed by checking these proofs. This transparency ensures strategy integrity while maintaining autonomous execution.

### One-Click Deposits and Withdrawals

Enabling seamless deposits and withdrawals requires permissionless AUM (assets under management) calculation without price manipulation risk. Stazys uses multiple security layers:

* **Authorized Token List** — Only tokens with sufficient liquidity, market depth, price stability, and audited provenance
* **Pyth TWAP Oracles** — Time-weighted average prices (30-second window) from multiple sources, verified on-chain with staleness protection
* **Redemption Fee Protection** — 0.1% fee plus rounding-down mechanisms to prevent micro-exploits

Together, these mechanisms secure the ecosystem while enabling accurate, 1-click user interactions.


---

# 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://stazys.gitbook.io/stazys-docs/stragies-and-vaults/technical-details.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.
