Skip to content

Releases: slvDev/dexap

v0.2.0

12 Dec 13:42

Choose a tag to compare

Added

  • Simplified API with sensible defaults

    • tokenOut defaults to "USDC"
    • amountIn defaults to "1"
    • Example: client.getPrice("WETH", ETHEREUM, UNISWAP_V3)
  • Optional price impact calculation

    • Pass includePriceImpact: true as last parameter
  • Token constants export via dexap/tokens subpath

    • import { WETH, USDC } from 'dexap/tokens'
  • Direct chain/DEX constant exports

    • import { ETHEREUM, UNISWAP_V3 } from 'dexap'

Changed

  • API parameter order (BREAKING):
    • Old: getPrice(tokenIn, tokenOut, amount, chainId, dexType)
    • New: getPrice(tokenIn, chainId, dexType, [tokenOut], [amount], [includePriceImpact])

v0.1.3

12 Dec 13:42

Choose a tag to compare

Added

  • Pre-configured viem client support via clients option (for wagmi/React integration)

v0.1.2

12 Dec 13:42

Choose a tag to compare

Added

  • Additional token deployments (PEPE, ENA, NEAR, WIF, etc.)

v0.1.1

12 Dec 13:42

Choose a tag to compare

Fixed

  • Bump npm registry version

v0.1.0

12 Dec 13:42

Choose a tag to compare

Initial Release

  • Multi-chain DEX price aggregation
  • 11 EVM chains supported
  • UniswapV3 & Slipstream protocols
  • Alchemy, Infura, custom RPC support
  • Price aggregation with outlier filtering
  • Full TypeScript support