atomicDEX-API icon indicating copy to clipboard operation
atomicDEX-API copied to clipboard

Maker swap with AXE coin may fail with TakerFeeValidateFailed error

Open dimxy opened this issue 5 months ago • 3 comments

Description A swap with AXE maker coin may fail with the following error in mm2.log or swap events:

"data" : {
   "error" : "maker_swap:866] utxo_common:2315] Unexpected opcode OP_PUSHBYTES_69"
},
"type" : "TakerFeeValidateFailed"

Additional info The maker_swap:866 line is related to the pubkey_from_script_sig() call. Looks like an incorrect parsing of the transaction input for this coin.

dimxy avatar Aug 14 '25 13:08 dimxy

could you link the failing tx from a blockchain explorer (if one exists for this coin xD)

mariocynicys avatar Aug 14 '25 14:08 mariocynicys

could you link the failing tx from a blockchain explorer (if one exists for this coin xD)

You are right to assume that this coin has no block explorer 😅

shamardy avatar Aug 14 '25 17:08 shamardy

Here is the tx itself with the problem scriptSig:

            "data" : {
               "tx_hash" : "751fb56af534657e12e234f8b9cbddc29fac4b7e9289c08fdd4485653d9110a0",
               "tx_hex" : "01000000020eb1f26ed67e9d99a3e1974dda4103975362cf42831a9234deaf92dedf8017e7020000006845304202205fa91d3dc0c88b1b0c2b5ecdf08b49c0458b6f10ff6b758b82c1934210f367fc021e51a96cf672048a44fef3256ba9a061b408f842b6b523624c28d6b5bbd1680121023c5ba1d7ef6fa015eb33defb3aba2a961898a51bbb7ff30344d07ba75ad3f289ffffffff2b82df45f7f8ebc7b562e0c3c8d4c99607fd3a11fa7b9dcac00d5378b30dfbe0000000006a4730440220517c0815e6068e8436d238ffd4c1dacecd3cc68a6bdc82332787567d18a23398022004a96396198a954890b99fd68e72b8531e41a13f7b8f1b8611a264d84364532f0121023c5ba1d7ef6fa015eb33defb3aba2a961898a51bbb7ff30344d07ba75ad3f289ffffffff02f1c30100000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88ac4965f405000000001976a91484c74592ed8ac05340906784d277ca4d4e0af08e88ac59439d68"
            },
            "type" : "TakerFeeSent"

(There is also a new test with the scriptSig)

dimxy avatar Aug 14 '25 17:08 dimxy

fixed https://github.com/KomodoPlatform/komodo-defi-framework/pull/2591

dimxy avatar Nov 18 '25 16:11 dimxy