Skip to content

Commit

Permalink
remove volume
Browse files Browse the repository at this point in the history
  • Loading branch information
igorshelkovenkov committed Apr 3, 2024
1 parent f47338e commit 7c593f6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dexs/javsphere/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,21 @@ type DexData = {
type StakingData = {
totalFees: number,
dailyFees: number,
totalVolume: number,
dailyVolume: number,
};

const methodology = {
Fees: "User pays 0.1% fees on each trade. User pays 10% fee of rewards in dusdstaking.",
Volume: "User buys and sell RWA tokens. User get in and out of dusdstaking.",
Volume: "User buys and sell RWA tokens.",
}

const fetch = async (timestamp: number) => {
const stats: DexData = (await fetchURL(`https://aws-api.javlis.com/api/dtoken/stats`)).data;
const statsStaking: StakingData = (await fetchURL(`https://aws-api.javlis.com/api/dusdStaking/stats`)).data;
return {
totalVolume: `${stats.volumeTotal + statsStaking.totalVolume}`,
totalVolume: `${stats.volumeTotal}`,
totalFees: `${stats.feeTotal + statsStaking.totalFees}`,
dailyFees: `${stats.fee24 + statsStaking.dailyFees}`,
dailyVolume: `${stats.volume24 + statsStaking.dailyVolume}`,
dailyVolume: `${stats.volume24}`,
timestamp,
};
};
Expand Down

0 comments on commit 7c593f6

Please sign in to comment.