/protocol/contracts

Contracts & verification

Every address is on BNB Smart Chain Testnet (97). Open BscScan to verify source and history.

ContractAddressSource
Kulaya core (Warung.sol)0xF6fD…21D8BscScanSource
MockIDRX (2 decimals)0x6CD5…e527BscScanSource
ReputationAdapter0x41dA…214EBscScanSource
AI wallet (agent owner)…—
Relayer0x15c3…828cBscScan—
ERC-8004 Identity0x8004…BD9eBscScan—
ERC-8004 Reputation0x8004…8713BscScan—

The product was named Kulaya late in the build. The core contract was deployed under its code name Warung, which is why wallets show “Warung” when signing.

Parameters (live values)

ParameterValue
Credit limit10% of verified 30-day sales, capped by level
Level ceilingsRp 1 jt · 2 jt · 4 jt · 8 jt (doubles after each repaid loan, max level 3)
Minimum loanRp 50.000
Min distinct payers5
Per-payer daily capRp 250.000
Minimum paymentRp 5.000
Feeflat, ≤ 5% (the AI typically offers about 4%)
Repay share≤ 20% of each sale (typically 10%)
Offer validity24 h
Write-off14 days without sales during an active loan
Pool≤ 5% per loan · ≤ 20% new loans/day · 20% of fees to the reserve

Loan lifecycle

PROPOSEDACTIVEREPAIDorDEFAULTED· an unaccepted offer mayEXPIRE

Tests

33 Foundry tests: unit, fuzz, stateful invariants, relay attacks

32 TypeScript tests: policy layer, sessions, formatting, Telegram login codes

Read the source on GitHub

One loan, end to end

StepCall
ProposedproposeLoan
AcceptedacceptLoanFor (EIP-712, gasless)
RepaymentpayFor (split on every sale)
Closedrepaid
ReportedgiveFeedback (ERC-8004)