Skip to content
This repository was archived by the owner on Dec 7, 2022. It is now read-only.
This repository was archived by the owner on Dec 7, 2022. It is now read-only.

Keep showing "Object is of type 'unknown'" error when running bot on mainnet #54

@KatsuragiCSL

Description

@KatsuragiCSL
bot/index.ts:63:13 - error TS2571: Object is of type 'unknown'.

63         if (err.message === 'Too much pending tasks' || err.message === 'async-lock timed out') {
               ~~~
bot/index.ts:63:57 - error TS2571: Object is of type 'unknown'.

63         if (err.message === 'Too much pending tasks' || err.message === 'async-lock timed out') {

Seems it got some unexpected error? Do anyone have any idea how to deal with it?

Edit: by viewing debug logs, it seems to be the problem of cannot estimate gas; transaction may fail or may require manual gas limit, which due to "deprecated token pairs". I wonder is there a good way to know which token pairs are not deprecated?...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions