vMarket
  • Welcome
  • Developers
    • API Reference
  • How It Works
    • vCall: Overview
    • Transaction Minimums
    • MEV Protection
    • Surplus Handling
    • Fees
    • Refunds
Powered by GitBook
On this page
  1. How It Works

Surplus Handling

Actual swap amounts may differ from initial quotes due to price movements. Understanding how vMarket handles these variations is essential for users expecting precise outcomes.

Surplus Handling

When the origin operation yields more than expected, vMarket captures a small fraction of the surplus, with the user receiving the rest.

Shortage Handling

When the origin operation yields less than expected, vMarket evaluates whether the reduced amount can still meet the minimum output requirements. The operation continues only if the available funds can be swapped to deliver at least the minimum amount expected by the user.

Refund Protection: If the shortage is severe enough that the output would fall below the user's minimum acceptable amount, vMarket automatically triggers a refund.

PreviousMEV ProtectionNextFees

Last updated 5 days ago