Skip to content

Fix source address for gasless swaps#36

Open
yasha-meursault wants to merge 1 commit into
devfrom
dev-source-address
Open

Fix source address for gasless swaps#36
yasha-meursault wants to merge 1 commit into
devfrom
dev-source-address

Conversation

@yasha-meursault

Copy link
Copy Markdown

For gasless swaps the deposit is submitted by a relayer, so the input transaction's from is the relayer address rather than the user's. Add the source_address field to the swap model and prefer it over input_transaction.from when displaying the source address, falling back to from for non-gasless swaps.

For gasless swaps the deposit is submitted by a relayer, so the input
transaction's `from` is the relayer address rather than the user's. Add
the `source_address` field to the swap model and prefer it over
`input_transaction.from` when displaying the source address, falling
back to `from` for non-gasless swaps.
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.

1 participant