-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: write current block timestamp instead of previous timestamp for oracle observation * fix: change arg in internal func sig to reflect correct timestamp * ci: update solc version * lint: fix issues * ci: update hashes * ci: remove pin on foundry version * test: add assert to make sure latest timestamp written * test: test case to make sure latest timestamp is written * fix: failing tests * fix: bug in test case * lib: bump `forge-std` to v1.7.6 * ci: update gas snapshot
- Loading branch information
Showing
16 changed files
with
255 additions
and
233 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -68,7 +68,8 @@ V1.0 | |
Are you interested in helping us build the future of Reservoir? | ||
Contribute in these ways: | ||
|
||
- For SECURITY related or sensitive bugs, please get in touch with the team at [email protected] or on discord instead of opening an issue on github. | ||
- For SECURITY related or sensitive bugs, please get in touch with the team | ||
at [email protected] or on discord instead of opening an issue on github. | ||
|
||
- If you find bugs or code errors, you can open a new | ||
[issue ticket here.](https://github.com/reservoir-labs/amm-core/issues/new) | ||
|
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
Submodule forge-std
updated
32 files
+1 −0 | .gitattributes | |
+48 −6 | .github/workflows/ci.yml | |
+29 −0 | .github/workflows/sync.yml | |
+1 −1 | foundry.toml | |
+1 −1 | package.json | |
+635 −0 | scripts/vm.py | |
+5 −3 | src/Base.sol | |
+4 −3 | src/Script.sol | |
+31 −16 | src/StdChains.sol | |
+195 −17 | src/StdCheats.sol | |
+16 −1 | src/StdInvariant.sol | |
+18 −14 | src/StdJson.sol | |
+54 −3 | src/StdStorage.sol | |
+2 −2 | src/StdStyle.sol | |
+71 −34 | src/StdUtils.sol | |
+4 −3 | src/Test.sol | |
+1,002 −321 | src/Vm.sol | |
+394 −382 | src/console2.sol | |
+216 −0 | src/mocks/MockERC20.sol | |
+221 −0 | src/mocks/MockERC721.sol | |
+13,248 −0 | src/safeconsole.sol | |
+93 −77 | test/StdAssertions.t.sol | |
+114 −58 | test/StdChains.t.sol | |
+236 −44 | test/StdCheats.t.sol | |
+13 −11 | test/StdError.t.sol | |
+27 −12 | test/StdMath.t.sol | |
+66 −34 | test/StdStorage.t.sol | |
+4 −4 | test/StdStyle.t.sol | |
+80 −35 | test/StdUtils.t.sol | |
+15 −0 | test/Vm.t.sol | |
+441 −0 | test/mocks/MockERC20.t.sol | |
+721 −0 | test/mocks/MockERC721.t.sol |
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,6 +1,6 @@ | ||
{ | ||
"constant_product_hash": "0xde6d8452b97c785350ce9f82090dfb5962933aa5467827310798925c8725013b", | ||
"factory_hash": "0xaafa0bd4694a22c24f8ef26cfd45864f11be2102e269ee6a831d2c659b30f08f", | ||
"oracle_caller_hash": "0x1dcb29ca6399be1a5f8a4b3f168a83ff20697718c3d5434ddeeb4a8050fdc615", | ||
"stable_hash": "0x1289a8879d4d1992d308d2a4d8457a5ca8d57e07effe092f2a1f21b0b9b10619" | ||
"constant_product_hash": "0x7f3a12e644606d9d166691742af07487155a1b86cc1a97a9ca21a5b474c3fd14", | ||
"factory_hash": "0x0aa0c77b70a77a082be061cb9565cbe92d8ee7b8a74007287d597c000c0d4ec4", | ||
"oracle_caller_hash": "0x9c8ae1fb85485b08e88ceed1c47608205b81b6c7b438c1770abd5dedf6188423", | ||
"stable_hash": "0x044e7b5a6e582680c9a2dfcb895bd9993c9462c3cf17048f408a3c714600e37d" | ||
} |
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,6 +1,6 @@ | ||
{ | ||
"constant_product_hash": "0x71f0d385cb55f83e9dd571b118cb5ee391542d27ff471998ea316d3693b21308", | ||
"factory_hash": "0xa61785bbfa1f668e1ad6e2aff9c6fc4ed961b95ae7cc54c6463d49b259b2e984", | ||
"oracle_caller_hash": "0x6e5b6d511ec5f70fdae7be4b74be5a313df4168f1b50dee9fc571e4414697354", | ||
"stable_hash": "0xa17d9c01054e0d89b5da9d84936c6960c6f82f7981951978cc2aff275d943f5a" | ||
"constant_product_hash": "0xf2204f73059bda42b0910c810137b13b403a9087928123890443c76b866d4135", | ||
"factory_hash": "0x64c369a012abcc9c156cce47a6a1a0916225795135bec914ac0083327650b949", | ||
"oracle_caller_hash": "0x99643805c6f1cf50d6f68ecdaba00a6dc4694001423319968799766504a28e1b", | ||
"stable_hash": "0x76047e8e6a3e3291cd4334776733b188fb11d2d83851f3ffe0861cc90afa3925" | ||
} |
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
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
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