Fee Batch

Last Update: November 2023

The Beefy Fee Batch is another core component of the Beefy Protocol which distributes vault fees to our Ethereum Incentive Programmes and Treasury. As with the Revenue Bridge 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.

What does the Fee Batch do?

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 and to a router liquidity pool, to swap for a stablecoin (e.g. $USDC), which is sent onwards to the Treasury. The breakdown of fees into these categories reflects the Beefy Fees Breakdown.

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.

Ethereum Fee Batch

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 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 and the Treasury, in accordance with the allocation detailed in the Beefy Fees Breakdown. 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.

Last updated