8000 GitHub - akg314/lana-bank: Bitcoin-native Digital Asset-Backed Lending Platform
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

akg314/lana-bank

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lana: Digital Asset-Backed Lending for Financial Institutions

Lana is a Bitcoin-backed lending platform that enables financial institutions of all sizes to offer fiat loans secured by Bitcoin collateral. Designed for easy integration, Lana streamlines the complex operational workflows associated with loan origination, collateral management, and liquidation.

Key Features

  • Rapid Deployment – Reduce time to market from months to weeks with Lana's modular architecture
  • Loan Origination & Management – Automate loan creation, fee collection, and margin call management
  • Seamless Banking Integration – Works with existing core banking systems, custodians, and regulatory frameworks
  • Security-First Design – Adheres to industry security standards and best practices
  • Source Code Auditable – Under Fair Source License

For enterprise inquiries, contact biz@galoy.io


Setup & Development

Dependencies

Nix package manager

direnv >= 2.30.0

Docker

Environment Variables

Set them in your .env file

Optional

  • TF_VAR_sa_creds: Service account credentials into GCP (BigQuery & Documents access)

  • SUMSUB_KEY: SumSub API key for identity verification

  • SUMSUB_SECRET: SumSub API secret for identity verification

  • BROWSERSTACK_USERNAME: BrowserStack username for e2e testing via Cypress

  • BROWSERSTACK_ACCESS_KEY: BrowserStack access key for e2e testing via Cypress

  • HONEYCOMB_KEY: Honeycomb API key for tracing

  • HONEYCOMB_DATASET: Honeycomb dataset for tracing

Start & Stop the stack

make dev-up   # Start the development stack
make dev-down # Stop the development stack

MailCrab - Email Testing

Access the Frontends

After bringing the development stack up, you can access the following services:

Service URL Notes
Admin Panel http://localhost:4455/admin Admin panel for managing the platform
Customer Portal http://localhost:4455/app App for customers to see their data

Steps to access Admin Panel

  1. Open Admin Panel in your browser
  2. Use email admin@galoy.io to log in
  3. Get the login code by running make get-superadmin-login-code or make get-admin-login-code EMAIL=admin@galoy.io
  4. You're in!

Steps to access Customer Portal

  1. Create customer from Admin Panel
  2. Open Customer Portal in a separate browser (or incognito mode)
  3. Use the customer email to try and login
  4. Get the login code by running make get-customer-login-code EMAIL=your-customer-email@example.com
  5. You're in!

If you see a cookie error, delete the cookie and reload the page (but this should not happen if you're using separate browsers)

Running Tests

Unit Tests

make reset-deps next-watch

End-to-End Tests

make e2e

Cypress Tests

make dev-up # launch the full stack

# In a different terminal with tilt running:
cd apps/admin-panel && pnpm run cypress:run ui # or headless
# or if you want to run the tests via browserstack - needs BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY in env
cd apps/admin-panel && pnpm run cypress:run browserstack

BigQuery Setup

We use BigQuery for analytics and reporting. To set up the BigQuery tables, you need to have the TF_VAR_sa_creds environment variable set to the service account credentials.

Authenticate with Google Cloud SDK

gcloud auth application-default login

Verify access

gcloud auth application-default print-access-token

Adding new BigQuery tables

Commands to re-run when adding new BQ tables

git checkout pre-merged-commit
# this is important to have the previous state before pulling
make reset-deps
git pull
make init-bq

If you are doing work that requires adding a new big query table you need to add it to ./tf/bq-setup/bq.tf

About

Bitcoin-native Digital Asset-Backed Lending Platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 48.9%
  • TypeScript 45.8%
  • Shell 2.5%
  • Python 0.8%
  • PLpgSQL 0.6%
  • Nix 0.3%
  • Other 1.1%
0