Skip to content

Conversation

@nicholaspai
Copy link
Member

@nicholaspai nicholaspai commented Aug 10, 2023

SlowFill reuses existing _fillRelay logic to fill a slow relay leaf. This function has an early return path where if the msg.sender == recipient, it will exit early to avoid a transfer. This is useful for a
normal relay where a relayer, relaying to themselves, shouldn't need to send funds to itself. However, for a slow fill, the "relayer" is the contract (i.e. funds are sent out out of the spoke pool rather
than brought in by the relayer/msg.sender) so we always want to send funds if we're in a slow relay.

Signed-off-by: nicholaspai npai.nyc@gmail.com

Fixes ACX-1394

Signed-off-by: nicholaspai <npai.nyc@gmail.com>
@linear
Copy link

linear bot commented Aug 10, 2023

ACX-1394 Fix slow fill spoke pool bug and upgrade all contracts

We can use this script to verify the upgrade is safe and this script to get the call data we’d need to pass into the hub pool

@nicholaspai nicholaspai merged commit 1736bbf into master Aug 16, 2023
@nicholaspai nicholaspai deleted the npai/slow-fill-fix branch August 16, 2023 19:54
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