From 6ecf72bb57391db8ace3739519ae4989b19a78b5 Mon Sep 17 00:00:00 2001 From: ConjunctiveNormalForm Date: Tue, 5 Dec 2023 13:36:32 -0500 Subject: [PATCH] REASON -> RESPONSE when valid --- contracts/lens/Quoter.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/lens/Quoter.sol b/contracts/lens/Quoter.sol index bdb00b93..86bde7c9 100644 --- a/contracts/lens/Quoter.sol +++ b/contracts/lens/Quoter.sol @@ -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() { @@ -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 {