Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Crowdloan contribution memos can be overwritten #3696

Open
JoshOrndorff opened this issue Aug 23, 2021 · 0 comments
Open

Crowdloan contribution memos can be overwritten #3696

JoshOrndorff opened this issue Aug 23, 2021 · 0 comments

Comments

@JoshOrndorff
Copy link
Contributor

JoshOrndorff commented Aug 23, 2021

The crowdloan pallet provides the opportunity for contributors to add "memo" to their contribution. This feature was added in #2728. The memo is never read or used by the relay chain itself, but it is stored in relay chain storage. This field provides a way for contributors to trustlessly associate a parachain identity with a contribution in order to reap rewards on the parachain. (The reward scheme itself is left entirely up to the parachain).

The existing add_memo extrinsic can be called multiple times for the same contribution with each call overwriting the memo from the previous call. This makes it challenging for parachains to know which memo to use, especially in a trustless way.

consider a scenario where a user adds a memo, then the parachain issues one-time rewards, then the user changes the memo on-relay-chain. Of course there are any number of concrete ways to address this (take the first memo, take the most recent memo at the time of reward initialization). But it adds complication, and opens the possibility for different parachains to handle it differently from one another, leading to further confusion in the ecosystem.

I recommend that this extrinsic be changed to check whether a memo has already been supplied, and, if it has, return an error, not overwriting the old value.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant