Hi, I'm Utkarsh aka Zyaxxy a full-stack blockchain developer building at the intersection of Web3, distributed systems, and full-stack development, with a curiosity for security. I'm a Turbin3 graduate and a Tata HackQuest Season 10 CTF finalist. I'm currently building Kite, an investing platform on Solana, and exploring projects in DeFi, on-chain protocols, and AI. I enjoy turning complex ideas into useful, intuitive experiences.
FIG. 012 / TOKEN ESCROWA swap with a clear way out.
Overview.
A maker deposits Token A into a program-controlled vault and specifies the Token B amount and expiry. A taker can complete the exchange, while the maker can update the terms or recover the deposited tokens.
Terms that can change.
The update instruction changes the requested amount and expiration without recreating the escrow. Taking an expired offer is rejected, while the maker retains a refund path.
Test the boundaries.
Rust tests run in LiteSVM and cover settlement, refunds, updates, expired offers, and unauthorized changes. Completing or refunding an escrow closes its vault and state accounts.