🌎PATENT APPLICATION

1. Title Page

  • Title of the Invention: Decentralized Hybrid Exchange System Featuring Automated Sniping, Anti-Rug Mechanisms, AI-Driven Trade Execution, and Revenue Sharing via Tokenized Architecture

  • Inventors: Adnan Alisic

  • Assignee: Biokript LLC

  • Application No.: 63/829,941

  • Filing Date: 06-19-2025

2. Abstract

The present invention discloses a decentralized hybrid exchange system that combines advanced automated trading capabilities, AI-driven transaction logic, anti-rug safeguards, and token-based revenue distribution. Leveraging high-speed sniping bots integrated with mempool monitoring and machine learning algorithms, the invention identifies and executes trades on newly launched tokens with precision and minimal slippage. A multi-tiered anti-rug framework is built into the core architecture to detect liquidity withdrawal anomalies in real-time, automatically halting suspicious transactions before execution.

To address infrastructure scalability and performance, the system utilizes Microsoft Azure-based containerized services, enabling global distribution, load balancing, and API reliability across multiple failover zones. Smart contracts form the backbone of user interaction, governing liquidity pool contributions, revenue sharing mechanisms, and staking logic. Revenue generated from trading fees is distributed proportionally to users through a secure escrow system based on staking participation snapshots.

This invention provides a resilient, compliant, and performance-optimized alternative to traditional DEX platforms by merging ethical decentralized finance principles with enterprise-grade infrastructure and intelligent automation.

3. Background of the Invention

Existing decentralized exchanges (DEXs) have made significant strides in democratizing access to financial instruments; however, they suffer from fundamental vulnerabilities that compromise user trust, trading efficiency, and long-term viability. These limitations are particularly evident in three primary areas: platform security, economic alignment, and infrastructure performance.

DEX Vulnerabilities: One of the most prevalent issues in current DEX platforms is the susceptibility to rug pulls, where malicious actors deploy tokens, build liquidity, and later extract value suddenly, leaving users with worthless assets. Inadequate monitoring of on-chain liquidity and poor enforcement of locking mechanisms have made it difficult to detect or prevent such attacks in a timely fashion. Moreover, sandwich attacks, frontrunning, and bot-driven manipulation frequently compromise the fairness of token launches.

Lack of Incentive Alignment: Many decentralized platforms lack a sustainable reward structure that benefits both users and protocol operators. While liquidity providers may receive yield, average traders and token holders are often excluded from profit-sharing mechanisms. This misalignment reduces user retention and disincentivizes long-term engagement. Additionally, governance models are often opaque or dominated by early token whales, making it difficult for communities to shape protocol evolution.

Speed and Scalability Issues: Traditional DEX architectures operate directly on the blockchain without optimization for high-frequency trading or low-latency execution. As a result, slippage and failed transactions remain common under congested conditions. Block confirmation delays and mempool processing limitations further exacerbate execution risks. Moreover, few projects have successfully integrated enterprise-grade infrastructure to mitigate these challenges through cloud-native technologies.

There is a clear need for a hybrid decentralized exchange that addresses these shortcomings through AI-driven automation, real-time fraud prevention, robust infrastructure integration, and an equitable, smart contract-based revenue model. The present invention meets this need.

4. Summary of the Invention

The present invention provides a novel decentralized hybrid exchange platform that integrates AI-driven sniping bots, anti-rug pull protections, and an ethical, token-based revenue-sharing system deployed within scalable Microsoft Azure infrastructure.

Unlike traditional DEXs, this system features a tightly integrated automated trading module, capable of scanning blockchain mempools in real-time to identify new token listings. The AI-powered scoring engine analyzes token legitimacy using factors such as deployer history, liquidity structure, and contract behavior. Upon favorable scoring, the bot constructs and executes a trade with dynamic slippage tolerance, gas optimization, and safety validation.

To mitigate liquidity fraud, an embedded anti-rug engine continually monitors liquidity pools. When it detects anomalies, such as rapid withdrawals below configurable thresholds, it triggers a contract-level lock and halts execution, while simultaneously alerting users and governance systems.

