UNPKG

@stabilis/c9-shape-liquidity-getter

Version:

A library for calculating redemption values of concentrated liquidity positions for C9 shape liquidity.

35 lines (34 loc) 844 B
/** * Input parameters for calculating redemption value of a single NFT */ export interface RedemptionValueInput { componentAddress: string; nftId: string; stateVersion: number; priceBounds?: [number, number]; middlePrice?: number; } /** * Input parameters for calculating redemption values of multiple NFTs */ export interface RedemptionValuesInput { componentAddress: string; nftIds: string[]; stateVersion: number; priceBounds?: [number, number]; middlePrice?: number; } /** * Output structure for redemption value calculation */ export interface RedemptionValueOutput { xToken: string; yToken: string; isActive: boolean; } /** * Output structure for multiple redemption value calculations */ export interface RedemptionValuesOutput { [nftId: string]: RedemptionValueOutput; }