PrivateCreditGate Source on GitHub

A credit facility whose covenants test themselves.

In private credit, every quarter someone at the lender reads the borrower's compliance report and keys the numbers in by hand. Errors, delays and arguments over what the report says all happen at that step. Here, GenLayer validators each read the borrower's own published report, copy four figures into a fixed form, and plain code applies the facility agreement. Money moves only on figures every accepting validator copied exactly the same.

  1. Offer and accept. The lender deposits the commitment; every term is frozen, including one report address per period. The borrower accepts by funding a debt-service reserve.
  2. Test. After each period end anyone runs the covenant test. Each validator reads the page and copies LTM EBITDA, LTM net finance costs, total debt and cash, exactly as printed.
  3. Decide in code. Integers only: leverage, interest cover and minimum cash by cross-multiplication, the margin band, the draw stop, cures, waivers and events of default.
  4. Set dates. Margins, deadlines and default interest fall on fixed dates, never on who sends a transaction first.

Five live facilities

Fictional borrowers, real transactions on the selected network. Each card opens the facility with every period's reading, the events and the transactions.

Run your own facility

On Studio you can play both sides with free temporary accounts. Your facility's first period ends on the next whole hour (UTC) at least 20 minutes away; each period is 65 minutes, with a 30-minute report window and a 30-minute cure window after each period end. The report pages of two fictional borrowers are ready for every hourly slot.

Lender

No account

Borrower

No account

Offer a facility (as the lender)

Covenants: leverage at most 3.50x, interest cover at least 4.00x, cash at least EUR 2m. Margin grid: 2.50 / 3.25 / 4.00 / 5.00% over a 5% base by leverage band. Commitment fee 0.50%, default add-on 2%. 1 test GEN stands for EUR 1m. The day-count year is compressed to four periods so amounts are visible.

The rules, in brief

Full rules, limits and disclosures: README. The contract's own get_rules() returns the same text on chain.