A PYTH flash loan lets you borrow Pyth Network (PYTH) with zero collateral in a single Solana transaction. You receive the full amount, execute your strategy (arbitrage, liquidation, collateral swap), and repay — all atomically. If repayment fails, the entire transaction reverts.
How much does a PYTH flash loan cost?▼
The current fee for a PYTH flash loan is ~0.10%. This includes the VAEA protocol fee (0.03%) plus the real-time swap cost calculated from Jupiter. Fees update every ~60 seconds based on actual market liquidity.
How much PYTH can I borrow?▼
You can currently borrow large amounts of PYTH. Available liquidity is pulled from Solana lending protocols and updated every 10 seconds. Check the dashboard for real-time availability.
What is the difference between direct and synthetic flash loans?▼
Direct flash loans borrow tokens directly from lending protocols (Marginfi, Kamino, Save) at a fixed 0.03% fee. Synthetic flash loans borrow a base token (SOL/USDC) and swap to your target token via Sanctum or Jupiter, with fees that vary based on market liquidity.
How does the synthetic route work for PYTH?▼
VAEA borrows SOL or USDC from a lending protocol, then swaps to PYTH via Jupiter/Sanctum. After your logic runs, it swaps back and repays — all in one transaction. The swap cost is calculated in real-time using the Price-vs-Quote method.
Which SDKs support PYTH flash loans?▼
VAEA Flash supports PYTH in all three SDKs: TypeScript (npm i @vaea/flash), Rust (cargo add vaea-flash-sdk), and Python (pip install vaea-flash). All SDKs include simulation, fee estimation, and execute functions.
Is it safe to use PYTH flash loans?▼
Yes. Flash loans are atomic — the entire transaction succeeds or reverts. You never lose funds because if the repayment fails, Solana rolls back everything. VAEA's on-chain program verifies repayment before the transaction finalizes.