FeeData
Documentation for eth_defi.vault.fee.FeeData Python class.
- class FeeData
Bases:
objectTrack vault fee parameters
Offer methods to calculate gross/net fees based on the vault fee mode
None means fee unknown: protocol not recognized, or fee data not available
How fees are presented:
Gross fees are what vaults track internally. They are not exposed to an investor, and only useful for internal profit calculations of the vault. Gross fees have already been deducted when the vault share price is updated.
Net fees are deduced at a redemption. A vault investor receives less than the value of their shares back.
For comparing the profitability of vaults, you need to reduce the net fees of an investment period from the vault share price.
- Common vault fee mechanisms implementations are: externalised (net fees, deducted from an investor at a redemption),
skimming (redirected from profits at the time of trade) and minting (new shares minted to the vault owner at the time of trade).
Attributes summary
internalisedDetermines is the vault share price is fees-net or fees-gross
Fee for this class
Fee for this class
Fee for this class
Fee for this class
Methods summary
__init__(fee_mode, management, performance, ...)Get net fees paid by the user on deposit/withdraw.
- fee_mode: eth_defi.vault.fee.VaultFeeMode | None
Determines is the vault share price is fees-net or fees-gross
- get_net_fees()
Get net fees paid by the user on deposit/withdraw.
Determined by the vault fee mode
- Return type
- __init__(fee_mode, management, performance, deposit, withdraw)
- Parameters
fee_mode (eth_defi.vault.fee.VaultFeeMode | None) –
management (float | None) –
performance (float | None) –
deposit (float | None) –
withdraw (float | None) –
- Return type
None