• Preparing search index...
  • The search index is not available
@coinbase/cdp-agentkit-core
  • @coinbase/cdp-agentkit-core
  • actions/cdp/defi/wow/uniswap/utils
  • createPriceInfo

Function createPriceInfo

  • createPriceInfo(weiAmount: string, ethPriceInUsd: number): PriceInfo
  • Creates a PriceInfo object from wei amount and ETH price.

    Parameters

    • weiAmount: string

      Amount in wei

    • ethPriceInUsd: number

      Current ETH price in USD

    Returns PriceInfo

    A PriceInfo object containing the amount in ETH and USD

    • Defined in cdp-agentkit-core/src/actions/cdp/defi/wow/uniswap/utils.ts:46

Settings

Member Visibility
@coinbase/cdp-agentkit-core
  • Loading...

Generated using TypeDoc