-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a8dad1
commit d87a3d4
Showing
4 changed files
with
2 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ pragma solidity ^0.8.19; | |
|
||
import {Test} from "forge-std/Test.sol"; | ||
import {Solaxy} from "../src/Solaxy.sol"; | ||
import {RequiresM3ter} from "../src/interfaces/ISolaxy.sol"; | ||
import {IERC20} from "@openzeppelin/[email protected]/interfaces/IERC20.sol"; | ||
import {IERC721} from "@openzeppelin/[email protected]/interfaces/IERC721.sol"; | ||
|
||
|
@@ -46,23 +45,7 @@ contract SolaxyUnitTest is Test { | |
assertEq(SLX_address.balance, 0 ether, "asset ether balance is still equal to zero"); | ||
} | ||
|
||
function testNonM3terHolder() public { | ||
vm.expectRevert(RequiresM3ter.selector); | ||
SLX.deposit(sDAI_amountDeposited, here); | ||
|
||
vm.expectRevert(RequiresM3ter.selector); | ||
SLX.withdraw(sDAI_amountWithdrawn, here, here); | ||
|
||
vm.expectRevert(RequiresM3ter.selector); | ||
SLX.mint(SLX_amountMinted, here); | ||
|
||
vm.expectRevert(RequiresM3ter.selector); | ||
SLX.redeem(SLX_amountIn, here, here); | ||
} | ||
|
||
function testM3terHolderDepositAndWithdraw() public { | ||
dealERC721(address(SLX.M3TER()), here, 1); | ||
|
||
function testDepositAndWithdraw() public { | ||
uint256 SLX_InitialBalance = SLX.balanceOf(here); | ||
uint256 sDAI_initialBalance = sDAI.balanceOf(SLX_address); | ||
|
||
|
@@ -109,9 +92,7 @@ contract SolaxyUnitTest is Test { | |
assertEq(SLX_feeBalance, 1795000000000000000); | ||
} | ||
|
||
function testM3terHolderMintAndRedeem() public { | ||
dealERC721(address(SLX.M3TER()), here, 1); | ||
|
||
function testMintAndRedeem() public { | ||
uint256 SLX_initialBalance = SLX.balanceOf(here); | ||
uint256 sDAI_initialBalance = sDAI.balanceOf(SLX_address); | ||
|
||
|