Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

fix: polynomial - get correct range for deposit/withdrawal queue #1157

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

tonzgao
Copy link
Contributor

@tonzgao tonzgao commented Aug 12, 2022

see #1137 (comment)

pending txs can be found in https://optimistic.etherscan.io/address/0xa11451acd2fbdf4ae798f44c4227cab9517739d7 as Initiate Deposit/Withdrawal

@immasandwich immasandwich merged commit 594230f into Zapper-fi:main Aug 12, 2022
const [depositHead, depositTail] = await Promise.all([
multicall.wrap(contract).queuedDepositHead(),
multicall.wrap(contract).nextQueuedDepositId(),
]);
// Note: ignores pending deposits when deposit queue is large. Consider checking if the last user is ZERO_ADDRESS and recursing
Copy link
Contributor Author

Choose a reason for hiding this comment

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

whoops. should remove this comment later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants