Skip to content

Commit

Permalink
hotfix for getMessengerFeeInUsdc
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksiGer committed Feb 5, 2025
1 parent e29883f commit ab3e46c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contracts/ConceroBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,11 @@ contract ConceroBridge is IConceroBridge, InfraCCIP {

uint256 messengerDstGasInNative = HALF_DST_GAS * s_lastGasPrices[dstChainSelector];
uint256 messengerSrcGasInNative = HALF_DST_GAS * s_lastGasPrices[i_chainSelector];
uint256 diff = STANDARD_TOKEN_DECIMALS / USDC_DECIMALS;
uint256 messengerGasFeeInUsdc = ((messengerDstGasInNative + messengerSrcGasInNative) *
s_latestNativeUsdcRate) / STANDARD_TOKEN_DECIMALS;
s_latestNativeUsdcRate) /
STANDARD_TOKEN_DECIMALS /
diff;

return functionsFeeInUsdc + messengerGasFeeInUsdc;
}
Expand Down

0 comments on commit ab3e46c

Please sign in to comment.