Skip to content

Implement zero amount and dust handling#399

Open
TUPM96 wants to merge 1 commit into
Smartdevs17:mainfrom
TUPM96:codex/zero-dust-handling-380
Open

Implement zero amount and dust handling#399
TUPM96 wants to merge 1 commit into
Smartdevs17:mainfrom
TUPM96:codex/zero-dust-handling-380

Conversation

@TUPM96

@TUPM96 TUPM96 commented May 25, 2026

Copy link
Copy Markdown
Contributor

Resolves #380

Summary:

  • add shared dust checks and reject zero/negative configuration values before state changes
  • prevent withdrawals and repayments from leaving residual deposit/debt dust
  • add user sweep functions for existing deposit and debt dust balances
  • use depositor-friendly ceiling interest rounding while keeping I256 intermediate math
  • expose the existing stable-rate contract methods needed by the lending tests and seed stable-rate state at initialization
  • document zero/dust semantics and add edge-case tests

Verification:

  • cargo fmt -p stellarlend-lending -- --check
  • cargo check -p stellarlend-lending
  • cargo test -p stellarlend-lending -- --test-threads=4
  • git diff --check

Copilot AI review requested due to automatic review settings May 25, 2026 11:06
@vercel

vercel Bot commented May 25, 2026

Copy link
Copy Markdown

@TUPM96 is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Smartdevs17

Copy link
Copy Markdown
Owner

⚠️ Merge failed — check CI status.

🤖 Drips Wave Merge Agent

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.

Implement zero-amount and dust transaction handling

3 participants