From a43e7f1dc39fbbaebabfab6af9260715b8664d7c Mon Sep 17 00:00:00 2001 From: Splidge <73956628+Splidge@users.noreply.github.com> Date: Mon, 21 Jun 2021 12:02:13 +0100 Subject: [PATCH] Code423n4 #86, Check market is open --- contracts/RCMarket.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/RCMarket.sol b/contracts/RCMarket.sol index f0ef4d40..d60e026b 100644 --- a/contracts/RCMarket.sol +++ b/contracts/RCMarket.sol @@ -661,6 +661,7 @@ contract RCMarket is Initializable, NativeMetaTransaction, IRCMarket { /// @notice rent every Card at the minimum price /// @param _maxSumOfPrices a limit to the sum of the bids to place function rentAllCards(uint256 _maxSumOfPrices) external { + _checkState(States.OPEN); // check that not being front run uint256 _actualSumOfPrices; for (uint256 i = 0; i < numberOfCards; i++) {