{"id":15451124,"url":"https://github.com/pfed-prog/parsiq-axs","last_synced_at":"2025-04-19T23:34:19.512Z","repository":{"id":103562772,"uuid":"425990653","full_name":"Pfed-prog/PARSIQ-AXS","owner":"Pfed-prog","description":"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.","archived":false,"fork":false,"pushed_at":"2024-04-29T10:50:15.000Z","size":454,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-19T23:34:12.568Z","etag":null,"topics":["axie-infinity","csv","dspyt","ethereum","jupyter-notebook","parsiq","python3"],"latest_commit_sha":null,"homepage":"https://dspyt.com/blockchain-insights-with-parsiq-triggers-for-axie-infinity/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pfed-prog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-08T20:54:28.000Z","updated_at":"2024-10-12T16:40:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"965576f0-217e-4dab-9217-8524b361920f","html_url":"https://github.com/Pfed-prog/PARSIQ-AXS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pfed-prog%2FPARSIQ-AXS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pfed-prog%2FPARSIQ-AXS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pfed-prog%2FPARSIQ-AXS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pfed-prog%2FPARSIQ-AXS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pfed-prog","download_url":"https://codeload.github.com/Pfed-prog/PARSIQ-AXS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249830835,"owners_count":21331356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["axie-infinity","csv","dspyt","ethereum","jupyter-notebook","parsiq","python3"],"created_at":"2024-10-01T21:21:32.237Z","updated_at":"2025-04-19T23:34:19.493Z","avatar_url":"https://github.com/Pfed-prog.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PARSIQ-AXS\n\nIn 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.\n\nAXS 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.\n\nThe token is available on multiple chains including Ethereum and Binance Smart Chain.\n\nOn April 28 2021 the game has made a significant update introducing Ronin Bridge, Axie Infinity Ethereum sidechain. \n\nThe 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.\n\nThe 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.\n\n![image](https://user-images.githubusercontent.com/66903336/140820286-7b9a6fd7-2635-4095-9783-1931f02ea1ac.png)\n\nIn 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.\n\n# Triggers\n\n### Trigger for Token transfer from or to Binance Account of SPL or AXS token on Ethereum\nApart from collecting the data from the transaction we collect data using Chainlink and CryptoRank.\n\n```javascript\nstream _\nfrom TokenTransfers\n\nwhere (@from == AXScontract || @to == AXScontract || @from == Binance14 || @to == Binance14) \u0026\u0026 (@erc20.symbol == \"AXS\" || @erc20.symbol == \"SLP\")\n\nprocess\n    let symb = @erc20.symbol\n    let cryptorankFiatRate = getRate(symb)\n    let fiat_value = @value * cryptorankFiatRate.value\n    let fiat_decimals = @erc20.decimals + cryptorankFiatRate.decimals\n    let eth_usd_pair = getChainlinkPriceFeedPair(\"ETH/USD\")\n    let score_from = getScore(@from)\n    let score_to = getScore(@to)\n    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 }\nend\n```\n\n### Trigger for Token transfer from or to Binance Accounts of AXS token on Bsc\n\n```javascript\nstream _\nfrom BscBEP20Transfers\n\nwhere @token.contract == ContractBSC \u0026\u0026 (@from in BSCdata || @to in BSCdata )\n\nprocess\n  emit { @from, @to, @value, @token, @transaction, @block }\nend\n```\n\n# User Data\n\n**Primitives**\n\n![image](https://user-images.githubusercontent.com/66903336/140822828-30294eb4-e2d0-40ed-a3a7-e46cc74794bf.png)\n\n![image](https://user-images.githubusercontent.com/66903336/140831152-beb22e53-efe8-45d0-9858-7ff83208e860.png)\n\n**Table**\n\n![image](https://user-images.githubusercontent.com/66903336/140823112-159f545c-bcb1-4177-9f4d-97e7c1eb9a36.png)\n\n![image](https://user-images.githubusercontent.com/66903336/140822678-717d0201-4b88-4ba4-9dd6-378ff47500cf.png)\n\n# Results\n\n### Data and Notebook\n\n* [Binance Smart Chain Data](https://docs.google.com/spreadsheets/d/15TcqKG7zHvXzIhEKgtXlkYvKwdJCZJuSti52J2Q5mNk/edit?usp=sharing)\n\n* [Ethereum Data](https://docs.google.com/spreadsheets/d/1ylJp5Y7eoVZUFRcNT3NapTdZa8b6Zd2geQpWZkEongc/edit?usp=sharing)\n\n* [Python Notebook on Kaggle](https://www.kaggle.com/pavfedotov/parsiq-axs)\n\n## Analysis\n\n### Ethereum Axie Infinity\nThere are 231 AXS token transactions in our ethereum dataset.\nOnly 46 are from Ronin and Binance accounts.\n\n![image](https://user-images.githubusercontent.com/66903336/140833808-441336cc-4383-43b4-a40c-067279d44e0a.png)\n\nMeanwhile, the rest 80% are coming to the Ronin and Binance accounts.\n\n![image](https://user-images.githubusercontent.com/66903336/140834230-60f4fdaa-1ebd-4ddd-ba82-ded30833aebc.png)\n\nThere are also more transactions to the native staking solution rather than Binance by a factor of 2.\n\nNevertheless, when we analyze the volume of outflows vs. inflows the sum of outflows dominate.\n\n![image](https://user-images.githubusercontent.com/66903336/140838512-fdd1d2bb-97ab-45e3-98ba-31a70fd61d57.png)\n\nThis would indicate more incoming users and one or few significant withdrawals from Binance.\n\nWe look at the more granular data and notice that one account is responsible for such bleak snapshot of AXS flows.\n\n![image](https://user-images.githubusercontent.com/66903336/140838840-b8bff3aa-e094-453f-805e-8171dff13f87.png)\n\nWe plot full ethereum dataset value of transactions against time.\n\nWhen plotted the inflows have a lot of spikes and more numerous for Binance.\n\n![image](https://user-images.githubusercontent.com/66903336/140849815-79710dd7-80db-4ae8-8070-70d36c1cf141.png)\n\nWhile the outflows are more steady.\n\n![image](https://user-images.githubusercontent.com/66903336/140850027-cab9d8b4-02cb-4f46-af99-ffdc9ac723f8.png)\n\nThe following picture is very similar for only AXS. With two spikes in Binance outflows against 0 in Ronin Bridge.\n\n![image](https://user-images.githubusercontent.com/66903336/140851348-01692e99-9051-4da4-aa0a-de281140f1d5.png)\n\nWe would need to further incorporate more data in our analysis to determine the scope of weekly and monthly flows in AXS token.\n\n### BSC AXS\n\nIn our BSC dataset we have 157 observations. The count of transactions is in favour of outflows from Binance Hot Wallets.\n\n![image](https://user-images.githubusercontent.com/66903336/140844882-8a1650fc-ebbf-4913-9605-426e091543fb.png)\n\nWhereas the sum of transferred AXS value out of binance is nearly identical to the inflows.\n\n![image](https://user-images.githubusercontent.com/66903336/140845336-028a5cb7-c38a-483e-9b4b-5ace63128f93.png)\n\n### Comparison of AXS on BSC and Ethereum\n\nThe volume of transactions is much greater on Ethereum of AXS than on Binance Smart Chain.\n\n![image](https://user-images.githubusercontent.com/66903336/140845836-17679545-5f28-4065-bd0f-1597593be00f.png)\n\n### Score of the addresses (in-built PARSIQ function)\n\nIn our AXS dataset on Ethereum we also obtained scores for addresses by using `getScore` in our trigger.\n\nWhat is interesting is that the system scores higher the Binance account (85) rather than Ronin Bridge (76).\n\nBesides, the average address that transacts to Ronin has score of 79. For Binance this figure is 80.\nFor outflows the number is 79 for Ronin and 77 for Binance.\n\n# Further Resources\n\n* [CryptoPunks with PARSIQ Github Repository](https://github.com/Pfed-prog/PARSIQ-CryptoPunks)\n* [Axie Infinity Great Migration FAQ](https://www.notion.so/axie/Great-Migration-FAQ-fc64fd460c8046b2a45d8798d06c0feb)\n* [This Project as a blog post](https://dspyt.com/blockchain-insights-with-parsiq-triggers-for-axie-infinity/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfed-prog%2Fparsiq-axs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfed-prog%2Fparsiq-axs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfed-prog%2Fparsiq-axs/lists"}