Add ERC4626 standard property tests (#3792)

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
This commit is contained in:
Daejun Park
2022-11-04 09:56:32 -07:00
committed by GitHub
parent 0b6becd49f
commit c7315e8779
4 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,17 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "erc4626-tests/ERC4626.test.sol";
import {ERC20Mock} from "../../../../contracts/mocks/ERC20Mock.sol";
import {ERC4626Mock, IERC20Metadata} from "../../../../contracts/mocks/ERC4626Mock.sol";
contract ERC4626StdTest is ERC4626Test {
function setUp() public override {
_underlying_ = address(new ERC20Mock("MockERC20", "MockERC20", address(this), 0));
_vault_ = address(new ERC4626Mock(IERC20Metadata(_underlying_), "MockERC4626", "MockERC4626"));
_delta_ = 0;
_vaultMayBeEmpty = false;
_unlimitedAmount = true;
}
}