-
Notifications
You must be signed in to change notification settings - Fork 75
fix: Execute fill with updated message and recipient #276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
When sped up, updated message and recipient are not used
mrice32
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice find!
james-a-morris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment
| _unwrapwrappedNativeTokenTo(payable(relayExecution.updatedRecipient), amountToSend); | ||
| // Else, this is a normal ERC20 token. Send to recipient. | ||
| } else { | ||
| // Note: Similar to note above, send token directly from the contract to the user in the slow relay case. | ||
| if (!relayExecution.slowFill) | ||
| IERC20Upgradeable(relayData.destinationToken).safeTransferFrom( | ||
| msg.sender, | ||
| relayData.recipient, | ||
| relayExecution.updatedRecipient, | ||
| amountToSend | ||
| ); | ||
| else | ||
| IERC20Upgradeable(relayData.destinationToken).safeTransfer( | ||
| relayExecution.updatedRecipient, | ||
| amountToSend | ||
| ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: should we add the tsconfig setting to require brackets after conditionals?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you know which config we should set for that? I marginally favor requiring brackets but not a big deal
When sped up, updated message and recipient are not used