The revenue model leverages smart contracts to accumulate transaction fees and distribute rewards to token stakers based on periodic wallet balance snapshots. These rewards are routed through an escrow smart contract, enabling non-custodial claiming via a user-friendly interface.

Biokript’s patented key security framework ensures non-custodial, institutional-grade protection while enabling advanced features like session-based trading, delegated strategies, and automation. Our architecture integrates with secure providers (e.g., Turnkey) to deliver air-gapped private key storage, client-side encryption, and zero centralized access. All keys remain under user control, with full exportability and multi-sig recovery options. To comply with our standards, integrated systems must encrypt keys client-side, store them offline, support 2FA/multi-sig, and allow complete user access control. This patented system offers the security of decentralized custody with the functionality of centralized platforms without compromising transparency or user sovereignty.

Infrastructure-wise, the platform is hosted using Azure Kubernetes Service (AKS), containerized for elasticity and resilience. Load balancers, API gateways, automated failover, and encrypted key vaults ensure enterprise-grade reliability and security.

This invention provides a robust solution to common DEX problems, including lack of safety, slow execution, poor user incentives, and technical centralization. By combining on-chain smart contract automation with off-chain AI intelligence and cloud infrastructure, it delivers a next-generation decentralized exchange optimized for speed, fairness, compliance, and profitability.

5. Brief Description of the Drawings

Figure 1: Architecture Diagram of Biokript DEX Ecosystem shows the core exchange structure, including user wallets, sniper bot module, revenue-sharing logic, smart contracts, liquidity pools, and cloud infrastructure hosted on Microsoft Azure.

Figure 2: Flowchart of AI Sniper Bot Operation illustrates the sequential operation of the bot: mempool listener → token scoring engine → trade constructor → slippage validator → signed transaction execution.

Figure 3: Anti-Rug Logic and Liquidity Threshold Alert System depicts the anti-rug mechanism, showing real-time liquidity monitoring → anomaly detection → execution lock → user/gov notification.

Figure 4: Token Revenue-Sharing Distribution Mechanism outlines how fees are aggregated and distributed: wallet staking module → snapshot engine → profit aggregator → escrow contract → user claim interface.

Figure 5: Azure Node Deployment and API Routing Diagram describes cloud architecture including AKS container clusters → load balancers → failover strategy → API Gateway → monitoring systems and key vault integration.

Figure 6: Biokript’s Key Security Framework details air-gapped storage, client-side encryption, zero centralized access, and secure multi-signature recovery, ensuring full user control and protection of private keys at all times.

6. Detailed Description of the Invention

This section provides a comprehensive breakdown of the invention’s technical components and design logic, organized into the following subsections. Each section expands on core innovation principles with technical specifics, usage scenarios, and integration mechanisms.

6.1 System Architecture

The Biokript system architecture is designed to integrate decentralized finance (DeFi) protocols with enterprise-grade cloud computing. It employs a service-oriented architecture (SOA) combined with decentralized smart contract ecosystems to allow secure, scalable, and highly automated exchange operations. The system comprises six core layers:

  1. Client Interaction Layer

  2. Web3 wallets such as MetaMask, Phantom, Trust Wallet.

  3. Browser extensions and mobile apps with QR login.

  4. Multi-language support (React frontend + i18n).

  5. API & Gateway Layer

  6. Azure API Gateway

  7. GraphQL interfaces for querying staking balances and trade histories

  8. Rate-limiting and IP blacklisting enabled

  9. Business Logic Layer

  10. Liquidity router logic

  11. Smart order routing (SOR) based on real-time token availability and slippage

  12. Bot orchestration microservice

  13. Smart Contract Layer

  14. Sniping, staking, distribution, governance, rug detection

  15. Contracts deployed on EVM chains (initially BSC and Solana via Wormhole)

  16. Data Management Layer

  17. Azure Cosmos DB for user logs and statistics

  18. PostgreSQL for admin reporting dashboards

  19. Blob Storage for off-chain logs (e.g., slippage events, blocked TXs)

  20. Infrastructure Layer

  21. Hosted on Microsoft Azure

  22. Utilizes AKS (Azure Kubernetes Service), Azure Key Vault, Azure Monitor

  23. Key Security Framework Layer

  24. Air-Gapped Private Key Storage

  25. User-Controlled Encryption

  26. No Centralized Key Access

  27. Secure Key Recovery Mechanisms

