Token Converter
The Token Converter is Rheofi Protocol's on-chain mechanism for converting accumulated protocol revenue tokens into the specific destination tokens required by downstream systems such as the Risk Fund, treasury, buyback contracts, and staker reward distributors. It ensures that revenue flows seamlessly through the protocol's income pipeline regardless of the original token denomination.
How It Works
Protocol revenue accrues in various tokens — typically the underlying assets of each liquidity pool (e.g., WETH, WBTC, USDC). The Token Converter accepts these tokens and swaps them into governance-designated output tokens through whitelisted conversion routes. Conversions can be executed by anyone, with the converter offering a slight incentive to callers who trigger the swap, ensuring timely processing without relying on centralized keepers.
Key Features
- Permissionless Execution: Any user or bot can invoke the conversion function. A small bounty reward incentivizes third parties to trigger conversions, decentralizing the operational flow.
- Configurable Conversion Routes: Governance defines which token pairs are supported and the routing logic used for swaps, ensuring that conversions execute through trusted liquidity venues.
- Slippage Protection: Each conversion route includes configurable slippage parameters and minimum output thresholds, safeguarding the protocol against unfavorable trade execution.
- Modular Architecture: Multiple Token Converter instances can operate in parallel, each serving a different revenue destination, enabling isolated and auditable conversion pipelines.
The Token Converter bridges the gap between heterogeneous revenue streams and the protocol's standardized allocation framework — ensuring continuous, trustless income processing.