Add ERC4626 standard property tests (#3792)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>pull/3802/head
parent
0b6becd49f
commit
c7315e8779
@ -1,3 +1,6 @@ |
||||
[submodule "lib/forge-std"] |
||||
path = lib/forge-std |
||||
url = https://github.com/foundry-rs/forge-std |
||||
[submodule "lib/erc4626-tests"] |
||||
path = lib/erc4626-tests |
||||
url = https://github.com/a16z/erc4626-tests.git |
||||
|
@ -1,2 +1,3 @@ |
||||
[fuzz] |
||||
runs = 10000 |
||||
max_test_rejects = 100000 |
||||
|
@ -0,0 +1 @@ |
||||
Subproject commit 8b1d7c2ac248c33c3506b1bff8321758943c5e11 |
@ -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; |
||||
} |
||||
} |
Loading…
Reference in new issue