Add MakerToTakerMessage
for Invalid Swap Amounts
#356
Labels
enhancement
This enhances the code and improves stuffs
Milestone
coinswap/src/maker/handlers.rs
Lines 244 to 257 in 67c39a9
Whenever Maker gets
ReqContractSigsForSender
message from Taker and the send amount is not within the range of maker i.e (min_swap_amount, max_offersize) -> then we propagate the error which ultimately reaches tohandle_client
as shown:coinswap/src/maker/server.rs
Lines 544 to 545 in 67c39a9
which causes failure to handle client and maker recieves the log message that it fails to handle the client.
Though this wouldn't cause any damage to Maker but it is bad in terms of UX because It's the fault of
Taker
notMaker
.Proposed Solution:
MakerToTakerMessage
variant which states about this situation that the send amount is not within the range of that Maker.The text was updated successfully, but these errors were encountered: