Algo-3. Tinyman Assets
- Before the Tinyman hack, what were the most popular assets to swap with Algo in the Tinyman Dex[App ID 350338509]? Does the average amount of algo swapped changed based on the asset that it was swapped for?
The Tinyman Hack
On January 1st the Decentralised Finance platform built on Algorand network Tinyman was attacked and approximately $3 million of assets were withdrawn from a pool without authorization, according to their official blog statement.[1]
The attack was orchestrated by unauthorized users on some of Tinyman’s pools by exploiting a previously unknown vulnerability in the Tinyman contracts. The exploit resulted in a drain of certain ASAs in the first hours of attack which led to increased volatility in the immediate aftermath.[2]
Most Popular Asset Definition
- Top 25 Assets by Amount of Algo Swapped.
- Top 25 Assets by Number of Swaps
Analysis Methodology
This was a difficult analysis and took a while to connect the dots, but here is how it is all broken down.
-
Asset_Id 0 is Algorand's native token
Algo
-
We are only considering transactions before BLOCK_ID
18363443
, i.e MAX BLOCK_ID before the hack of 01-Jan-2022 -
First we look at all the
tx_group_id
that have interacted with app_id =350338509
-
Then we filter out all transactions with the
tx_group_id
found above -
Now the challenge was there were transactions that weren't particularly swaps but just algo transfers, to filter out only the swap transactions here is the path chosen:
- Rank all transactions filtered by
tx_group_id
and ordered byintra
desc - The transaction with rank = 1 and Asset_Id !=0 is the Asset Algo transaction with the Asset information that was swapped to.
- The transaction with rank = 2 and Asset_Id =0 is the Algo transaction with the Algo information that was swapped from.
- Rank all transactions filtered by
-
Create a pair from the Asset with rank = 1 and Algo
-
Filter and select transactions only with Pairs that contain with word
Tinyman
since these are the ones we are concerned about.
Most Popular Assets by Number Swaps
Here is the list of the most popular assets sorted by the number of Swaps. USDC is the most popular asset Algo is swapped with by far as compared to other assets Algo is swapped with, even YLDY.
Algo-->USDC
with 78.5K swapsAlgo-->YLDY
with 28.8K swapsAlgo-->USDt
with 19.7K swaps
Most Popular Assets by Amount of Algo Swapped
Here is the list of the most popular assets sorted by the amount of Algo swapped, YDLY aka Yieldly is the most popular asset Algo is swapped with by far as compared to other assets Algo is swapped with.
Algo-->YLDY
with 25.08M Algos swappedAlgo-->USDC
with 5.5M Algos swappedAlgo-->OPUL
with 2.6M Algos swapped