The calculation of dust in Bitcoin has different values for different payment types. For non-Witness: (148 + vout size)rate For Witness: (67+vout size)rate
According to our calculation logic, our common P2PKH is 546, P2SH is 540, the minimum value of Witness is P2WPKH is 294, and P2TR is 330
However, the comments only mentioned P2PKH’s 546 and P2WPKH’s 294, which is inconsistent with the code logic.
These four payment types are very common in BTC wallets, so I think it is necessary to update the comments