How do i distribute neurons to NNS principal IDs for SNS tokens in Motoko?

I’m not sure if possible (yet).

I would like to have a canister with FPL within it, create a neuron and then send it to someone’s NNS principal ID.

Thanks,
James

2 Likes

I don’t have the code for you (i do have a bash script that does something similar with a user owned neuron) but afaik you can create a neuron, set all permissions to the receiver principal and remove the initial controller permissions from the neuron

2 Likes

This would be so cool if possible gunna try will let you know

2 Likes

Interesting idea, but imagine project send you neuron with 1 token, staked for 4 years, it forces you to vote on proposals. Now imagine 20+ projects that sent you neurons that you did not ask or wanted.
In that case there must be message if receiver want to accept it or not.

2 Likes

But I can send you tokens without your permission.

Would it not be better to allow an IID to accept neurons in the same way but also just be able to transfer / delete them? (Burning the tokens) (Burn Neuron)

Even just a setting to say ‘Allow incoming neurons’ - which you could toggle on when a certain project is distributing neurons. Or even a screen in the NNS with neurons that have been sent and you just accept them if you want them, and like a clear all button, again burning them. I feel like there’s a lot of solutions.

There is already a standard required to become a project with SNS neuron creation capabilities and one would hope that standard would include not randomly sending everyone unwanted neurons.

But I’m also all for spam avoidance but there isn’t really a process for neuron creation other than the initial SNS configuration. It’s a bit one dimensional - what if you wanted to do another SNS and distribute neurons. I understand the alternative is to just hold the tokens within the secondary SNS canister wallet and release over time as liquid tokens but it’s just extra steps for development and users.

1 Like