Skip to content

Conversation

@rawdaGastan
Copy link
Contributor

Description

Payments merged in development branch

rawdaGastan and others added 27 commits September 3, 2025 15:56
…dmin crediting

- apply 50% discount for rented nodes (extra)
- check case of 0 discount not returning 0
- add one extra day in discount to make sure it will be applied
- add name contracts to usage calculations
- handle certified nodes in calculations
- handle trnasfer fees in reset user balance (it is not needed as it checks for minimum balance but added)
- fix checking certified node
- calculate all user rented and shared nodes when calculating daily usage"
- check TFT wallet balance before funding user to match a dicount
- save last date for usage calculation in DB not in memory
- remove unique constraint in contract records on node ID
- skip rented from calculation because they are already caluclated
- improve fulfill user balance to match a discount logic and add it to add node
- add failed records in settling pending payments
- add transactions for cluster handling contract records
…ng discount fund

- add ctx to routines
- settle and fund user after charging balance
@rawdaGastan rawdaGastan changed the title Development Development payments Nov 20, 2025
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