Skip to content

Loan Request

End-to-end loan application — from the loan calculator through summary review to contract signing.

Flow Overview


1. Loan Calculator

Route/loan-request

The core of the loan request — a bidirectional calculator that works in two directions:

DirectionInputOutput
Collateral → LoanEnter crypto volumeCalculates loan amount in THB
Loan → CollateralEnter desired THB amountCalculates required crypto volume

Parameters

ParameterOptions
Loan Duration30 / 60 / 90 days (configurable)
LTVLoan-to-Value percentage (e.g. 50%, 60%, 70%)
Asset TypeBTC, ETH, USDT, etc.
NetworkERC20, TRC20, BEP20, etc.

Real-time Features

  • Live price feeds — refreshed every 5 minutes
  • Price freshness validation (must be < 24 hours old)
  • Debounced calculations (300ms) for smooth UX
  • Health preview showing risk levels at current price

Fee Breakdown

FeeCalculation
Processing Feeloan_amount × fee_rate%
Interestannual_rate × duration_rate × loan_amount
Third-Party Service FeeBase fee + variable formula based on loan amount and collateral value
Receiving Amountloan_amount − processing_fee − interest − third_party_fee
Total Repaymentloan_amount (principal only)

Promotional Discount

First-time borrowers may qualify for discounted fees:

  • 0% processing fee and 0% interest
  • Conditions: first loan, ≤ 100,000 THB, ≤ 30 days, within promotion period
  • Displayed with strikethrough of original rates

Validation & Limits

  • Minimum loan amount per duration (configurable)
  • Maximum loan amount = user's max_loan limit − total active loans
  • KYC tier ≥ 1 required to submit

Loan Start/End Date Logic

  • Before 5 PM: Start date = today
  • After 5 PM: Start date = next day at 10:00 AM
  • End date: Start date + loan duration days

2. Loan Summary

Route/loan-summary

Review page displaying all locked conditions before contract signing:

  • Collateral details (asset, network, volume, value in THB)
  • Loan terms (amount, duration, start/end dates)
  • Fee breakdown (processing fee, interest, third-party fee)
  • Receiving amount and total repayment
  • Risk level preview

Condition Lock

All prices, rates, and calculations are locked at the time of submission from the calculator. This prevents price changes during the application review process.


3. Sign Contract

Route/sign-contract/:id
  1. View full loan contract document (PDF/HTML)
  2. Digital signature via signature pad
  3. Accept final terms checkbox
  4. OTP verification for security
  5. Submit → loan stage becomes deposit_pending

4. Collateral Deposit

After signing, the user must deposit the agreed collateral amount:

  1. A unique deposit address is generated (via custodian)
  2. User sends crypto from their wallet to this address
  3. Deposit confirmed via webhook
  4. Stage transitions: deposit_pendingcollateral_depositedloan_active
  5. THB loan amount is disbursed to user's bank account

5. Re-sign / Re-apply

Route/loan-request (with resign parameter)

If a loan needs to be re-applied (e.g., expired conditions):

  • Loads all values from the original loan request
  • Pre-fills the calculator form
  • On submit → creates a new contract and cancels the old one

Next: Loan Management →

Confidential — For internal and authorized partner use only.