Thanks to
pooya87 and
ETFbitcoin. But, I do not know why exchanges are still make use of the 3-prefix litecoin addresses, litecoin users do make such mistakes by sending litecoin to bitcoin address or sending bitcoin to litecoin address, that is why developers have come to the invention of litecoin P2SH converted that can convert the litecoin 3-prefix address to M-prefix address. The M-prefix address can be easily differentiated from bitcoin 3-prefix address, and also that the M-prefix litecoin address is not valid on bitcoin blockchain. Although, user can either send to the M-prefix or the corresponding 3-prefix and will reflect on the wallet or exchange.
Avoiding User ErrorIn order to resolve this confusion, the Litecoin community developed a new address format that is prefixed with M, a format that would not be valid on Bitcoin. The underlying private and public key pair are the same, but the hashing algorithm for displaying the public key is altered. This means that 3- and M- addresses are both interchangeable for the purposes of movement of funds on the Litecoin blockchain. This simple change drastically reduces cases of erroneous cross-chain transfers.
To help Litecoin Futures traders avoid loss of funds, we use P2SH-P2WPK deposit addresses with the M prefix. We believe this strikes the right balance of supporting Segwit on the Litecoin network as the community wants, while minimising issues of wallet compatibility that Bech32 address format has.
Wallet/Exchange CompatibilityHowever, some users may still be using wallet software or exchanges which do NOT support sending LTC to M-prefixed addresses. As a result, you may need to convert the M-prefix deposit address on Crypto Facilities to a corresponding 3-prefix address in order to transfer funds. To easily convert between the standard 3-prefix P2SH address format to M-prefix, you can use this open source tool provided by the Litecoin Foundation:
https://litecoin-project.github.io/p2sh-convert/ The source code can be viewed here:
https://github.com/litecoin-project/p2sh-convertExample
Lets say your deposit address on Crypto Facilities is: MV5rN5EcX1imDS2gEh5jPJXeiW5QN8YrK3. Now you go on your favourite exchange and request a withdrawal to this address. But you get a validation error saying this is not a real Litecoin address. As a result, your withdrawal is rejected. To resolve this, all you have to do is convert this M-prefix address to its 3-prefix address. When you convert it, it displays: 3Nsi4BpeZtsLQvkn8p6PZfHFPoUxKbJ1YY
These two addresses are interchangeable. If you send 1 LTC to the 3-address, it will be the same as if you send to the M-address, the underlying keys are the same. The only difference is that some wallets support only 3- and not M-. If you find yourself in this situation, encourage your wallet provider or exchange to upgrade their Litecoin Core node to the latest version and use the converter tool to accomodate the transfer in the meantime.
https://cryptofacilities.zendesk.com/hc/en-us/articles/360006040974-Litecoin-Address-Format
The converter is open source and you can check the source code using the link above.
https://litecoin-project.github.io/p2sh-convert/