interledger / interledger-rs

An easy-to-use, high-performance Interledger implementation written in Rust
http://interledger.rs
Other
201 stars 70 forks source link

How to handle payment "dust"? #634

Closed kincaidoneil closed 4 years ago

kincaidoneil commented 4 years ago

When enforcing minimum exchange rates, it's possible that--by chance--at the end of the payment, the remaining amount to send becomes too small to safely deliver it the recipient. i.e., the remaining is less the minimum source amount required to deliver money to the recipient without the exchange rate failing due to rounding.

In effect, this is payment "dust." How should this be handled? Should the STREAM sender anticipate the dust and distribute the remaining amount among more, slightly smaller packets?