@yfi/sdk
Version:
Interaction framework for the yearn protocol
12 lines (11 loc) • 388 B
TypeScript
import BigNumber from "bignumber.js";
import { Integer, Unit } from "../types";
export declare const toBN: (amount?: string | number | undefined) => BigNumber;
export declare const toWei: ({ amount, decimals }: {
amount: Unit;
decimals: number;
}) => Integer;
export declare const toUnit: ({ amount, decimals }: {
amount: Integer;
decimals: number;
}) => Unit;