Smart Contract Transfers with Memos #1534
Replies: 6 comments 15 replies
-
An alternative to this can be achieved without introducing a CAP, specifically:
|
Beta Was this translation helpful? Give feedback.
-
Why not just add a memo field to the existing |
Beta Was this translation helpful? Give feedback.
-
I'm against this proposal because it would require applications that monitor balances to add yet another way in which balances are transferred to their indexing logic. There are already 6 different ways to transfer balances on Stellar today:
We have an opportunity to limit this fragmentation by keeping |
Beta Was this translation helpful? Give feedback.
-
From sep-0044: “would make it extremely easy for existing contracts to store balances against the muxed account instead of the underlying account” is useful. I too like the approach of dmkozh I hope you leave classic memos alone. They are a useful message queue without single point of failure. BE |
Beta Was this translation helpful? Give feedback.
-
I agree with #1534 (comment) |
Beta Was this translation helpful? Give feedback.
-
@tomerweller pointed out offline that it would be less awkward with the CAP-61 event topics and stacking the 'memo' ontop of a maybe asset name (what the Stellar Asset Contract does), if we added the token name to the topics of all events, so the token events match the Stellar Asset Contract events. We can do this by: 1️⃣ Proposing a change to SEP-41, like: #1540. 2️⃣ Or we could open a new SEP-?? that adds the name: String field to all token events. The Stellar Asset Contract already implements SEP-??. SEP-44 is then updated accordingly to depend on SEP-??, and adds the memo topic after the name topic. CAP-61 is then updated accordingly to depend on SEP-??. I'm partial to 2️⃣, but interested to hear what others think. SEP-41 is technically still in draft. |
Beta Was this translation helpful? Give feedback.
-
Hi all, I'm opening a discussion about the issue of sending transfers with smart contracts to custodial entities using memos and muxed identifiers.
Relying on tx memos is broken because it is limited to one destination per tx, which at best is limiting and at worst is ambiguous. Classic has the ability via muxed accounts to send to a different destination per payment, but in smart contracts we're back to the old story that payments themselves do not have a facility to support specifying a muxed id, or a memo, or a tag that associates with that specific transfer.
I'm starting the discussion with a simple idea that @tomerweller suggested, documented in these two documents:
transfer_with_memo
function that is a SEP-41 token extension that publishes a memo event(I should have just posted the ideas here rather than already documented them in drafts, the above proposals are just drafts and nothing more, because I think there are very likely alternative ideas that we should explore too.)
Beta Was this translation helpful? Give feedback.
All reactions