While writing assembly, use the specific memory offset variable for specific structs instead of using generic offsets such as OneWordsTwoWords. This make the code easy to read/understand and reduces chances of error on change.
// Current
// Get the pointer to the offers array.
let offerArrPtr := mload(add(orderParameters, TwoWords))
// Recommended Change:
// Get the pointer to the offers array.
let offerArrPtr := mload(add(orderParameters, OrderParameters_offer_head_offset))
1. Missing zero address check of
initialOwner
increateConduit
ofConduitController.sol
initialOwner
.2. Use specific memory offset variables instead of generic offset in inline assembly
In contracts/lib/GettersAndDerivers.sol#L68
While writing assembly, use the specific memory offset variable for specific structs instead of using generic offsets such as
OneWords
TwoWords
. This make the code easy to read/understand and reduces chances of error on change.