import memoize from 'memoizee'; import { MMAssetsData, MMUsedAssets } from '../types/common'; export declare const STAKING_ASSETS: string[]; export declare const getStakingApy: ((asset: string, network?: number) => Promise) & memoize.Memoized<(asset: string, network?: number) => Promise>; export declare const calculateInterestEarned: (principal: string, interest: string, type: string, apy?: boolean) => number; /** * Net APY for positions that have a single known borrow rate (and optionally a single supply rate) * instead of per-asset `assetsData` to feed into `calculateNetApy` (Maker, crvUSD, Liquity v1). * All rates are yearly percentages that are already compounded. `incentives` are extra yields * (e.g. the native staking yield of the collateral) applied to their own USD base and summed into `incentiveUsd`. */ export declare const calculateNetApyFromRates: ({ suppliedUsd, borrowedUsd, supplyRate, borrowRate, incentives, }: { suppliedUsd: string; borrowedUsd: string; supplyRate?: string; borrowRate?: string; incentives?: { apy: string; amountUsd: string; }[]; }) => { netApy: string; totalInterestUsd: string; incentiveUsd: string; }; export declare const calculateNetApy: ({ usedAssets, assetsData, optionalData, }: { usedAssets: MMUsedAssets; assetsData: MMAssetsData; optionalData?: any; }) => { netApy: string; totalInterestUsd: string; incentiveUsd: string; };