Skip to content

Commit

Permalink
complete natspec
Browse files Browse the repository at this point in the history
  • Loading branch information
ConjunctiveNormalForm committed Dec 5, 2023
1 parent 6ecf72b commit a40476e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/lens/Quoter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ contract Quoter is IQuoter, ILockCallback {
}
}

/// @inheritdoc ILockCallback
function lockAcquired(bytes calldata data) external returns (bytes memory) {
if (msg.sender != address(manager)) {
revert InvalidLockAcquiredSender();
Expand Down Expand Up @@ -180,6 +181,7 @@ contract Quoter is IQuoter, ILockCallback {
abi.decode(reason, (int128[], uint160[], uint32[]));
}

/// @dev quote an ExactInput swap along a path of tokens, then revert with the result
function _quoteExactInput(ExactInputParams memory params) public selfOnly returns (bytes memory) {
uint256 pathLength = params.path.length;

Expand Down Expand Up @@ -219,6 +221,7 @@ contract Quoter is IQuoter, ILockCallback {
}
}

/// @dev quote an ExactInput swap on a pool, then revert with the result
function _quoteExactInputSingle(ExactInputSingleParams memory params) public selfOnly returns (bytes memory) {
(BalanceDelta deltas, uint160 sqrtPriceX96After, int24 tickAfter) = _swap(
params.poolKey,
Expand All @@ -233,6 +236,7 @@ contract Quoter is IQuoter, ILockCallback {
}
}

/// @dev quote an ExactOutput swap along a path of tokens, then revert with the result
function _quoteExactOutput(ExactOutputParams memory params) public selfOnly returns (bytes memory) {
uint256 pathLength = params.path.length;

Expand Down Expand Up @@ -274,6 +278,7 @@ contract Quoter is IQuoter, ILockCallback {
}
}

/// @dev quote an ExactOutput swap on a pool, then revert with the result
function _quoteExactOutputSingle(ExactOutputSingleParams memory params) public selfOnly returns (bytes memory) {
(BalanceDelta deltas, uint160 sqrtPriceX96After, int24 tickAfter) = _swap(
params.poolKey,
Expand Down

0 comments on commit a40476e

Please sign in to comment.