Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mantle use vanilla l1 oracle #14471

Merged
merged 6 commits into from
Sep 18, 2024
Merged

Conversation

matYang
Copy link
Contributor

@matYang matYang commented Sep 18, 2024

Mantle charges TokenRatio, calculated as Eth price / MNT price, on top of regular EVM gas cost. This charge happens when transmitter calls Mantle RPC to submit the transaction. Inside the EVM, the gas provided (e.g by the call opcode) still uses regular EVM gas.

As a result, the gas limit used by CCIP receiver will be charged as regular EVM gas denoted in Eth, yet the gas price reported by evm fee estimator is denoted in MNT. When CCIP gives user a quote, the reported gas price must be argumented with TokenRatio.

TXM needs the gas price to be in MNT. Given CCIP is the only consumer of the gas price reporting logic, a better place to apply the TokenRatio is within CCIP plugin.

@matYang matYang requested review from a team as code owners September 18, 2024 05:10
@matYang matYang requested review from george-dorin, ma33r and valerii-kabisov-cll and removed request for a team September 18, 2024 05:10
Copy link
Contributor

@ma33r ma33r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that within the CCIP plugin is a better place to apply these changes, so LGTM!

@valerii-kabisov-cll valerii-kabisov-cll added this pull request to the merge queue Sep 18, 2024
Merged via the queue into develop with commit a9a4f74 Sep 18, 2024
137 checks passed
@valerii-kabisov-cll valerii-kabisov-cll deleted the mantle-vanilla-oracle branch September 18, 2024 14:29
momentmaker added a commit that referenced this pull request Sep 19, 2024
* develop: (79 commits)
  core/config/toml: include value in InsecureConnection error message (#14495)
  vrf: add soneium config for integration tests (#14443)
  Add default test config for Grafana (#14475)
  Update to 1.5 RMN contract address (#14485)
  fix lint issues (#14450)
  [BCFR-203] Improve CR value comparator querying (topics and data words) by doing encoding in the relayer (#14207)
  integration-tests/deployment/ccip: fix assertion fns (#14482)
  chore: remove gha workflow validation (#14487)
  devsvcs-244: update token transfer (#14481)
  DF-20481: Add new OCR3DataFeeds telemetry type for Mercury jobs (#14470)
  Merc 6304 view function ea telem support (#14467)
  [DEVSVCS-545] cleanup (#14478)
  Mantle use vanilla l1 oracle (#14471)
  Fix E2E_TESTS_ON_GITHUB_CI.md (#14473)
  Upgrade chainlink ccip dependency (#14474)
  [DEVSVCS-545] automation benchmark test remove support for keepers v1 (#14472)
  Enables OOO Execution for E2E Tests (#14392)
  Delegate workflow spec creation (#14365)
  CCIP-3407: Add release testing configs (#1436) (#14463)
  Implement v0.3-compatible telemetry for LLO (#14440)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants