UNPKG

@bombearn/sdk

Version:

Interaction framework for the yearn protocol

13 lines (12 loc) 429 B
import BigNumber from "bignumber.js"; import { Integer, Unit } from "../types"; export declare const USDC_DECIMALS = 6; 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;