Diagrammatic references: See Figure 1.

6.2 AI Sniper Bot Algorithms & Models

The AI sniper bot is designed as a real-time trading engine trained on token behavioral datasets. It performs predictive trade execution with built-in security and volatility filtering.

Key Components:

  • Mempool Aggregator:

  • Uses multiple RPC endpoints to prevent spoofing

  • Implements message queues to buffer bursty events

  • Scoring Algorithm:

  • Token metadata: supply, renounced ownership, tax structure

  • Liquidity health: LP ratio, LP lock, burn address activity

  • Code vectorization: Bytecode embeddings using BERT-like transformer

  • Output: 0–1 score; min required: 0.87 for execution

  • Execution Control:

  • Multi-wallet concurrency engine (4–16 wallets/bot instance)

  • Flashbots RPC or Solana priority fees

  • Gas optimization module

Sample pseudocode:

for token in new_tokens: score = AI_model.predict(token.features) if score > 0.87: execute_trade(token)

See Figure 2.

6.3 Anti-Rug Logic & Governance

This logic monitors pool behavior using:

  • Liquidity Feed: Real-time liquidity snapshots every 3 seconds

  • Anomaly Engine:

  • Rapid LP burn (>30% in 1 minute)

  • Owner activity during freeze window

  • Price plunge detection via TWAP (Time-Weighted Average Price)

Smart Contract Code Excerpt:

if (lpBurnRatio > 30 && tx.origin == owner) { lockTrading(token); emit Alert(msg.sender, token); }

Governance Features:

  • Token-level freeze vote

  • Minimum quorum: 20% staked BIOKRIPT

  • Admin override in emergencies

See Figure 3.

6.4 Smart Contract Revenue Sharing

Revenue is distributed through a staking and snapshot mechanism.

  • Staking Contract:

  • Lock-in options: 7d, 30d, 90d

  • Rewards scaled by duration and amount

  • Snapshot Engine:

  • Every 1,000 blocks

  • Snapshot ID hashed for immutability

  • Reward Aggregator:

function aggregateFees() public onlyOperator { for each snapshot in cycle { distributeProportionally(snapshot.id); } }

  • Claim UI:

  • Connected via Web3 modal

  • Supports Ledger, Trezor

See Figure 4.

6.5 Azure Deployment Design

The system is hosted across 3 Azure regions.

  • AKS Cluster:

  • Node pools for bot, API, monitor

  • Horizontal scaling with autoscaler

  • Key Vault:

  • RBAC access

  • Secrets for bots signed with HSM

  • Monitoring:

  • Azure Monitor

  • Alerts integrated with Slack/Telegram bot

  • Disaster Recovery:

  • DNS failover

  • Terraform-based auto redeploy

See Figure 5.

6.6 Biokript Patented Key Security Framework

As part of Biokript’s commitment to non-custodial security and institutional-grade functionality, we have developed a patented key security mechanism to support advanced features such as session-based trading, delegated strategies, and automated execution, all without compromising user control.

Key Security Architecture

Biokript’s system integrates with specialized infrastructure providers (e.g., Turnkey) to offer a zero-custody, fully decentralized key management solution, designed for high-security, high-availability DeFi use cases.

Core Requirements

Air-Gapped Private Key Storage All private keys are stored in physically isolated environments, fully offline, to eliminate remote access vulnerabilities.

User-Controlled Encryption Private keys are encrypted on the client side before any interaction with the platform. Biokript never sees or stores unencrypted key material.

