-
Notifications
You must be signed in to change notification settings - Fork 1.3k
add revenue endpoint #2878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add revenue endpoint #2878
Conversation
The thalaswap-v2 adapter exports:
|
1 similar comment
The thalaswap-v2 adapter exports:
|
dexs/thalaswap-v2/index.ts
Outdated
|
||
const totalRevenueQuery = (await fetchURL(revenueEndpoint(0, "ALL")))?.data; | ||
const totalRevenue = totalRevenueQuery.reduce( | ||
(partialSum: number, a: IVolumeall) => partialSum + a.value, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a filter here to ignore datapoints with a.timestamp > timestamp
this way, we avoid setting setting incorrect total revenue for past records while refilling, same check for volume
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.
The thalaswap-v2 adapter exports:
|
No description provided.