estimate_usd_stablecoin_swap_cost

Documentation for eth_defi.yield_basis.metrics.estimate_usd_stablecoin_swap_cost function.

estimate_usd_stablecoin_swap_cost(underlying_token)

Estimate one generic USD-stablecoin/underlying conversion cost.

The current baseline is deliberately simple: every reviewed WBTC, cbBTC, tBTC and WETH market uses the same fixed 10-basis-point assumption. The underlying-token argument keeps the accounting boundary explicit and allows later token-specific estimates without changing the VaultBase fee interface or historical schema. This estimate excludes price impact, gas and MEV.

Parameters

underlying_token (eth_typing.evm.HexAddress) – YieldBasis LT underlying ERC-20 address.

Returns

One-way cost as a fraction, currently 0.001 for every token.

Return type

float