Skip to content

Conversation

@jackburrus
Copy link
Contributor

@jackburrus jackburrus commented Feb 10, 2025

This PR adds the zapContractAddress param to each instance of getHyperdrive.

jackburrus and others added 2 commits February 10, 2025 11:17
Co-authored-by: Danny Delott <DannyDelott@users.noreply.github.com>
@changeset-bot
Copy link

changeset-bot bot commented Feb 10, 2025

⚠️ No Changeset found

Latest commit: b98ecb6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Feb 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hyperdrive-mainnet-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2025 7:21pm
hyperdrive-sepolia-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 10, 2025 7:21pm
6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
hyperdrive-js ⬜️ Ignored (Inspect) Visit Preview Feb 10, 2025 7:21pm
hyperdrive-mainnet-production ⬜️ Ignored (Inspect) Feb 10, 2025 7:21pm
hyperdrive-sepolia-production ⬜️ Ignored (Inspect) Feb 10, 2025 7:21pm
testnet-v1 ⬜️ Ignored (Inspect) Feb 10, 2025 7:21pm
testnet-v1.0.6 ⬜️ Ignored (Inspect) Visit Preview Feb 10, 2025 7:21pm
trading-competition ⬜️ Ignored (Inspect) Visit Preview Feb 10, 2025 7:21pm

const accountTxHashes = transfersSentToZap.map(
({ transactionHash }) => transactionHash,
);
// Fetch CloseLong events emitted by the auxiliary contract in the relevant block range.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: auxiliary contract -> zap contract

drift: getDrift({ chainId: hyperdrive.chainId }),
earliestBlock: hyperdrive.initializationBlock,
zapContractAddress:
appConfigForConnectedChain.zaps[hyperdrive.chainId].address,
Copy link
Contributor

Choose a reason for hiding this comment

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

Since zaps is only configured for the fork chain, we need to do ?.address everywhere, right?

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