Submitted by danb
https://github.com/code-423n4/2022-01-timeswap/blob/main/Timeswap/Timeswap-V1-Convenience/contracts/libraries/Mint.sol#L141
when a user mints new liquidity, it the pair doesnt already exist, it deploys it.
deploying a new contract on ethereum is super expensive, especially when its such a large contract like TimeswapPair, it can cost thousands of dollars.
https://medium.com/the-capital/how-much-does-it-cost-to-deploy-a-smart-contract-on-ethereum-11bcd64da1
user who try to mint liquidity on pair that doesnt exist will end up paying thousands of dollars.
If the pair doesnt exist, revert instead of deploying it.
deploying a new contract should be the users choice, since its so expensive.
Mathepreneur (Timeswap) acknowledged:
0xean (judge) commented:
