extraArgsByChain
in RESDLTokenBridge
is not set upon construction but depends on owner
to set it via the onlyOwner
setExtraArgs
method
The extra arguments is the gaslimit
used in ccip messages. As per Chainlink documentation if extra arguments are not set a default of 200_000 gas will be used. Because the gaslimit
is not set upon construction there is a chance that the owner
delays their setting for some reason or simply forgets, which means during that period of time in which gaslimit
is not set ccipReceive on the destionation chain contract will use 200_000 gas. I believe this is worth mentioning because unspent gas is not refunded as per CCIP docs
Same thing goes for setRewardsExtraArgs
and setUpdateExtraArgs
in SDLPoolCCIPControllerPrimary
.
Potential waste of gas.
Manual Review
Set extra arguments per chain upon construction. The onlyOwner
method can be kept so arguments can have the functionality to be changed.
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.