Skip to content

Commit

Permalink
Merge pull request #47 from invariant-labs/fix-liquidity-calculations
Browse files Browse the repository at this point in the history
Fix liquidity calculations
  • Loading branch information
zielvna authored Sep 21, 2024
2 parents 6ce2e27 + 5b111f6 commit 32276c6
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 15 deletions.
2 changes: 1 addition & 1 deletion a0/src/snap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ export const createSnapshotForNetwork = async (network: Network) => {
liquidityX = liq.liquidityX;
liquidityY = liq.liquidityY;
} catch (e) {
liquidityY = BigInt(lastSnapshot?.liquidityY.tokenBNFromBeginning ?? 0n);
liquidityX = BigInt(lastSnapshot?.liquidityX.tokenBNFromBeginning ?? 0n);
liquidityY = BigInt(lastSnapshot?.liquidityY.tokenBNFromBeginning ?? 0n);
}

try {
Expand Down
30 changes: 22 additions & 8 deletions alph/src/snap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ export const createSnapshotForNetwork = async (network: Network) => {

const protocolFee = await invariant.getProtocolFee();

const now = Date.now();
const timestamp =
Math.floor(now / (1000 * 60 * 60 * 24)) * (1000 * 60 * 60 * 24) +
1000 * 60 * 60 * 12;

for (let [poolKey, pool] of poolsWithKeys) {
let lastSnapshot: PoolSnapshot | undefined;

Expand Down Expand Up @@ -259,10 +264,23 @@ export const createSnapshotForNetwork = async (network: Network) => {
const stringifiedPoolKey = stringifyPoolKey(poolKey);

if (snaps?.[stringifiedPoolKey]) {
lastSnapshot =
if (
snaps[stringifiedPoolKey].snapshots[
snaps[stringifiedPoolKey].snapshots.length - 1
];
].timestamp === timestamp
) {
if (snaps?.[stringifiedPoolKey].snapshots.length >= 2) {
lastSnapshot =
snaps[stringifiedPoolKey].snapshots[
snaps[stringifiedPoolKey].snapshots.length - 2
];
}
} else {
lastSnapshot =
snaps[stringifiedPoolKey].snapshots[
snaps[stringifiedPoolKey].snapshots.length - 1
];
}
}
let volumeX, volumeY, liquidityX, liquidityY, feeX, feeY;

Expand All @@ -284,8 +302,8 @@ export const createSnapshotForNetwork = async (network: Network) => {
liquidityX = liq.liquidityX;
liquidityY = liq.liquidityY;
} catch (e) {
liquidityY = BigInt(lastSnapshot?.liquidityX.tokenBNFromBeginning ?? 0n);
liquidityX = BigInt(lastSnapshot?.liquidityY.tokenBNFromBeginning ?? 0n);
liquidityX = BigInt(lastSnapshot?.liquidityX.tokenBNFromBeginning ?? 0n);
liquidityY = BigInt(lastSnapshot?.liquidityY.tokenBNFromBeginning ?? 0n);
}

try {
Expand Down Expand Up @@ -369,10 +387,6 @@ export const createSnapshotForNetwork = async (network: Network) => {
},
});
}
const now = Date.now();
const timestamp =
Math.floor(now / (1000 * 60 * 60 * 24)) * (1000 * 60 * 60 * 24) +
1000 * 60 * 60 * 12;

poolsData.forEach(({ poolKey, stats }) => {
const parsedPoolKey = JSON.parse(poolKey);
Expand Down
2 changes: 1 addition & 1 deletion data/a0/full_mainnet.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"volume24":{"value":0,"change":0},"tvl24":{"value":0,"change":0},"fees24":{"value":0,"change":0},"tokensData":[{"address":"5CtuFVgEUz13SFPVY6s2cZrnLDEkxQXc19aXrNARwEBeCXgg","price":0.394095,"volume24":0,"tvl":0},{"address":"5EVzJwtb8yeFksbkXsuD49RZeYbzTRUKSyZ8y8iu1bMqrfvS","price":63071,"volume24":0,"tvl":0},{"address":"5Gu1E9FZrKP2vpLfBXiaRQQjeGRn4ssxj8DrXyFQCkR3N2fc","price":2558.75,"volume24":0,"tvl":0},{"address":"5FjtfRqa2dMELrTuhEWd3XgTMXRfX4Sb4mKfRebWdvuVccJ5","price":1,"volume24":0,"tvl":0},{"address":"5FxenfueeATgv34qiVgpXkAdFSgV56AshpqwVzfPNGj6ozfA","price":0,"volume24":0,"tvl":0},{"address":"5DzJvZpriJfdyvjFYUW7SbJDQHXs8PBGeytCz6DPgC6ofzmG","price":0,"volume24":0,"tvl":0}],"poolsData":[{"volume24":0,"tvl":0,"tokenX":"5CtuFVgEUz13SFPVY6s2cZrnLDEkxQXc19aXrNARwEBeCXgg","tokenY":"5EVzJwtb8yeFksbkXsuD49RZeYbzTRUKSyZ8y8iu1bMqrfvS","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CtuFVgEUz13SFPVY6s2cZrnLDEkxQXc19aXrNARwEBeCXgg","tokenY":"5Gu1E9FZrKP2vpLfBXiaRQQjeGRn4ssxj8DrXyFQCkR3N2fc","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CtuFVgEUz13SFPVY6s2cZrnLDEkxQXc19aXrNARwEBeCXgg","tokenY":"5FjtfRqa2dMELrTuhEWd3XgTMXRfX4Sb4mKfRebWdvuVccJ5","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CtuFVgEUz13SFPVY6s2cZrnLDEkxQXc19aXrNARwEBeCXgg","tokenY":"5FxenfueeATgv34qiVgpXkAdFSgV56AshpqwVzfPNGj6ozfA","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CtuFVgEUz13SFPVY6s2cZrnLDEkxQXc19aXrNARwEBeCXgg","tokenY":"5DzJvZpriJfdyvjFYUW7SbJDQHXs8PBGeytCz6DPgC6ofzmG","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EVzJwtb8yeFksbkXsuD49RZeYbzTRUKSyZ8y8iu1bMqrfvS","tokenY":"5Gu1E9FZrKP2vpLfBXiaRQQjeGRn4ssxj8DrXyFQCkR3N2fc","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EVzJwtb8yeFksbkXsuD49RZeYbzTRUKSyZ8y8iu1bMqrfvS","tokenY":"5FjtfRqa2dMELrTuhEWd3XgTMXRfX4Sb4mKfRebWdvuVccJ5","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EVzJwtb8yeFksbkXsuD49RZeYbzTRUKSyZ8y8iu1bMqrfvS","tokenY":"5FxenfueeATgv34qiVgpXkAdFSgV56AshpqwVzfPNGj6ozfA","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5DzJvZpriJfdyvjFYUW7SbJDQHXs8PBGeytCz6DPgC6ofzmG","tokenY":"5EVzJwtb8yeFksbkXsuD49RZeYbzTRUKSyZ8y8iu1bMqrfvS","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5FjtfRqa2dMELrTuhEWd3XgTMXRfX4Sb4mKfRebWdvuVccJ5","tokenY":"5Gu1E9FZrKP2vpLfBXiaRQQjeGRn4ssxj8DrXyFQCkR3N2fc","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5FxenfueeATgv34qiVgpXkAdFSgV56AshpqwVzfPNGj6ozfA","tokenY":"5Gu1E9FZrKP2vpLfBXiaRQQjeGRn4ssxj8DrXyFQCkR3N2fc","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5DzJvZpriJfdyvjFYUW7SbJDQHXs8PBGeytCz6DPgC6ofzmG","tokenY":"5Gu1E9FZrKP2vpLfBXiaRQQjeGRn4ssxj8DrXyFQCkR3N2fc","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5FjtfRqa2dMELrTuhEWd3XgTMXRfX4Sb4mKfRebWdvuVccJ5","tokenY":"5FxenfueeATgv34qiVgpXkAdFSgV56AshpqwVzfPNGj6ozfA","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5DzJvZpriJfdyvjFYUW7SbJDQHXs8PBGeytCz6DPgC6ofzmG","tokenY":"5FjtfRqa2dMELrTuhEWd3XgTMXRfX4Sb4mKfRebWdvuVccJ5","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5DzJvZpriJfdyvjFYUW7SbJDQHXs8PBGeytCz6DPgC6ofzmG","tokenY":"5FxenfueeATgv34qiVgpXkAdFSgV56AshpqwVzfPNGj6ozfA","fee":0.02}],"volumePlot":[{"timestamp":1726920000000,"value":0}],"liquidityPlot":[{"timestamp":1726920000000,"value":0}]}
{"volume24":{"value":0,"change":0},"tvl24":{"value":0,"change":0},"fees24":{"value":0,"change":0},"tokensData":[{"address":"5CtuFVgEUz13SFPVY6s2cZrnLDEkxQXc19aXrNARwEBeCXgg","price":0.396582,"volume24":0,"tvl":0},{"address":"5EVzJwtb8yeFksbkXsuD49RZeYbzTRUKSyZ8y8iu1bMqrfvS","price":63065,"volume24":0,"tvl":0},{"address":"5Gu1E9FZrKP2vpLfBXiaRQQjeGRn4ssxj8DrXyFQCkR3N2fc","price":2551.54,"volume24":0,"tvl":0},{"address":"5FjtfRqa2dMELrTuhEWd3XgTMXRfX4Sb4mKfRebWdvuVccJ5","price":0.999922,"volume24":0,"tvl":0},{"address":"5FxenfueeATgv34qiVgpXkAdFSgV56AshpqwVzfPNGj6ozfA","price":0,"volume24":0,"tvl":0},{"address":"5DzJvZpriJfdyvjFYUW7SbJDQHXs8PBGeytCz6DPgC6ofzmG","price":0,"volume24":0,"tvl":0}],"poolsData":[{"volume24":0,"tvl":0,"tokenX":"5CtuFVgEUz13SFPVY6s2cZrnLDEkxQXc19aXrNARwEBeCXgg","tokenY":"5EVzJwtb8yeFksbkXsuD49RZeYbzTRUKSyZ8y8iu1bMqrfvS","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CtuFVgEUz13SFPVY6s2cZrnLDEkxQXc19aXrNARwEBeCXgg","tokenY":"5Gu1E9FZrKP2vpLfBXiaRQQjeGRn4ssxj8DrXyFQCkR3N2fc","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CtuFVgEUz13SFPVY6s2cZrnLDEkxQXc19aXrNARwEBeCXgg","tokenY":"5FjtfRqa2dMELrTuhEWd3XgTMXRfX4Sb4mKfRebWdvuVccJ5","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CtuFVgEUz13SFPVY6s2cZrnLDEkxQXc19aXrNARwEBeCXgg","tokenY":"5FxenfueeATgv34qiVgpXkAdFSgV56AshpqwVzfPNGj6ozfA","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CtuFVgEUz13SFPVY6s2cZrnLDEkxQXc19aXrNARwEBeCXgg","tokenY":"5DzJvZpriJfdyvjFYUW7SbJDQHXs8PBGeytCz6DPgC6ofzmG","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EVzJwtb8yeFksbkXsuD49RZeYbzTRUKSyZ8y8iu1bMqrfvS","tokenY":"5Gu1E9FZrKP2vpLfBXiaRQQjeGRn4ssxj8DrXyFQCkR3N2fc","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EVzJwtb8yeFksbkXsuD49RZeYbzTRUKSyZ8y8iu1bMqrfvS","tokenY":"5FjtfRqa2dMELrTuhEWd3XgTMXRfX4Sb4mKfRebWdvuVccJ5","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EVzJwtb8yeFksbkXsuD49RZeYbzTRUKSyZ8y8iu1bMqrfvS","tokenY":"5FxenfueeATgv34qiVgpXkAdFSgV56AshpqwVzfPNGj6ozfA","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5DzJvZpriJfdyvjFYUW7SbJDQHXs8PBGeytCz6DPgC6ofzmG","tokenY":"5EVzJwtb8yeFksbkXsuD49RZeYbzTRUKSyZ8y8iu1bMqrfvS","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5FjtfRqa2dMELrTuhEWd3XgTMXRfX4Sb4mKfRebWdvuVccJ5","tokenY":"5Gu1E9FZrKP2vpLfBXiaRQQjeGRn4ssxj8DrXyFQCkR3N2fc","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5FxenfueeATgv34qiVgpXkAdFSgV56AshpqwVzfPNGj6ozfA","tokenY":"5Gu1E9FZrKP2vpLfBXiaRQQjeGRn4ssxj8DrXyFQCkR3N2fc","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5DzJvZpriJfdyvjFYUW7SbJDQHXs8PBGeytCz6DPgC6ofzmG","tokenY":"5Gu1E9FZrKP2vpLfBXiaRQQjeGRn4ssxj8DrXyFQCkR3N2fc","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5FjtfRqa2dMELrTuhEWd3XgTMXRfX4Sb4mKfRebWdvuVccJ5","tokenY":"5FxenfueeATgv34qiVgpXkAdFSgV56AshpqwVzfPNGj6ozfA","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5DzJvZpriJfdyvjFYUW7SbJDQHXs8PBGeytCz6DPgC6ofzmG","tokenY":"5FjtfRqa2dMELrTuhEWd3XgTMXRfX4Sb4mKfRebWdvuVccJ5","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5DzJvZpriJfdyvjFYUW7SbJDQHXs8PBGeytCz6DPgC6ofzmG","tokenY":"5FxenfueeATgv34qiVgpXkAdFSgV56AshpqwVzfPNGj6ozfA","fee":0.02}],"volumePlot":[{"timestamp":1726747200000,"value":0},{"timestamp":1726920000000,"value":0}],"liquidityPlot":[{"timestamp":1726747200000,"value":0},{"timestamp":1726920000000,"value":0}]}
2 changes: 1 addition & 1 deletion data/a0/full_testnet.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"volume24":{"value":18667.935588195975,"change":0},"tvl24":{"value":35710.088943711366,"change":0},"fees24":{"value":3.0337062620554685,"change":0},"tokensData":[{"address":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","price":63071,"volume24":4099.15999999,"tvl":11669.279946110002},{"address":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","price":0.394095,"volume24":0.023776922605,"tvl":4944.025002870458},{"address":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","price":2558.75,"volume24":3348.7518172833693,"tvl":1535.0698607309128},{"address":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","price":1,"volume24":11219.999994,"tvl":17561.714134},{"address":"5Gf9znZokPCkgczpsZDRYQCF7n9iCuWRzNgbTenPoQRHz33V","price":0,"volume24":0,"tvl":0},{"address":"5EDwDPeXY7kkLnTfWGjXex3n6gkp9swynm82hpL3LanW1MaH","price":0,"volume24":0,"tvl":0},{"address":"5CbrrfFwc9rcJQ4aFrYR79JBDGkEo155ff2cDGnYTGR34ZZZ","price":0,"volume24":0,"tvl":0}],"poolsData":[{"volume24":0,"tvl":0,"tokenX":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","tokenY":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","fee":0.02},{"volume24":500.523775922605,"tvl":10003.67053539466,"tokenX":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","tokenY":"5Gf9znZokPCkgczpsZDRYQCF7n9iCuWRzNgbTenPoQRHz33V","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EDwDPeXY7kkLnTfWGjXex3n6gkp9swynm82hpL3LanW1MaH","tokenY":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","fee":0.02},{"volume24":0.000478840875659999,"tvl":4830.091644216104,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","fee":0.02},{"volume24":7809.6599989900005,"tvl":11975.67228599,"tokenX":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","tokenY":"5Gf9znZokPCkgczpsZDRYQCF7n9iCuWRzNgbTenPoQRHz33V","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","tokenY":"5EDwDPeXY7kkLnTfWGjXex3n6gkp9swynm82hpL3LanW1MaH","fee":0.02},{"volume24":2466.5028695904407,"tvl":4722.14740157132,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5Gf9znZokPCkgczpsZDRYQCF7n9iCuWRzNgbTenPoQRHz33V","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5EDwDPeXY7kkLnTfWGjXex3n6gkp9swynm82hpL3LanW1MaH","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","tokenY":"5Gf9znZokPCkgczpsZDRYQCF7n9iCuWRzNgbTenPoQRHz33V","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EDwDPeXY7kkLnTfWGjXex3n6gkp9swynm82hpL3LanW1MaH","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EDwDPeXY7kkLnTfWGjXex3n6gkp9swynm82hpL3LanW1MaH","tokenY":"5Gf9znZokPCkgczpsZDRYQCF7n9iCuWRzNgbTenPoQRHz33V","fee":0.02},{"volume24":7001.748466852054,"tvl":0,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.01},{"volume24":0,"tvl":656.3397044758,"tokenX":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.01},{"volume24":0.999999,"tvl":346.215408999999,"tokenX":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.05},{"volume24":0,"tvl":63.16336735,"tokenX":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.01},{"volume24":0,"tvl":63.06336937558175,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","fee":0.01},{"volume24":888.499999,"tvl":253.387854,"tokenX":"5CbrrfFwc9rcJQ4aFrYR79JBDGkEo155ff2cDGnYTGR34ZZZ","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","fee":0.1},{"volume24":0,"tvl":2796.3373723379063,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","fee":0.1}],"volumePlot":[{"timestamp":1726920000000,"value":18667.935588195975}],"liquidityPlot":[{"timestamp":1726920000000,"value":35710.088943711366}]}
{"volume24":{"value":9653.130347199934,"change":29.754258048585758},"tvl24":{"value":385484442404.9024,"change":1171646549.2503767},"fees24":{"value":1.8266263208419868,"change":104.225062000583},"tokensData":[{"address":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","price":63065,"volume24":3783.83999999,"tvl":11669.279946110002},{"address":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","price":0.396582,"volume24":0,"tvl":4506.917062262784},{"address":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","price":2551.54,"volume24":0.001654209934799999,"tvl":1530.9718305672245},{"address":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","price":0.999922,"volume24":5869.288693,"tvl":385484424697.7336},{"address":"5Gf9znZokPCkgczpsZDRYQCF7n9iCuWRzNgbTenPoQRHz33V","price":0,"volume24":0,"tvl":0},{"address":"5EDwDPeXY7kkLnTfWGjXex3n6gkp9swynm82hpL3LanW1MaH","price":0,"volume24":0,"tvl":0},{"address":"5CbrrfFwc9rcJQ4aFrYR79JBDGkEo155ff2cDGnYTGR34ZZZ","price":0,"volume24":0,"tvl":0}],"poolsData":[{"volume24":0,"tvl":0,"tokenX":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","tokenY":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","fee":0.02},{"volume24":0,"tvl":10028.798505262785,"tokenX":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","tokenY":"5Gf9znZokPCkgczpsZDRYQCF7n9iCuWRzNgbTenPoQRHz33V","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EDwDPeXY7kkLnTfWGjXex3n6gkp9swynm82hpL3LanW1MaH","tokenY":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","fee":0.02},{"volume24":0,"tvl":4830.091628171383,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","fee":0.02},{"volume24":6983.72479899,"tvl":11975.43742699,"tokenX":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","tokenY":"5Gf9znZokPCkgczpsZDRYQCF7n9iCuWRzNgbTenPoQRHz33V","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","tokenY":"5EDwDPeXY7kkLnTfWGjXex3n6gkp9swynm82hpL3LanW1MaH","fee":0.02},{"volume24":736.9751212099349,"tvl":4721.977388960609,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5Gf9znZokPCkgczpsZDRYQCF7n9iCuWRzNgbTenPoQRHz33V","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5EDwDPeXY7kkLnTfWGjXex3n6gkp9swynm82hpL3LanW1MaH","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","tokenY":"5Gf9znZokPCkgczpsZDRYQCF7n9iCuWRzNgbTenPoQRHz33V","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EDwDPeXY7kkLnTfWGjXex3n6gkp9swynm82hpL3LanW1MaH","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5EDwDPeXY7kkLnTfWGjXex3n6gkp9swynm82hpL3LanW1MaH","tokenY":"5Gf9znZokPCkgczpsZDRYQCF7n9iCuWRzNgbTenPoQRHz33V","fee":0.02},{"volume24":1042.962451,"tvl":385484407675.1065,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.01},{"volume24":0,"tvl":1.646140999999,"tokenX":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.01},{"volume24":0.999963,"tvl":0,"tokenX":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.05},{"volume24":0,"tvl":63.16336435,"tokenX":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.01},{"volume24":0,"tvl":63.06336937551346,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","fee":0.01},{"volume24":888.468013,"tvl":253.378733,"tokenX":"5CbrrfFwc9rcJQ4aFrYR79JBDGkEo155ff2cDGnYTGR34ZZZ","tokenY":"5FaDyzc3K1TtYiuwjcqJzYsXn4NG93Yrimz1dTXPY6HyVFp4","fee":0.02},{"volume24":0,"tvl":0,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5EFDb7mKbougLtr5dnwd5KDfZ3wK55JPGPLiryKq4uRMPR46","fee":0.1},{"volume24":0,"tvl":2792.23937232993,"tokenX":"5CvotjnedNwsJ2thPjiqE4MEsJXhfQB99uC2fkCKnQkgJqj1","tokenY":"5Cvyd9GtVUSuigFkAjimYqxpqUfzXaht3rKMA9WjQBDeeeiu","fee":0.1}],"volumePlot":[{"timestamp":1726747200000,"value":1552.74640154756},{"timestamp":1726833600000,"value":7439.548029002157},{"timestamp":1726920000000,"value":9653.130347199934}],"liquidityPlot":[{"timestamp":1726747200000,"value":30640.124373892533},{"timestamp":1726833600000,"value":32901.08350086065},{"timestamp":1726920000000,"value":385484442404.9024}]}
Loading

0 comments on commit 32276c6

Please sign in to comment.