About
## Wave 1 submission
**Wave 1: Foundation & UI Complete** ✅
**Smart Contracts:**
Built two Leo programs compiled with Leo 3.4.0: - `axis_score_v1.aleo`: mint_credibility (score calculation), verify_threshold, commit_score transitions. Defines CreditBond record with score (300-850), expiry, and owner fields. - `axis_lending_v1.aleo`: seed_the_axis (deposits), access_liquidity (borrowing), repay_loan transitions. Defines LoanTicket and LiquidityReceipt private records plus total_liquidity, total_borrowed, active_loans public mappings.
**Design System - "Midnight Manhattan":** Created complete design language with void black, electric cyan (#00D4FF), and gold (#FFD700) palette. Built glassmorphism components (GlassCard, GradientText), animated NYC skyline with 20+ buildings, ZK proof visualizations, grid patterns, and glow effects. Responsive across all devices.
**Frontend Architecture:**
- Next.js 14 App Router with TypeScript strict mode - 6 main routes: landing, dashboard, borrow, lend, vaults, auditor - Monorepo with pnpm + Turborepo - 50+ React components with Framer Motion animations
**Key Features:**
- **BorrowForm**: Amount slider, duration selection (7/30/90 days), real-time collateral calculator based on credit tier (40-80%), interest rate display (2-5% APR), loan terms preview - **DepositForm**: 4-step flow (input → confirm → proving → success), lock period options (30/90/180/365 days), yield estimation (up to 12.4% APY), LP receipt NFT preview - **TransactionModal**: 4-stage progress visualization (preparing → proving → broadcasting → confirming), ZK proof animation with hex bytes, transaction ID with explorer links, proof time tracking - **CreditScoreCard**: Animated ring chart, tier badges (1-5), collateral ratio display, score breakdown
**Wallet Integration:**
Leo Wallet Adapter (@demox-labs/aleo-wallet-adapter-react) with connect/disconnect across all pages. Custom hooks: useAleoTransaction (lifecycle management), useCreditScore, useLending. Demo mode with simulated 2-4s ZK proof generation. Complete error handling and status tracking.
**State Management:**
LoanContext tracking loans, deposits, totals. Cross-page synchronization. Notification system with activity dropdown. TypeScript types matching Leo structs.
**Credit Tier System:**
5 tiers with differentiated benefits: - Tier 5 (800-850): 40% collateral, 2% APR - Tier 4 (750-799): 50% collateral, 2.75% APR - Tier 3 (700-749): 60% collateral, 3.5% APR - Tier 2 (675-699): 70% collateral, 4.25% APR - Tier 1 (650-674): 80% collateral, 5% APR
**Deliverables:**
- Live demo: https://axis-protocol.vercel.app - GitHub: https://github.com/karagozemin/AXIS (public repo) - Complete documentation: README.md + ARCHITECTURE.md - Both Leo programs compiled in programs/ directory - Zero runtime errors in demo mode - 100% TypeScript coverage
## Wave 2 submission
Wave 2 — Direct Response to Reviewer Feedback
Reviewer Question (Alex):
"How is the score determined? What impacts the score? How do we derive trust from that score to enable risky lending?"
All updates below directly answer these questions.
---
- Credit Scoring Model
A 5-factor weighted credit scoring system computed entirely inside a ZK circuit.
- Score Range: 0–1000
- All inputs are PRIVATE - Only the resulting tier (CreditBond) appears on-chain - No financial data is exposed, only proof of eligibility - Full math spec: docs/CREDIT_SCORING.md
Scoring Factors
• Repayment History (35%)
+10 per on-time repayment -50 per default
• Position Duration (25%)
Full score at 90+ days
• Utilization Rate (20%)
Optimal range: 30–60%
• Protocol Loyalty (10%)
Full score at 180 days
• Collateral Diversity (10%)
+25 per distinct asset type
All factors are computed privately. Only the final tier is public.
---
- Trust Derivation
Score maps to 4 borrowing tiers:
BASIC (0–299)
200% collateral, 50% LTV, 12% APR
STANDARD (300–549)
167% collateral, 60% LTV, 8% APR
ADVANCED (550–749)
143% collateral, 70% LTV, 5% APR
EXCEPTIONAL (750+)
125% collateral, 80% LTV, 3% APR
Interest = base_rate + LTV_premium
Unlike traditional DeFi (150%+ collateral for all), AXIS rewards higher scores with better capital efficiency.
Risk Controls
- Auto liquidation
- 1% insurance reserve per loan - -150 score penalty per default - Account freeze after 3 defaults
---
- Contracts v2 on Testnet
Rebuilt using deeper Aleo primitives.
axis_score_v2.aleo
Transitions: compute_credibility, verify_threshold, record_default, create_audit_token, update_statistics Records: CreditBond (private tier), AuditToken Mappings: total_bonds_issued, tier_distribution, default_registry
Explorer:
https://testnet.explorer.provable.com/program/axis_score_v2.aleo
axis_lending_v2.aleo
Transitions: seed_the_axis, access_liquidity, repay_loan, flag_default, withdraw_liquidity Records: LoanTicket, LPReceipt, DefaultNotice Includes 7 public mappings for transparent pool health while positions stay private
Explorer:
https://testnet.explorer.provable.com/program/axis_lending_v2.aleo
---
- Frontend Overhaul
- Removed all demo/simulation logic
- Real ZK proof generation via Leo Wallet - Testnet broadcast + block confirmation polling
Landing now shows:
- Scoring model visualization - Tier comparison - Live deployment proof
Live App
https://axis-protocol.vercel.app
GitHub
https://github.com/karagozemin/AXIS
Whitepaper
https://github.com/karagozemin/AXIS/blob/main/docs/CREDIT_SCORING.md
From the public Akindo product page. Votes, swipes and the judge score are hackfeed's own.





