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

Shared job specs #683

Closed
wants to merge 6 commits into from
Closed

Shared job specs #683

wants to merge 6 commits into from

Conversation

matYang
Copy link
Collaborator

@matYang matYang commented Apr 4, 2024

Motivation

Solution

Copy link
Contributor

github-actions bot commented Apr 4, 2024

I see you updated files related to core. Please run pnpm changeset to add a changeset.

justinkaseman added a commit that referenced this pull request Apr 10, 2024
…ot configured on pricegetter (#686)

## Motivation
Self service token pools will enable many new TransferTokens to be used
across CCIP, most of which may not have a readily available price.

## Context
The current procedure (as of [batched price
updates](#623)) is for a
single lane to be designated as the "leader lane". It reports all prices
that other lanes use. Other lanes have their price reporting disabled.
To enable this, the leader lane has all supported tokens configured in
the CommitJobSpec.

The source of truth for which tokens are supported comes from on-chain:
queried from the leader lane's destination price registry (FeeTokens)
and from each OffRamp's `supportedTokens`. The combined set is given to
the `price getter`, and if the number of resulting prices is different
from the CommitJobSpec's tokens then the observation is thrown out.

## Solution

### _For v1.4 (current) contracts:_
Use the `CommitJobSpec`'s configured tokens as the source of truth for
which TransferTokens need a price update. Filter out TransferTokens that
are not configured on the `pricegetter` before they reach
`pricegetter.TokenPricesUSD()`.

Risks:
- Compatability with [shared job
specs](#683)

### _For v1.5 (next) contracts:_
Return to on-chain being the source of truth for which tokens need a
price update.
The list of TransferTokens that need pricing will be created from
querying the OnRamps for tokens that have either BPS set and/or
Aggregate Rate Limits. FeeTokens will still be taken from the
destination Price Registry.
@matYang
Copy link
Collaborator Author

matYang commented May 8, 2024

approach abandoned in favour of communication via DB in order to be LOOPPS compatible

@matYang matYang closed this May 8, 2024
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.

None yet

1 participant