ERC4626Mock.sol 523 B

12345678910111213141516171819202122
  1. // SPDX-License-Identifier: MIT
  2. pragma solidity ^0.8.0;
  3. import "../token/ERC20/extensions/ERC4626.sol";
  4. // mock class using ERC20
  5. contract ERC4626Mock is ERC4626 {
  6. constructor(
  7. IERC20Metadata asset,
  8. string memory name,
  9. string memory symbol
  10. ) ERC20(name, symbol) ERC4626(asset) {}
  11. function mockMint(address account, uint256 amount) public {
  12. _mint(account, amount);
  13. }
  14. function mockBurn(address account, uint256 amount) public {
  15. _burn(account, amount);
  16. }
  17. }