create_lighter_pool_row

Documentation for eth_defi.lighter.vault_data_export.create_lighter_pool_row function.

create_lighter_pool_row(account_index, name, description, tvl, created_at, operator_fee=0.0, is_llp=False, status=0)

Create a synthetic VaultRow for a Lighter pool.

Builds a VaultRow that matches what calculate_vault_record() expects, using the Lighter synthetic chain ID.

Lighter pool operator fees are already reflected in the share price (internalised skimming model), so the pipeline treats the share price as net of fees.

Parameters
  • account_index (int) – Pool account index on the Lighter platform.

  • name (str) – Pool display name.

  • description (Optional[str]) – Pool description text.

  • tvl (float) – Current TVL in USDC.

  • created_at (Optional[datetime.datetime]) – Pool creation timestamp.

  • operator_fee (float) – Operator fee percentage (e.g. 10.0 = 10%).

  • is_llp (bool) – Whether this is the LLP protocol pool.

  • status (int) – Pool status code from the API (0 = active).

Returns

Tuple of (VaultSpec, VaultRow).

Return type

tuple[eth_defi.vault.base.VaultSpec, eth_defi.vault.vaultdb.VaultRow]