mirror of
https://github.com/Instadapp/fluid-contracts-public.git
synced 2024-07-29 21:57:37 +00:00
d7a58e88ff
ARB: deploy protocols
19 lines
512 B
Solidity
19 lines
512 B
Solidity
// SPDX-License-Identifier: BUSL-1.1
|
|
pragma solidity 0.8.21;
|
|
|
|
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
|
|
import { Address } from "@openzeppelin/contracts/utils/Address.sol";
|
|
|
|
|
|
contract MockWETH is ERC20 {
|
|
constructor () ERC20("WETH", "WETH") {}
|
|
|
|
function deposit() external payable {
|
|
_mint(msg.sender, msg.value);
|
|
}
|
|
|
|
function withdraw(uint256 amount) external {
|
|
_burn(msg.sender, amount);
|
|
Address.sendValue(payable(msg.sender), amount);
|
|
}
|
|
} |