lovable skill · lovable-ousd

The OUSD skill, in full.

How to build OUSD payments on Base, Ethereum, Solana and Tempo with Privy wallets, plus the fixes. Lovable uses it automatically on OUSD builds. Add it under Settings → Skills, then type / in chat to call it up.

Download .zip

Failure modes

SymptomCauseFix
Page crashes on loadPrivy imported at the top of a routeLazy-load inside <ClientOnly>
Secret form rejects the nameVITE_* prefixName it PRIVY_APP_ID, read in a route loader
Tempo explorer link 404sUsed /tx/<hash>Use /receipt/<hash>
Tempo send revertsNon-zero valueTIP-20 transfer, value: 0n
Tempo send hangs foreverClient transactions disabled in PrivyEnable it; add a 45s timeout
"Insufficient funds" with OUSD balanceNo gas sponsorshipEnable chain in Privy Gas Sponsorship + sponsor: true
Amount off by 10^12Hardcoded 18 decimalsRead decimals() / getMint
Solana transfer fails "invalid program"Wrong token programUse the mint account's owner as program id
Solana recipient has no accountMissing ATAPrepend idempotent ATA create instruction
429 errorsPublic RPC rate limitServer-only RPC secret, proxy via server function
Success shown but nothing on explorerDidn't wait for confirmationwaitForTransactionReceipt / confirmTransaction first