Reidmcc / rockfish

Rockfish is an arbitrage bot for the Stellar Decentralized Exchange (SDEX)
MIT License
71 stars 23 forks source link

error: result code details: tx code =%!(EXTRA string=tx_failed, string=, opcodes =, []string=[op_malformed]) #38

Open dpblnt opened 2 years ago

dpblnt commented 2 years ago

Describe the bug

2021/12/02 22:06:42 ***** Minimum profit ratio was met, proceeding to payment! *****
2021/12/02 22:06:42 
2021/12/02 22:06:42 Best path was  -> USDC -> BTC  -> with return ratio of 1.001342
2021/12/02 22:06:42 
2021/12/02 22:06:42 receiveAmount string set to: -11.0000000
2021/12/02 22:06:42 maxPayAmount string set to: -11.0000000
2021/12/02 22:06:42 reloading sequence number
2021/12/02 22:06:42 submitting tx XDR to network (async)
2021/12/02 22:06:42 (async) error: result code details: tx code =%!(EXTRA string=tx_failed, string=, opcodes =, []string=[op_malformed])

To Reproduce run the bot

Version

  version: master:v1.0.0-rc-2-g67ead284
  git branch: master
  git hash: 67ead284dda48845c2cf99a9dc9337d89dac45da
  build date: 20211202T171415Z
  GOOS: linux
  GOARCH: 386
dpblnt commented 2 years ago

SOURCE_SECRET_SEED was not set

dpblnt commented 2 years ago

SOURCE_SECRET_SEED did not solve it This time there is XDR in the log

2021/12/02 22:45:15 
2021/12/02 22:45:15 Best path was  -> BTC -> BTC  -> with return ratio of 1.0021957
2021/12/02 22:45:15 
2021/12/02 22:45:15 orderbook for USDC|GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN vs BTC|GDPJALI4AZKUU2W426U5WKMAT6CN3AJRPIIRYR2YM54TL2GDWO5O2MZM updated
2021/12/02 22:45:15 receiveAmount string set to: -11.0000000
2021/12/02 22:45:15 maxPayAmount string set to: -11.0000000
2021/12/02 22:45:15 reloading sequence number
2021/12/02 22:45:15 pre-XDR raw was: &{%!s(*xdr.Transaction=&{{0 0x90717e0} 100 165574459594375169 <nil> {0 <nil> <nil> <nil> <nil>} [{<nil> {2 <nil> <nil> 0x893f1c0 <nil> <nil> <nil> <nil> <nil> <nil> <nil> <nil>}}] {0}}) Public Global Stellar Network ; September 2015 %!s(uint64=100)}
2021/12/02 22:45:15 tx XDR: AAAAALfVm+jT628T1XNDAdy4eQyeqUbx13x/GzP1XyLdA0OGAAAAZAJMPRgAAAABAAAAAAAAAAAAAAABAAAAAAAAAAIAAAAA//////lxiIAAAAAAt9Wb6NPrbxPVc0MB3Lh5DJ6pRvHXfH8bM/VfIt0DQ4YAAAAA//////lxiIAAAAACAAAAAUJUQwAAAAAA3pAtHAZVSmrc16nbKYCfhN2BMXoRHEdYZ3k16MOzuu0AAAABQlRDAAAAAAApOmMamdZfyMiYysumuD7WccmGIBUg0177NK+Ddu82JQAAAAAAAAAB3QNDhgAAAEAehdail9BHqGta8Q483NYofKMVZAeOk/yvV5keZ1YN8ivggufgfFdso02U7uVWrq+a9a1pYXP8FsqqiVwe59oA
2021/12/02 22:45:15 submitting tx XDR to network (async)
2021/12/02 22:45:15 (async) error: result code details: tx code =%!(EXTRA string=tx_failed, string=, opcodes =, []string=[op_malformed], string=, rcs = , *horizon.TransactionResultCodes=&{tx_failed [op_malformed]}, string=err = , <nil>)
z3r0d0n3 commented 2 years ago

same error

eumemic commented 5 months ago

I see this error and a few others:

2024/04/13 00:34:40 (async) error: tx_bad_seq, setting flag to reload seq number
2024/04/13 00:34:40 (async) error: result code details: tx code =%!(EXTRA string=tx_bad_seq, string=, opcodes =, []string=[])
2024/04/13 00:34:40 (async) error: result code details: tx code =%!(EXTRA string=tx_failed, string=, opcodes =, []string=[op_over_source_max])
2024/04/13 00:34:41 (async) error: no result codes from horizon: result_codes not populated