Skip to content

System & Configuration

Admin-side system operations — price feeds, calculation rules, notifications, discount codes, and platform configuration.

System Components


1. Price Feed Management

Live cryptocurrency prices used throughout the platform:

PurposeUsage
Loan CalculatorReal-time collateral valuation
Health MonitoringLTV and risk level calculations
Liquidation TriggersPrice threshold monitoring
DashboardPortfolio valuation
  • Price feeds sourced from exchanges via .NET background services:
    • Bitazza — primary price feed provider (runs as BitazzaBackgroundService)
    • Bitkub — secondary price feed provider
  • Stored in price_feed collection with last_price, timestamp, and api_provider
  • Freshness validation: prices must be < 24 hours old
  • USDT/THB rate maintained separately for cross-currency calculations
  • Polling interval: every 5 minutes on user-facing pages

2. Calculation Rule Configuration

Loan parameters are driven by configurable rules in the calculation_rule collection:

ParameterDescription
Asset TypeWhich cryptocurrency the rule applies to
Loan DurationDuration period (30/60/90 days)
Loan Amount RangeMin/max loan value for this rule
LTV PercentageLoan-to-value ratio
Fee RateProcessing fee percentage
Interest RateAnnual interest rate
Duration RateHow duration maps to annual rate

Rules are matched by:

  1. Asset type
  2. Loan duration
  3. Loan amount (ordered by loan_value)

Admin can configure different rates for different asset types, durations, and loan sizes.


3. Email Template Management

System emails triggered by various events:

TriggerEmail
RegistrationWelcome email
KYC ApprovedKYC approval confirmation
Loan ApprovedLoan approval with details
Loan RejectedRejection with reason
Loan ActiveDisbursement confirmation
Close to MaturedMaturity reminder
Late PaymentOverdue payment warning
LiquidationLiquidation notification
Repayment ConfirmedRepayment receipt
Extension ActivatedExtension confirmation
Withdrawal ProcessedWithdrawal confirmation

Templates managed via Directus and processed by .NET backend email service.


4. Announcements & Notifications

TypeDescriptionAdmin Control
AnnouncementsPlatform-wide notices (maintenance, promotions)Create/edit in CMS
NotificationsUser-specific alerts (loan status, payments)Auto-generated by system
RemindersLoan health warnings, maturity alertsAuto-generated, configurable thresholds

User-facing refresh intervals:

  • Announcements: 5 minutes
  • Notifications: 2 minutes

5. Discount Code Management

Promotional discounts applied to loan fees:

ParameterDescription
CodeUnique string code
Discount TypeFee, Interest, or both
Discount AmountPercentage or fixed amount
Validity PeriodStart and end date
Usage LimitsMax uses per code / per user

First-time Borrower Promotion

Special automatic discount:

  • Eligibility: No previous loans, ≤ 100,000 THB, ≤ 30 days
  • Discount: 0% processing fee, 0% interest
  • Display: Original rates shown with strikethrough

6. Customer Group Management

Segmentation system for targeted features:

FeatureDescription
Group AssignmentAssign customers to groups
Loan LimitsOverride default limits per group
PromotionsTarget promotions to specific groups
Feature FlagsEnable/disable features per group

Managed via CustomerGroupController in .NET backend.


7. Internationalization

The platform supports two languages:

LanguageCodeCoverage
Englishen-USFull
Thaith-THFull

Translation namespaces: common, loan, wallet, security, register, validation, kyc, transaction, profile, repayment

User can switch language in Settings.

Confidential — For internal and authorized partner use only.