Giter Club home page Giter Club logo

comet-liquidator's Introduction

Hi there ๐Ÿ‘‹

I'm Adam. I'm currently leading Developer Relations at Compound Labs.

Website GitHub Twitter LinkedIn Medium

comet-liquidator's People

Contributors

ajb413 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

comet-liquidator's Issues

code running error with the mainnet contract

Dear Sir,

I am still having problems with the comet-liquidator bot provided by alchemy. I may add the following code run lines for the Alchemy comet-liquidator bot; for the mainnet smart contract address 0xC70e2915f019e27BAA493972e4627dbc0ED7a794 the following execution information code appears:

Checking 52 addresses [0xE5E548Dbd6A087A24a147890a2d55bd5157e6c6F,0xbD3ABa5983DB94Ae2d079fa393A90fd4D48A6F62,0xb82eE473459EE0628642950a14a22e49b50C9845...]
Attempting to liquidate 0xFEd29d8e6536f90Edb61395F3Be9fa8bb1A9a37D via OnChainLiquidator @0xC70e2915f019e27BAA493972e4627dbc0ED7a794
[simulateTxWithAlchemyApi] {
changes: [],
gasUsed: undefined,
error: { message: 'execution reverted', revertReason: undefined }
}
0x40B38765696e3d5d8d9d834D8AaD4bB6e418E489 {}
Successfully liquidated 0xFEd29d8e6536f90Edb61395F3Be9fa8bb1A9a37D via 0xC70e2915f019e27BAA493972e4627dbc0ED7a794
Attempting to liquidate 0x90dD338A1e89C67b22f580f1725F1a8841058E83 via OnChainLiquidator @0xC70e2915f019e27BAA493972e4627dbc0ED7a794
[simulateTxWithAlchemyApi] {
changes: [],
gasUsed: undefined,
error: { message: 'execution reverted', revertReason: undefined }

I would like to know how to correct the error above from the code.

missing directories in soruce code + missing objects in hardhat

Hi, first of all thanks for sharing this code. However I am unable to replicate successful results as I encounter the following issues:

  • Missing directories: in the file scripts/liquidation_bot/index.ts, there an import error as the project cannot find the following imports (line 3 to 6):
    import {
    CometInterface,
    OnChainLiquidator
    } from '../../build/types';

  • 'hardhatConfig.networks' is possibly 'undefined'.ts(18048)
    I encounter this one in line 79 inside hardhat.config.ts

  • Object literal may only specify known properties, and 'etherscan' does not exist in type 'HardhatUserConfig'.ts(2353)
    this one can be found in line 137 inside hardhat.config.ts

there are a few more but hopefully you can help

many thanks

no pool config found

on a test and prod node i get every time after check 1000 1000 1000 387 ... im trying to delete MATICX but its still ruin, got some advices? also this wallet f3C4 leads me to StMATIC

Checking for purchasable collateral
There is purchasable collateral
Error: getPoolConfig > no pool config found for 0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4
at getPoolConfig (C:\Users\zikkuratti\comet-liquidator\scripts\liquidation_bot\liquidateUnderwaterBorrowers.ts:257:11)

noNetwork error

Any ideas about how to get around the noNetwork error, as seen in the video walkthrough by Adam when trying to liquidate multiple positions at once (when he first demo'd running on Polygon in Test mode)?

The script seems to stop after liquidating one position even if multiple liquidatable positions are available.

Copied the error below:

Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)
at Logger.makeError (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/logger/src.ts/index.ts:269:28)
at Logger.throwError (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/logger/src.ts/index.ts:281:20)
at EthersProviderWrapper. (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:483:23)
at step (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
at Object.throw (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
at rejected (/Users/Akash1/Desktop/comet-liquidator/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
at processTicksAndRejections (node:internal/process/task_queues:95:5) {
reason: 'could not detect network',
code: 'NETWORK_ERROR',
event: 'noNetwork'
}

Lots of errors with this script

I'm getting a long list of errors with this code, mainly undefined errors, in Hardhatconfig, index.ts and sendTranscation.ts. If anyone can help me out, that would be very much appreciated. Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.