Skip to content

FundingSource.dex

Creates a native DEX source for a funding requirement.

Imports

Named
import { FundingSource } from 'ox/tempo'

Examples

import { FundingSource } from 'ox/tempo'
 
FundingSource.dex({
  maxAmountIn: 30_000_000n,
  tokenIn: '0x20c0000000000000000000000000000000000000'
})

Definition

function dex(
  request: DexRequest,
): {
    data: `0x${string}`;
    to: "0x1120000000000000000000000000000000000001";
}

Source: src/tempo/FundingSource.ts

Parameters

request

request.maxAmountIn

  • Type: bigint
  • Optional

Input cap in base units. Omission is unlimited; zero permits no input.

request.tokenIn

  • Type: abitype_Address

Input token to exchange for the required token.

Return Type

{ data: 0x${string}; to: "0x1120000000000000000000000000000000000001"; }