No Centralized Key Access Platform infrastructure is designed with zero-knowledge architecture. No single party, including Biokript, an access or decrypt user keys.

Secure Key Recovery Mechanisms Built-in backup and multi-sig recovery options ensure users can safely regain access in case of local device loss or compromise.

Compliance Requirements for Integrated Key Systems

To be compatible with Biokript’s patented architecture, any key management system must:

Encrypt all keys client-side prior to transmission

Store encrypted keys in isolated, offline vaults or HSMs

Enable two-factor or multi-signature access control for signing

Allow full user control, exportability, and revocation of key access

This patented approach ensures that Biokript users retain absolute control of their digital assets, while enabling advanced features typically reserved for centralized platforms, all within a secure, decentralized, and verifiable environment.

See Figure 6.

6.7 Tokenomics & Compliance Considerations

The BIOKRIPT token governs participation, rewards, and compliance:

  • Token Specs:

  • Fixed supply: 1 billion

  • No inflation

  • 2% locked for rewards vault

  • Use Cases:

  • Fee discounts (up to 50%)

  • Voting on new token listings

  • Access tiers for sniper bot

  • Compliance:

  • Optional KYC via zk-SNARKS

  • Geo-blocking via Cloudflare Workers

  • Reporting API for tax integrations (e.g., Koinly, TokenTax)

Simulated Use Case Scenarios

  • Scenario 1: Token Launch Sniping

  • Token XYZ launches on Solana

  • Mempool listener captures LP add

  • AI bot scores it 0.91

  • TX constructed and executed in 1st block

  • Scenario 2: Rug Prevention

  • Token ABC shows 40% LP withdrawal

  • System flags anomaly

  • Bot disables trade engine

  • Governance vote confirms lock

  • Scenario 3: User Reward Cycle

  • User stakes 50,000 BIOKRIPT

  • Receives 1.2% of $13,000 revenue pool

  • Claims via dApp after 14 days

By fusing economic incentives with responsible oversight, BIOKRIPT offers a sustainable path for decentralized growth while supporting institutional onboarding.

