@tristeroresearch/mach-sdk
Version:
A TypeScript SDK for integrating with Mach's API.
10 lines • 516 B
TypeScript
/**
* @fileOverview This helper function converts a dollar value to the smallest unit of a token using the decimal precision of the token.
* @param dollarValue - The dollar value to convert
* @param token - The token to convert to
* @returns The smallest unit of the token
*/
import { type Asset } from '../@types/asset';
import { type Hex } from 'viem';
export declare const dollarToTokenValue: (dollarValue: number, token: Asset | Hex) => Promise<string>;
//# sourceMappingURL=dollarToTokenValue.util.d.ts.map