ajb413 / comet-liquidator Goto Github PK
View Code? Open in Web Editor NEWA continuously running script that liquidates Compound III accounts that violate collateral requirements.
A continuously running script that liquidates Compound III accounts that violate collateral requirements.
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)
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.
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'
}
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.