Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pfed-prog/parsiq-axs
In this project we utilize PARSIQ Smart Triggers and Google Spreadsheets integration to track and visualize AXS token transfers on Ethereum and Binance Smart Chain that with the most liquid exchanges.
https://github.com/pfed-prog/parsiq-axs
axie-infinity csv dspyt ethereum jupyter-notebook parsiq python3
Last synced: 29 days ago
JSON representation
In this project we utilize PARSIQ Smart Triggers and Google Spreadsheets integration to track and visualize AXS token transfers on Ethereum and Binance Smart Chain that with the most liquid exchanges.
- Host: GitHub
- URL: https://github.com/pfed-prog/parsiq-axs
- Owner: Pfed-prog
- License: mit
- Created: 2021-11-08T20:54:28.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T10:50:15.000Z (7 months ago)
- Last Synced: 2024-10-07T23:33:34.064Z (about 1 month ago)
- Topics: axie-infinity, csv, dspyt, ethereum, jupyter-notebook, parsiq, python3
- Language: Jupyter Notebook
- Homepage: https://dspyt.com/blockchain-insights-with-parsiq-triggers-for-axie-infinity/
- Size: 443 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PARSIQ-AXS
In this project we utilize PARSIQ Smart Triggers and Google Spreadsheets integration to track and visualize AXS token transfers on Ethereum and Binance Smart Chain that involves most liquid exchanges.
AXS is an Ethereum token that powers Axie Infinity, a blockchain-based game where players can battle, collect, and build a digital kingdom for their pets. AXS holders can claim rewards for staking their tokens, playing the game, and participating in key governance votes.
The token is available on multiple chains including Ethereum and Binance Smart Chain.
On April 28 2021 the game has made a significant update introducing Ronin Bridge, Axie Infinity Ethereum sidechain.
The contract has since become the crucial link in the Axie Infinity ecosystem and largely contributes to the price action of AXS. With the update the bridge has become the only available option for Axie marketplace, breeding, and morphing contracts.
The idea for the project comes from the fact that on the Binance Exchange the highest earning product in Locked staking is AXS with an estimated APY of 131.25% far outperforming any similar prooduct on the exchange.
![image](https://user-images.githubusercontent.com/66903336/140820286-7b9a6fd7-2635-4095-9783-1931f02ea1ac.png)
In order to justify such returns the company would usually rely on large inflows and minor outflows from the cryptocurrency. Therefore, monitoring the most liquid day-to-day endpoints provides an indicator of the success of the staking solution.
# Triggers
### Trigger for Token transfer from or to Binance Account of SPL or AXS token on Ethereum
Apart from collecting the data from the transaction we collect data using Chainlink and CryptoRank.```javascript
stream _
from TokenTransferswhere (@from == AXScontract || @to == AXScontract || @from == Binance14 || @to == Binance14) && (@erc20.symbol == "AXS" || @erc20.symbol == "SLP")
process
let symb = @erc20.symbol
let cryptorankFiatRate = getRate(symb)
let fiat_value = @value * cryptorankFiatRate.value
let fiat_decimals = @erc20.decimals + cryptorankFiatRate.decimals
let eth_usd_pair = getChainlinkPriceFeedPair("ETH/USD")
let score_from = getScore(@from)
let score_to = getScore(@to)
emit {@action_type, @block_hash, @code_address, @from, @gas_used, @origin, @to, @value, fiat_value, fiat_decimals, eth_usd_pair, @tx_hash, symb, @block_timestamp, @gas_price, score_from, score_to }
end
```### Trigger for Token transfer from or to Binance Accounts of AXS token on Bsc
```javascript
stream _
from BscBEP20Transferswhere @token.contract == ContractBSC && (@from in BSCdata || @to in BSCdata )
process
emit { @from, @to, @value, @token, @transaction, @block }
end
```# User Data
**Primitives**
![image](https://user-images.githubusercontent.com/66903336/140822828-30294eb4-e2d0-40ed-a3a7-e46cc74794bf.png)
![image](https://user-images.githubusercontent.com/66903336/140831152-beb22e53-efe8-45d0-9858-7ff83208e860.png)
**Table**
![image](https://user-images.githubusercontent.com/66903336/140823112-159f545c-bcb1-4177-9f4d-97e7c1eb9a36.png)
![image](https://user-images.githubusercontent.com/66903336/140822678-717d0201-4b88-4ba4-9dd6-378ff47500cf.png)
# Results
### Data and Notebook
* [Binance Smart Chain Data](https://docs.google.com/spreadsheets/d/15TcqKG7zHvXzIhEKgtXlkYvKwdJCZJuSti52J2Q5mNk/edit?usp=sharing)
* [Ethereum Data](https://docs.google.com/spreadsheets/d/1ylJp5Y7eoVZUFRcNT3NapTdZa8b6Zd2geQpWZkEongc/edit?usp=sharing)
* [Python Notebook on Kaggle](https://www.kaggle.com/pavfedotov/parsiq-axs)
## Analysis
### Ethereum Axie Infinity
There are 231 AXS token transactions in our ethereum dataset.
Only 46 are from Ronin and Binance accounts.![image](https://user-images.githubusercontent.com/66903336/140833808-441336cc-4383-43b4-a40c-067279d44e0a.png)
Meanwhile, the rest 80% are coming to the Ronin and Binance accounts.
![image](https://user-images.githubusercontent.com/66903336/140834230-60f4fdaa-1ebd-4ddd-ba82-ded30833aebc.png)
There are also more transactions to the native staking solution rather than Binance by a factor of 2.
Nevertheless, when we analyze the volume of outflows vs. inflows the sum of outflows dominate.
![image](https://user-images.githubusercontent.com/66903336/140838512-fdd1d2bb-97ab-45e3-98ba-31a70fd61d57.png)
This would indicate more incoming users and one or few significant withdrawals from Binance.
We look at the more granular data and notice that one account is responsible for such bleak snapshot of AXS flows.
![image](https://user-images.githubusercontent.com/66903336/140838840-b8bff3aa-e094-453f-805e-8171dff13f87.png)
We plot full ethereum dataset value of transactions against time.
When plotted the inflows have a lot of spikes and more numerous for Binance.
![image](https://user-images.githubusercontent.com/66903336/140849815-79710dd7-80db-4ae8-8070-70d36c1cf141.png)
While the outflows are more steady.
![image](https://user-images.githubusercontent.com/66903336/140850027-cab9d8b4-02cb-4f46-af99-ffdc9ac723f8.png)
The following picture is very similar for only AXS. With two spikes in Binance outflows against 0 in Ronin Bridge.
![image](https://user-images.githubusercontent.com/66903336/140851348-01692e99-9051-4da4-aa0a-de281140f1d5.png)
We would need to further incorporate more data in our analysis to determine the scope of weekly and monthly flows in AXS token.
### BSC AXS
In our BSC dataset we have 157 observations. The count of transactions is in favour of outflows from Binance Hot Wallets.
![image](https://user-images.githubusercontent.com/66903336/140844882-8a1650fc-ebbf-4913-9605-426e091543fb.png)
Whereas the sum of transferred AXS value out of binance is nearly identical to the inflows.
![image](https://user-images.githubusercontent.com/66903336/140845336-028a5cb7-c38a-483e-9b4b-5ace63128f93.png)
### Comparison of AXS on BSC and Ethereum
The volume of transactions is much greater on Ethereum of AXS than on Binance Smart Chain.
![image](https://user-images.githubusercontent.com/66903336/140845836-17679545-5f28-4065-bd0f-1597593be00f.png)
### Score of the addresses (in-built PARSIQ function)
In our AXS dataset on Ethereum we also obtained scores for addresses by using `getScore` in our trigger.
What is interesting is that the system scores higher the Binance account (85) rather than Ronin Bridge (76).
Besides, the average address that transacts to Ronin has score of 79. For Binance this figure is 80.
For outflows the number is 79 for Ronin and 77 for Binance.# Further Resources
* [CryptoPunks with PARSIQ Github Repository](https://github.com/Pfed-prog/PARSIQ-CryptoPunks)
* [Axie Infinity Great Migration FAQ](https://www.notion.so/axie/Great-Migration-FAQ-fc64fd460c8046b2a45d8798d06c0feb)
* [This Project as a blog post](https://dspyt.com/blockchain-insights-with-parsiq-triggers-for-axie-infinity/)