DeFi

Dust Position

A dust position is a very small residual balance, debt, share amount, liquidity amount, or collateral amount left after protocol actions.

A dust position is a tiny leftover position that can still affect accounting.

Dust Position Explained in Detail

A dust position is a tiny leftover state value. It can come from rounding, fees, partial repayments, partial withdrawals, minimum units, or interest accrual.

The position may be economically small but still important to contract logic.

Smart contract example

repay almost all debt -> 1 wei debt remains -> collateral withdrawal stays blocked

That one wei can change whether an account is considered closed.

Dust Position in Auditing

Dust positions can block account closure, avoid liquidation, create bad debt, bloat arrays, or trap funds. They also expose rounding assumptions.

Auditors test whether users can reach a clean zero state.

Red flags in code

  • No minimum position size.

  • No full-close path.

  • Rounding leaves 1 wei of debt, shares, or collateral.

  • Liquidation skips small accounts forever.

  • Reward or liquidation loops include many dust accounts.

How to test or review it

  • Fuzz partial deposit, withdraw, borrow, repay, liquidate, and close flows.

  • Test exact zero, one unit, and minimum-size boundaries.

  • Check whether dust can accumulate globally.

  • Verify users can fully close positions.

  • Review rounding direction for every conversion.

Practice this in real audit scenarios

Definitions help, but auditors need reps. SCH turns concepts like Dust Position into exploit labs, code review habits, and report-writing practice.

Start the free trial or see the full smart contract auditing course.

Sources