Monday, October 30, 2023

Terra: WhiteWhale trading bot

(not) fun with @WhiteWhaleDefi trading bot on @terra_money, a case study.

  1. first 'problem' (not really): establish a wallet (addr) and substitute that mnemonic into .env



It doesn't work. Why?



Because src/index.ts points to ./src/terra.env

NOT .env, as it should.

Fixed it.

  1. the @SkipProtocol just doesn't work for me.


By default, Skip is enabled. I could not get the bot to initialize, at all, with skip enabled.

USE_SKIP="0" allowed me to advance, ...to the next problem, but we'll get to that.

  • ANYBODY: have you got the bot working with USE_SKIP?

  1. Next problem, ... a two-parter: RPC_URL=[""]


    1. Okay, they say 'changeme' but 'changeme' to what?

    2. You CAN disable the default, but when you do, it comes up with a list of RPCs (YAY!) but then 

    3. whispernode didn't work for me (BOO!).

    So, I set RPC_URL to @Allnodes RPC.
For those of you following along, I made the RPC_URL change manually and locally (that is to say: this is NOT ON GITHUB MAIN!), it is as follows:

  • RPC_URL=["https://terra-rpc.publicnode.com:443"]

Thanks, @Allnodes! 

4. This is documented ... nowhere but the source code... tf?

You need to set a

SETUP_TYPE variable

in your .env file. 



What value? You have to look that up in the source code, too.

If you don't, the system fails during initialization.

I did this:

SETUP_TYPE="DEX"

5. The Show Stopper.



terra1lzjxqwthp9kec347etq05c60lc4ge3ym9nrkar

Who owns this wallet?

Why is it not in the README?
Why is there no reference to it in the source code?
Why is the bot trying to interact with it?

So close, yet what I get is:

"Yes, we have no bananas." 🍌🙄😭

Is there anyone who has set up the @WhiteWhaleDefi  terra bot with USE_SKIP="0" that has encountered this issue with this weirdo-wallet-out-of-nowhere-that-definitely-does-not-map-to-the-mnemonic-I-entered-into-.env?

If so, what did you do to correct this problem?


No comments:

Post a Comment