@flaunch/sdk 0.9.0-beta.3 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -26420,13 +26420,13 @@ class ReadFlaunchSDK {
26420
26420
  * Calculates the coin price in USD based on the current ETH/USDC price
26421
26421
  * @param coinAddress - The address of the coin
26422
26422
  * @param version - Optional specific version to use. If not provided, will be determined automatically
26423
- * @returns Promise<string> - The price of the coin in USD with 2 decimal precision
26423
+ * @returns Promise<string> - The price of the coin in USD with 18 decimal precision
26424
26424
  */
26425
26425
  async coinPriceInUSD({ coinAddress, version, drift, }) {
26426
26426
  const coinVersion = version || (await this.getCoinVersion(coinAddress));
26427
26427
  const ethPerCoin = await this.coinPriceInETH(coinAddress, coinVersion);
26428
26428
  const ethPrice = await this.getETHUSDCPrice(drift);
26429
- return (parseFloat(ethPerCoin) * ethPrice).toFixed(2);
26429
+ return (parseFloat(ethPerCoin) * ethPrice).toFixed(18);
26430
26430
  }
26431
26431
  async coinMarketCapInUSD({ coinAddress, version, drift, }) {
26432
26432
  const totalSupply = 100000000000; // 100 Billion tokens