* Add Deposit cap for AssetSelector * Add DepositCap component for Trade * DepositCap to Vault and Fund * DepositCap to Vault and Fund * Small bugixes * formatting fixes * formatting fixes * formatting fixes * formatting fixes * run format
14 lines
384 B
TypeScript
14 lines
384 B
TypeScript
import { getRedBankQueryClient } from 'api/cosmwasm-client'
|
|
|
|
export default async function getUnderlyingLiquidityAmount(market: Market): Promise<string> {
|
|
try {
|
|
const client = await getRedBankQueryClient()
|
|
return await client.underlyingLiquidityAmount({
|
|
denom: market.denom,
|
|
amountScaled: market.collateralTotalScaled,
|
|
})
|
|
} catch (ex) {
|
|
throw ex
|
|
}
|
|
}
|