FundingSourceDex.encodeExecutionData
Encodes native DEX execution arguments passed to funding hooks as executionData.
Imports
Named
import { FundingSourceDex } from 'ox/tempo'Examples
import { FundingSourceDex } from 'ox/tempo'
FundingSourceDex.encodeExecutionData({
maxAmountIn: 30_000_000n,
tokenIn: '0x20c0000000000000000000000000000000000001'
})Definition
function encodeExecutionData(
request: FundingSourceDex.Request,
): Hex.HexSource: src/tempo/FundingSourceDex.ts
Parameters
request
- Type:
FundingSourceDex.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
Hex.Hex

