You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
523 B
23 lines
523 B
3 years ago
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
pragma solidity ^0.8.0;
|
||
|
|
||
3 years ago
|
import "../token/ERC20/extensions/ERC4626.sol";
|
||
3 years ago
|
|
||
|
// mock class using ERC20
|
||
3 years ago
|
contract ERC4626Mock is ERC4626 {
|
||
3 years ago
|
constructor(
|
||
|
IERC20Metadata asset,
|
||
|
string memory name,
|
||
|
string memory symbol
|
||
3 years ago
|
) ERC20(name, symbol) ERC4626(asset) {}
|
||
3 years ago
|
|
||
|
function mockMint(address account, uint256 amount) public {
|
||
|
_mint(account, amount);
|
||
|
}
|
||
|
|
||
|
function mockBurn(address account, uint256 amount) public {
|
||
|
_burn(account, amount);
|
||
|
}
|
||
|
}
|