Skip to content

Commit

Permalink
Merge branch 'main' into meta-txn
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongeric committed Nov 3, 2023
2 parents 3615d65 + 4bc3d8d commit 13783ed
Show file tree
Hide file tree
Showing 11 changed files with 256 additions and 106 deletions.

This file was deleted.

This file was deleted.

6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[submodule "lib/forge-std"]
path = lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/permit2"]
path = lib/permit2
url = [email protected]:Uniswap/permit2.git
[submodule "lib/solmate"]
path = lib/solmate
url = https://github.com/transmissions11/solmate
Expand All @@ -16,3 +13,6 @@
[submodule "lib/universal-router"]
path = lib/universal-router
url = https://github.com/uniswap/universal-router
[submodule "lib/permit2"]
path = lib/permit2
url = https://github.com/Uniswap/permit2
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Note that UniswapX handles fee-on-transfer tokens by transferring the amount spe

# Audit

This codebase was audited by [ABDK](./audit/ABDK.pdf).
This codebase was audited by [ABDK](./audit/v1.1/ABDK.pdf) and [OpenZeppelin](./audit/v1.1/OpenZeppelin.pdf).

## Bug Bounty

Expand Down
Binary file added audit/v1.1/OpenZeppelin.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion src/sample-executors/SwapRouter02Executor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contract SwapRouter02Executor is IReactorCallback, Owned {

/// @notice thrown if reactorCallback is called with a non-whitelisted filler
error CallerNotWhitelisted();
/// @notice thrown if reactorCallback is called by an adress other than the reactor
/// @notice thrown if reactorCallback is called by an address other than the reactor
error MsgSenderNotReactor();

ISwapRouter02 private immutable swapRouter02;
Expand Down
339 changes: 250 additions & 89 deletions test/base/BaseReactor.t.sol

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions test/util/mock/MockFillContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ import {IReactorCallback} from "../../../src/interfaces/IReactorCallback.sol";
contract MockFillContract is IReactorCallback {
using CurrencyLibrary for address;

/// @notice thrown if native transfer fails to the reactor
error NativeTransferFailed();

IReactor immutable reactor;

constructor(address _reactor) {
Expand Down
3 changes: 0 additions & 3 deletions test/util/mock/MockFillContractDoubleExecution.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ import {IReactorCallback} from "../../../src/interfaces/IReactorCallback.sol";
contract MockFillContractDoubleExecution is IReactorCallback {
using CurrencyLibrary for address;

/// @notice thrown if native transfer fails to the reactor
error NativeTransferFailed();

IReactor immutable reactor1;
IReactor immutable reactor2;

Expand Down
3 changes: 0 additions & 3 deletions test/util/mock/MockFillContractWithOutputOverride.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ contract MockFillContractWithOutputOverride is IReactorCallback {
uint256 outputAmount;

IReactor immutable reactor;
/// @notice thrown if native transfer fails to the reactor

error NativeTransferFailed();

constructor(address _reactor) {
reactor = IReactor(_reactor);
Expand Down

0 comments on commit 13783ed

Please sign in to comment.