#38644 [SC-Insight] Q&A
Description
[N-1] Unused payloadfield inside CLAdapter:_buildCCIPMessage
payloadfield inside CLAdapter:_buildCCIPMessage function _buildCCIPMessage(
bytes memory _receiver,
uint256 _amount,
-> bytes memory _payload
) private view returns (Client.EVM2AnyMessage memory) {
...
return
Client.EVM2AnyMessage({
receiver: _receiver,
-> data: "",
tokenAmounts: tokenAmounts,
extraArgs: Client._argsToBytes(
Client.EVMExtraArgsV2({
gasLimit: getExecutionGasLimit,
allowOutOfOrderExecution: true
})
),
feeToken: address(0) // let's pay with native tokens
});[N-2] CLAdapter:initWithdrawalNoSignatures is not used.
CLAdapter:initWithdrawalNoSignatures is not used.[N-3] Unnecessary storage read inside LBTC:batchMintWithFee
LBTC:batchMintWithFee[N-4] No constraints on absCommission when adding a destination chain.
absCommission when adding a destination chain.[N-5] Height field from ValSetAction struct is never used.
Height field from ValSetAction struct is never used.[N-6] The invalid BTCBPMM documentation does not align with the code and can lead to confusion.
BTCBPMM documentation does not align with the code and can lead to confusion.[N-7] Complex bridging flow requires additional documentation.
Proof of Concept
Proof of Concept
Last updated
Was this helpful?