Skip to content

Conversation

@nicholaspai
Copy link
Member

Allow recipient to handle cases where a deposit with a message is sent in multiple partial fills, by different relayers.
Y
Signed-off-by: nicholaspai npai.nyc@gmail.com

…ndler

Signed-off-by: nicholaspai <npai.nyc@gmail.com>
@nicholaspai nicholaspai requested review from mrice32 and pxrl April 24, 2023 14:46
Signed-off-by: nicholaspai <npai.nyc@gmail.com>
AcrossMessageHandler(relayExecution.updatedRecipient).handleAcrossMessage(
relayData.destinationToken,
amountToSend,
relayFills[relayExecution.relayHash] >= relayData.amount,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be the opposite? Wouldn't the stored fill amount be >= (really just ==, but >= just to be safe) the total fill amount when it's completely filled? Or am I missing something?

relayData.amount <= relayFills[relayExecution.relayHash].

Copy link
Member Author

Choose a reason for hiding this comment

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

isn't the above equation exactly what I have in the PR?

Copy link
Contributor

@mrice32 mrice32 Apr 24, 2023

Choose a reason for hiding this comment

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

Sorry, yeah, the direction of the inequality just got twisted in my head. You're right!

@nicholaspai nicholaspai requested a review from mrice32 April 24, 2023 17:01
Copy link
Contributor

@pxrl pxrl left a comment

Choose a reason for hiding this comment

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

The implementation looks OK to me, but I will defer approval until the remaining comment thread is resolved.

edit: I was a couple of minutes late. OK from me now.

@nicholaspai nicholaspai merged commit 4f83f54 into master Apr 24, 2023
@nicholaspai nicholaspai deleted the across-2.5/partial-fill-with-message branch April 24, 2023 17:17
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