ERC4626Mock.sol 520 B

1234567891011121314151617
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.20;
  3. import {IERC20, ERC20} from "../../token/ERC20/ERC20.sol";
  4. import {ERC4626} from "../../token/ERC20/extensions/ERC4626.sol";
  5. contract ERC4626Mock is ERC4626 {
  6. constructor(address underlying) ERC20("ERC4626Mock", "E4626M") ERC4626(IERC20(underlying)) {}
  7. function mint(address account, uint256 amount) external {
  8. _mint(account, amount);
  9. }
  10. function burn(address account, uint256 amount) external {
  11. _burn(account, amount);
  12. }
  13. }