Submitted by gpersoon
The function rentAllCards of RCMarket checks for _maxSumOfPrices to see you are not paying more that you want.
However, the first part of the calculations (which calculate _actualSumOfPrices ), do not take in account the fact that you might
already own a card. (while the second part of the code does). If you already own the card you dont have to pay for it and you certainly dont have to pay the extra minimumPriceIncreasePercent.
The code at Proof of Concept shows a refactored version of the code (see other issue make code of rentAllCards easier to read).
This immediately shows the issue.
Add if (ownerOf(i) != msgSender()) { also in the first part of the code of rentAllCards
Splidge (Reality Cards) confirmed and patched:
