UNPKG

@yak-spirit/yak-swap-ui

Version:

A reusable React component for swapping with Yield Yak Router. The YY Router can be found [here](https://github.com/yieldyak/yak-aggregator).

19 lines (18 loc) 578 B
import { ReactElement } from 'react'; import { SwapProps } from './types/props.js'; /** * A`Swap` component that can be embedded into applications. To use, * one should install all prerequisite libraries and setup * For example, * * ```javascript * <YakSwap /> * ``` * * All of the complexity of communicating with the YY Router and managing * its data is handled internally by the component. * * For information on other properties like earning referrals, see the * [[SwapProps]] documentation. */ export default function YakSwap(props: SwapProps): ReactElement;