-
Notifications
You must be signed in to change notification settings - Fork 504
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
53 additions
and
21 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/Quoter_exactInputSingle_oneForZero_multiplePositions.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
146153 | ||
144148 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/Quoter_exactInputSingle_zeroForOne_multiplePositions.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
151617 | ||
149612 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
80841 | ||
78941 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
85635 | ||
83735 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/Quoter_quoteExactInput_oneHop_1TickLoaded.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
122679 | ||
120674 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/Quoter_quoteExactInput_oneHop_initializedAfter.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
147588 | ||
145583 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/Quoter_quoteExactInput_oneHop_startingInitialized.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
81611 | ||
79606 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
203446 | ||
201436 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/Quoter_quoteExactOutput_oneHop_1TickLoaded.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
142383 | ||
120261 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/Quoter_quoteExactOutput_oneHop_2TicksLoaded.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
172520 | ||
150398 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/Quoter_quoteExactOutput_oneHop_initializedAfter.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
142451 | ||
120329 |
2 changes: 1 addition & 1 deletion
2
.forge-snapshots/Quoter_quoteExactOutput_oneHop_startingInitialized.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
119150 | ||
97028 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
243720 | ||
201476 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.24; | ||
|
||
/// @notice This is a temporary library that allows us to use transient storage (tstore/tload) | ||
/// TODO: This library can be deleted when we have the transient keyword support in solidity. | ||
library CacheAmountSpecified { | ||
// bytes32(uint256(keccak256("AmountSpecified")) - 1) | ||
bytes32 internal constant AMOUNT_SPECIFIED_SLOT = 0x040affe16a79096ebfed488ed052568637be7285d797c191b3a85e60cf8292f3; | ||
|
||
function set(uint256 amountSpecified) internal { | ||
assembly ("memory-safe") { | ||
tstore(AMOUNT_SPECIFIED_SLOT, amountSpecified) | ||
} | ||
} | ||
|
||
function get() internal view returns (uint256 amountSpecified) { | ||
assembly ("memory-safe") { | ||
amountSpecified := tload(AMOUNT_SPECIFIED_SLOT) | ||
} | ||
} | ||
} |