Skip to main content

Sandbox Testing & Certification

Purpose: Validate integration correctness, stress-test edge cases, and certify the partner for production before any real funds flow.

1. Testing Environment

Ratio provides a dedicated sandbox environment on Kaia testnet that mirrors production behaviour. The sandbox includes simulated oracle feeds, mock pool balances, and configurable test scenarios.

2. Certification Test Cases

Partners must pass all mandatory test cases before production activation. Test cases are partner-type-specific:

Test CategoryDescriptionApplies To
Happy Path — Full CycleEnd-to-end: quote → execute → settle → confirm for each enabled corridorOn/Off-Ramp, Distribution
Quote Expiry HandlingAttempt execution on expired quote; verify rejection and re-quote flowOn/Off-Ramp, Distribution
State Engine ScenariosTest behaviour under NORMAL, PROTECT, and RESTRICT statesOn/Off-Ramp, Distribution
Volume Limit EnforcementExceed daily/monthly limits; verify graceful rejectionAll
LP Deposit RoutingVerify correct pool allocation (Reserve for Class A, Reserve+Yield for Class B)LP, Issuer
kToken IssuanceVerify correct kXXX-fx or kXXX-full tokens minted and receivedLP, Issuer
Withdrawal CooldownAttempt withdrawal before cooldown expiry; verify rejection with unlock dateLP, Issuer
RFQ Quote-ResponseSubmit RFQ; verify quote within SLA; execute or rejectRFQ Counterparty
Webhook DeliveryVerify all callbacks received, HMAC signature validated, idempotent handlingAll with webhooks
Error & RollbackSimulate settlement failure; verify rollback signal via Communication LayerOn/Off-Ramp
Auth FailureInvalid API key, expired token, wrong Partner ID — verify clean 401/403 responsesAll
Reconciliation MatchDaily reconciliation of stablecoin-in vs. fiat-out; zero discrepancy targetOn/Off-Ramp

3. SLA Validation

During sandbox testing, the following SLA targets must be demonstrated:

SLA MetricOn-Ramp TargetOff-Ramp TargetMeasurement
Fiat → Stablecoin Conversion< 30 minutesN/ATime from fiat receipt to stablecoin delivery
Stablecoin → Fiat PayoutN/A< 60 minutes (T+0)Time from stablecoin receipt to fiat credit
API Uptime99.5%99.5%Monthly uptime measured by Ratio monitoring
Quote Response Time< 2 seconds< 2 secondsP95 latency for /v1/quote and /v1/rfq
RFQ Response TimeN/AN/A< 60 seconds during operational hours

Estimated Duration: 1–3 weeks