fetch_curve_pool_configuration

Documentation for eth_defi.erc_4626.vault_protocol.flying_tulip.reward_price.fetch_curve_pool_configuration function.

fetch_curve_pool_configuration(web3, block_identifier='latest')

Validate deployed Curve token order and inverse-oracle orientation for tests.

A one-FT get_dy(0, 1, 10**18) quote must agree broadly with the reciprocal of price_oracle() at a fixed regression block. This checks the token order and prevents accidentally treating the pool’s FT-per-ftUSD oracle as ftUSD per FT. It is deliberately not a production prefill gate: a live Curve spot quote and a lagging EMA can temporarily diverge during normal market conditions.

Parameters
  • web3 (web3.main.Web3) – Archive-capable Ethereum connection.

  • block_identifier (Union[int, str]) – Fixed validation block.

Returns

None.

Return type

None