Skip to main content

Protocol Fees

The V3 system sees the introduction of "Protocol Fees" to the stack: a percentage charged each time a V3 vault or strategy "reports".


profit = 100
performance_fee = 10%
protocol_fee = 10%

total_fees = profit * performance_fee = 10
protocol_fees = total_fees * protocol_fee = 1
performance_fees = total_fees - protocol_fees = 9

9 would get paid to the vault specified as the performance_fee_recipient.
1 would get paid to the Yearn Treasury.

Protocol fees give the managers of vaults and strategies complete control over the fees charged while rewarding Yearn for supplying the infrastructure those vaults are built on.

Yearn Governance dictates the amount of the Protocol fee and can be set anywhere between 0 - 50%. Yearn governance also holds the ability to set custom protocol fees for individual vaults and strategies. Allowing full customization of the system.

You can retrieve both the default protocol fee as well as if a custom config has been set for a specific vault or strategy using the Vault Factory that corresponds to that vault's API.

# Retrieve the default config.

# Check if there is a custom protocol fee for a vault.

# Get a custom config if applicable.