TECHNICAL GRANT APPLICATION – THIRDFI – Tier 3

Overview
The DeFi ecosystem is expanding rapidly, with new blockchain networks; L1/L2, various DeFi protocols and dapps emerging almost every day. However, the current state of DeFi is fragmented, with various protocols running on different blockchains, using different standards, different programming languages and different smart contracts. This fragmentation leads to silos of liquidity and creates a barrier to entry for users who want to use multiple DeFi services

About ThirdFi
ThirdFi, an all-in-one DeFi infrastructure, offers an all-in-one API/SDK solution that provides a unified interface for accessing and interacting with multiple DeFi protocols on different blockchains. The infrastructure would act as a bridge between different protocols, translating requests and responses to ensure interoperability. The infrastructure would also provide a range of functions and services, including:

Aggregation: The infrastructure would aggregate data and liquidity from multiple protocols, providing a single source of truth for developers.

Wallet Infrastructure: The infrastructure would optimize the user experiences from handling user wallets to interact with blockchain transactions seamlessly using keyless and non-custodian wallets on top of account abstraction and MPC key management.

Customization and composability: The infrastructure would allow developers to customize their DeFi experience by selecting which protocols to use, and which features to access.

Cross-chain interoperability: ThirdFi supports interoperability across multiple blockchains, including Ethereum, Binance Smart Chain, Polygon, and others, allowing users to access DeFi applications across different networks.

Comprehensive API: The infrastructure provides a comprehensive API that covers various DeFi protocols, including DEXs, AMMs, lending and borrowing protocols, and others, giving users access to a wide range of DeFi applications from a single platform.

Efficient capital utilization: The infrastructure allows liquidity providers to optimize their capital utilization by enabling them to access multiple DeFi protocols and applications from a single platform, resulting in better returns and reduced transaction costs.

Fiat-to-crypto: ThirdFi simplifies the cryptocurrencies purchases directly with fiat currency using API approach by enabling users to buy without having to interact with a centralized exchange.
Gas management: ThirdFi helps developers to manage the gas usage for each blockchain transaction from different protocols on different blockchain. Developers can focus on building the application and business logic to interact with blockchain.

Risk management tools: ThirdFi helps developers to handle the impermanent loss, slippage, and front-running attacks for connecting different protocols on different blockchain, to eliminate the possible vulnerability of transactions for end users.

Analytics and data services: ThirdFi facilitates the protocol owners/developers to keep track of each user/wallet activity and trading volume without building a customized administrative dashboard.

TEAM

Team Experiences
We have been building on DeFi since 2021, previously built DAOventures, DeFi ETF Index Fund platform for fund managers and crypto investors. Before that, we had built various projects, such as crypto data analytics, yield aggregator, NFT borrow and lending platforms.

Team members
CEO (product manager) - Victor Lee
CTO (tech architect) - Soon Lai
Solidity Developer - Seshanth
Full stack developer - Morgan
Senior Solidity Developer - Siew

Team LinkedIn Profiles
https://www.linkedin.com/in/victorleejennwei
https://www.linkedin.com/in/soonlaimah
https://www.linkedin.com/in/seshanths
https://www.linkedin.com/in/morganlee1997
https://www.linkedin.com/in/siewchongche

Team Code Repos



TOTAL BUDGET AND FUNDING TIER
Tier 3 , $50K

CURRENT FUNCTIONALITY

The current state of DeFi is fragmented, with various protocols running on different blockchains, using different standards, different programming languages and different smart contracts. This fragmentation leads to silos of liquidity and creates a barrier to entry for users who want to use multiple DeFi services.

ThirdFi is all-in-one DeFi infrastructure, providing API/SDK middleware solutions that connect to DeFi protocols to access all the DeFi functionalities (AMM, Borrow and Lending, Yield Farming etc) from different blockchain ecosystems. The main goal is reducing the learning curve of the developers when onboarding to different blockchain ecosystems with the standard API/SDK to all the DeFi protocols.

