Function spotPriceToChainPrice
- spotPriceToChainPrice(__namedParameters: {
baseDecimals?: string | number;
quoteDecimals?: string | number;
value: string | number | BigNumber;
}): BigNumber
-
Parameters
-
__namedParameters: {
baseDecimals?: string | number;
quoteDecimals?: string | number;
value: string | number | BigNumber;
}
-
Optional
baseDecimals?: string | number
-
Optional
quoteDecimals?: string | number
-
value: string | number | BigNumber
Returns BigNumber
Amount that the chain requires is in the x / 10^(quoteDecimals - baseDecimals) format where x is a human readable number