dydxprotocol / v4-clients

Other
63 stars 52 forks source link

cancel_order does not seem to do anything on the Sepolia tesnet #238

Open henryksarat opened 3 days ago

henryksarat commented 3 days ago

On the Sepolia tenet I am trying to programmatically close my order_id of "639edc68-eafc-5fcf-963f-e86da7f6ceaf" with the following code:

cancel_order(
   wallet,
    market_order_id,
    good_til_block=good_til_block
  )

The response I receive and print out is the following:

tx_response {
  txhash: "79E13B2E144EDC40FD336DB02BFB520D122496A05CE8BF62A2FB1D941AA5F8EF"
  raw_log: "[]"
}

However, when I look up this txhash on etherscan, it can't be found: https://sepolia.etherscan.io/tx/0x79E13B2E144EDC40FD336DB02BFB520D122496A05CE8BF62A2FB1D941AA5F8EF

I am able to manually close my limit orders on the dydx v4 testnet UI. The order_id above I've left open just in case it helps in any debugging.

Additional information: I am able to successfully create market orders programmatically using "place_order".

linear[bot] commented 3 days ago

GH-67 cancel_order does not seem to do anything on the Sepolia tesnet

samtin0x commented 9 hours ago

Hi @henryksarat , let me take a look at this.

Just a quick note - the explorer you're currently using isn't the correct one for dydx transactions. Since dydx operates on Cosmos (Tendermint), which is a non-EVM chain, you won’t find transaction hashes on Etherscan. You'll need to use a Cosmos-compatible explorer to track these transactions.

This one should work: https://testnet.dydx.explorers.guru/transaction/1D9EBEC05D59E890CE583FA67EE388A7B29A39B7194E2AAFAFDB8AEF8A7C875D?height=21432415