Manual review
To ensure consistency between the generated `addresses` and `offerId`, modify the `createOffer` function to `increment offerId` before generating the addresses.
see below:
Increment offerId Before Generating Addresses:
Move the increment operation for offerId before the address generation:
```javascript
offerId = offerId + 1;
address makerAddr = GenerateAddress.generateMakerAddress(offerId);
address offerAddr = GenerateAddress.generateOfferAddress(offerId);
address stockAddr = GenerateAddress.generateStockAddress(offerId);
```
This ensures that the `offerId` used for generating addresses is the same as the `offerId` stored in the mappings.
I believe this is valid low severity, although there is inconsistency here when using the correct `offerId` for assigning offerIds and generating the unique addresses as seen [here](https://github.com/Cyfrin/2024-08-tadle/blob/04fd8634701697184a3f3a5558b41c109866e5f8/src/core/PreMarkets.sol#L67-L69), this is purely an accounting error for offerIds. If we generate the offerId using current `offerId - 1`, the appropriate listing/taker orders can still be created against those offers.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.