Commit 3eb5249 in production.
Passed
Every golden case passed on this commit, including Binance's published examples.
Checked 2026-11-02 at 10:41 UTC
The expected values live in the TestSprite suite, not in this repo, so no pull request can change them along with the formula. Search the code: no source, test or fixture file holds an expected liquidation price.
| Case | Name | Checks | Kind | Source | Starts from | This commit |
|---|---|---|---|---|---|---|
| G-0 | Build identity | A real commit SHA, and the preview environment on PR runs | Tripwire | Lydit's spec | /api/build | passed |
| G-1 | Example 1, BTCUSDT | Maintenance margin | Published | Binance FAQ | Binance's inputs | passed |
| G-2 | Example 2, ETHUSDT cross long | Liquidation price | Published | Binance FAQ | Binance's inputs | passed |
| G-3 | Example 2, ETHUSDT cross long | Maintenance margin | Published | Binance FAQ | Binance's inputs | passed |
| G-4 | Example 2, BTCUSDT cross long | Liquidation price | Published | Binance FAQ | Binance's inputs | passed |
| G-5 | Example 2, BTCUSDT cross long | Maintenance margin | Published | Binance FAQ | Binance's inputs | passed |
| D-1 | Isolated long | Liquidation price | Derived | Binance's formula | Inputs held in the suite | passed |
| D-2 | Isolated short | Liquidation price | Derived | Binance's formula | Inputs held in the suite | passed |
| D-3 | Cross short | Liquidation price | Derived | Binance's formula | Inputs held in the suite | passed |
| D-4 | Cross, single position | Liquidation price | Derived | Binance's formula | Inputs held in the suite | passed |
| D-5 | Tier boundary | Liquidation price after a rate and amount change | Derived | Binance's formula | Inputs held in the suite | passed |
| D-6 | Invalid input | A field error and no result | Behaviour | Lydit's spec | Inputs held in the suite | passed |
| D-7 | Balance covers the position | The no-liquidation state | Behaviour | Lydit's spec | Inputs held in the suite | passed |
| D-8 | Copied link | The same inputs and outputs restored | Behaviour | Lydit's spec | Inputs held in the suite | passed |
| D-9 | ETH preset | Every input filled and a result computed | Behaviour | Lydit's spec | Inputs held in the suite | passed |
| D-10 | Proof page | The served commit and a check status | Behaviour | Lydit's spec | Inputs held in the suite | passed |