ScopeLift / token-shielder

🛡️ A simple frontend for shielding tokens in RAILGUN
MIT License
19 stars 8 forks source link

don't poll trying to resolve 0zk address as an unstoppable domain #96

Open mds1 opened 1 year ago

mds1 commented 1 year ago

Currently we try to resolve 0zk addresses as unstoppable domains, resulting in the below errors. SWR automatically retries on errors with exponential backoff, so we can either leave as is, or change the retry strategy, or be smarter and recognize that this is a 0zk address and not try to resolve it as a domain

image

alexkeating commented 1 year ago

Docs to reduce this can be found here

https://swr.vercel.app/docs/error-handling#error-retry