Skip to content

Commit 5145f36

Browse files
committedJan 29, 2025··
Merge branch 'dcmt/monad-univ3'
2 parents cf98369 + c7384b5 commit 5145f36

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed
 

‎CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Master list of UniV3 forks:
4242
* Create new Settler version for intent-based settlement -- the taker only signs
4343
the slippage, not the actions
4444
* This is now `tokenId` 4
45+
* Add UniswapV3 UniV3 fork to Monad Testnet
4546

4647
## 2025-01-23
4748

‎src/chains/MonadTestnet/Common.sol

+8-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {ISignatureTransfer} from "@permit2/interfaces/ISignatureTransfer.sol";
1111
import {UnknownForkId} from "../../core/SettlerErrors.sol";
1212

1313
import {
14-
/* uniswapV3Factory, */
14+
uniswapV3MonadTestnetFactory,
1515
uniswapV3InitHash,
1616
uniswapV3ForkId,
1717
IUniswapV3Callback
@@ -46,6 +46,12 @@ abstract contract MonadTestnetMixin is FreeMemory, SettlerBase {
4646
override
4747
returns (address factory, bytes32 initHash, uint32 callbackSelector)
4848
{
49-
revert UnknownForkId(forkId);
49+
if (forkId == uniswapV3ForkId) {
50+
factory = uniswapV3MonadTestnetFactory;
51+
initHash = uniswapV3InitHash;
52+
callbackSelector = uint32(IUniswapV3Callback.uniswapV3SwapCallback.selector);
53+
} else {
54+
revert UnknownForkId(forkId);
55+
}
5056
}
5157
}

‎src/core/univ3forks/UniswapV3.sol

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ address constant uniswapV3WorldChainFactory = 0x7a5028BDa40e7B173C278C5342087826
1515
address constant uniswapV3GnosisFactory = 0xe32F7dD7e3f098D518ff19A22d5f028e076489B1;
1616
address constant uniswapV3SonicFactory = 0xcb2436774C3e191c85056d248EF4260ce5f27A9D;
1717
address constant uniswapV3InkFactory = 0x640887A9ba3A9C53Ed27D0F7e8246A4F933f3424;
18+
address constant uniswapV3MonadTestnetFactory = 0x961235a9020B05C44DF1026D956D1F4D78014276;
1819
bytes32 constant uniswapV3InitHash = 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54;
1920
uint8 constant uniswapV3ForkId = 0;
2021

0 commit comments

Comments
 (0)
Please sign in to comment.