UNPKG

@kamino-finance/klend-sdk

Version:

Typescript SDK for interacting with the Kamino Lending (klend) protocol

16 lines 638 B
import { BorrowRateCurve, CurvePointFields } from '../idl_codegen/types'; export declare const CURVE_POINTS_LENGTH = 11; /** * Create a new curve with a flat borrow rate * Useful for testing * @param borrowRateBps - the flat borrow rate in bps * @return BorrowRateCurve - the serializable flat curve configuration */ export declare function newFlat(borrowRateBps: number): BorrowRateCurve; /** * Pad the remainder with the final point * @param points - un-padded points * @returns points - the padded points */ export declare function padPoints(points: CurvePointFields[]): CurvePointFields[]; //# sourceMappingURL=curve.d.ts.map