DeFi University
Skip to lesson

Exercise 7

Lightspark Grid API

About 14 min

Your task

You'll read a cross-border payout quote the way your code has to: choose the locked side, write amounts in smallest units, work out both totals, and handle a quote that expired before your job ran. By the end you can say exactly what a contractor receives and what your platform pays, before any money moves.

Time
20 minutes
You'll need
a calculator
Builds on
Lesson 7

Warm-up

Check yourself

Your platform must send exactly $250.00 and doesn't mind what the recipient gets. What goes in the quote request?

Check yourself

A quote's `expiresAt` has passed. What should your payout job do?

Members only

This course is for members.

The DeFi University membership on Skool opens all 31 courses here, plus the live calls and community. Private coaching clients have access too. Already a member? Sign in with your Skool email.