portfolio-back
v1.0.1
Published
a back-end client for shib portfolio
Downloads
6
Readme
SHIB PORTFOLIO
Shibarium EVM-wallet portfolio npm package.
Installation
npm i @shibaone/shib-portfolio
Local Development
At the moment package uses babel for local development & build, originally it was planned as API and migrated to npm. Development steps are: install, run dev, build, pack (for local test via "npm i local-package-path")/publish (for prod release):
npm i
npm run dev
npm run build
npm run pack/publish
Build command will produce dist
folder, please note, this is required before pack/publish.
How it Works
App entry and main file, src/helpers/Shibarium.js
App logic:
- Request transactions list via Shibarium REST API for provided EVM
- Detect tokens used by transactions and make a list of them
- Get list of dates, when transactions happened
- Request tokens prices from our graphql server, filter by dates and tokens we collected (prices indexed previously by subsquild)
- Analyse transactions by type: in code, there are methods for analysing swap, transfer and LP position management
As result, we will have object:
{
"currentAssets": "a snapshot of current portfolio assets, based on result of analysed transactions",
"activity": "activity of wallet with human-readable explanations and calculated amounts",
"tokens": "tokens list used by this wallet",
"prices": "array of prices object",
"history": "grouped by date, profile snapshot with list of positions held at that moment, with pre-calculated to human-readable amounts"
}
Example of Portfolio
{
"currentAssets": {
"0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8": {
"name": "Shibarium Wrapped BONE",
"symbol": "WBONE",
"decimals": 18,
"address": "0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8",
"id": "0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8",
"amount": 0,
"value": null,
"usdAmount": null
},
"0x0000000000000000000000000000000000001010": {
"name": "Shibarium BONE",
"symbol": "BONE",
"decimals": 18,
"address": "0x0000000000000000000000000000000000001010",
"id": "0x0000000000000000000000000000000000001010",
"amount": 0,
"value": 835,
"usdAmount": null
},
"WETH_USDC_LP": {
"usdAmount": 5.9003461470367276,
"value": 0,
"type": "LP",
"symbol": "WETH USDC",
"name": "WETH USDC Liquidity Pool Position",
"tokenAamount": 2.9503461470367274,
"tokenBamount": 2.95,
"tokenAvalue": 0.001,
"tokenBvalue": 2.95
},
"0x8ed7d143ef452316ab1123d28ab302dc3b80d3ce": {
"usdAmount": 0,
"value": 0,
"symbol": "WETH",
"name": "Wrapped Ether"
},
"0xf010f12dca0b96d2d6685bf4db3dbb4ad500b6ad": {
"usdAmount": 0,
"value": 0,
"symbol": "USDC",
"name": "USD Coin"
},
"USDT_WETH_LP": {
"usdAmount": 5.9003461470367276,
"value": 0,
"type": "LP",
"symbol": "USDT WETH",
"name": "USDT WETH Liquidity Pool Position",
"tokenAamount": 2.95,
"tokenBamount": 2.9503461470367274,
"tokenAvalue": 2.95,
"tokenBvalue": 0.001
},
"0xab082b8ad96c7f47ed70ed971ce2116469954cfb": {
"usdAmount": 0,
"value": 0,
"symbol": "USDT",
"name": "Tether USD"
},
"WETH_DAI_LP": {
"usdAmount": 5.9003461470367276,
"value": 0,
"type": "LP",
"symbol": "WETH DAI",
"name": "WETH DAI Liquidity Pool Position",
"tokenAamount": 2.9503461470367274,
"tokenBamount": 2.95,
"tokenAvalue": 0.001,
"tokenBvalue": 2.95
},
"0x0726959d22361b79e4d50a5d157b044a83ec870d": {
"usdAmount": 4.3888230453752435,
"value": 4.3888230453752435,
"symbol": "DAI",
"name": "Dai Stablecoin"
},
"WBONE_USDT_LP": {
"usdAmount": 1.2070160846719373,
"value": 0,
"type": "LP",
"symbol": "WBONE USDT",
"name": "WBONE USDT Liquidity Pool Position",
"tokenAamount": 0.6070160846719375,
"tokenBamount": 0.6,
"tokenAvalue": 1,
"tokenBvalue": 0.6
},
"WBONE_USDC_LP": {
"usdAmount": 1.2070160846719373,
"value": 0,
"type": "LP",
"symbol": "WBONE USDC",
"name": "WBONE USDC Liquidity Pool Position",
"tokenAamount": 0.6070160846719375,
"tokenBamount": 0.6,
"tokenAvalue": 1,
"tokenBvalue": 0.6
},
"WBONE_DAI_LP": {
"usdAmount": 1.2070160846719373,
"value": 0,
"type": "LP",
"symbol": "WBONE DAI",
"name": "WBONE DAI Liquidity Pool Position",
"tokenAamount": 0.6070160846719375,
"tokenBamount": 0.6,
"tokenAvalue": 1,
"tokenBvalue": 0.6
},
"WBONE_SHIB_LP": {
"usdAmount": 1.165482871949094,
"value": 0,
"type": "LP",
"symbol": "WBONE SHIB",
"name": "WBONE SHIB Liquidity Pool Position",
"tokenAamount": 0.6070160846719375,
"tokenBamount": 0.5584667872771565,
"tokenAvalue": 1,
"tokenBvalue": 23000
},
"0x495eea66b0f8b636d441dc6a98d8f5c3d455c4c0": {
"usdAmount": 2.6471013114195703,
"value": 178340.29890978278,
"symbol": "SHIB",
"name": "SHIBA INU"
},
"WBONE_LEASH_LP": {
"usdAmount": 1.1136722959146441,
"value": 0,
"type": "LP",
"symbol": "WBONE LEASH",
"name": "WBONE LEASH Liquidity Pool Position",
"tokenAamount": 0.6070160846719375,
"tokenBamount": 0.5066562112427067,
"tokenAvalue": 1,
"tokenBvalue": 0.0014
},
"0x65218a41fb92637254b4f8c97448d3df343a3064": {
"usdAmount": 0,
"value": 0,
"symbol": "LEASH",
"name": "DOGE KILLER"
},
"USDC_SHIB_LP": {
"usdAmount": 1.995527751233192,
"value": 0,
"type": "LP",
"symbol": "USDC SHIB",
"name": "USDC SHIB Liquidity Pool Position",
"tokenAamount": 1,
"tokenBamount": 0.9955277512331919,
"tokenAvalue": 1,
"tokenBvalue": 41000
},
"USDC_LEASH_LP": {
"usdAmount": 1.868553504987497,
"value": 0,
"type": "LP",
"symbol": "USDC LEASH",
"name": "USDC LEASH Liquidity Pool Position",
"tokenAamount": 1,
"tokenBamount": 0.8685535049874971,
"tokenAvalue": 1,
"tokenBvalue": 0.0024
},
"WETH_LEASH_LP": {
"usdAmount": 5.483627203250261,
"value": 0,
"type": "LP",
"symbol": "WETH LEASH",
"name": "WETH LEASH Liquidity Pool Position",
"tokenAamount": 2.9503461470367274,
"tokenBamount": 2.5332810562135335,
"tokenAvalue": 0.001,
"tokenBvalue": 0.007
},
"WETH_SHIB_LP": {
"usdAmount": 5.926585624589344,
"value": 0,
"type": "LP",
"symbol": "WETH SHIB",
"name": "WETH SHIB Liquidity Pool Position",
"tokenAamount": 2.9503461470367274,
"tokenBamount": 2.9762394775526166,
"tokenAvalue": 0.001,
"tokenBvalue": 122574
},
"USDT_SHIB_LP": {
"usdAmount": 1.995527751233192,
"value": 0,
"type": "LP",
"symbol": "USDT SHIB",
"name": "USDT SHIB Liquidity Pool Position",
"tokenAamount": 1,
"tokenBamount": 0.9955277512331919,
"tokenAvalue": 1,
"tokenBvalue": 41000
},
"USDT_LEASH_LP": {
"usdAmount": 1.868553504987497,
"value": 0,
"type": "LP",
"symbol": "USDT LEASH",
"name": "USDT LEASH Liquidity Pool Position",
"tokenAamount": 1,
"tokenBamount": 0.8685535049874971,
"tokenAvalue": 1,
"tokenBvalue": 0.0024
},
"DAI_LEASH_LP": {
"usdAmount": 1.868553504987497,
"value": 0,
"type": "LP",
"symbol": "DAI LEASH",
"name": "DAI LEASH Liquidity Pool Position",
"tokenAamount": 1,
"tokenBamount": 0.8685535049874971,
"tokenAvalue": 1,
"tokenBvalue": 0.0024
},
"DAI_SHIB_LP": {
"usdAmount": 1.995527751233192,
"value": 0,
"type": "LP",
"symbol": "DAI SHIB",
"name": "DAI SHIB Liquidity Pool Position",
"tokenAamount": 1,
"tokenBamount": 0.9955277512331919,
"tokenAvalue": 1,
"tokenBvalue": 41000
},
"WBTC_WETH_LP": {
"usdAmount": 5.9003475964274426,
"value": 0,
"type": "LP",
"symbol": "WBTC WETH",
"name": "WBTC WETH Liquidity Pool Position",
"tokenAamount": 2.950001449390715,
"tokenBamount": 2.9503461470367274,
"tokenAvalue": 0.0000459,
"tokenBvalue": 0.001
},
"0xe984d89fb00d0b44e798a55dc41ea598b0b0899d": {
"usdAmount": 0,
"value": 0,
"symbol": "WBTC",
"name": "Wrapped BTC"
},
"WBTC_USDC_LP": {
"usdAmount": 1.9846192201452233,
"value": 0,
"type": "LP",
"symbol": "WBTC USDC",
"name": "WBTC USDC Liquidity Pool Position",
"tokenAamount": 0.9846192201452234,
"tokenBamount": 1,
"tokenAvalue": 0.00001532,
"tokenBvalue": 1
},
"WBTC_USDT_LP": {
"usdAmount": 1.9846192201452233,
"value": 0,
"type": "LP",
"symbol": "WBTC USDT",
"name": "WBTC USDT Liquidity Pool Position",
"tokenAamount": 0.9846192201452234,
"tokenBamount": 1,
"tokenAvalue": 0.00001532,
"tokenBvalue": 1
},
"WBTC_DAI_LP": {
"usdAmount": 1.9846192201452233,
"value": 0,
"type": "LP",
"symbol": "WBTC DAI",
"name": "WBTC DAI Liquidity Pool Position",
"tokenAamount": 0.9846192201452234,
"tokenBamount": 1,
"tokenAvalue": 0.00001532,
"tokenBvalue": 1
},
"LEASH_WETH_LP": {
"usdAmount": 41959.751615933856,
"value": 0,
"type": "LP",
"symbol": "LEASH WETH",
"name": "LEASH WETH Liquidity Pool Position",
"tokenAamount": 7.413853066754733,
"tokenBamount": 41952.3377628671,
"tokenAvalue": 0.026006482182236716,
"tokenBvalue": 16.47039407940952
}
},
"activity": [
{
"human": "Swap NaN WBONE for 139159.755638058232862157 SHIB",
"type": "swap",
"tokenA": {
"__typename": "Token",
"id": "0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8",
"name": "Shibarium Wrapped BONE",
"symbol": "WBONE",
"decimals": "18",
"dayData": [],
"time": []
},
"tokenB": {
"__typename": "Token",
"id": "0x495eea66b0f8b636d441dc6a98d8f5c3d455c4c0",
"name": "SHIBA INU",
"symbol": "SHIB",
"decimals": "18",
"dayData": [],
"time": []
},
"amountA": "NaN",
"amount": null,
"amountB": "139159.755638058232862157",
"tokenAusd": null,
"tokenBusd": 2.0655453304621774,
"action": "swap",
"pair": "WBONE/SHIB",
"txHash": "0x923098e4248aecef6dd1c70e54dbc2e3985218b50d61632090fe549d0e972ffe",
"time": "2024-07-15T07:31:45.000000Z",
"unix": 1721001600
},
{
"human": "Swap 5 WBONE for 139180.54327172458484145 SHIB",
"type": "swap",
"tokenA": {
"__typename": "Token",
"id": "0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8",
"name": "Shibarium Wrapped BONE",
"symbol": "WBONE",
"decimals": "18",
"dayData": [],
"time": []
},
"tokenB": {
"__typename": "Token",
"id": "0x495eea66b0f8b636d441dc6a98d8f5c3d455c4c0",
"name": "SHIBA INU",
"symbol": "SHIB",
"decimals": "18",
"dayData": [],
"time": []
},
"amountA": "5",
"amount": 4.228609375352665,
"amountB": "139180.54327172458484145",
"tokenAusd": 2.162755494480536,
"tokenBusd": 2.0658538808721287,
"action": "swap",
"pair": "WBONE/SHIB",
"txHash": "0xa67aea1dd9cf4a0cb34dbf7b13761c7ccf3c8abe8c4401c723a443132467796f",
"time": "2024-07-15T07:32:50.000000Z",
"unix": 1721001600
},
{
"human": "Swap 100000 SHIB for 3.535724605029649106 WBONE",
"type": "swap",
"tokenA": {
"__typename": "Token",
"id": "0x495eea66b0f8b636d441dc6a98d8f5c3d455c4c0",
"name": "SHIBA INU",
"symbol": "SHIB",
"decimals": "18",
"dayData": [],
"time": []
},
"tokenB": {
"__typename": "Token",
"id": "0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8",
"name": "Shibarium Wrapped BONE",
"symbol": "WBONE",
"decimals": "18",
"dayData": [],
"time": []
},
"amountA": "100000",
"amount": 3.0136794632143156,
"amountB": "3.535724605029649106",
"tokenAusd": 1.4842978999147363,
"tokenBusd": 1.529381563299579,
"action": "swap",
"pair": "SHIB/WBONE",
"txHash": "0xc0142c9a8c6671d3743c155a601897d2c13f6e39fbd528746cd18b8cd17640ef",
"time": "2024-07-15T08:33:37.000000Z",
"unix": 1721001600
},
{
"human": "Swap NaN WBONE for 4.388823045375243895 DAI",
"type": "swap",
"tokenA": {
"__typename": "Token",
"id": "0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8",
"name": "Shibarium Wrapped BONE",
"symbol": "WBONE",
"decimals": "18",
"dayData": [],
"time": []
},
"tokenB": {
"__typename": "Token",
"id": "0x0726959d22361b79e4d50a5d157b044a83ec870d",
"name": "Dai Stablecoin",
"symbol": "DAI",
"decimals": "18",
"dayData": [],
"time": []
},
"amountA": "NaN",
"amount": null,
"amountB": "4.388823045375243895",
"tokenAusd": null,
"tokenBusd": 4.3888230453752435,
"action": "swap",
"pair": "WBONE/DAI",
"txHash": "0x062d9fc640adfc3557a62bc1d4d3ffb3df1adddbc9a3a543310c8c304d5963ae",
"time": "2024-07-15T08:54:56.000000Z",
"unix": 1721001600
},
{
"human": "Add 0.00995 LEASH + 6.520394079409519067 WETH to LEASH/WETH pool",
"type": "lp",
"tokenA": {
"__typename": "Token",
"id": "0x65218a41fb92637254b4f8c97448d3df343a3064",
"name": "DOGE KILLER",
"symbol": "LEASH",
"decimals": "18",
"dayData": [],
"time": []
},
"tokenB": {
"__typename": "Token",
"id": "0x8ed7d143ef452316ab1123d28ab302dc3b80d3ce",
"name": "Wrapped Ether",
"symbol": "WETH",
"decimals": "18",
"dayData": [],
"time": []
},
"amountA": "0.00995",
"amount": 17124.876397814678,
"amountB": "6.520394079409519067",
"tokenAusd": 2.7243750708009493,
"tokenBusd": 17122.152022743878,
"action": "add_liquidity",
"txHash": "0x519701f61420f65375b5a34e0129f3f82bdbcf5666f282e2d11f4908fbaa1262",
"time": "2024-07-15T09:19:40.000000Z",
"unix": 1721001600
},
{
"human": "Add 0.016056482182236717 LEASH + 9.95 WETH to LEASH/WETH pool",
"type": "lp",
"tokenA": {
"__typename": "Token",
"id": "0x65218a41fb92637254b4f8c97448d3df343a3064",
"name": "DOGE KILLER",
"symbol": "LEASH",
"decimals": "18",
"dayData": [],
"time": []
},
"tokenB": {
"__typename": "Token",
"id": "0x8ed7d143ef452316ab1123d28ab302dc3b80d3ce",
"name": "Wrapped Ether",
"symbol": "WETH",
"decimals": "18",
"dayData": [],
"time": []
},
"amountA": "0.016056482182236717",
"amount": 24834.875218119174,
"amountB": "9.95",
"tokenAusd": 4.689477995953784,
"tokenBusd": 24830.18574012322,
"action": "add_liquidity",
"txHash": "0x4a095b7de4d34d0c576175348e5cdeb56001b335c6c7f760d2f3fbafdccd76d1",
"time": "2024-07-16T11:40:33.000000Z",
"unix": 1721088000
},
{
"human": "Withdrew 10 BONE ($4.887170529519148 USD)",
"type": "transfer",
"token": {
"__typename": "Token",
"id": "0x0000000000000000000000000000000000001010",
"name": "Shibarium BONE",
"symbol": "BONE",
"decimals": 18,
"dayData": [],
"time": [],
"address": "0x0000000000000000000000000000000000001010"
},
"amount": 4.887170529519148,
"value": 10,
"action": "withdraw",
"historyAmount": null,
"historyValue": 990,
"txHash": "0x49b4b99e2827e521416b762d57337297c38cb42c258d51c521bcda3a4c0e808f",
"time": "2024-07-31T09:46:43.000000Z",
"unix": 1722384000
},
{
"human": "Withdrew 5 BONE ($2.443585264759574 USD)",
"type": "transfer",
"token": {
"__typename": "Token",
"id": "0x0000000000000000000000000000000000001010",
"name": "Shibarium BONE",
"symbol": "BONE",
"decimals": 18,
"dayData": [],
"time": [],
"address": "0x0000000000000000000000000000000000001010"
},
"amount": 2.443585264759574,
"value": 5,
"action": "withdraw",
"historyAmount": null,
"historyValue": 985,
"txHash": "0xf2b5e0187e4d8b69fa9257e0e73b8c9f6b57577fdf553a91d28ddef34896282a",
"time": "2024-07-31T10:05:12.000000Z",
"unix": 1722384000
}
],
"tokens": [
"0x0000000000000000000000000000000000001010",
"0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8",
"0x8ed7d143ef452316ab1123d28ab302dc3b80d3ce",
"0xaB082b8ad96c7f47ED70ED971Ce2116469954cFB",
"0xf3671AD8c1e341A37Cce0cc9d90FDe9f940DBe6b",
"0x725B19240bF977aB5E5C8d44A187C2D62fF2b875",
"0xEF83bbB63E8A7442E3a4a5d28d9bBf32D7c813c8",
"0xe984d89fb00d0b44e798a55dc41ea598b0b0899d",
"0x0726959d22361b79e4d50a5d157b044a83ec870d",
"0xab082b8ad96c7f47ed70ed971ce2116469954cfb",
"0xf010f12dca0b96d2d6685bf4db3dbb4ad500b6ad",
"0x495eea66b0f8b636d441dc6a98d8f5c3d455c4c0",
"0x65218a41fb92637254b4f8c97448d3df343a3064",
"0xC76F4c819D820369Fb2d7C1531aB3Bb18e6fE8d8",
"0x54191278F21BA4F987bcd462Fe2c88b6Dd671FB3"
],
"prices": {
"0x0726959d22361b79e4d50a5d157b044a83ec870d": {
"__typename": "Token",
"id": "0x0726959d22361b79e4d50a5d157b044a83ec870d",
"name": "Dai Stablecoin",
"symbol": "DAI",
"decimals": "18",
"dayData": [],
"time": {
"1715731200": 1,
"1720483200": 1,
"1721001600": 1,
"1721088000": 1,
"1722384000": 1,
"1723075200": 1,
"1725926400": 1
}
},
"0x495eea66b0f8b636d441dc6a98d8f5c3d455c4c0": {
"__typename": "Token",
"id": "0x495eea66b0f8b636d441dc6a98d8f5c3d455c4c0",
"name": "SHIBA INU",
"symbol": "SHIB",
"decimals": "18",
"dayData": [],
"time": {
"1715731200": 0.000024281164664224195,
"1720483200": 0.000015716119518734743,
"1721001600": 0.000014842978999147362,
"1721088000": 0.000016129136713088645,
"1722384000": 0.00001715454437859097,
"1723075200": 0.000015426944132207654,
"1725926400": 0.000013553092921153564
}
},
"0x65218a41fb92637254b4f8c97448d3df343a3064": {
"__typename": "Token",
"id": "0x65218a41fb92637254b4f8c97448d3df343a3064",
"name": "DOGE KILLER",
"symbol": "LEASH",
"decimals": "18",
"dayData": [],
"time": {
"1715731200": 361.8972937447905,
"1720483200": 290.97375489459955,
"1721001600": 273.8065397789899,
"1721088000": 292.06135831806,
"1722384000": 349.6230397794966,
"1723075200": 332.2852174743714,
"1725926400": 267.65256204538775
}
},
"0x8ed7d143ef452316ab1123d28ab302dc3b80d3ce": {
"__typename": "Token",
"id": "0x8ed7d143ef452316ab1123d28ab302dc3b80d3ce",
"name": "Wrapped Ether",
"symbol": "WETH",
"decimals": "18",
"dayData": [],
"time": {
"1715731200": 2950.3461470367274,
"1720483200": 2732.6827728889393,
"1721001600": 2625.9382200246464,
"1721088000": 2495.4960542837407,
"1722384000": 3569.5349373057206,
"1723075200": 3233.3584334550533,
"1725926400": 2364.4079081353057
}
},
"0xab082b8ad96c7f47ed70ed971ce2116469954cfb": {
"__typename": "Token",
"id": "0xab082b8ad96c7f47ed70ed971ce2116469954cfb",
"name": "Tether USD",
"symbol": "USDT",
"decimals": "6",
"dayData": [],
"time": {
"1715731200": 1,
"1720483200": 1,
"1721001600": 1,
"1721088000": 1,
"1722384000": 1,
"1723075200": 1,
"1725926400": 1
}
},
"0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8": {
"__typename": "Token",
"id": "0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8",
"name": "Shibarium Wrapped BONE",
"symbol": "WBONE",
"decimals": "18",
"dayData": [],
"time": {
"1715731200": 0.6070160846719375,
"1720483200": 0.42853429928566295,
"1721001600": 0.43255109889610716,
"1721088000": 0.4748586781537736,
"1722384000": 0.48871705295191475,
"1723075200": 0.45906621218128413,
"1725926400": 0.4038936762739741
}
},
"0xe984d89fb00d0b44e798a55dc41ea598b0b0899d": {
"__typename": "Token",
"id": "0xe984d89fb00d0b44e798a55dc41ea598b0b0899d",
"name": "Wrapped BTC",
"symbol": "WBTC",
"decimals": "8",
"dayData": [],
"time": {
"1715731200": 64270.18408258639,
"1720483200": 53257.06178517051,
"1721001600": 51352.04689411987,
"1721088000": 49860.626810253256,
"1722384000": 63968.19521237919,
"1723075200": 62898.900138304,
"1725926400": 53015.97729722096
}
},
"0xf010f12dca0b96d2d6685bf4db3dbb4ad500b6ad": {
"__typename": "Token",
"id": "0xf010f12dca0b96d2d6685bf4db3dbb4ad500b6ad",
"name": "USD Coin",
"symbol": "USDC",
"decimals": "6",
"dayData": [],
"time": {
"1715731200": 1,
"1720483200": 1,
"1721001600": 1,
"1721088000": 1,
"1722384000": 1,
"1723075200": 1,
"1725926400": 1
}
},
"0x0000000000000000000000000000000000001010": {
"__typename": "Token",
"id": "0x0000000000000000000000000000000000001010",
"name": "Shibarium BONE",
"symbol": "BONE",
"decimals": 18,
"dayData": [],
"time": {
"1715731200": 0.6070160846719375,
"1720483200": 0.42853429928566295,
"1721001600": 0.43255109889610716,
"1721088000": 0.4748586781537736,
"1722384000": 0.48871705295191475,
"1723075200": 0.45906621218128413,
"1725926400": 0.4038936762739741
},
"address": "0x0000000000000000000000000000000000001010"
}
},
"history": {
"timeline": [
{
"human": "Swap NaN WBONE for 139159.755638058232862157 SHIB",
"type": "swap",
"tokenA": {
"__typename": "Token",
"id": "0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8",
"name": "Shibarium Wrapped BONE",
"symbol": "WBONE",
"decimals": "18",
"dayData": [],
"time": []
},
"tokenB": {
"__typename": "Token",
"id": "0x495eea66b0f8b636d441dc6a98d8f5c3d455c4c0",
"name": "SHIBA INU",
"symbol": "SHIB",
"decimals": "18",
"dayData": [],
"time": []
},
"amountA": "NaN",
"amount": null,
"amountB": "139159.755638058232862157",
"tokenAusd": null,
"tokenBusd": 2.0655453304621774,
"action": "swap",
"pair": "WBONE/SHIB",
"txHash": "0x923098e4248aecef6dd1c70e54dbc2e3985218b50d61632090fe549d0e972ffe",
"time": "2024-07-15T07:31:45.000000Z",
"unix": 1721001600
},
{
"human": "Swap 5 WBONE for 139180.54327172458484145 SHIB",
"type": "swap",
"tokenA": {
"__typename": "Token",
"id": "0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8",
"name": "Shibarium Wrapped BONE",
"symbol": "WBONE",
"decimals": "18",
"dayData": [],
"time": []
},
"tokenB": {
"__typename": "Token",
"id": "0x495eea66b0f8b636d441dc6a98d8f5c3d455c4c0",
"name": "SHIBA INU",
"symbol": "SHIB",
"decimals": "18",
"dayData": [],
"time": []
},
"amountA": "5",
"amount": 4.228609375352665,
"amountB": "139180.54327172458484145",
"tokenAusd": 2.162755494480536,
"tokenBusd": 2.0658538808721287,
"action": "swap",
"pair": "WBONE/SHIB",
"txHash": "0xa67aea1dd9cf4a0cb34dbf7b13761c7ccf3c8abe8c4401c723a443132467796f",
"time": "2024-07-15T07:32:50.000000Z",
"unix": 1721001600
},
{
"human": "Swap 100000 SHIB for 3.535724605029649106 WBONE",
"type": "swap",
"tokenA": {
"__typename": "Token",
"id": "0x495eea66b0f8b636d441dc6a98d8f5c3d455c4c0",
"name": "SHIBA INU",
"symbol": "SHIB",
"decimals": "18",
"dayData": [],
"time": []
},
"tokenB": {
"__typename": "Token",
"id": "0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8",
"name": "Shibarium Wrapped BONE",
"symbol": "WBONE",
"decimals": "18",
"dayData": [],
"time": []
},
"amountA": "100000",
"amount": 3.0136794632143156,
"amountB": "3.535724605029649106",
"tokenAusd": 1.4842978999147363,
"tokenBusd": 1.529381563299579,
"action": "swap",
"pair": "SHIB/WBONE",
"txHash": "0xc0142c9a8c6671d3743c155a601897d2c13f6e39fbd528746cd18b8cd17640ef",
"time": "2024-07-15T08:33:37.000000Z",
"unix": 1721001600
},
{
"human": "Swap NaN WBONE for 4.388823045375243895 DAI",
"type": "swap",
"tokenA": {
"__typename": "Token",
"id": "0xc76f4c819d820369fb2d7c1531ab3bb18e6fe8d8",
"name": "Shibarium Wrapped BONE",
"symbol": "WBONE",
"decimals": "18",
"dayData": [],
"time": []
},
"tokenB": {
"__typename": "Token",
"id": "0x0726959d22361b79e4d50a5d157b044a83ec870d",
"name": "Dai Stablecoin",
"symbol": "DAI",
"decimals": "18",
"dayData": [],
"time": []
},
"amountA": "NaN",
"amount": null,
"amountB": "4.388823045375243895",
"tokenAusd": null,
"tokenBusd": 4.3888230453752435,
"action": "swap",
"pair": "WBONE/DAI",
"txHash": "0x062d9fc640adfc3557a62bc1d4d3ffb3df1adddbc9a3a543310c8c304d5963ae",
"time": "2024-07-15T08:54:56.000000Z",
"unix": 1721001600
},
{
"human": "Add 0.00995 LEASH + 6.520394079409519067 WETH to LEASH/WETH pool",
"type": "lp",
"tokenA": {
"__typename": "Token",
"id": "0x65218a41fb92637254b4f8c97448d3df343a3064",
"name": "DOGE KILLER",
"symbol": "LEASH",
"decimals": "18",
"dayData": [],
"time": []
},
"tokenB": {
"__typename": "Token",
"id": "0x8ed7d143ef452316ab1123d28ab302dc3b80d3ce",
"name": "Wrapped Ether",
"symbol": "WETH",
"decimals": "18",
"dayData": [],
"time": []
},
"amountA": "0.00995",
"amount": 17124.876397814678,
"amountB": "6.520394079409519067",
"tokenAusd": 2.7243750708009493,
"tokenBusd": 17122.152022743878,
"action": "add_liquidity",
"txHash": "0x519701f61420f65375b5a34e0129f3f82bdbcf5666f282e2d11f4908fbaa1262",
"time": "2024-07-15T09:19:40.000000Z",
"unix": 1721001600
},
{
"human": "Add 0.016056482182236717 LEASH + 9.95 WETH to LEASH/WETH pool",
"type": "lp",
"tokenA": {
"__typename": "Token",
"id": "0x65218a41fb92637254b4f8c97448d3df343a3064",
"name": "DOGE KILLER",
"symbol": "LEASH",
"decimals": "18",
"dayData": [],
"time": []
},
"tokenB": {
"__typename": "Token",
"id": "0x8ed7d143ef452316ab1123d28ab302dc3b80d3ce",
"name": "Wrapped Ether",
"symbol": "WETH",
"decimals": "18",
"dayData": [],
"time": []
},
"amountA": "0.016056482182236717",
"amount": 24834.875218119174,
"amountB": "9.95",
"tokenAusd": 4.689477995953784,
"tokenBusd": 24830.18574012322,
"action": "add_liquidity",
"txHash": "0x4a095b7de4d34d0c576175348e5cdeb56001b335c6c7f760d2f3fbafdccd76d1",
"time": "2024-07-16T11:40:33.000000Z",
"unix": 1721088000
},
{
"human": "Withdrew 10 BONE ($4.887170529519148 USD)",
"type": "transfer",
"token": {
"__typename": "Token",
"id": "0x0000000000000000000000000000000000001010",
"name": "Shibarium BONE",
"symbol": "BONE",
"decimals": 18,
"dayData": [],
"time": [],
"address": "0x0000000000000000000000000000000000001010"
},
"amount": 4.887170529519148,
"value": 10,
"action": "withdraw",
"historyAmount": null,
"historyValue": 990,
"txHash": "0x49b4b99e2827e521416b762d57337297c38cb42c258d51c521bcda3a4c0e808f",
"time": "2024-07-31T09:46:43.000000Z",
"unix": 1722384000
},
{
"human": "Withdrew 5 BONE ($2.443585264759574 USD)",
"type": "transfer",
"token": {
"__typename": "Token",
"id": "0x0000000000000000000000000000000000001010",
"name": "Shibarium BONE",
"symbol": "BONE",
"decimals": 18,
"dayData": [],
"time": [],
"address": "0x0000000000000000000000000000000000001010"
},
"amount": 2.443585264759574,
"value": 5,
"action": "withdraw",
"historyAmount": null,
"historyValue": 985,
"txHash": "0xf2b5e0187e4d8b69fa9257e0e73b8c9f6b57577fdf553a91d28ddef34896282a",
"time": "2024-07-31T10:05:12.000000Z",
"unix": 1722384000
}
],
"activeDays": 6
}
}