The list of functionalities that ThirdFi provided as below:

  • Comprehensive DeFi API and SDK for developer integration: Allows developers to integrate ThirdFi API to access token swap, provide liquidity, borrow and lend and yield farming etc in a decentralized way.

  • Data and Liquidity Aggregation: ThirdFi aggregate all the data and liquidity from various DeFi protocols like decentralized exchanges and provide the best price services to users, so it utilizes the capital efficiency for the users.

  • Fiat-to-Crypto: ThirdFi provides fiat-to-crypto on-off ramp services that onboarding users to web3 easily.

  • Wallet Infrastructure: ThirdFi implements MPC key management with account abstraction that allows users to perform transactions in a decentralized way. Also, it improves the developer experience that allows the developers to perform the transactions in an automatic way without any centralized key management and reducing the possibility of security risk when configuring the infrastructure.

  • Gas token replacement and sponsoring: ThirdFi allows developers to utilize their ERC-20 protocol tokens as gas fees currency for the blockchain transactions. Also, ThirdFi allows project owners to sponsor gas fees if necessary to provide better user experience for end users.

  • Sandbox environment: ThirdFi provides a comprehensive testing environment for developer integration with faucet and testnet setup without spending any real assets.
    Price Oracle: ThirdFi provides trustworthy price oracles to developers in standard API/SDK way.

TECHNICAL PROPOSAL

Functional Requirements:

  1. Multi-chain DEX token swap: The system must support token swaps across multiple blockchain networks and integrate with a variety of decentralized exchanges.

  2. Invest & Earn: The system must provide the ability to invest into DeFi index products automatically and integrate with various DeFi liquidity pools, staking, and AMM protocols.

  3. On-ramp Payment: The system should enable users to buy cryptocurrencies with global currencies, supporting various payment methods, blockchains, and cryptocurrencies worldwide.

  4. Developer Dashboard: The system should offer a multi-chain dashboard and analytics, API and transaction logging, and API key management.

  5. Developer Sandbox Environment: The system must provide a sandbox environment for building and testing on the testnet.

  6. Price Oracle: The system should provide accurate and up-to-date price information from decentralized networks and support real-time communication through WebSocket connection.

  7. Webhook: The system must provide real-time event updates and allow developers to customize their business logic updates on their existing application.

  8. Wallet infrastructure: The system provides MPC key management with account abstraction for managing user assets in non-custodian ways and able to execute the transactions automatically.

Non-Functional Requirements:

  1. Performance: ThirdFi should be able to handle a large volume of transactions and provide real-time updates without delays.

  2. Reliability: The system must be reliable, ensuring that transactions are processed accurately, and the Price Oracle provides accurate information.

  3. Scalability: ThirdFi should be able to handle increased demand and scale accordingly without impacting performance.

  4. Security: Given the financial nature of the transactions, ThirdFi must provide a high level of security to protect against potential threats.

  5. Usability: ThirdFi should be user-friendly and easily accessible with simple and clear documentation.
    Interoperability: As a platform that interacts with many different blockchains and DeFi protocols, ThirdFi must be highly interoperable.

  6. Testability: The system should provide a sandbox environment that allows developers to safely build and test their applications before deploying them on the mainnet.

SYSTEM MODEL

Scenarios

  1. Seamless DEX Trading: Users can trade on various decentralized exchanges (DEXs) without the hassle of switching between different wallets, thanks to account abstraction.

  2. Secure Asset Management: Individuals or organizations can securely manage digital assets using
    MPC key management, which distributes control of a private key among multiple parties.

  3. Simplified Web3 Development and User Onboarding: Developers can build decentralized applications (dApps) that offer a simplified user onboarding process and enhanced security with account abstraction and MPC key management.

  4. Smooth Cross-chain Operations: Users can interact with multiple blockchains easily and securely, performing transactions and managing assets across different networks.

  5. Regulated Financial Services: Financial institutions can provide blockchain-based services while maintaining regulatory compliance, using MPC key management for secure digital asset management and zero-knowledge proofs to preserve user privacy.

  6. Cryptocurrency Trading: A trader who wants to perform swaps between different tokens across multiple chains can use ThirdFi’s multi-chain DEX token swap feature. This feature allows traders to exchange cryptocurrencies across various blockchain networks.

  7. Automated DeFi Investment: An investor looking for a way to automatically invest in DeFi products can use ThirdFi’s Invest & Earn feature. This feature allows users to invest in DeFi index products automatically and interact with various DeFi liquidity pools, staking, and AMM protocols.

  8. Cross-Border Payments and Remittances: A user who wants to send digital assets to another user across the globe can use ThirdFi’s on-ramp payment feature. This feature enables the conversion of global fiat currencies to cryptocurrencies.

  9. Web3 App Development: A developer building a web3 application can use ThirdFi’s Developer Dashboard, Sandbox Environment, and Webhook features to monitor user activity, manage development tools, test their application in a sandbox environment, and receive real-time event updates.

  10. Price Information: A user who needs accurate and up-to-date price information from decentralized networks can use ThirdFi’s Price Oracle feature.

