DeFi University
Skip to lesson

Exercise 10

LSP Integration

About 14 min

Your task

An LSP has sent your app a two-item fee menu. You'll price first payments of different sizes under each option, find the payment size where the cheaper option switches, and check which payments fit under the fee cap your code passes to LDK Node. By the end you can choose an LSPS2 offer with numbers, and tell a new user exactly what will arrive.

Time
20 to 25 minutes
You'll need
a calculator (or a spreadsheet)
Builds on
Lesson 10

Warm-up

Check yourself

An offer's `proportional` is 2,500. What share of the payment is that?

Check yourself

When does the `min_fee_msat` part of an LSPS2 offer decide the fee?

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.