Skip to content

Commit 7d940c4

Browse files
feat: V3Provider
1 parent d8f1213 commit 7d940c4

14 files changed

Lines changed: 3797 additions & 1 deletion

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@
1818
[submodule "lib/murky"]
1919
path = lib/murky
2020
url = https://github.com/dmfxyz/murky
21+
[submodule "lib/v3-core"]
22+
path = lib/v3-core
23+
url = https://github.com/Uniswap/v3-core
24+
[submodule "lib/v3-periphery"]
25+
path = lib/v3-periphery
26+
url = https://github.com/uniswap/v3-periphery

foundry.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,17 @@
1010
"name": "v0.1.0",
1111
"rev": "5feccd1253d7da820f7cccccdedf64471025455d"
1212
}
13+
},
14+
"lib/v3-core": {
15+
"tag": {
16+
"name": "v1.0.0",
17+
"rev": "e3589b192d0be27e100cd0daaf6c97204fdb1899"
18+
}
19+
},
20+
"lib/v3-periphery": {
21+
"tag": {
22+
"name": "v1.3.0",
23+
"rev": "80f26c86c57b8a5e4b913f42844d4c8bd274d058"
24+
}
1325
}
1426
}

foundry.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
src = "src"
44
out = "out"
55
libs = ["lib"]
6+
remappings = [
7+
"@uniswap/v3-core/=lib/v3-core/",
8+
"@uniswap/v3-periphery/=lib/v3-periphery/",
9+
]
610
solc = "0.8.34"
711
optimizer = true
812
optimizer_runs = 20

lib/v3-core

Submodule v3-core added at 6562c52

lib/v3-periphery

Submodule v3-periphery added at b325bb0

src/liquidator/V3Liquidator.sol

Lines changed: 482 additions & 0 deletions
Large diffs are not rendered by default.

src/provider/SmartProvider.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ contract SmartProvider is
579579

580580
/// @dev Sets the slisBNBxMinter address.
581581
function setSlisBNBxMinter(address _slisBNBxMinter) external onlyRole(MANAGER) {
582-
require(_slisBNBxMinter != address(0), "zero address provided");
582+
require(_slisBNBxMinter != slisBNBxMinter, "same minter");
583583
slisBNBxMinter = _slisBNBxMinter;
584584

585585
emit SlisBNBxMinterChanged(_slisBNBxMinter);

0 commit comments

Comments
 (0)