> For the complete documentation index, see [llms.txt](https://gabriel-j-shapiro.gitbook.io/metalex-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gabriel-j-shapiro.gitbook.io/metalex-docs/protocol-how-to-guides/convert-safe-to-equity.md).

# Convert SAFEs to equity

When a cyberCORP runs a priced round, outstanding SAFEs convert to equity. The `SafeCertificateConverter` computes the conversion plan from round data.

> **The `SafeCertificateConverter` is currently a stub** — the body of `computeConversion` is commented out in the source and the function returns an empty plan. This guide describes the intended use; do not rely on it for live conversions until the implementation lands. See [SafeCertificateConverter](/metalex-docs/protocol-reference/contracts/safecertificateconverter.md).

## Intended usage

```solidity
import {ICertificateConverter} from "src/interfaces/ICertificateConverter.sol";

ConversionPlan memory plan = ICertificateConverter(CONVERTER).computeConversion(
    roundManager,   // the RoundManager running the priced round
    roundId,        // bytes32 — the priced round
    certPrinter,    // the SAFE cert printer
    tokenId         // the SAFE cyberCERT to convert
);
```

The converter reads the SAFE cert's `investmentAmountUSD` and `issuerUSDValuationAtTimeOfInvestment`, the round's price and cap-table snapshot, and applies the round's rounding policy to produce a share count and target class/series.

The resulting plan is then executed by issuing the new equity cyberCERTs through the IssuanceManager (see [Issue a cyberCERT](/metalex-docs/protocol-how-to-guides/issue-a-cybercert.md)) and voiding the SAFE certs.

## Related

* [SafeCertificateConverter](/metalex-docs/protocol-reference/contracts/safecertificateconverter.md), [RoundManager](/metalex-docs/protocol-reference/contracts/roundmanager.md).


---

# 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://gabriel-j-shapiro.gitbook.io/metalex-docs/protocol-how-to-guides/convert-safe-to-equity.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.