Use case model / Features model / User Histories Model

UML Diagram

User interface, navigation paths and screen mock-ups
ThirdFi Developer Portal: https://app.thirdfi.org/
ThirdFi Faucet Portal: https://www.faucet.thirdfi.org/

DEVELOPMENT ROADMAP

Development Status
ThirdFi integrated several blockchains DeX (Decentralized exchange), borrow and lending, index funds and fiat-to-crypto features and deployed all of them on mainnet. Currently we are working on wallet infrastructure (built on top of account abstraction, MPC key management and zero-knowledge proof integrated) development and integration in the ThirdFi ecosystem.

1 Like

Thanks so much for your application @Natalie ! Just some initial questions:

  • Can you provide some info on your current transaction volumes and API calls? How much volume is currently being handled by ThirdFi each day?
  • Re the live Swappi integration, how many API calls + live transactions on Swappi are being handled by ThirdFi?
  • Are there any smart contracts deployed by ThirdFi and have they been audited?
  • Can you provide more information on your fee model? How does ThirdFi make money?
  • Multichain DEX —> What bridges do you support, and how exactly do you handle a cross-chain DEX swap? Any liquidity requirements? How is the optimal route determined?
  • Re wallet and MPC management - Do you have any data that is being stored off chain? Can you clarify what user data you are collecting for wallet management?
  • Re Oracles - do you support any oracles other than Chainlink?
1 Like

hi @Geoff, thanks for taking time to review our proposal, please refer our replies below.

  1. Currently we handled more than 60k USD transaction volumes and 800k+ API calls. Each day can be handled around 1k in estimation.

  2. In total, there are more than 2k transactions with 130k API calls.

  3. Here is the contract address:
    https://evm.confluxscan.net/address/0x5c0dc59855a8baf1928db3d642d10892998b3a52
    Btw we’re still working in the progress for the contract audit.

  4. We are still preparing fee model, but we are more lean towards the subscription model (monthly, yearly, and enterprise) for the developer tools.

  5. We are planning to integrate/partner with the LayerZero/Li.Fi. protocols to provide the cross-chain DEX swap. That’s part of our roadmap that we can optimise our Multichain DEX in standard API way.

  6. The wallet that being used for storing data (token assets, transaction and etc) is using account abstraction, which is on-chain smart contract account. For the MPC key management, we are attempt to distribute/backup key shares with our customers (developer/project owners) and user end to decentralise the key distribution.
    For the off-chain side, we will generate ZKproof for identity verification that can be used in MPC key management. At the most, we will store all the transaction history and retrieve logging for audit purpose in future.

  7. Not yet, but there is part of our plans to aggregate the price oracles from different providers. One of our next partnership could be Suparoracles and Pyth Network.

1 Like

Thanks @Natalie. Some follow up questions:

3 - What does this smart contract do exactly?

More generally, could you please share more information on your technical architecture? I’m specifically interested in learning more about how you handle account abstraction and MPC key management.

Hi @Geoff apology for the late reply. Pls refer our reply below

The smart contract is used for integrating existing protocols, which simplifying the transaction process like swapping the single asset and provide the liqudity to the liquidity pool. Also, it allows the gas-less transaction integration on the user transactions.
Currently the technical architecture is showing our existing stacks which don’t include account abstraction and MPC key management, since we are still in research phase.

1 Like