Bot Swappers
This bounty will analyse the behaviour of swap bots in Terra for different metrics and compare it to average swappers or humans. I will use a dynamic definition of bot swappers using the new parameters functionality in Flipside's tables to let the reader make its own assumptions.
Bot definition
I will define an address as a bot when for the last 30 days one daily count is bigger than the parameter max_txs_humans
. This is achieved calculating the maximum daily txs per address in a CTE and joining it with the swap information from terra.swaps
table. Note that the time frame is also a parameter, so the analysis can be extended to 60 and 90 days.
From Figures 1. to 3., a important difference in behaviour can be identified: bots make less trades but bigger volume than humans. Humans account for 200k swaps for the 74k from bots, but volume is 248k USD compared to over 2B. Scale is just totally different! There seems to be some missing data in the beginning of April for these high value transactions which bots are identified with (or maybe there is a bot holiday I don't know about and all bots were having some rest from their busy lives).
Figure 4. shows the fee in percentage of swapped volume by address type. There is a change in the trend around mid April when fee percentage by bots is bigger then human. It can also be appreciated in the relation between bot curves in Figures 2. and 3. compared to the flatter profiles for humans. All in all it is a very small fee in any case (below 0.2% for the most part).
Figure 6. shows the number of swaps for each address type by day of the week and hour of the day. Is an attempt to be creative with visualizations and show seasonal relationships. Although the readibility of the graphs could be improved, it shows very clear patterns in human behaviour, concentrated from noon til late afternoon (UTC) and on Sundays and Mondays. Bot patterns look more random at first glance, but this promising visualization deserves a closer look to improve the information transmission.
Figure 7. shows the top 10 swaps pairs for bots, with a log scale on the number of swaps. The LUNA-UST pair is used in over 98.5% of the swaps (72.9k over 74k).
Extra Insight - Bot swaps vs LUNA price correlation
Since the analysis of the popular pairs among bot swappers led to the fact that almost all swaps are LUNA-UST, I decided to confirm the correlation between the LUNA price and bot activity.
Figure 8. shows the positive correlation between LUNA price and bot swapping activity.