Singularity Finance
  • Singularity Finance
  • Introduction
  • Background
    • Merger
  • Market Opportunity
    • Tokenise, Monetise and Decentralise the AI Economy
      • Hardware Layer
      • Platforms
      • Foundation Models and Knowledge Graphs
      • Model Hubs
      • Applications
      • Services
      • Data: Monetising Data Contributions
  • SFI Value Proposition
    • Dedicated Layer-2 for AI Economy
    • Core Pillars of the SFI L2
      • AI-Centric dApp
        • Singularity Rep Points
      • Tokenisation Framework
      • Identity Solutions
      • SFI Vaults
        • Architecture
        • Profit Framework
        • Operational Flow
        • Use Cases for SFI Vaults
        • Features
          • Strategies
          • Vault Management Dashboard
          • Risk Engine
          • Execution Engine
          • Fee Infrastructure
          • Governance
          • Router
          • Oracles
          • Zapper Framework
          • Keepers
      • Auxiliary Features
        • AI-Driven Market Making and Liquidity Provisioning
        • Prediction Markets
        • On/Off Ramps
    • Tokenised Data Centres
  • SFI L2
    • Introduction
    • L2 Architecture
      • Operational Model: Optimistic Rollups
      • Data
      • Sequencer
    • Core Features
      • Bridges
      • Indexers
      • Oracles
      • Relays
      • Verifiable Random Function (VRF)
      • Account Abstraction
      • Automation and Offchain Data Integration
  • LAunch
    • Testnet
      • Setup Guide
      • How to Participate in the SFI Testnet
      • FAQs
    • Mainnet
  • Tokenomics and Utility
    • Token Merge & Allocations
      • Allocation & Distribution
    • Token Utility
    • SFI Nodes
      • Details
    • Roadmap
    • Leadership Team
    • Conclusion
    • Appendix
  • Legal
    • SFI Token Terms & Conditions
Powered by GitBook
On this page
Export as PDF
  1. SFI Value Proposition
  2. Core Pillars of the SFI L2
  3. SFI Vaults
  4. Features

Router

PreviousGovernanceNextOracles

Last updated 5 months ago

The Router is a generic router that can register multiple routes, which can be registered The Router serves as a versatile tool that registers multiple routes for both onchain contracts and offchain swap execution engines. Users can enable or disable router registrations as needed. The Router's primary responsibility involves abstracting the preview of swapping underlying assets and executing swaps onchain based on offchain collected data. This functionality allows for more informed decision-making regarding swaps. Additionally, the Router can revert swap executions if the output amount deviates from the previewed amount by a configurable threshold, expressed in reference asset value.

  • Unified API for Decentralised Applications, Smart Contracts and AI Agents: Singularity Finance has developed a single, standardised interface known as the “DynaRouterAPI” for interacting with various routers (decentralised exchanges) and zappers (tools for bundling complex token interactions).

  • Secure Decentralised Router Comparison: This API standardises expected output amounts and slippage across multiple routers and zappers. It enables decentralised applications to perform multiple offchain queries to select the optimal router or zapper, ensuring slippage protection during onchain executions when entering or exiting tokenised positions.

  • Reduced Cost of AI Decision-Making: AI agents responsible for managing portfolio rebalancing or executing strategies can easily interact with the API to move assets in and out of complex tokenised positions without the need for custom integrations for each protocol.

  • Future Compatibility: The modular design of the generalised router framework allows for adaptability to new protocols and technologies without requiring significant changes. Users can utilise this API without concerns about future updates to routers or zappers, as the API guarantees backward compatibility and extensibility.