Skip to content

Use receipt spent instead of cumulative amount when closing a session#349

Merged
Slokh merged 1 commit intotempoxyz:mainfrom
duneanalytics:main
Mar 23, 2026
Merged

Use receipt spent instead of cumulative amount when closing a session#349
Slokh merged 1 commit intotempoxyz:mainfrom
duneanalytics:main

Conversation

@ivpusic
Copy link
Contributor

@ivpusic ivpusic commented Mar 20, 2026

Currently, session close takes a cumulative amount instead of the actual receipt spent amount. This is causing charges higher than what is actually spent.

This PR changes that to charge what is actually spent when closing a session, with a fallback to the cumulative amount if the spent amount is not present.

@Slokh Slokh merged commit edb0084 into tempoxyz:main Mar 23, 2026
7 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants