Submitted by gpersoon, also found by 0xsanson
The uint32 conversion in setWinner of the RCMarket doesnt work as expected.
The first statement: uint32(block.timestamp) already first the block.timestamp in a uint32.
If it is larger than type(uint32).max it wraps around and starts with 0 again
The testcode below shows this.
Check for <= type(uint32).max in the second statement is useless because _blockTimestamp is always  <= type(uint32).max
Recommend doing the require first (without a typecast to uint32):
Splidge (Reality Cards) confirmed:
Splidge (Reality Cards) patched:
