Skip to content

Commit

Permalink
REASON -> RESPONSE when valid
Browse files Browse the repository at this point in the history
  • Loading branch information
ConjunctiveNormalForm committed Dec 5, 2023
1 parent 54373b1 commit 6ecf72b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/lens/Quoter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ contract Quoter is IQuoter, ILockCallback {

/// @dev min valid reason is 3-words long
/// @dev int128[2] + sqrtPriceX96After padded to 32bytes + intializeTicksLoaded padded to 32bytes
uint256 internal constant MINIMUM_VALID_REASON_LENGTH = 96;
uint256 internal constant MINIMUM_VALID_RESPONSE_LENGTH = 96;

/// @dev Only this address may call this function
modifier selfOnly() {
Expand Down Expand Up @@ -128,7 +128,7 @@ contract Quoter is IQuoter, ILockCallback {

/// @dev check revert bytes and pass through if considered valid; otherwise revert with different message
function validateRevertReason(bytes memory reason) private pure returns (bytes memory) {
if (reason.length < MINIMUM_VALID_REASON_LENGTH) {
if (reason.length < MINIMUM_VALID_RESPONSE_LENGTH) {
//if InvalidLockAcquiredSender()
if (reason.length == MINIMUM_CUSTOM_ERROR_LENGTH) {
assembly {
Expand Down

0 comments on commit 6ecf72b

Please sign in to comment.