-
Notifications
You must be signed in to change notification settings - Fork 73
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
Airnode attemps to fail the request when the sponsor wallet is invalid #1749
Comments
I was able to reproduce this by using the wrong sponsor wallet address: The relevant code for the error is below, with airnode/packages/airnode-node/src/api/index.ts Lines 104 to 118 in a14f3b0
It turns out we already do this for withdrawal requests:
|
Just to add, we are only patching the current version 0.11.0 upon agreement on Airnode weekly call(week ago). |
@aTeoke - to test this you can follow the airnode-example
Before this PR, the result would be a failed tx like I linked to in my comment above. Now, Airnode ignores the request because the sponsor wallet is invalid and does not make the API call or submit a tx. |
Tested it, Derek guided me through it and we can consider this one done and working ok |
Run
yarn && yarn main
on https://github.com/bbenligiray/fulfillment-analysis and you will see a bunch of reverted transactions that attempt to callfail()
with theerrorMessage
Sponsor wallet is invalid...
. Thesefail()
calls of course revert because the sponsor wallet is invalid. This is a DoS vector for certain advanced user patterns for RRP (where you let the end-user specify the sponsor wallet).When the sponsor wallet for a request is invalid, Airnode should just log it and ignore it on-chain.
The text was updated successfully, but these errors were encountered: