Open code423n4 opened 2 years ago
reimburseRelayerFees()
den = 0
reimburseRelayerFees will error if den = 0, this will happen because den is the divisor. And the
reimburseRelayerFees
den
sponsoredFee = (_originRelayerFee * num) / den;
and sponsorFee is calculated twice at line 246 and 253. i suggest to remove the code in line 246.
https://github.com/code-423n4/2022-06-connext/blob/main/contracts/contracts/core/connext/helpers/SponsorVault.sol#L234
Duplicate of https://github.com/code-423n4/2022-06-connext-findings/issues/189
reimburseRelayerFees()
will error ifden = 0
reimburseRelayerFees
will error ifden = 0
, this will happen becauseden
is the divisor. And thesponsoredFee = (_originRelayerFee * num) / den;
and sponsorFee is calculated twice at line 246 and 253. i suggest to remove the code in line 246.
https://github.com/code-423n4/2022-06-connext/blob/main/contracts/contracts/core/connext/helpers/SponsorVault.sol#L234