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 ofprice_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.