Skip to content

Implement zero-amount and dust transaction handling #380

@Smartdevs17

Description

@Smartdevs17

Description

Zero-amount and dust transactions can cause edge cases in accounting. Implement proper handling with clear semantics.

Acceptance Criteria

  • Zero-amount deposit/borrow/repay rejection
  • Dust accumulation prevention (minimum transaction size)
  • Dust sweep mechanism for users
  • Rounding direction consistency (depositor-friendly)
  • Gas-efficient dust checking
  • Comprehensive edge case tests

Technical Scope

  • stellar-lend/contracts/hello-world/src/test_zero_amount.rs
  • stellar-lend/contracts/lending/src/
  • docs/ZERO_AMOUNT_SEMANTICS.md
  • Edge: precision loss in interest calculation, dust from liquidations, rounding asymmetry

Metadata

Metadata

Labels

200-points200 point issueStellar WaveIssues in the Stellar wave programdrips-waveDrips Wave project taskhighHigh priority issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions