-
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.
test: darkpool: SettleAtomicMatch: Add native asset tests
- Loading branch information
Showing
5 changed files
with
169 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
import { IWETH9 } from "renegade/libraries/interfaces/IWETH9.sol"; | ||
import { ERC20Mock } from "oz-contracts/mocks/token/ERC20Mock.sol"; | ||
|
||
/// @title WethMock | ||
/// @notice A mock implementation of the IWETH9 interface | ||
contract WethMock is IWETH9, ERC20Mock { | ||
/// @notice Deposit ETH into the contract | ||
function deposit() external payable { | ||
_mint(msg.sender, msg.value); | ||
} | ||
|
||
/// @notice Withdraw ETH from the contract | ||
function withdrawTo(address to, uint256 amount) external { | ||
_burn(msg.sender, amount); | ||
payable(to).transfer(amount); | ||
} | ||
} |