mirror of
https://github.com/nspcc-dev/neofs-contract.git
synced 2026-03-01 04:28:59 +00:00
Prohibit double payments per epoch #218
Labels
No labels
I1
I2
I3
I4
S1
S2
S3
S4
U1
U2
U3
U4
alphabet
audit
balance
blocked
bug
config
container
discussion
documentation
enhancement
feature
go
good first issue
help wanted
neofs
neofsid
netmap
nns
nns
performance
proxy
question
reputation
security
task
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-contract#218
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @carpawell on GitHub (Nov 21, 2025).
Nothing stops balance contract from paying for an epoch twice or more in any epoch.
Current Behavior
If IR sends two payment transations in a single epoch, SNs are paid twice.
Expected Behavior
Not more than one payment per epoch.
Possible Solution
Store container's last payment in the balance contract.
Steps to Reproduce
Call SettleContainerPayment twice in any epoch.
Context
https://github.com/nspcc-dev/neofs-node/pull/3650#discussion_r2545397656
Regression
Yes and no: previously IR controlled the number of payments, but now it's contract's responsibility, and it may be smarter.
Your Environment
v0.25.1