# Fund a perps account from any token

> Users pay with whatever token they hold. It lands as USDC margin in their Lighter account in one transaction.

- Status: coming. In build: planned design, no dates.
- Who it's for: Wallets, exchanges and trading apps with a perps tab
- Page: https://composer-experiences.li.quest/templates/perps-margin

## What you get

- One transaction, whatever token the user starts with
- Margin is credited to the user’s own Lighter account, never to a LI.FI address
- Simulated before signing, so a bad deposit never goes out

## What runs, in order

A step without ops is work outside the flow, such as the user paying in. `×n` marks an op the flow repeats.

1. User pays (Base): Any token
2. Check the Lighter account (Lighter): Before anything is compiled
3. Swap and deposit into Lighter (Base to Lighter): Credited to the user’s Lighter account. Ops: `lifi.bridge`

## What you control

| Parameter | Set by |
| --- | --- |
| Token | Passed by your user |
| Venue | Lighter |
| Credited account | Your user’s wallet, with a Lighter account |
| Slippage | 0.5% |

## Get it

This template is not built yet. To get early access or build it with LI.FI, talk to the team: https://composer-experiences.li.quest/contact?template=perps-margin

## Composer references

- [Composer API llms.txt](https://composer.li.quest/llms.txt)
- [Operation manifest](https://composer.li.quest/compose/manifest): the source of truth for operations
- [Docs](https://docs.li.fi/composer/overview.md)
- Stuck? `POST https://composer.li.quest/feedback` with what you tried; it needs no key.
