THE SIMULATOR

Run the numbers yourself

Every figure below is the program's own arithmetic on the numbers you enter: the fee from fund_deal, the buyback from repay, floors and all. It is arithmetic on your inputs, not a prediction of anything.

A WORKED DEAL

COLLATERAL
12,400,000 TOKENS
LOAN / BUYBACK
42.0 / 50.0 SOL
TERM
7D
BORROWER RECEIVES
41.7900 SOL
BORROWER PAYS TO BUY BACK
50.0000 SOL
LENDER RETURN IF REPAID
19.05%
LENDER IF DEFAULTED
KEEPS THE COLLATERAL

The sliders and the settlement diagram load as you reach them.

FEE
loan_lamports * 50 / 10000
lib.rs:149
BUY BACK
buyback_lamports, while now <= deadline
lib.rs:202
TERM
1 .. 90 DAYS
lib.rs:82
BUYBACK PRICE
MUST EXCEED THE LOAN
lib.rs:80

When the numbers suit you, open the deal for real. The form runs this same arithmetic once more, against the program, before anything is signed.