Queries

There are some functions can be used to query the Vault information and state.

getTokenAddresses

/// @notice Return token addresses of the Vault
function getTokenAddresses() external view returns (address[2] memory)

getLstParams

Function interface:

/// @notice Returns the LP parameters
/// @return The array of LP parameters
function getLstParams() external view returns (LstParam[] memory)

getLpParams returns the current parameters of the Vault as an array of LstParam. The below is the structure of the LstParam:

struct LstParam {
  /// upperTick of the Knockout position
  int24 upperTick;
  /// lowerTick of the Knockout position
  int24 lowerTick;
  /// pivot time of the Knockout position 
  uint32 pivot;
}

getLpWeights

LpWeights is the weight of each LstParam when providing liquidity.

getPosition

LstParam can be fetched by calling getLstParams

getAllPositions

getPositions

totalAssets

currentTick

previewDeposit

previewWithdraw

convertToShares

convertToAssets

Last updated