Advent of Bugs #4: The Banana-Orange Mix-Up in Solana AMM Swaps – A u64 Type Confusion Lesson
Explore the subtle Solana smart contract bug where base and quote currencies got mixed up in AMM swaps, leading to failed slippage checks. Learn how newtype structs can prevent these unit confusion errors in blockchain development.