mark_gmx_vault_rows_amm_pool_like
Documentation for eth_defi.gmx.vault_sync.mark_gmx_vault_rows_amm_pool_like function.
- mark_gmx_vault_rows_amm_pool_like(vault_db, *, chain_ids)
Add the AMM-pool marker to every persisted GMX vault in selected chains.
The onchain catalogue can no longer return delisted GMX products, while their historical rows remain in the common database. This metadata-only repair therefore examines all retained rows rather than only the current catalogue and preserves the top-level and detection feature copies in lockstep.
- Parameters
vault_db (eth_defi.vault.vaultdb.VaultDatabase) – Common vault metadata database to repair in place.
chain_ids (set[int]) – GMX deployment chain IDs included in this migration run.
- Returns
Number of stored GMX rows changed.
- Return type