-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make MsgMultiSend single sender #12601
Comments
Already implemented by #12610. |
Hi all. There must be a lot of potential users of this feature. If we don't know about them, it doesn't mean they don't exist. I understand that this carries a complication on the underlying mechanisms and support costs, but I don't have enough context to compare them to the lack of this functionality for the users described However, if you approach the problem from another angle, I can offer another solution to the described user case. For MsgSend module Bank could add some "payment identificator" and then it would be possible to determine from which user the transfer came and due to this receive all funds to one address and send also from one address without carrying out clearing operation |
Hey @AlexTroshkin the use case you mentioned makes sense to me but it raises few doubts. What's your take on collecting funds from many addresses to fund one address, are you going to collect them equally from all addresses to get required payment, in this case I suppose we wouldn't need any identifier. But if not what's your approach and how are you going to use |
Good afternoon, @likhita-809. There are two options for working with funds.
Payment ID directly helps only in the first case, affecting the second. Thanks to it, we can make one address to accept deposits and by identifier identify which user made this deposit (it also requires acceptance to be added to wallets and other exchanges, because users do not send msg manually :D). Something similar is used in XRP and TON Perhaps don't mix it up with the MsgSend / MsgMultisend function, but consider some sort of invoicing mechanism However, it is preferable to keep the funds in separate addresses for each user, but manage all the funds from one single address from which the fee is paid. It's safer than keeping everything at one address - MsgMultisend with more than 1 input was ideal :D |
@AlexTroshkin none of this interferes with the usecase your providing as far as I can tell. You can have a single tx, with one address as fee payer, and many other actions (e.g. individual sends from different accounts) included. |
pinging @alexanderbez @tac0turtle for more visibility |
Hi. There is a need to send simultaneously from many senders to many recipients. This avoids creating transactions that send all funds from senders to a single address from which funds are sent to the user. That's a lot less transactions, less commissions. There is another bad variant when the sender addresses only have tokens without native currency and then the number of transactions doubles - first you have to send native currency to all those addresses so that they can pay the fee for sending funds to a single address |
i still think your use case doesnt show why a multisend needs to be supported, all the use cases are supported via a multimsg tx. This is what i think you are describing as well. |
Summary
cref #12397 , currently MsgMultiSend is complex / complicates further features state machine side due to its accomodation of many senders and many receivers. Theres no known users of the multi-sender functionality [Citation Needed], only users of the multi-recipient functionality.
If this is the case, we should restrict the MsgMultiSend state machine side to only have at most 1 sender.
Proposal
Change the MsgMultiSend validate basic, to require the senders (AKA
inputs
) to be of length 1For Admin Use
The text was updated successfully, but these errors were encountered: