erc_4626.vault_protocol.arcadia.description

Documentation for eth_defi.erc_4626.vault_protocol.arcadia.description Python module.

Deterministic Arcadia lending descriptions for pools without narrative copy.

Templates describe the mechanics documented in the Arcadia lender guide. They make no assumptions about fees, liquidity guarantees or the protection of a particular tranche.

Module Attributes

MAX_SHORT_DESCRIPTION_LENGTH

Maximum listing-summary length, including any ellipsis.

LENDING_DOCUMENTATION_URL

Canonical source for generated lending-strategy explanations.

Functions

extract_arcadia_short_description(description)

Extract the first sentence within the listing character budget.

is_arcadia_narrative(description, *, ...[, ...])

Distinguish narrative from empty text and known pool labels.

resolve_arcadia_descriptions(*, chain_id, ...)

Prefer Arcadia narrative or generate factual lending copy.

Classes

ArcadiaVaultDescriptions

Resolved website copy for an Arcadia lending tranche.

MAX_SHORT_DESCRIPTION_LENGTH = 200

Maximum listing-summary length, including any ellipsis.

LENDING_DOCUMENTATION_URL = 'https://docs.arcadia.finance/users/lenders'

Canonical source for generated lending-strategy explanations.

class ArcadiaVaultDescriptions

Bases: object

Resolved website copy for an Arcadia lending tranche.

Provider narrative takes precedence; otherwise both fields are generated from the same known token, chain and tranche identity.

short_description: str

Compact listing copy.

description: str

Full narrative, optionally including a source link.

__init__(short_description, description)
Parameters
  • short_description (str) –

  • description (str) –

Return type

None

is_arcadia_narrative(description, *, vault_name, asset_symbol, metadata=None)

Distinguish narrative from empty text and known pool labels.

Equality to a known label is the only content heuristic; even a brief provider sentence is preserved when it explains the product.

Parameters
Returns

Whether the candidate contains narrative rather than a label.

Return type

bool

extract_arcadia_short_description(description)

Extract the first sentence within the listing character budget.

Long sentences are cut at a word boundary with an ellipsis, rather than dropping a valid short description altogether.

Parameters

description (str) – Provider narrative or generated summary.

Returns

A summary of at most 200 characters.

Return type

str

resolve_arcadia_descriptions(*, chain_id, vault_name, asset_symbol, metadata=None)

Prefer Arcadia narrative or generate factual lending copy.

Only an explicit senior/junior name establishes tranche terminology. Missing token and chain information is omitted, with no live financial metrics interpolated into either description.

Parameters
Returns

Full and compact descriptions ready for existing export fields.

Return type

eth_defi.erc_4626.vault_protocol.arcadia.description.ArcadiaVaultDescriptions