From 41f80853ae6c6c14bb7c942fa9325ead12ca0e00 Mon Sep 17 00:00:00 2001 From: weiqiushi Date: Thu, 12 Sep 2024 12:30:29 +0800 Subject: [PATCH] Only add 50000 DMCX for test exchange can start a new cycle --- contracts/exchange.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contracts/exchange.sol b/contracts/exchange.sol index fba70c4..3680123 100644 --- a/contracts/exchange.sol +++ b/contracts/exchange.sol @@ -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 {