Skip to content

Unable to Activate the Flashbot Option via Yarn Deploy #1

@AMH2022

Description

@AMH2022

Hi All and many thanks to Daniel for developing this interesting bot. To begin, I am a real beginner with no knowledge of JS, TS, or Sol coding and programming. I am just trying to understand what it takes to build and interact with web3 and blockchain Apps using practical examples like Liqbot. I was able to clone the repo to vscode and run it successfully but without the flashbot option. Using a Goerli testnet (or Mainnet) node on Alchemy, I was able to register eth-call requests which means the bot would have triggered liquidations if any trove ICR dropped below the MCR. I was not able to assess this as no liquidation events happened (Eth price on the rise) since I started few days back.

The issue is that I was unable to deploy the flashbot smart contract using "yarn deploy". This is what I got whenever I tried:

PS C:\Users\Mine\Documents\GitHub\liqbot> yarn deploy
yarn run v1.22.19
$ node --loader ts-node/esm scripts/deploy.ts
(node:7664) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use node --trace-warnings ... to show where the warning was created)
<ref *1> Error: spawnSync yarn ENOENT
at Object.spawnSync (node:internal/child_process:1111:20)
at spawnSync (node:child_process:814:24)
at execFileSync (node:child_process:857:15)
at file:///C:/Users/Mine/Documents/GitHub/liqbot/scripts/deploy.ts:9:3
at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
at async loadESM (node:internal/process/esm_loader:88:5)
at async handleMainPromise (node:internal/modules/run_main:61:12) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawnSync yarn',
path: 'yarn',
spawnargs: [ '--cwd', 'contracts', 'deploy', '--network', 'external' ],
error: [Circular *1],
status: null,
signal: null,
output: null,
pid: 0,
stdout: null,
stderr: null
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


Doing some research, it appears that the error "spawnSync yarn ENOENT" is a well known problem. Being a novice, I was unable to resolve by myself and thought of raising this issue here.

My environment is:

  • Windows 10/Pro Version 20H2
  • Vscode 1.69.0
  • Node 16.15.1
  • Yarn 1.22.19
  • Npm 8.13.2

On a last note, whenever I check npm version, I get the following warning:
PS C:\Users\Mine\Documents\GitHub\liqbot> npm -v
npm WARN config global --global, --local are deprecated. Use --location=global instead.
8.13.2

I will appreciate any guidance on how to deploy and enable the flashbot liquidation.
Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions