In RentalProtocol.sol, the rent method currently processes the cost and fee before going onto processing each NFT. As this process handles users funds, it is best to apply the checks-effects-interaction pattern throughout the method even though the nonReentrant modifier is applied. As such, we recommend that the processing of the NFTs within the rental offer is performed first before then processing the costs and fees.
Severity: Low
In
RentalProtocol.sol
, therent
method currently processes the cost and fee before going onto processing each NFT. As this process handles users funds, it is best to apply the checks-effects-interaction pattern throughout the method even though the nonReentrant modifier is applied. As such, we recommend that the processing of the NFTs within the rental offer is performed first before then processing the costs and fees.