@pangolindex/sdk
Version:
🛠An SDK for building applications on top of Pangolin.
25 lines (24 loc) • 786 B
TypeScript
import JSBI from 'jsbi';
import { Interface } from '@ethersproject/abi';
import { Percent, Token } from '../../entities';
export interface FeeOptions {
/**
* The percent of the output that will be taken as a fee.
*/
fee: Percent;
/**
* The recipient of the fee.
*/
recipient: string;
}
export declare abstract class Payments {
static INTERFACE: Interface;
/**
* Cannot be constructed.
*/
private constructor();
private static encodeFeeBips;
static encodeUnwrapWETH9(amountMinimum: JSBI, recipient: string, feeOptions?: FeeOptions): string;
static encodeSweepToken(token: Token, amountMinimum: JSBI, recipient: string, feeOptions?: FeeOptions): string;
static encodeRefundETH(): string;
}