# iota.rs dust protection
- For outputs:
if output_amount < 1_000_000 {
// get outputs for this address and check if one more dust is allowed there, if not return error
}
- Get inputs and calculate remaining iotas, if remaining amount < 1_000_000 return error
- If remaining on address from which we want to spend a dust allowance output will leave dust behind which can't be there return an error