custom for ergonomic custom calldata.
Token registry — erc20Utils
Look up canonical token metadata (address + decimals) per chain.
Generic symbol lookup
For symbols not pinned as top-level properties:ERC-20 calldata builders
Standard calls, amounts are rawbigint wei:
Call. To include one in an action list, spread it into custom({ ...call }):
Composing calls — buildCall / buildApproveAndCall
buildCall constructs a Call from an ABI + function name + args:
buildApproveAndCall bundles an approval and a follow-up call into a [approve, call] tuple:
Slippage helper — getAmountWithSlippage
Subtracts bps basis points (1 bp = 0.01%) from a raw bigint amount.
minAmountOut or amountOutMinimum before handing it to swap or the chain-scoped Uniswap V3 / SushiSwap V3 adapters.