pub fn compute_holding_value(deps: Deps, env: &Env, holding: String) -> StdResult<Uint128> {
    let mut vault_asset: VaultAsset = VAULT_ASSETS.load(deps.storage, holding.as_str())?;
    let value = vault_asset.value(deps, env, None)?;
    Ok(value)
}
/// Returns the value of a specified asset.
Returns the value of a specified asset.
Returns the value of a specified asset .
pub fn compute_holding_value(deps: Deps, env: &Env, holding: String) -> StdResult<Uint128> {
    let mut vault_asset: VaultAsset = VAULT_ASSETS.load(deps.storage, holding.as_str())?;
    let value = vault_asset.value(deps, env, None)?;
    Ok(value)
}
pub fn compute_holding_value ( deps : Deps , env : & Env , holding : String ) -> StdResult < Uint128 > { let mut vault_asset : VaultAsset = VAULT_ASSETS . load ( deps . storage , holding . as_str ( ) ) ? ; let value = vault_asset . value ( deps , env , None ) ? ; Ok ( value ) }
Returns the value of a specified asset.
Returns the value of a specified asset .
deps
Deps
env
&Env
holding
String
deps
Deps
env
&Env
holding
String