Charging Fees with Bungee
Bungee allows integrators to charge fees on swaps and transfers, providing a revenue stream for your application. This guide explains how to implement fee charging in both Bungee Auto and Bungee Manual integrations. If you plan to implement fee charging, please request a dedicated API key first.Fee Mechanics
When integrating Bungee, you can specify two key parameters to collect fees:feeTakerAddress: The address that will receive the collected feesfeeBps: The percentage of the transfer amount to charge as a fee (in basis points - 1 basis point = 0.01%)
Implementation
You can add fee parameters to both Bungee Auto and Manual integrations when requesting a quote:Where to Claim Fees
For Bungee Manual, no need to claim as fees are delivered directly to thefeeTakerAddress provided.
For Bungee Auto, fees are sent to the FeeCollector contract where anyone can trigger the claim fees for a specified token address and feeTakerAddress pair.
For per-chain FeeCollector addresses, see the Contract Addresses page. The FeeCollector exposes a claim(address token, address feeTaker) method to withdraw accrued fees.
Next Steps
Auto Integration Guide
Integrate Bungee Auto with fee charging
Manual Integration Guide
Integrate Bungee Manual with fee charging
Quote API Reference
Details on the Quote API parameters
Fees & Monetization
Learn more about fee charging and monetization