smartcontractkit / ccip

Cross Chain Interoperability Protocol
Other
119 stars 47 forks source link

[CCIP-3376] Add component into CCIP price estimators to account for c… #1446

Closed valerii-kabisov-cll closed 3 weeks ago

valerii-kabisov-cll commented 4 weeks ago

https://smartcontract-it.atlassian.net/browse/CCIP-3376

The CCIP gas limit is set by customers. This cannot be changed because this limit is directly used within the contracts (which expect limits in terms of ETH). Also, the L2 gas price returned from our current estimators for Mantle is in MNT. Therefore, the final formula needed for CCIP to calculate L2 transaction fees is the following: gasLimit_EVM (gasPrice_Mantle TokenRatio) Therefore, we need to multiply the gas price returned from our gas estimators by tokenRatio for CCIP. This should happen in the CCIP price estimator. Currently, we have no component here for chain-specific logic, so we will need to add this functionality.

cl-sonarqube-production[bot] commented 3 weeks ago

Quality Gate failed Quality Gate failed

Failed conditions
70.7% Coverage on New Code (required ≥ 75%)
29.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube