Fermi Swap prepaid vs allowance-based swaps
Compare prepaid and allowance-based Fermi Swap swaps by transaction composition, spending authority and refund handling.
Crypto Desk Report Editorial#cee61c4 min read

For a first wallet integration, use Fermi Swap’s allowance-based entry point; prepay only when your integration can transfer the input and call the swap atomically.
An allowance-based entry point pulls authorized input tokens during execution, while a prepaid swap uses tokens transferred to the venue before the swap call. The IPropAMM interface, specified in BAP-710, uses push payment: input arrives before swap(). The FermiSwapper VERSION 20260604 also supports an allowance entry, with protections that depend on whether the trade specifies an exact input or exact output.
For an Ethereum wallet swap, Fermi Swap lets you trade through a venue that fills from its own token inventory, without building a shared-pool funding path. That difference matters when deciding which contract should move the input tokens and when.
Prepaid and allowance-based swaps put funding in different places
With prepayment, the integration sends tokens to the swap venue before calling IPropAMM.swap(). The interface expects the input to have arrived already; a direct call without that transfer does not follow its push-payment flow. The transfer and swap should therefore be composed in one transaction through an appropriate integration.
With an allowance-based entry point, the wallet authorizes a spender and the entry point pulls the input during execution. The user’s tokens stay in the wallet until that pull. This is the more direct fit when a wallet funds the trade and the integration does not control a separate transfer-to-venue step.
The practical contrast is transaction composition versus spending authority. Prepayment gives the integration control over the funding sequence, but it must coordinate transfer and execution atomically. Allowance execution avoids that pre-transfer step, while requiring the wallet to authorize a spender. Treating the paths as equivalent can leave a prepaid swap unfunded or give an allowance-based integration more spending authority than intended.
Set output and input protection for the selected entry point
For an exact-input swap, the amount sold is fixed and the output can vary. FermiSwapper VERSION 20260604 enforces a minimum output on its allowance entry. That condition sets the least amount of purchased tokens the call will accept.
For an exact-output swap, the purchased amount is fixed and input can vary. The allowance entry enforces a maximum input, which caps what the call may spend to obtain that output. These checks protect different sides of the trade: minimum output for a fixed input, maximum input for a fixed output.
A constructed integration case makes the choice concrete. A wallet wants a fixed amount of a token, but its app does not combine a transfer to the venue with the swap in one transaction. An allowance-based exact-output call can pull authorized input while enforcing the user’s spending ceiling. If the app instead controls the whole transaction and can send input before calling IPropAMM.swap(), the prepaid path fits its execution model.
Exact-output prepayment needs a deliberate refund destination
A prepaid exact-output swap can use a maximum input amount, then return the unused portion. FermiSwapper VERSION 20260604 supports this pattern and directs the unused prepayment to refundRecipient; the purchased tokens go to the output recipient.
Those addresses can differ, so the integration should reconcile them explicitly. For instance, a contract may receive the purchased tokens for a later step while the user’s wallet receives any unused input. If the refund address is mistaken for the output recipient, accounting and transaction expectations diverge even when the swap itself succeeds.
For allowance execution, review the maximum-input protection and the spender’s allowance. For prepaid execution, review who supplied the tokens and where unused input returns. The token owner can reduce a spender’s allowance later, so authorization can be managed separately from the swap’s output recipient.
Ethereum gas, swap approvals and transfer-fee tokens
Can WETH pay Ethereum swap gas?
Ordinary self-paid Ethereum transactions require native ETH for gas. WETH is an ERC-20 token, so holding WETH alone does not pay the transaction’s gas.
Can swap approval be revoked later?
The token owner can reduce the spender’s allowance after granting it. That changes the spender’s future authority; it does not reverse a swap that already executed.
Do fee-on-transfer tokens need special handling?
Confirm explicit support for fee-on-transfer tokens. A transfer deduction changes how much input the venue receives, which can affect both a prepaid amount and the amount an allowance-based entry point pulls.
If the wallet supplies input and the integration does not bundle funding with execution, choose Fermi Swap’s allowance-based token-swap entry point; before deployment, check the spender and refundRecipient as separate addresses in the integration’s transaction data.