ajb413 / comet-liquidator

A continuously running script that liquidates Compound III accounts that violate collateral requirements.
24 stars 19 forks source link

no pool config found #2

Closed zikkuratti closed 7 months ago

zikkuratti commented 10 months ago

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)

zikkuratti commented 10 months ago

THEN I ADD THIS

 ...defaultPoolConfig,
 ...{
   exchange: Exchange.Uniswap,
   swapViaWeth: true,
   uniswapPoolFee: 500
 }

}, STMATIC: '0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4',

I GET THIS

Attempting to liquidate via OnChainLiquidator @0x0dAf65ee5C44293a5500EE8643d90d095FB725b6 Sending a public txn Failed to liquidate via 0x0dAf65ee5C44293a5500EE8643d90d095FB725b6: insufficient funds for intrinsic transaction cost [ See: https://links.ethers.org/v5-errors-INSUFFICIENT_FUNDS ] (error={"reason":"processing response error","code":"SERVER_ERROR","body":"{\"jsonrpc\":\"2.0\",\"id\":109,\"error\":{\"code\":-32000,\"message\":\"insufficient funds for gas * price + value\"}}","error":{"code":-32000},"requestBody":"{\"method\":\"eth_sendRawTransaction\",\"params\":[\"0xf902cd808545d964b80083e4e1c0940daf65ee5c44293a5500ee8643d90d095fb725b680b902648160b7e2000000000000000000000000f25212e676d1f7f89cd72ffee66158f5412464450000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b00000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000003a58a54c066fdc0f2d55fc9c89f0415c92ebf3c40000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000a968163f0a57b400000820136a0404ad26d72cac03a92388f8e86299090e59c66fca7f7d9fa64461c9f6af4149ea03661df7d391561c151543ee5147134bbc5c585c1eeac5b38b2e572b45d37d105\"],\"id\":109,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"https://polygon-mainnet.g.alchemy.com/v2/XXXXXXXXXXXXX"}, method="sendTransaction", transaction="0xf902cd808545d964b80083e4e1c0940daf65ee5c44293a5500ee8643d90d095fb725b680b902648160b7e2000000000000000000000000f25212e676d1f7f89cd72ffee66158f5412464450000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000b0b195aefa3650a6908f15cdac7d92f8a5791b0b00000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000003a58a54c066fdc0f2d55fc9c89f0415c92ebf3c40000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000a968163f0a57b400000820136a0404ad26d72cac03a92388f8e86299090e59c66fca7f7d9fa64461c9f6af4149ea03661df7d391561c151543ee5147134bbc5c585c1eeac5b38b2e572b45d37d105", code=INSUFFICIENT_FUNDS, version=providers/5.7.2)

NEED I GOT ETH and MATIC or matic is enough?

zikkuratti commented 10 months ago

after gasLimit: '30000000', gasPrice: '75',

he still cant see any sucess but script works as loop looking nice but how to make some transactions and got liguidation enabled address

pamarthisai commented 7 months ago

@zikkuratti hi did you get any solution

ajb413 commented 7 months ago

Error says that there isn't a pool config. This is because I made this repository before stmatic was a collateral on polygon cUSDCv3. So you'll need to add it yourself. Take a look at an existing asset like WBTC and use it to make new references to stmatic. https://github.com/ajb413/comet-liquidator/blob/master/scripts/liquidation_bot/liquidateUnderwaterBorrowers.ts#L54