v0.6.0 - Support added for BUSD liquidity, dropped support for PcS v1
This release adds support to trade against both BNB and BUSD liquidity (more tokens could be added easily if needed) via #25 .
The price displayed in status messages is taken from the largest LP, counted by number of tokens in the pool. It is believed that this represents the most stable price for this token and thus is the better one to use for visual representation.
At the moment when the script buys or sells, the price for each of the following swapping paths will be compared, and the best will be selected (which maximizes the output):
- For buying:
- BNB -> Token (using BNB liq)
- BNB -> BUSD -> Token (using BUSD liq)
- For selling:
- Token -> BNB (using BNB liq)
- Token -> BUSD -> BNB (using BUSD liq)
Please note that the script still uses your BNB to buy, and still gives you back BNB when selling. Only the swapping path (which liquidity is used) has changed. When using non-BNB liquidity, the script automatically does 2 swaps in one single transaction, exactly like the official PancakeSwap client does.
Support for PcS v1 has been dropped to keep complexity down.