description |
---|
Last Update: November 2023 |
The Beefy Fee Batch is another core component of the . which distributes vault fees to our Ethereum incentive-programmes.md and treasury.md. As with the revenue-bridge.md which delivers fees to the Fee Batch, the Fee Batch acts in one direct only, helping to move earnings from vaults to the Beefy DAO and its tokenholders.
Beefy's Fee Batch contracts were designed and implemented to improve gas efficiency across the protocol in its management of vault fees. Forwarding fees immediately in small values may increase the speed of Beefy's cashflow, but in practice also depletes that cashflow with a corresponding increase in gas costs.
When preparing to send out fees, the Fee Batch's outflow transaction is a multicall, which sends $WETH to the incentive-programmes.md and to a router liquidity pool, to swap for a stablecoin (e.g. $USDC), which is sent onwards to the treasury.md. The breakdown of fees into these categories reflects the beefy-finance-fees-breakdown.md.
Following the migration of the bifi-token to Ethereum in 2023, the protocol relied on Fee Batch contracts on each chain to aggregate fees from that chain's strategies, before transferring into the treasury and governance pools on that chain. See here for an example Fee Batch contract on Optimism, which often handled around 500 inflows and 2 outflows of $WETH per day, and here for an example outflow transaction.
Post-migration, most chains now use their revenue-bridge.md contracts to batch fees before bridging, as explained in #what-does-the-revenue-bridge-do. The obvious exception to this is Ethereum.
Post-migration, the Ethereum Fee Batch contract has taken on the role of batching all revenue from the protocol's vaults after the revenue-bridge.md has returned the funds to Ethereum. This covers inflows from all of the hub chains across different bridges and assets.
Once received by the fee batch, and a sufficient amount has accumulated, the fees are split as previously between the incentive-programmes.md and the treasury.md, in accordance with the allocation detailed in the beefy-finance-fees-breakdown.md. Unlike under the previous fee batch, as the fees are received in stablecoins, the Treasury inflows do not need to be swapped, but incentives for the Governance Pools must first be swapped back to $WETH.