LienRho

Where invoices meet investors.

OriginsShipped August 29, 2026#general#payments#security
Visit Repo
LienRho banner

About

## Challenges we ran into

1. The bug that broke our entire thesis, silently.

Our pitch is "the cheapest offer can lose." We hit POST /api/match late one night and it returned the cheapest offer as the winner. No error, no exception — just a confident wrong answer that looked exactly like a working marketplace.

Two correct decisions had never been joined. The scorer read sufficiencyFloor off the database row. The database track had deliberately started leaving that column null so the value would be derived from real obligations instead of seeded — the right call, and our whole differentiator. But the helper reading that column returns "unconstrained" when it's null. No gates. Rank on price alone.

deriveSupplierUtility() existed and was tested. It was called by nothing outside its own test.

Fix was small: derive from the cash position when one is present. The lesson wasn't — a failure that returns a plausible answer instead of an error is far more dangerous than a crash. The seed now asserts the three properties the demo depends on and exits non-zero if any stops holding.

  • A wrong number that read as right.

fees_paise = 2_500_000 with a comment saying "Rs 2,500". A rupee is 100 paise, so that's Rs 25,000 — a fee worth 25% of face value on a Rs 1,00,000 invoice. Absurd on inspection, and it still produced a plausible bid, because 2_500_000 reads as "2,500" at a glance. Every agent-generated bid was mispriced. Rewrote it as 2_500 * 100 so the unit lives where the value is defined.

  • Three implementations of one formula.

Effective cost got written three times. The third divided by the advance rather than net cash received — you pay for the money you actually got, not the money notionally advanced. Every percentage on screen understated true cost by ~23 basis points and contradicted the audit trail behind it, on a page whose whole claim is "every figure traces to a named function." Deleted the UI's arithmetic; it now renders what the server computed.

  • Every invoice claimed the same payroll.

A shared component defaulted its threshold to the demo invoice's value, and preferred that default over the real value passed in. The result was a sentence contradicting itself: "You need Rs 9,00,000.00 for GST remittance." Correct obligation derived live, wrong amount borrowed from another invoice. Open two invoices side by side and the "derived from your obligations" claim collapses. Removed every demo-constant default.

  • Two voice problems the docs don't warn you about.

Free ElevenLabs accounts can't use library voices — the obvious default returns 402 paid_plan_required. Premade voices attached to the account work fine. And "ended" doesn't reliably fire on blob-backed audio: our verification call plays five lines in sequence and stalled after line one, with no error, forever. Replaced event-based completion with bounded position polling, because a live demo must never hang on one event failing to arrive.

  • The recurring one.

npm ci broke CI four separate times with the same error: missing @emnapi packages. An incremental npm install on macOS drops Linux-only optional dependencies, so the lockfile passes locally and fails on the Ubuntu runner, every time, for a different person. The cure is a full clean reinstall. We eventually stopped re-diagnosing it and wrote the exact command into our file-ownership doc.

## The problem it solves

A small supplier ships goods, issues an invoice, then waits 45-90 days to get paid. Payroll doesn't wait. So they call one bank and take whatever terms come back.

But showing them more offers doesn't fix it, because the cheapest offer is often the wrong one.

Three real bids on a Rs 10,00,000 invoice in our marketplace:

  • Meridian Bank — 11.0% headline — delivers Rs 7,86,650.68 — true cost 13.76% — lands T+3
  • Kaveri Capital — 12.2% headline — delivers Rs 8,65,763.84 — true cost 13.34% — lands T+1
  • Rapidfin — 13.5% headline — delivers Rs 9,34,188.36 — true cost 13.73% — lands T+0

Kaveri is the cheapest offer in the market. It loses. This supplier needs Rs 9,00,000 by Friday for payroll, and Kaveri delivers Rs 8.65 lakh a day late. Meridian's 11% is actually dearer than Rapidfin's 13.5% once the 80% advance rate and Rs 2,500 fee are counted.

Every marketplace that ranks by price recommends the wrong lender here.

What we do differently:

  • We derive what the supplier needs instead of asking. Nobody can honestly say they value settlement speed at 0.3 — elicited weights are noise dressed as data. We read their dated cash obligations and compute a sufficiency floor and a timing deadline. Nobody told us about that payroll.
  • Those are gates, not weights. An offer that can't cover the need, or can't land in time, is disqualified — not ranked slightly lower.
  • We will say "don't finance." When nothing clears the floor, that is the answer. A market that always transacts isn't exercising judgement.

Who it's for:

  • Suppliers get competing bids ranked by what actually reaches their account and when, with a plain-English reason for every rejection.
  • Capital providers see only opportunities matching their mandate, and deploy against risk-adjusted returns instead of chasing deal flow.
  • Both sides get an auditable trail. Every rupee traces to a named function on a double-entry ledger that balances to Rs 91,00,70,750 on both sides. No language model produces a financial figure anywhere in the system.

What it isn't: competitive invoice discounting is regulated in India and licensed TReDS platforms already run multi-financier bidding. We aren't claiming to have invented that. What's different is clearing on multi-attribute suitability against need read from a supplier's real cash position, rather than a rate auction. The market is simulated and labelled as one.

Screenshots

LienRho screenshot 1

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.