VaultFeeMode
Documentation for eth_defi.vault.fee.VaultFeeMode Python class.
- class VaultFeeMode
Bases:
enum.EnumHow vault protocol account its fees.
Externalised fees: fees are deducted from the redemption amount when user withdraws.
Internalised fees: fees are baked into the share price (asset amount) and continuously taken from the profit. There are no fees on withdraw.
Attributes summary
Vault fees are baked into the share price (asset amount).
Vault fees are baked into the share price (asset amount).
Vault fees are taken from the user explicitly at the redemption time.
This protocol has no fees.
Methods summary
Are the fees internalised in the share price?
- internalised_skimming = 'internalised_skimming'
Vault fees are baked into the share price (asset amount).
Fees are taken from the profit at the moment profit is made, and send to another address.
Example protocols: Yearn, Harvest Finance, USDAi.
- internalised_minting = 'internalised_minting'
Vault fees are baked into the share price (asset amount).
Fees are taken from the profit at the moment profit is made. and corresponding number of shares is minted to the vault owner.
Example protocols: AUTO Finance
- externalised = 'externalised'
Vault fees are taken from the user explicitly at the redemption time.
Example protocols: Lagoon Finance.
- feeless = 'feeless'
This protocol has no fees.
- is_internalised()
Are the fees internalised in the share price?
- Return type