Auto-Repayment
Auto-repayment is the mechanism by which AsiliChain loans repay themselves — triggered by the physical act of coffee being exported, with no collection agent, no manual payment, and no default risk from borrower non-cooperation. The exporter confirms the EXPORTED stage after obtaining the Department of Coffee Development export permit — see Export Certification & Physical Journey for the full certification process.
How It Works
Section titled “How It Works”sequenceDiagram
participant BUY as European Buyer
participant EXP as Exporter Dashboard
participant M as Mantle (Contracts)
participant LV as LendingVault.sol
participant H as Hedera HCS
participant FB as Fonbnk
participant F as 👨🌾 Farmer MTN MoMo
BUY->>EXP: Pays USDC for shipment
EXP->>M: TraceLog.updateStage(batchId, EXPORTED)
M->>LV: EXPORTED event detected
LV->>LV: Calculate: principal + interest + 4% APR protocol fee + 2% APR reserve
LV->>LV: Repay MFI pool (principal + interest)
LV->>LV: Transfer 4% APR protocol fee to ProtocolFee.sol
LV->>M: CreditScore.update(farmerID, +50)
M-->>H: SETTLED stage recorded
LV->>FB: POST /fonbnk/v2/order (net balance to farmer)
FB-->>F: UGX credited to MTN MoMo
The Settlement Calculation
Section titled “The Settlement Calculation”All rates are APR on principal. For a $2,500 loan at 16% total APR over 90 days:
| Component | Rate (APR) | Amount | Recipient |
|---|---|---|---|
| Principal repayment | — | $2,500.00 | LendingVault → MFI pool |
| MFI interest | 10% | $61.64 | LendingVault → MFI pool |
| Protocol fee | 4% | $24.66 | ProtocolFee.sol |
| Credit loss reserve | 2% | $12.33 | LendingVault reserve buffer |
| Net to farmer | — | $2,401.37 | Farmer via Fonbnk |
| Total from buyer | 16% | $5,000.00 |
Why This Eliminates Default Risk
Section titled “Why This Eliminates Default Risk”Traditional agricultural microfinance fails on collection — a borrower who has spent the loan cannot repay even if willing. AsiliChain’s auto-repayment resolves this structurally:
| Traditional model | AsiliChain model |
|---|---|
| Seasonal repayment dependent on farmer finding cash | Repayment triggered by buyer’s USDC payment |
| Collection agent required per borrower | Zero collection infrastructure |
| Default when harvest fails or price drops | LendingVault pauses on drought risk signal; forbearance built in |
| No consequence for strategic default | CreditScore −100; future loans blocked protocol-wide |
Forbearance Protocol
Section titled “Forbearance Protocol”If a harvest fails or market conditions prevent export:
- Cooperative triggers LendingVault forbearance request
- 3-of-5 multisig governance vote required to approve
- 90-day extension granted — no penalty during forbearance
- If batch is subsequently exported, auto-repayment executes normally
- If loss is confirmed total, credit loss reserve absorbs shortfall; MFI pool protected up to reserve threshold
CreditScore Effect
Section titled “CreditScore Effect”Every auto-repayment that executes successfully adds +50 to the farmer’s on-chain CreditScore. After three successful loan cycles, a farmer at 650 qualifies for a higher LTV tier and larger loan ceiling — creating a path from subsistence-scale to cooperative-scale financing.