retry more frequently, couple more error nits

This commit is contained in:
Moody Salem 2021-05-13 10:50:22 -05:00
parent 83c784f7c0
commit f6245d1093
No known key found for this signature in database
GPG Key ID: 8CB5CD10385138DB
2 changed files with 4 additions and 4 deletions

@ -162,9 +162,9 @@ export function swapErrorToUserReadableMessage(error: any): string {
case 'Too little received':
case 'Too much requested':
case 'STF':
return 'This transaction will not succeed due to price movement. Try increasing your slippage tolerance. Note fee on transfer tokens are incompatible with Uniswap V3.'
return 'This transaction will not succeed due to price movement. Try increasing your slippage tolerance. Note fee on transfer and rebase tokens are incompatible with Uniswap V3.'
case 'TF':
return 'The output token cannot be transferred. There may be an issue with the output token.'
return 'The output token cannot be transferred. There may be an issue with the output token. Note fee on transfer and rebase tokens are incompatible with Uniswap V3.'
default:
return 'Unknown error. Please join the Discord to get help.'
}

@ -164,8 +164,8 @@ export default function Updater(): null {
cancellations: chunkedCalls.map((chunk, index) => {
const { cancel, promise } = retry(() => fetchChunk(multicall2Contract, chunk, latestBlockNumber), {
n: Infinity,
minWait: 2500,
maxWait: 3500,
minWait: 1000,
maxWait: 2500,
})
promise
.then(({ results: returnData, blockNumber: fetchBlockNumber }) => {