Flash Loan icon
Solana

Flash Loan

Protocol implementation focused on instruction-sysvar validation and atomic loan repayment guarantees.

Atomic repay checks · PDA vault authority · LiteSVM tests
RustAnchorSolanaSPL Tokens

Overview

This flash-loan program lends from a controlled vault and validates same-transaction repayment before completion.

Problem

Flash loans are only safe if repayment conditions are enforced atomically and instruction flow cannot be bypassed.

Solution

I used Solana instruction introspection and PDA custody to enforce repay-in-transaction guarantees with a fixed fee model.