Skip to content

Commit

Permalink
docs(cl): netspac
Browse files Browse the repository at this point in the history
  • Loading branch information
AkemiHomura-maow committed Mar 23, 2024
1 parent 50897f7 commit 62d36c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions contracts/VeloOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,14 @@ contract VeloOracle is IVeloOracle {
bool seen;
}

/// @notice Struct to hold variables needed to identify CL pools
struct CLPairParams{
address tokenA;
address tokenB;
int24 tickSpacing;
}

/// @notice Permissioned function to enable routing through certain CL
function enableCLPairTickSpacing(CLPairParams[] calldata params) public{
for (uint256 i; i < params.length; i++){
CLPairParams memory param = params[i];
Expand Down Expand Up @@ -323,6 +325,11 @@ contract VeloOracle is IVeloOracle {
}
}

/// @notice Internal function to get the CL pool for srcToken and dstToken with the largest virtual reserve, and returns the virtual reserves
/// @param srcToken Source token of the pair
/// @param dstToken Destination token of the pair
/// @return srcVirtualBalance Virtual reserve of the source token
/// @return dstVirtualBalance Virtual reserve of the destination token
function _getVirtualBalances(IERC20Metadata srcToken, IERC20Metadata dstToken)
internal
view
Expand Down

0 comments on commit 62d36c7

Please sign in to comment.