Loops HouseInvoice factoring on NEAR

NEAR HACKATHON
Links
Team
1 member- SAOwner
Sathyamoorthy Venkatesan
Overview
A supplier that ships on Net 60 waits two months for cash. Factoring (selling the invoice to a financier at a discount) fixes that, but it runs on paper and trust, and its classic fraud is selling the same invoice twice or inventing one the buyer never agreed to. This NEAR contract is a registry and settlement rail. The supplier registers the invoice with the sha256 of the document, which can be registered once, ever. The buyer confirms it from its own account, acknowledging the debt and agreeing to pay the contract. A financier checks the registry and pays the advance with one ft_transfer_call (NEP-141 stablecoin) and becomes the owner. At the due date the buyer pays face value and the contract routes it to whoever owns the invoice. Double financing, self-financing, wrong tokens, partial repayment and financing after the due date are all refused, each covered by a test (25 in total). The full flow runs on a local NEAR node.