NestVault
Documentation for eth_defi.erc_4626.vault_protocol.nest.vault.NestVault Python class.
- class NestVault
Bases:
eth_defi.erc_4626.vault.ERC4626VaultNest real-world-asset vault entrypoint.
Nest products have a dedicated share token and can offer multiple denomination and chain routes. Deposits and redemptions should use Nest’s Actions API: the public flow can require compliance checks, bridging and an asynchronous redemption claim. Consequently this reader does not certify the generic synchronous ERC-4626 deposit manager.
- Parameters
web3 – Connection we bind this instance to
spec – Chain, address tuple
token_cache –
Cache used with
fetch_erc20_details()to avoid multiple calls to the same token.Reduces the number of RPC calls when scanning multiple vaults.
features – Pass vault feature flags along, externally detected.
default_block_identifier –
Override block identifier for on-chain metadata reads.
When
None, useget_safe_cached_latest_block_number()(the default, safe for broken RPCs). Set to"latest"for freshly deployed vaults whose contracts do not exist at the safe-cached block.require_denomination_token – If
True, accessingdenomination_tokenwill raiseRuntimeErrorwhen the on-chain lookup returnsNone.
Attributes summary
Get the vault smart contract address.
Chain this vault is on
Get the token which denominates the vault valuation
Deposit manager assocaited with this vault
Return Nest's full first-party product description.
Is this ERC-7540 vault with asynchronous deposits.
Flow manager associated with this vault
Get info dictionary related to this vault deployment.
Return a reviewed Nest manager or the best available yield partner.
Use Nest's current application name for active Arc products.
Fetch cached first-party Nest product and route metadata.
Load Nest-specific contract methods not included in the standard ABI.
ERC-20 that presents vault shares.
Return Nest's concise first-party product summary.
Vault share token symbol
synthetic_usd_denominationWhether NAV and historical total_assets already use synthetic USD units.
Alias for
denomination_token()vault_addressvault_address_checksumlessGet vault deployment.
whitelist_notesOptional qualification for the exported whitelist status.
Methods summary
__init__(web3, spec[, token_cache, ...])- param web3
Check if maxDeposit(address(0)) can be used to check global deposit availability.
Check if maxRedeem(address(0)) can be used to check global redemption availability.
fetch_available_liquidity([block_identifier])Get the amount of denomination token available for immediate withdrawal.
Read denomination token from onchain.
Get the
asset()denomination token address of this vault.Check if deposits are closed using maxDeposit(address(0)).
Get when deposits will next be open.
Fetch the current protocol-defined deposit availability.
fetch_idle_lending_snapshot(total_assets, ...)Read the idle balance once for adapters with idle-based utilisation.
Use
info()property for cached access.fetch_minimum_deposit([block_identifier])Fetch a source-proven minimum deposit in decimal token units.
fetch_minimum_redemption([block_identifier])Fetch a source-proven redemption minimum in decimal share units.
fetch_nav([block_identifier])Fetch the most recent onchain NAV value.
fetch_portfolio(universe[, ...])Read the current token balances of a vault.
Check if redemptions are closed using maxRedeem(address(0)).
Get when withdrawals/redemptions will next be open.
Persist parsed public Nest metadata alongside scanner fields.
fetch_share_price(block_identifier)Get the current share price.
Read share token details onchain.
fetch_share_token_address([block_identifier])Get share token of this vault.
fetch_total_assets(block_identifier)What is the total NAV of the vault.
fetch_total_pending_shares([block_identifier])Read the onchain aggregate of queued asynchronous redemptions.
fetch_total_supply(block_identifier)What is the current outstanding shares.
fetch_utilisation_percent([block_identifier])Get the percentage of assets currently lent out.
Get all information we can extract from the vault smart contracts.
get_deposit_fee(block_identifier)Deposit fee is set to zero by default as vaults usually do not have deposit fees.
Get deposit manager to deposit/redeem from the vault.
Declare the exact generic ERC-4626 implementation's two-way flow.
Return Nest's CMS redemption estimate when it publishes one.
Get fee data structure for this vault.
Get how this vault accounts its fees.
Get various vault state flags from the smart contract.
Get flow manager to read indiviaul settle events.
get_historical_reader(stateful)Keep Nest's sampled NAV observations in routine scans and backfills.
get_link([referral])Return the current Arc product page for an active Arc route.
get_management_fee(block_identifier)Report an unavailable management fee.
Expose Nest's separate yield-source and risk explanations.
get_performance_fee(block_identifier)Report an unavailable performance fee.
Return the name of the vault protocol.
get_risk()Get risk profile of this vault.
Return the standard ERC-4626 share-price source.
get_spec()Return reviewed tags for a Nest entrypoint address.
Build static metadata for a verified synchronous manager.
Return an export caveat for the vault-wide whitelist status.
get_withdraw_fee(block_identifier)Withdraw fee is set to zero by default as vaults usually do not have withdraw fees.
Return binding withdrawal timing and optional settlement estimates.
Does this vault support block range-based event queries for deposits and redemptions.
Does this vault have fees outside the shared fee model.
Deposits go automatically to all open positions.
is_account_whitelisted(address)Determine whether an account has completed the vault's KYC policy.
is_valid()Check if this vault is valid.
Determine whether deposits require pre-approved recipient accounts.
Check whether the live vault exposes the standard ERC-4626 surface.
- property nest_vault_contract: web3.contract.contract.Contract
Load Nest-specific contract methods not included in the standard ABI.
Bind the verified interface to this chain’s deposit and redemption entrypoint rather than to its separate share token.
- Returns
Deployed NestVault contract with the compact verified Nest ABI.
- property nest_metadata: Optional[eth_defi.erc_4626.vault_protocol.nest.offchain_metadata.NestVaultMetadata]
Fetch cached first-party Nest product and route metadata.
The catalogue supplies advisory product content for this chain and address. Contract reads remain authoritative for vault accounting.
- Returns
Nest API and CMS metadata for this chain-specific entrypoint.
- property name: str
Use Nest’s current application name for active Arc products.
Other chains retain their onchain share-token name because the new application currently serves Arc routes only.
- Returns
Current Arc display name or onchain share-token name.
- property description: Optional[str]
Return Nest’s full first-party product description.
Use the CMS strategy explanation without inferring realised returns.
- Returns
Description, or
Nonewhen unpublished.
- property short_description: Optional[str]
Return Nest’s concise first-party product summary.
Preserve the CMS summary independently of the full strategy text.
- Returns
Summary, or
Nonewhen unpublished.
- property manager_name: Optional[str]
Return a reviewed Nest manager or the best available yield partner.
Yield partners are a CMS display list, so this label alone does not establish curator identity. Nest DAO’s primary curator identity is exported separately for the curator resolver.
- Returns
Selected first-party partner or reviewed manager name.
- get_strategy_tags()
Return reviewed tags for a Nest entrypoint address.
The maintained table covers eight researched product strategies. Other Nest routes remain unclassified until separately researched.
- Returns
A copy of the tags, or
Nonefor an unmapped address.- Return type
- get_historical_reader(stateful)
Keep Nest’s sampled NAV observations in routine scans and backfills.
Daily NAV changes may be smaller than the common sparse threshold. Retain every successful sample taken by the reader. Stateful polling can still be daily or weekly for small or inactive vaults; it does not guarantee the migration’s hourly observation grid.
- Parameters
stateful (bool) – Use the scheduled scanner’s adaptive read state.
- Returns
Standard ERC-4626 reader with full sample retention.
- Return type
- fetch_total_pending_shares(block_identifier='latest')
Read the onchain aggregate of queued asynchronous redemptions.
totalPendingShares()is a NestVaultCore view that totals redemption requests awaiting fulfilment across all controllers. It is useful for observability but does not predict an individual holder’s settlement.
- get_management_fee(block_identifier)
Report an unavailable management fee.
This adapter has no decoder for Nest management fees. Missing fees must remain unknown rather than being reported as zero.
- Parameters
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) – Included for the standard vault-reader interface.
- Returns
Noneuntil a route-specific fee decoder is implemented.- Return type
- get_performance_fee(block_identifier)
Report an unavailable performance fee.
This adapter has no decoder for Nest performance fees. Exported gross returns therefore cannot be certified as returns after all fees.
- Parameters
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) – Included for the standard vault-reader interface.
- Returns
Noneuntil a route-specific fee decoder is implemented.- Return type
- get_estimated_lock_up()
Return Nest’s CMS redemption estimate when it publishes one.
The estimate is a product-level service indication and does not replace the onchain asynchronous-redemption state or guarantee settlement time.
- Returns
Estimated redemption delay, or
Noneif Nest does not publish it.- Return type
- get_notes()
Expose Nest’s separate yield-source and risk explanations.
Operator notes take precedence over the advisory CMS explanations.
- get_link(referral=None)
Return the current Arc product page for an active Arc route.
Nest’s current application only supports Arc. Other chain routes use the general catalogue rather than an Arc-specific minting page.
- fetch_scan_record_extra_data()
Persist parsed public Nest metadata alongside scanner fields.
Declare the reviewed Nest DAO curator separately from indicative yield-source partner names.
- __init__(web3, spec, token_cache=None, features=None, default_block_identifier=None, require_denomination_token=False)
- Parameters
web3 (web3.main.Web3) – Connection we bind this instance to
spec (eth_defi.vault.base.VaultSpec) – Chain, address tuple
token_cache (Optional[dict]) –
Cache used with
fetch_erc20_details()to avoid multiple calls to the same token.Reduces the number of RPC calls when scanning multiple vaults.
features (Optional[set[eth_defi.erc_4626.core.ERC4626Feature]]) – Pass vault feature flags along, externally detected.
default_block_identifier (Optional[Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, hexbytes.main.HexBytes, int]]) –
Override block identifier for on-chain metadata reads.
When
None, useget_safe_cached_latest_block_number()(the default, safe for broken RPCs). Set to"latest"for freshly deployed vaults whose contracts do not exist at the safe-cached block.require_denomination_token (bool) – If
True, accessingdenomination_tokenwill raiseRuntimeErrorwhen the on-chain lookup returnsNone.
- property address: eth_typing.evm.HexAddress
Get the vault smart contract address.
- can_check_deposit()
Check if maxDeposit(address(0)) can be used to check global deposit availability.
Most ERC-4626 vaults implement maxDeposit in a way that returns meaningful values when called with address(0):
Returns 0 when deposits are globally closed/capped
Returns a positive value indicating maximum deposit allowed
Override to return False in subclasses where maxDeposit(address(0)) doesn’t provide meaningful global availability information.
- Returns
True if maxDeposit(address(0)) returns meaningful values for global deposit availability checking.
- Return type
- can_check_redeem()
Check if maxRedeem(address(0)) can be used to check global redemption availability.
Most protocols return 0 for maxRedeem(address(0)) because that address has no balance/shares, not because redemptions are closed:
Gearbox: maxRedeem returns min(balanceOf(owner), convertToShares(availableLiquidity))
Most vaults: Return 0 because address(0) has no shares
Some protocols do use maxRedeem(address(0)) meaningfully:
Morpho, IPOR, Plutus: Return 0 when redemptions are globally blocked
Override to return True in subclasses that support address(0) redemption checks.
- Returns
True if maxRedeem(address(0)) returns meaningful values for global redemption availability checking.
- Return type
- property chain_id: int
Chain this vault is on
- property denomination_token: Optional[eth_defi.token.TokenDetails]
Get the token which denominates the vault valuation
Used in deposits and redemptions
Used in NAV calculation
Used in profit benchmarks
Usually USDC
- Returns
Token wrapper instance.
Maybe None for broken vaults like https://arbiscan.io/address/0x9d0fbc852deccb7dcdd6cb224fa7561efda74411#code
Note
Noneresults are not cached — the next access will retry the on-chain call. This avoids permanently caching a transient RPC failure.
- property deposit_manager: eth_defi.vault.deposit_redeem.VaultDepositManager
Deposit manager assocaited with this vault
- property erc_7540: bool
Is this ERC-7540 vault with asynchronous deposits.
For example
previewDeposit()function and other functions will revert
- fetch_available_liquidity(block_identifier='latest')
Get the amount of denomination token available for immediate withdrawal.
Only applicable to lending protocol vaults (IPOR, Euler, Morpho, Gearbox, etc.). Non-lending protocols should leave this method unimplemented.
Note: maxRedeem(address(0)) does NOT work as a proxy for available liquidity because it requires a specific address that has already deposited shares. For address(0), balanceOf is always 0, so maxRedeem returns 0 regardless of actual liquidity.
- Parameters
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) – Block to query. Defaults to “latest”.
- Raises
NotImplementedError – For non-lending protocol vaults.
- Returns
Amount in denomination token units (human-readable Decimal).
- Return type
- fetch_denomination_token()
Read denomination token from onchain.
Use
denomination_token()for cached access.- Return type
- fetch_denomination_token_address()
Get the
asset()denomination token address of this vault.Results are disk-cached per
(chain_id, vault_address)viaeth_defi.erc_4626.vault_tokenwhen the vault was constructed with aeth_defi.token.TokenDiskCacheand no pinneddefault_block_identifier. Current mappings expire after seven days because proxy upgrades may change relationships. These entries are not evidence of a token relationship at an arbitrary historical block.Only a definitive non-null answer is persisted. The
Nonepath taken on revert / broken contract is never cached, matching the behaviour ofeth_defi.vault.base.VaultBase.denomination_token()which explicitly avoids memoisingNoneso transient failures can be retried.To disable the cache, pass
token_cache=None(or any non-TokenDiskCachedict) when constructing the vault, or construct with a pinneddefault_block_identifier.- Returns
Denomination token address, or
Noneif the vault contract is broken and did not return a valid address.- Return type
- fetch_deposit_closed_reason()
Check if deposits are closed using maxDeposit(address(0)).
Uses the ERC-4626 standard maxDeposit function to determine if deposits are available. Returns a human-readable reason with the max deposit amount if deposits are restricted.
- fetch_deposit_next_open()
Get when deposits will next be open.
For epoch-based vaults (Ostium, D2), return calculated window open time
For non-epoch vaults (Plutus, IPOR, Morpho), return None
Override in protocol-specific subclasses
- Returns
Naive UTC datetime when deposits will next be available, or None if:
Deposits are currently open
Timing is unpredictable (manually controlled)
Protocol does not support timing information
- Return type
- fetch_deposit_open()
Fetch the current protocol-defined deposit availability.
This is deliberately a tri-state value.
TrueandFalsemean that the adapter read an authoritative vault-wide state;Nonemeans that the generic adapter cannot safely determine the state. It is separate fromfetch_deposit_closed_reason(), because an absent human-readable reason does not prove that deposits are open.
- fetch_idle_lending_snapshot(total_assets, block_identifier)
Read the idle balance once for adapters with idle-based utilisation.
This helper is opt-in: idle assets are not redeemable liquidity for every lending protocol. See the protocol’s liquidity documentation.
Morpho v1 and IPOR metadata call this after reading total assets, avoiding duplicate idle-balance reads for liquidity and utilisation. Reuse the exact raw assets only when their source block and decimal value match; converting an externally supplied Decimal back to raw units is a fallback for callers that did not first fetch assets through this adapter.
- Parameters
total_assets (decimal.Decimal) – Previously fetched TVL in denomination-token units.
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, hexbytes.main.HexBytes, int]) – Numeric block used for both economic inputs.
- Returns
(idle_liquidity, utilisation): a Decimal balance in denomination token units and the fraction of total assets allocated (0 to 1). Both members are None when the denomination token is unavailable; zero total assets produces zero utilisation.- Return type
tuple[decimal.Decimal | None, float | None]
- fetch_info()
Use
info()property for cached access.- Returns
See
LagoonVaultInfo- Return type
- fetch_minimum_deposit(block_identifier='latest')
Fetch a source-proven minimum deposit in decimal token units.
A
Noneresult means this adapter does not expose a known minimum; it does not prove the protocol accepts arbitrarily small deposits. A zero result means the adapter positively established that the vault has no minimum deposit.- Parameters
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) – Block at which to read the protocol configuration.
- Returns
Decimal denomination-token minimum, or
Nonewhen unknown.- Return type
- fetch_minimum_redemption(block_identifier='latest')
Fetch a source-proven redemption minimum in decimal share units.
A
Noneresult means this adapter does not expose a known minimum; it does not prove the protocol accepts arbitrarily small redemptions. A zero result means the adapter positively established that the vault has no minimum redemption.- Parameters
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) – Block at which to read the protocol configuration.
- Returns
Decimal vault-share minimum, or
Nonewhen unknown.- Return type
- fetch_nav(block_identifier=None)
Fetch the most recent onchain NAV value.
In the case of Lagoon, this is the last value written in the contract with updateNewTotalAssets() and ` settleDeposit()`
TODO: updateNewTotalAssets() there is no way to read pending asset update on chain
- Returns
Vault NAV, denominated in
denomination_token()- Return type
- fetch_portfolio(universe, block_identifier=None, allow_fallback=True)
Read the current token balances of a vault.
SHould be supported by all implementations
- Parameters
universe (eth_defi.vault.base.TradingUniverse) –
block_identifier (Optional[Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, hexbytes.main.HexBytes, int]]) –
allow_fallback (bool) –
- Return type
- fetch_redemption_closed_reason()
Check if redemptions are closed using maxRedeem(address(0)).
Only works for protocols that implement maxRedeem in a way that returns meaningful values for address(0). Most protocols return 0 because address(0) has no shares, not because redemptions are closed.
- fetch_redemption_next_open()
Get when withdrawals/redemptions will next be open.
For epoch-based vaults (Ostium, D2), return calculated window open time
For non-epoch vaults (Plutus, IPOR, Morpho), return None
Override in protocol-specific subclasses
- Returns
Naive UTC datetime when withdrawals will next be available, or None if:
Withdrawals are currently open
Timing is unpredictable (manually controlled)
Protocol does not support timing information
- Return type
- fetch_share_price(block_identifier)
Get the current share price.
- fetch_share_token()
Read share token details onchain.
Use
share_token()for cached access.- Return type
- fetch_share_token_address(block_identifier='latest')
Get share token of this vault.
Vault itself (ERC-4626)
share()accessor (ERC-7575)
Results are disk-cached per
(chain_id, vault_address)viaeth_defi.erc_4626.vault_tokenwhen the vault was constructed with aeth_defi.token.TokenDiskCache. Under normal circumstances live reads reuse the current relationship until its seven-day deadline. Explicit historical reads bypass this disk cache because ERC-7575 relationships may change through proxy upgrades.Only a definitive answer from the chain is ever persisted: a successful call, or a revert matching
KNOWN_SHARE_TOKEN_ERROR_MESSAGES(which positively classifies the contract as non-ERC-7575). Transient RPC failures (ProbablyNodeHasNoBlock, HTTP 502) fall back toself.vault_addressbut are not written to the cache, so a flaky node cannot poison a real ERC-7575 vault’s entry.To disable the cache, pass
token_cache=None(or any non-TokenDiskCachedict) when constructing the vault, or construct with a pinneddefault_block_identifierto force the uncached historical-read path on every call.- Parameters
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, hexbytes.main.HexBytes, int]) – Block to query. Cache is only consulted/written when the caller passes the default
"latest"and the vault instance has no pinneddefault_block_identifier.- Return type
- fetch_total_assets(block_identifier)
What is the total NAV of the vault.
Example:
assert vault.denomination_token.symbol == "USDC" assert vault.share_token.symbol == "ipUSDCfusion" assert vault.fetch_total_assets(block_identifier=test_block_number) == Decimal("1437072.77357") assert vault.fetch_total_supply(block_identifier=test_block_number) == Decimal("1390401.22652875")
- Parameters
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, hexbytes.main.HexBytes, int]) –
Block number to read.
Use web3.eth.block_number for the last block.
- Returns
The vault value in underlyinh token
- Return type
- fetch_total_supply(block_identifier)
What is the current outstanding shares.
Example:
- Parameters
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, hexbytes.main.HexBytes, int]) –
Block number to read.
Use web3.eth.block_number for the last block.
- Returns
The vault value in underlyinh token
- Return type
- fetch_utilisation_percent(block_identifier='latest')
Get the percentage of assets currently lent out.
Only applicable to lending protocol vaults (IPOR, Euler, Morpho, Gearbox, etc.). Non-lending protocols should leave this method unimplemented.
- Parameters
block_identifier (Union[Literal['latest', 'earliest', 'pending', 'safe', 'finalized'], eth_typing.evm.BlockNumber, eth_typing.evm.Hash32, eth_typing.encoding.HexStr, int]) – Block to query. Defaults to “latest”.
- Raises
NotImplementedError – For non-lending protocol vaults.
- Returns
Utilisation as float between 0.0 and 1.0 (0% to 100%).
- Return type
- fetch_vault_info()
Get all information we can extract from the vault smart contracts.
- Return type
- property flow_manager: eth_defi.vault.base.VaultFlowManager
Flow manager associated with this vault
- get_deposit_fee(block_identifier)
Deposit fee is set to zero by default as vaults usually do not have deposit fees.
Internal: Use
get_fee_data().
- get_deposit_manager()
Get deposit manager to deposit/redeem from the vault.
- Return type
- get_deposit_manager_capability()
Declare the exact generic ERC-4626 implementation’s two-way flow.
Subclasses need exact-type inclusion in
CERTIFIED_SYNCHRONOUS_DEPOSIT_MANAGER_CLASSES. The guarded probe may separately usesupports_generic_deposit_manager()as a temporary fallback without advertising it as public metadata.- Returns
Synchronous two-way capability for the exact base class, otherwise
None.- Return type
Optional[eth_defi.vault.deposit_redeem.VaultDepositManagerCapability]
- get_fee_data()
Get fee data structure for this vault.
- Raises
ValueError – In the case of broken or unimplemented fee reading methods in the smart contract
- Return type
- get_fee_mode()
Get how this vault accounts its fees.
- Return type
- get_flags()
Get various vault state flags from the smart contract.
Override to add status flags
Also add flags from our manual flag list in
eth_defi.vault.flag
The vault metadata scan stores this result as
_flagsinvault-metadata-db.pickle.top_vaults_by_chain.jsonis generated from those stored values throughscripts/erc-4626/vault-analysis-json.py/eth_defi.vault.top_vaults_json.After editing manual flags in
eth_defi.vault.flag, rerun the vault metadata scan and top-vault JSON post-processing. Regenerating the JSON from an old metadata database will not pick up new manual flags.- Returns
Flag set.
Do not modify in place.
- Return type
- get_flow_manager()
Get flow manager to read indiviaul settle events.
Only supported if
has_block_range_event_support()is True
- Return type
- get_protocol_name()
Return the name of the vault protocol.
- Return type
- get_risk()
Get risk profile of this vault.
- Return type
- get_share_price_source()
Return the standard ERC-4626 share-price source.
ERC-4626 prices are calculated from vault accounting values read at a specific block, including protocol-specific overrides that expose the same state through another contract view.
- Returns
Smart-contract state source.
- Return type
- get_synchronous_deposit_manager_capability()
Build static metadata for a verified synchronous manager.
A caller must already have established the reader class’ guarded fork evidence. This deliberately performs no RPC reads: the capability is static library metadata, not a live vault availability check.
- Returns
Synchronous two-way capability.
- Return type
- get_whitelist_notes()
Return an export caveat for the vault-wide whitelist status.
Adapters may attach a concise, stable explanation when a classification is an explicitly requested operating assumption or excludes an integration-specific permission mechanism. The note describes the policy classification only; it must not be used to report temporary deposit availability.
- get_withdraw_fee(block_identifier)
Withdraw fee is set to zero by default as vaults usually do not have withdraw fees.
Internal: Use
get_fee_data().
- get_withdrawal_period()
Return binding withdrawal timing and optional settlement estimates.
Unlike
get_estimated_lock_up(), this reports the redemption lifecycle after a user submits a valid withdrawal request. Adapters usemin_periodandmax_periodonly for a binding smart-contract timing rule. An adapter may instead return a non-bindingestimated_settlementfor backtesting an offchain operating cadence or redemption wait; that estimate never establishes claimability and does not require a synthetic timing bound.- Returns
Withdrawal period details, or
Nonewhen unavailable.- Return type
- has_block_range_event_support()
Does this vault support block range-based event queries for deposits and redemptions.
If not we use chain balance polling-based approach
- has_custom_fees()
Does this vault have fees outside the shared fee model.
Custom fees cause risk in vault comparison because the shared management/performance/deposit/withdraw fee fields cannot describe the full fee structure.
Do not return
Truemerely because a vault implements custom accessors for ordinary management, performance, deposit, or withdraw fees. ReturnTrueonly when some vault fee cannot be reflected in those standard fields as a fee-like value.- Returns
Trueif the vault has fees outside the shared fee model.- Return type
- has_deposit_distribution_to_all_positions()
Deposits go automatically to all open positions.
Deposits do not land into the vault as cash
Instead, smart contracts automatically increase all open positions
The behaviour of Velvet Capital
- property info: eth_defi.vault.base.VaultInfo
Get info dictionary related to this vault deployment.
Get cached data on the various vault parameters
- Returns
Vault protocol specific information dictionary
- is_account_whitelisted(address)
Determine whether an account has completed the vault’s KYC policy.
The result concerns KYC, manual identity approval, or recipient allowlist membership only. A protocol may still require scheduling, a token balance, an allowance, available capacity, or an open epoch before a deposit can be submitted. Callers must use the relevant deposit manager pre-flight before broadcasting a transaction.
- Parameters
address (eth_typing.evm.HexAddress) – Account whose deposit-policy membership is queried.
- Returns
Truewhen the account has the required pre-approval.- Raises
NotImplementedError – If the adapter cannot safely query account membership.
- Return type
- is_valid()
Check if this vault is valid.
Call a known smart contract function to verify the function exists
- Return type
- is_whitelisted_deposit()
Determine whether deposits require pre-approved recipient accounts.
Protocol adapters override this predicate only when the deployed contract version has verified implementation source or a canonical application ABI that proves a reliable vault-wide policy read. An explicitly documented operating assumption may also override it, but must set
whitelist_notesso consumers can distinguish it from a source-proven result.Truemeans the vault requires KYC, manual identity approval, or a source-proven recipient allowlist;Falsemeans its policy is permissionless. An open date, lock-up, epoch, pause, cap, token balance, or other runtime eligibility condition must not affect the result. A source-proven override requires a fixed-block adapter test for every supported implementation generation. An operating assumption requires a unit test that asserts both its classification and its caveat. This is independent of a caller’s current balance, allowance, pause state, capacity, and request lifecycle.- Returns
Truewhen deposits require account pre-approval andFalsewhen they do not.- Raises
NotImplementedError – If the adapter cannot safely determine the policy.
- Return type
- property share_token: eth_defi.token.TokenDetails
ERC-20 that presents vault shares.
User gets shares on deposit and burns them on redemption
- supports_generic_deposit_manager()
Check whether the live vault exposes the standard ERC-4626 surface.
This is deliberately an interface check, not a public support claim. Callers must still execute a guarded fork probe before relying on the generic manager for a protocol-specific adapter.
- Returns
Truewhenassetsucceeds with a non-zero asset address. Deposit and redemption availability is established only by a guarded fork transaction, not by ERC-4626max*advisory values.- Return type
- property symbol: str
Vault share token symbol
- property underlying_token: eth_defi.token.TokenDetails
Alias for
denomination_token()
- property vault_contract: web3.contract.contract.Contract
Get vault deployment.