Skip to content

taasbaba/TranchFi

Repository files navigation

TranchFi – Professional Invoice Financing on Finternet

TranchFi enables sophisticated invoice financing through risk-tiered capital pools on Solana, directly addressing the $3 trillion global invoice financing market with programmable, transparent mechanisms that align with Finternet's vision of universal financial access.

Built on the GCT Protocol (Group Conditional Trigger), TranchFi provides decentralized infrastructure for milestone-based fundraising and structured asset financing, enabling efficient capital coordination with risk-segmented investment structures.


Finternet Alignment

TranchFi embodies Finternet's core principles of creating global financial rails where anyone can access financial services like email:

  • Universal Access: Any tokenized invoice can access global capital markets without geographic restrictions
  • Composability: Built as infrastructure that integrates with existing asset tokenization platforms
  • Transparency: All terms, funding levels, and returns are publicly verifiable on-chain
  • Global Reach: Cross-border capital flows with instant programmable settlement
  • Single Sign-On: Investors connect once to access all financing opportunities across the ecosystem

Traditional invoice financing takes 2-4 weeks with 15-25% APR and limited lender options. TranchFi enables instant funding at 10-15% with full transparency and global investor access.


Problem Statement

The global invoice financing market, valued at over $3 trillion annually, remains fragmented with inefficient capital allocation. Small and medium enterprises face lengthy approval processes, limited lender options, and opaque pricing structures. Current blockchain fundraising mechanisms rely on simplistic fixed-rate models that fail to capture real-world risk stratification required for professional asset financing.


Solution Overview

TranchFi provides a programmable capital coordination layer designed for professional asset financing rather than crowdfunding. The protocol enables sophisticated capital structures that mirror traditional corporate finance but with blockchain transparency and automation:

  • Conditional tier activation where capital tranches unlock based on predefined business metrics
  • Risk-differentiated returns aligned with institutional financing practices
  • Automated covenant enforcement through smart contract logic
  • Professional settlement mechanisms with escrow and dispute resolution
  • Composable architecture allowing integration with existing asset tokenization platforms

Key Features

  • Multi-tier capital structure – Investors can fund different tranches based on risk/reward appetite
  • Deferred APR locking – APRs are dynamically locked upon claim, enabling forward compatibility
  • Trigger-based fund release – Capital is only deployed when predefined business conditions are met
  • Creator-side repayment enforcement – Required repayment is calculated and enforced on-chain prior to any investor claim
  • Investor safety mechanisms – On-chain logic ensures eligibility, prevents double claims, and validates vault solvency

Real-World Application

A logistics company tokenizes $100,000 in receivables through any invoice tokenization platform. Using TranchFi, they structure professional financing with conditional capital deployment:

  • Tranche A (10% APR) – activated when receivables verification reaches threshold
  • Tranche B (12% APR) – activated upon customer payment confirmation
  • Tranche C (15% APR) – activated for extended-term facilities

Professional investors including asset managers, institutional lenders, and corporate treasuries can commit capital to specific tranches based on their risk appetite. Capital deployment occurs automatically when business conditions are met, mirroring traditional asset-backed financing but with programmable execution.

This creates efficient institutional capital markets for tokenized assets rather than retail crowdfunding mechanisms.


Market Opportunity

The global accounts receivable financing market represents a $3 trillion opportunity with significant inefficiencies. TranchFi enables:

  • Global investor access for any tokenized receivable
  • Transparent, programmable pricing mechanisms
  • Instant settlement and automated enforcement
  • Fractional participation enabling smaller investors
  • Cross-border capital flows without traditional banking intermediaries

Early adopters include institutional asset managers, corporate treasury departments, and professional lending facilities seeking exposure to tokenized asset classes with sophisticated risk management.


Technical Implementation

Built on Solana using the Anchor framework with comprehensive test coverage and production-ready architecture:

  • Deterministic PDA structure for pools, tiers, and participant accounts
  • Comprehensive edge-case handling for conditional triggering and APR assignment
  • Legacy transaction compatibility ensuring broad wallet support
  • Extensive devnet testing covering deferred APR assignment, tier unlocking, state transitions, and expected return calculations

The protocol is currently deployed and tested on Solana devnet with comprehensive test scenarios covering the complete investment lifecycle.


Devnet Proof-of-Execution

The following transactions demonstrate a complete financing cycle on Solana Devnet. Since Devnet resets periodically, links may expire.

Phase Description Action Tx Link
Pool Creation Create pool with 3 tiers createPool View
Investment Investor 1 initial investment (250 USDC) invest View
Investment Investor 2 unlocks Tier 1 (250 USDC) invest View
Investment Investor 3 joins after tier unlock (150 USDC) invest View
Investment Investor 4 completes Tier 2 (100 USDC) invest View
Pool Execution Trigger pool (payout 600 USDC) triggerPool View
Repayment Creator repays 712.5 USDC repay View
Claim Investor 1 claims (287.5 USDC, APR locked) claim View
Claim Investor 2 claims (287.5 USDC) claim View
Claim Investor 3 claims (172.5 USDC) claim View
Claim Investor 4 claims (115 USDC) claim View

Full test log (devnet run)


Technical Stack

  • Solana smart contracts using Anchor Framework
  • PDA architecture for pools, participants, vaults, and tranches
  • Legacy transaction compatible (non-v0) for broad wallet support
  • Comprehensive test suite with 65+ passing scenarios

Test Coverage Highlights

  • Tiered pool initialization and configuration
  • Multi-investor workflows and milestone unlocking
  • Deferred APR claim logic and dynamic rate assignment
  • On-chain repayment enforcement and validation
  • Vault consistency checks and solvency verification
  • Prevention of duplicate claims and double-spending

Running Tests

Make sure you have Rust, Solana CLI, and Anchor installed. Then follow these steps:

  1. Create a folder named keys in your project root:

    mkdir keys
  2. Place your Solana keypair file in that folder and name it devnet-deployer.json.

  3. Run the test suite using:

    anchor test

This setup ensures that the test runner uses your custom keypair for deploying and signing transactions on Solana Devnet.


Open Source Commitment

TranchFi is released under MIT license, ensuring maximum accessibility for Finternet builders. All code, documentation, and examples are publicly available for modification and integration.


Future Roadmap

  • Integration with credit scoring oracles for dynamic risk assessment
  • Cross-chain deployment for multi-blockchain asset support
  • Advanced repayment scheduling for complex asset types
  • Regulatory compliance modules for different jurisdictions
  • SDK packaging and developer tools for ecosystem integration

Contributing

We welcome contributions from the Finternet community. Please see our contributing guidelines and feel free to submit issues, feature requests, or pull requests.


License

MIT License – Fully open source and available for community use, extension, and integration into other tokenized finance ecosystems.


Contact

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors