Shader
Credits

DocsConcepts6 of 35 · 2 min read

Credits

The unit every price is in, what one is worth, and how each payment asset becomes credits.

One credit is worth $0.001, so 1,000 credits make a dollar. GPU rates, generation prices, agent caps and receipts are all in credits. On chain and in the API they are counted in base units: 1,000 to a credit, one base unit to one USDC atom.

#The credit account

Your credits live on chain in a CreditAccount owned by your wallet, created by your first deposit. It holds two parts:

PartBought withBehind it
USDC-backed creditsUSDC, SOL or an xStockThe USDC in the treasury
SHDR-backed creditsSHDRThe SHDR held in escrow at deposit

When you are charged, SHDR-backed credits are spent first, so more SHDR reaches the hourly burn. The account's fields are on Program accounts.

#How each asset becomes credits

From the wallet to a receipt
  1. WalletSOL, USDC, SHDR, xStocks
  2. Credits1 credit = $0.001
  3. Meterper second
  4. Settlementevery 60 s
  5. ReceiptReceipt event

Every hour, the SHDR behind used credits is burned, and the protocol share buys NVDAx for the Earn pool.

AssetMintHow it becomes credits
USDC (USD Coin)EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vCredited at its dollar value, one to one, by deposit_usdc
SOL (Solana)So11111111111111111111111111111111111111112Swapped to USDC through Jupiter in the deposit transaction and credited at the quote's minimum output; any extra USDC from the swap stays in your wallet
NVDAx (NVIDIA xStock)Xsc9qvGR1efVDFGLrVsmkzv3qi45LTBjeUKSPmx9qEhSwapped to USDC through Jupiter, like SOL
TSLAx (Tesla xStock)XsDoVfqeBukxuZHWhdvWHBhgEHjGNst4MLodqsJHzoBSwapped to USDC through Jupiter, like SOL
AAPLx (Apple xStock)XsbEhLAtcf6HdfpFZ5xEMdqW8nfAvcsP5bdudRLJzJpSwapped to USDC through Jupiter, like SOL
SHDRListed once the token launchesHeld in escrow and credited at its USDC quote, which the price signer co-signs, by deposit_shdr

The xStocks are tokenized shares issued by Backed Finance as Token-2022 mints. A SOL deposit leaves 0.01 SOL in your wallet for transaction fees. Deposit walks through each asset.

#Headroom and what is available

A launch needs 300 credits of headroom, counted after the credits that running rentals and pending generations have already reserved. A generation needs its full estimate available. A rental stops by itself when the balance reaches zero.