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