Submitted by 0xA5DF
https://github.com/code-423n4/2022-08-frax/blob/92a8d7d331cc718cd64de6b02515b554672fb0f3/src/contracts/FraxlendPairDeployer.sol#L170-L178
https://github.com/code-423n4/2022-08-frax/blob/92a8d7d331cc718cd64de6b02515b554672fb0f3/src/contracts/FraxlendPairDeployer.sol#L207-L210
In case of setting the creation code to less than 13K the creation would fail at 2 points:
In case the code of the pair gets smaller (e.g. optimization, moving part of the code to a library etc.) to 13K or less, itd be impossible to set it as the new creation code (or in the case of the 2nd issue, itd be impossible to deploy it).
In the following test I try to set creation code to a smaller mock pair.
The test was added to src/test/e2e/FraxlendPairDeployerTest.sol:
The mock pair was created as src/contracts/audit/MockPair.sol:
If creation code length is 13K or less:
DrakeEvans (Frax) acknowledged
