select_preferred_nest_routes
Documentation for eth_defi.vault.top_vaults_json.select_preferred_nest_routes function.
- select_preferred_nest_routes(vaults)
Publish one eligible chain and deposit route per Nest share token.
Nest’s ERC-7575 entrypoints share a token across deposit assets and chains. Prefer Plume, then Ethereum, then other chains alphabetically by their canonical display name. Within the chosen chain, prefer USDC, then USDT, then pUSD, normalising bridged symbols and using the entrypoint address to break ties deterministically. Other assets rank last. Select only among admitted export records, including sticky records whose dates and stale flags remain intact. Preserve the selected chain’s own TVL and returns rather than aggregating other chains. Keep the product’s first position without changing scanner state. Records without a share token or chain identity remain separate.
Apply this after sticky replay and before public aggregates, so cached alternative chain and deposit routes cannot restore repeated listings.