Skip to content

Conversation

@nicholaspai
Copy link
Member

No description provided.

Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

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

LGTM!


// Adding brackets "stack too deep" solidity error.
{
if (maxTokensToSend > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you think of anywhere that we use the filledAmount stored in the contract as a proxy for the relay being "initialized"? If so, this relay would still be considered uninitialized. I can't think of anywhere this would cause problems, just wanted to ask in case you could.

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't, there isn't really a good way of checking whether a relay was initialized at the moment. For that we'd need to expand the data associated with each relay hash

@nicholaspai nicholaspai merged commit 415e200 into master Feb 8, 2022
@nicholaspai nicholaspai deleted the npai/revisions branch February 8, 2022 23:07
pxrl pushed a commit that referenced this pull request Feb 8, 2024
…nt (#25)

chainId is not useful because it is known based on the SpokePool being
queried. Also, the marginal value of indexing the leafId on top of the
rootBundleId is pretty minimal, so instead index fillsRefundedRoot.
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.

4 participants