Skip to content

fix: use viem zeroAddress, correct empty oracle config - #2

Merged
oliviabarnett merged 1 commit into
mainfrom
fix-oracle-config
Apr 20, 2026
Merged

oliviabarnett merged 1 commit into
mainfrom
fix-oracle-config

Conversation

@oliviabarnett

Copy link
Copy Markdown
Contributor

What changed

  • Replace hand-rolled ZERO_ADDRESS with viem's
    zeroAddress
  • Fix spreadBps and maxStaleness to 0 (was 50
    and 3600). When adapter is zero (no oracle), the
    contract skips oracle pricing — these fields must be
    zero to match the zkp2p contract's
    EMPTY_ORACLE_RATE_CONFIG.

Why

Incorrect oracle config would cause on-chain deposit
creation to behave unexpectedly. The zero-adapter config
must match exactly what the contract expects.

@oliviabarnett
oliviabarnett merged commit e93a977 into main Apr 20, 2026
1 check passed
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.

1 participant