Skip to content

Commit

Permalink
fix: deal weth
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-something committed Jan 29, 2024
1 parent 11cdcb3 commit 9ca359c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/PoolTestHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,13 @@ contract PoolTestHelper is Test, UniswapV3PoolCloner {
(address token0, address token1) = abi.decode(data, (address, address));

if(amount0Owed > 0) {
deal(token0, address(this), amount0Owed, true);
// Do not adjust total supply as this requires a supply stored, which is not the case for weth
deal(token0, address(this), amount0Owed, false);
IERC20(token0).transfer(msg.sender, amount0Owed);
}

if(amount1Owed > 0) {
deal(token1, address(this), amount1Owed, true);
deal(token1, address(this), amount1Owed, false);
IERC20(token1).transfer(msg.sender, amount1Owed);
}
}
Expand Down

0 comments on commit 9ca359c

Please sign in to comment.