☰
In hydra_dx_math::omnipool
Modules
types
Functions
calculate_add_liquidity_state_changes
calculate_buy_for_hub_asset_state_changes
calculate_buy_state_changes
calculate_cap_difference
calculate_delta_imbalance
calculate_lrna_spot_sprice
calculate_remove_liquidity_state_changes
calculate_sell_hub_state_changes
calculate_sell_state_changes
calculate_spot_sprice
calculate_tvl
calculate_tvl_cap_difference
calculate_withdrawal_fee
verify_asset_cap
?
Function
hydra_dx_math
::
omnipool
::
calculate_tvl
source
·
[
−
]
pub fn calculate_tvl(
hub_reserve:
Balance
,
stable_asset: (
Balance
,
Balance
)
) ->
Option
<
Balance
>