Skip to content

Commit

Permalink
Code423n4 #86, Check market is open
Browse files Browse the repository at this point in the history
  • Loading branch information
Splidge committed Jun 21, 2021
1 parent 5147a36 commit a43e7f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/RCMarket.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit a43e7f1

Please sign in to comment.