Skip to content

Commit

Permalink
Add new tests for MaticX contract
Browse files Browse the repository at this point in the history
  • Loading branch information
evercoinx committed Sep 13, 2024
1 parent 82d742d commit f8c4a5f
Show file tree
Hide file tree
Showing 3 changed files with 373 additions and 11 deletions.
12 changes: 6 additions & 6 deletions contracts/MaticX.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ contract MaticX is
string public override version;
uint8 public override feePercent;

address public instantPoolOwner_deprecated;
uint256 public instantPoolMatic_deprecated;
uint256 public instantPoolMaticX_deprecated;
address private instantPoolOwner_deprecated;
uint256 private instantPoolMatic_deprecated;
uint256 private instantPoolMaticX_deprecated;

mapping(address => WithdrawalRequest[]) private userWithdrawalRequests;
address public override fxStateRootTunnel;
Expand Down Expand Up @@ -90,12 +90,12 @@ contract MaticX is
require(_stakeManager != address(0), "Zero stake manager address");
stakeManager = _stakeManager;

require(_treasury != address(0), "Zero treasury address");
treasury = _treasury;

require(_maticToken != address(0), "Zero matic token address");
maticToken = _maticToken;

require(_treasury != address(0), "Zero treasury address");
treasury = _treasury;

feePercent = 5;

IERC20Upgradeable(maticToken).safeApprove(
Expand Down
8 changes: 4 additions & 4 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ const config: HardhatUserConfig = {
"interfaces/",
"lib/",
"mocks/",
"state-transfer",
"tunnel",
"state-transfer/",
"tunnel/",
],
},
gasReporter: {
Expand All @@ -234,8 +234,8 @@ const config: HardhatUserConfig = {
"interfaces/",
"lib/",
"mocks/",
"state-transfer",
"tunnel",
"state-transfer/",
"tunnel/",
],
},
};
Expand Down
Loading

0 comments on commit f8c4a5f

Please sign in to comment.