Trade Execution Models

Trade Execution Overview

MonBridge supports multiple execution models optimized for different trade sizes and market conditions.


1. Single-Venue Execution

When Used

  • Small to medium trades

  • Direct path available (Token A → Token B exists at venue)

  • Single venue offers best pricing

  • Lowest complexity routing

Execution Flow

Step 1: User Submits Request
User calls MonBridge: "Swap 1000 USDC for DAI"
                      Max slippage: 100 BPS

Step 2: Price Discovery
Contract queries DEX venue:
- Reserve USDC: 50M
- Reserve DAI: 50M
- Spot price: 1:1
- Quote: 1000 USDC → ~990 DAI (99 BPS slippage)

Step 3: Validation
- Slippage 99 BPS < Max 100 BPS ✓
- Liquidity sufficient ✓
- Venue healthy ✓

Step 4: Execution
Contract calls: DEX.swap(1000 USDC, 990 DAI min, user)
DEX executes swap atomically

Step 5: Settlement
- 1000 USDC transferred from user to DEX
- ~990 DAI transferred from DEX to user
- Protocol fee (1 USDC) accumulated

Step 6: Confirmation
User receives 990 DAI
Transaction logged on-chain
Event emitted with details

Gas Efficiency

  • Minimal contract calls

  • Direct routing path

  • Lowest transaction cost

  • Preferred for small trades

Example Transactions

Transaction A - Small Trade:

Transaction B - Inefficient for Large Trade:


2. Multi-Hop Execution

When Used

  • Deeper liquidity needed through intermediate token

  • Direct pair has insufficient liquidity

  • Intermediate path reduces total slippage

  • Token A not directly paired with Token B

Execution Flow

Technical Execution

Examples

Multi-Hop Example 1: Rare Token Pair:

Multi-Hop Example 2: Liquidity Depth:

Gas Considerations

  • Additional hop = additional contract calls

  • More gas expensive than single-hop

  • Only used when output benefit exceeds gas cost


3. Split Trading (Order Fragmentation)

When Used

  • Very large trades exceeding single-venue liquidity capacity

  • Price impact would be excessive with single route

  • Multiple venues available with adequate liquidity

  • Automatic benefit calculation shows improvement

Split Triggering Logic

Execution Process

Configuration

Examples

Large Trade Example 1:

Large Trade Example 2:

Split Limitations

  • Maximum 4 segments to limit complexity

  • Each segment must meet minimum liquidity

  • All segments must execute successfully

  • Revert if any segment fails


4. Swap Type Variations

ETH to Token

Use Case: User has native blockchain token, wants ERC20 token

Token to ETH

Use Case: User has ERC20 token, wants native blockchain token

Token to Token

Use Case: Swap one ERC20 for another


5. Fee-on-Transfer Token Execution

Specialized Handling

Standard ERC20 Flow:

Fee-on-Transfer Token Flow:

Execution Example


6. Real-Time Execution Flow (Detailed)

Complete Execution Timeline


7. Atomic vs Non-Atomic Execution

Atomic Execution (All MonBridge Transactions)

Definition: Either complete fully or fail completely; no partial execution

Failure Scenarios

Scenario 1: Insufficient Output

Scenario 2: Venue Failure

Scenario 3: Slippage Exceeded

Benefits of Atomicity

  • User never loses funds (only gets or doesn't get swap)

  • No "stuck" transactions with partial execution

  • Clear success/failure outcomes

  • Safe for automated trading


8. Performance & Gas Optimization

Single-Hop vs Multi-Hop Gas Cost ( MONAD)

Cost-Benefit Analysis


Next: See Economic Model for fee structure and protocol economics.

Last updated