feat(tempo): offer OUSD first in server currency defaults - #265
Conversation
Co-authored-by: decofe <256792747+decofe@users.noreply.github.com>
14dbe36 to
361470e
Compare
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 361470ea0a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Motivation
Offer OUSD first with USDC.e on mainnet and pathUSD on Moderato, while keeping gas-token selection independent of the payment currency.
Summary
tempo(currencies=...),TempoMethod.currencies,OUSD, anddefault_currencies_for_chain().fee_tokenandallowed_fee_tokens; select balances sufficient for the gas budget. Unsponsored OUSD payments also select a funded supported gas token.Public interface migration:
Key design considerations
currency=remains supported but deprecated for servers; a per-request currency override still produces oneChallenge. Consumers must handleComposedChallengeswhen multiple currencies are accepted.fee_tokenrequires a localfee_payerand must satisfy its allowlist. Default gas tokens are pathUSD then USDC.e on mainnet, pathUSD on Moderato; OUSD is not implicitly allowed for gas.