@sfpro/sdk
Version:
TypeScript SDK for Superfluid Protocol - stream money every second
13 lines (12 loc) • 428 B
TypeScript
import type { TimeUnit } from "./constant.js";
export declare function calculateCurrentBalance({ flowRate, balance, balanceTimestamp, // Unix timestamp
currentTimestamp, }: {
flowRate: bigint;
balance: bigint;
balanceTimestamp: number;
currentTimestamp?: number;
}): bigint;
export declare function calculateFlowratePerSecond({ amountWei, timeUnit }: {
amountWei: bigint;
timeUnit: TimeUnit;
}): bigint;