Skip to content

Commit

Permalink
refactor(test): update test layout (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquariuslt authored and 0xashu committed May 14, 2024
1 parent 8edd449 commit 75e6a85
Show file tree
Hide file tree
Showing 9 changed files with 225 additions and 475 deletions.
3 changes: 2 additions & 1 deletion contracts/core/aggregator/AaveYieldAggregator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ contract AaveYieldAggregator is Ownable, IYieldAggregator {
/**
* @notice Check Aave pool state
* @return bool true if Aave pool is active, false otherwise
* @dev For more information, see: https://github.com/aave/aave-v3-core/blob/master/contracts/protocol/libraries/configuration/ReserveConfiguration.sol
* @dev For more information, see:
* https://github.com/aave/aave-v3-core/blob/master/contracts/protocol/libraries/configuration/ReserveConfiguration.sol
*/
function _checkAavePoolState() internal view returns (bool) {
uint256 configData = AAVE_POOL.getReserveData(WETH).configuration.data;
Expand Down
4 changes: 2 additions & 2 deletions test/TestContext.t.sol → test/BaseTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import { MestERC1155 } from "contracts/core/MestERC1155.sol";
import { IAavePool } from "contracts/interface/IAave.sol";

contract TestContext is Test {
contract BaseTest is Test {
MestSharesFactoryV1 public sharesFactory;
MestERC1155 public sharesNFT;

Expand Down Expand Up @@ -48,7 +48,7 @@ contract TestContext is Test {
sharesNFT = new MestERC1155(BASE_URI);

sharesFactory = new MestSharesFactoryV1(
address(sharesNFT), BASE_PRICE, INFLECTION_POINT, INFLECTION_PRICE, LINEAR_PRICE_SLOPE, true
address(sharesNFT), BASE_PRICE, INFLECTION_POINT, INFLECTION_PRICE, LINEAR_PRICE_SLOPE
);

aaveYieldAggregator = new AaveYieldAggregator(address(sharesFactory), WETH, AAVE_POOL, AAVE_WETH_GATEWAY);
Expand Down
125 changes: 0 additions & 125 deletions test/TestPlus.sol

This file was deleted.

97 changes: 0 additions & 97 deletions test/core/YieldAggregator.t.sol

This file was deleted.

Loading

0 comments on commit 75e6a85

Please sign in to comment.