7. Claims

  1. A decentralized hybrid exchange system comprising:

  2. a mempool monitoring engine configured to detect token deployment events in real-time;

  3. an AI-based token scoring module that evaluates token legitimacy using machine learning models trained on historical fraud patterns;

  4. a slippage validator designed to assess and prevent unfavorable price movements during trade execution;

  5. an automated trade execution engine that operates without manual input, capable of constructing and submitting signed transactions;

  6. smart contracts for handling transaction routing, staking, reward calculation, and revenue distribution;

  7. a containerized cloud infrastructure deployed using Microsoft Azure services, enabling scalability, redundancy, and secure operation; wherein the system executes autonomous, intelligent token trades at the moment of deployment, subject to safety validations.

  8. The system of claim 1, wherein the mempool monitoring engine:

  9. continuously listens to blockchain pending transaction pools;

  10. filters for token deployment and liquidity addition events;

  11. uses gas analysis and timestamping to prioritize signals;

  12. initiates token scoring only for tokens meeting predefined launch conditions.

  13. The system of claim 1, wherein the AI-based token scoring module utilizes:

  14. feature vectors derived from on-chain contract metadata;

  15. known fraud signatures such as honeypot code patterns, blacklist conditions, or zero-tax mirroring traps;

  16. a model selection engine that switches between decision trees, neural networks, and ensemble classifiers based on accuracy metrics;

  17. an output confidence threshold that must be met for a token to be eligible for trade.

  18. The system of claim 1, wherein the slippage validator includes:

  19. a predictive estimator that compares simulated vs. expected trade outcomes;

  20. logic to adjust slippage dynamically based on gas congestion or liquidity depth;

  21. user-defined safety thresholds for maximal price deviation;

  22. a fallback rejection path for failing slippage conditions.

  23. The system of claim 1, further comprising an anti-rug module that:

  24. continuously calculates liquidity deltas in token-paired pools;

  25. detects anomalies such as sudden LP token burn or transfer to deployer wallet;

  26. flags such behaviors and automatically freezes trading activities involving the flagged token;

  27. sends real-time notifications to off-chain systems, including a governance dashboard;

  28. offers governance-based override where community members can vote to unlock the token.

  29. The system of claim 1, wherein the smart contract layer includes:

  30. a staking contract that records lock durations and staking weights for users holding the BIOKRIPT token;

  31. a snapshot engine that periodically records wallet balances;

  32. a profit aggregation module that calculates proportional rewards using on-chain data;

  33. an escrow contract from which users may claim earned rewards, with optional timelock.

  34. The system of claim 1, wherein the backend is deployed across multiple Microsoft Azure services, comprising:

  35. Azure Kubernetes Service (AKS) clusters running bot agents and APIs;

  36. Azure Load Balancer for evenly distributing traffic across endpoints;

  37. Azure Key Vault configured to manage signing keys and credentials securely;

  38. Azure Monitor and Application Insights for telemetry and uptime assurance;

  39. regionally redundant storage and failover plans to ensure availability.

  40. The system of claim 1, wherein the utility token BIOKRIPT is:

  41. required for participating in sniper bot features;

  42. used as collateral for governance voting weight;

  43. utilized for transaction fee discounts or access privileges on the platform;

  44. subject to a deflationary model wherein a portion of distributed revenue is periodically burned.

  45. The system of claim 5, wherein the anti-rug module includes both:

  46. on-chain enforcement via smart contract state changes;

  47. off-chain anomaly detection pipelines that incorporate AI-generated liquidity volatility scores;

  48. and integration with blocklist registries maintained on-chain for community reference.

  49. The system of claim 6, wherein the staking and revenue-sharing smart contracts:

  • are upgradable using a transparent proxy pattern;

  • support multi-chain execution through standardized bridge contracts;

  • log all reward calculations to the blockchain for auditability;

  • enforce minimum staking duration and cooldown intervals to reduce abuse.

  1. The system of claim 1, wherein the compliance subsystem comprises:

  • automatic IP geofencing to restrict access based on jurisdiction;

  • built-in support for third-party identity verification services;

  • ability to issue zero-knowledge proofs of compliance for regulated access;

  • configurable modes for optional KYC depending on token project classification.

8. Abstract Reference Numbers and Figures

The following figures illustrate the components and operational flow of the decentralized hybrid exchange system:

Figure 1: Architecture Diagram of Biokript DEX Ecosystem: Illustrates user wallets, sniper bot module, revenue module, smart contracts, Azure-hosted infrastructure, and liquidity pools. Demonstrates the interconnectivity between the cloud infrastructure and on-chain components.

Figure 2: Flowchart of AI Sniper Bot Operation: Outlines the logical flow: mempool listener → token scoring engine → trade constructor → slippage validator → signed transaction execution. Each step is annotated with reference numerals to corresponding submodules.

Figure 3: Anti-Rug Logic and Liquidity Threshold Alert System: Shows how liquidity monitoring leads to anomaly detection and transaction lock. Includes triggers for user alerts and contract-based freeze protocols.

Figure 4: Token Revenue-Sharing Distribution Mechanism: Depicts wallet staking module, time-based snapshot mechanism, profit aggregator, escrow smart contract, and user claim UI. Each element is linked via directional flow arrows and assigned numerical references.

Figure 5: Azure Node Deployment and API Routing Diagram: Details the backend infrastructure, including AKS container clusters, load balancers, failover strategies, API Gateway, monitoring components, and Azure Key Vault. Node references are numbered and routed according to deployment topology.

Figure 6: Biokript’s Key Security Framework: Details air-gapped storage, client-side encryption, zero centralized access, and secure multi-signature recovery, ensuring full user control and protection of private keys at all times.

Each figure includes numeric markers that correspond to elements described in the Detailed Description of the Invention, allowing cross-referencing between visual diagrams and textual sections for enhanced understanding and clarity.

Last updated