geniusyield / smart-order-router

Open-source Smart Order Router framework to connect liquidity from the Genius Yield DEX

Home Page:https://www.geniusyield.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SOR | Wrong strategy value, strange error

4TT1L4 opened this issue · comments

commented

Problem:

  • If an invalid BOTC_EXECUTION_STRAT value is set, the logged error message is not really helpful:
geniusyield-orderbot-exe: user error (Parse failure: could not parse variable "BOTC_EXECUTION_STRAT" into type [Char])

The message contains some information about which env var is not correct, but it would be nice to print the possible values instead.

Solution:

  • Improve the validation of the BOTC_EXECUTION_STRAT value and print a more helpful error message, so the users could easily fix config errors.