# Deploy PT and Curve Pool

Spectra's design philosophy revolves around composability and a permissionless approach. Users have the flexibility to deploy PT/YT and an associated [Curve Pool](https://curve.fi) for any token compliant with the ERC-4626 standard, allowing them to harness the full range of Spectra's features.

## Step by Step

### 1. Deploy Principal Token

Use [`deployPT()`](/technical-reference/contract-functions/factory.md#deploypt) to deploy a PT for the IBT and maturity duration of your choice.

### 2. Deploy Curve Pool

Use [`deployCurvePool()`](/technical-reference/contract-functions/factory.md#deploycurvepool) to deploy a Curve Pool for a given PT and its associated IBT. You have to specify the different Curve Pool Parameters.&#x20;

See the [Curve Pool Parameters guide](/technical-reference/spectras-automated-market-makers.md) for more information on the different parameters to choose when deploying a Curve Pool for a Principal Token.

### Alternative : Deploy all at once

Use [`deployAll()`](/technical-reference/contract-functions/factory.md#deployall) to deploy associated PT, Curve Pool  in a single transaction, for a given PT and maturity duration.


---

# 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://dev.spectra.finance/guides/deploy-pt-and-curve-pool.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.
