liquidation-bot icon indicating copy to clipboard operation
liquidation-bot copied to clipboard

Error when running on Kovan

Open samlaf opened this issue 3 years ago • 0 comments

Gearbox liquidation bot started!
Address provider: 0xa526311c39523f60b184709227875b5f34793bd4 
[src/main.rs:42] &config = Config {
    chain_id: 42,
    chain_id_name: "KOVAN",
    private_key: <HIDDEN>,
    eth_provider_rpc: "https://kovan.infura.io/v3/45b291151b18471fb73a0d7782ca8a8a",
    address_provider: 0xa526311c39523f60b184709227875b5f34793bd4,
    path_finder: 0x434895faaf71004841869b5b3a8ad7c9cb79ae94,
    bot_address: 0x72c675f46d9dd2ea3d31e09e8c28d21011202b34,
    ampq_addr: "",
    etherscan: "https://kovan.etherscan.io",
    charts_url: "https://charts.kovan.gearbox.fi/",
    liquidator_enabled: false,
}
Signer address: <HIDDEN>
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: MiddlewareError(MiddlewareError(JsonRpcClientError(JsonRpcError(JsonRpcError { code: -32015, message: "VM execution error.", data: Some(String("Reverted 0x")) }))))', src/credit_service/service.rs:84:14

This call is failing:

        let cm_list = self
            .dc
            .get_credit_managers_list(self.dc.address())
            .call()
            .await
            .unwrap();

Seems like the data_compressor on kovan doesn't recognize the getCreditManagersList function..? This is the address of the dc: https://kovan.etherscan.io/address/0xcbd0ae32a74c7cbeb774a9a07ec744f4f53afd6d#code The source code has not been published. Could it be that this is the wrong contract?

samlaf avatar Apr 29 '22 00:04 samlaf