You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ADR 003: Fee calculation on disputed channel closes is unspecified #20
ADR 003: The 3% protocol fee is deducted at channel close. But the ADR doesn't specify how fees are calculated when a channel close is disputed:
Client initiates close with stale voucher (amount: 50 USDC) → fee would be 1.50 USDC
Watchtower disputes with latest voucher (amount: 80 USDC) → fee should be 2.40 USDC
When is the fee calculated — at initial close, after dispute resolution, or at final settlement?
Edge cases:
If the fee is taken at initial close and the dispute increases the amount, who pays the additional fee?
If a dispute is submitted but fails (same nonce), is a fee charged on the failed dispute attempt?
Recommendation
Specify in ADR 003 that the protocol fee is calculated at final settlement (after the dispute window closes), based on the highest valid voucher amount submitted. The contract should not deduct fees until the dispute window expires.
Activity
docs: specify fee calculation at settlement, not close, closes #20