# Paying with vault shares

> How a fintech with peer-to-peer payments can let its users pay each other in vault shares, skipping the withdraw, transfer and redeposit cycle, and what to account for.

Source: https://docs.trusslabs.io/vaults/overview/paying-with-shares

In an app with peer-to-peer payments, users' balances often sit in a vault. Without share payments, one user paying
another means redeeming from the vault, sending USDC, and depositing it again for the other user. Each leg waits for
settlement, and each is work for the fintech. Vault shares are a standard ERC-20 token, so the payer can send shares
instead, and the recipient holds the same investment at once. This page makes no claim about the legal or tax
treatment of a payment.

> **Key points**
>
> - A share payment is an ordinary token transfer. It is immediate, opens no request, and pays no vault fee.
> - The recipient holds the same investment as the payer, so no money leaves the vault.
> - A payment of a USDC amount is converted to shares at the current share price, which moves with the vault's NAV.
> - Where a holder policy is bound, the recipient must pass it. The sender is never checked.

## Why it helps

| Step | Paying in USDC | Paying in shares |
|---|---|---|
| Payer | Requests a redemption, waits for settlement, claims USDC | Sends shares |
| Transfer | Sends USDC to the recipient | None |
| Recipient | Requests a deposit, waits for settlement, claims shares | Nothing to do |

Each payment in USDC needs two requests and two settlements. It can pay the exit fee and the entry fee on money that
never leaves the vault. It moves liquidity out of the vault and back in for no reason. A share payment avoids all of
that.

## How a payment works

1. Convert the USDC amount to shares with `convertToShares(assets)`.
2. Send the shares with an ERC-20 `transfer`.
3. Show each balance in USDC with `convertToAssets(shares)`.

## What to account for

- Shares have 18 decimals and USDC has 6, so the app converts every amount.
- The share price can move between quoting and sending, so the USDC value received can differ slightly from the
  quote.
- While the vault's NAV (net asset value) is stale, the views answer the last price the vault measured fresh. See
  [Using vault shares in DeFi](https://docs.trusslabs.io/vaults/overview/vault-shares-in-defi.md#pricing-the-share).
- The entry and exit fees apply only when requests settle, so a transfer pays neither. Management and performance
  fees keep accruing in the share price, on what the recipient now holds too.
- A holder policy, for example a KYC allowlist, must admit every recipient. A refused recipient makes the transfer
  revert. With no holder policy bound, any address can receive shares.
- Transfers keep working while the vault is paused.
- On a vault deployed with forced transfers, the VaultAdmin and the vault managers can move shares after a payment is
  made.

## When users hold shares in custody

A fintech may hold its users' shares in its own custody addresses. A payment between two of its users is then an
entry in the fintech's own ledger, and nothing happens on chain. On-chain share payments matter when users hold
shares in their own wallets, or when a payment goes to someone outside the fintech's custody.

## Where to read more

| Page | What it covers |
|---|---|
| [Using vault shares in DeFi](https://docs.trusslabs.io/vaults/overview/vault-shares-in-defi.md) | How shares are priced, and what a contract holding them must handle |
| [Vault policies](https://docs.trusslabs.io/vaults/policies/vault-policies.md) | The holder policy, and where it is asked |
| [Flow of funds](https://docs.trusslabs.io/vaults/flow-of-funds.md) | Deposits and redemptions, the cycle a share payment skips |
| [Forced transfers](https://docs.trusslabs.io/vaults/compliance/forced-transfers.md) | When shares can be moved without the holder |
