Skip to content

Commit

Permalink
Only add 50000 DMCX for test exchange can start a new cycle
Browse files Browse the repository at this point in the history
  • Loading branch information
weiqiushi committed Sep 12, 2024
1 parent 3682229 commit 41f8085
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/exchange.sol
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ contract Exchange is Initializable, UUPSUpgradeable, OwnableUpgradeable {

function addDMCXForTest(uint256 amount) public testEnabled {
DMC(dmcToken).transferFrom(msg.sender, address(this), amount);
_startNewTestCycle();
if (amount >= 50000 ether) {
_startNewTestCycle();
}
}

function startNewTestCycle() public onlyOwner testEnabled {
Expand Down

0 comments on commit 41f8085

Please sign in to comment.