frequency
frequency copied to clipboard
Tokens held by MSA-owned accounts can be withdrawn
Feature Description
Details
Related to #2351, a holder of a control key for an MSA should be able to "withdraw" tokens held by the associated address to another address
A/C
- Only the complete balance held by the MSA account may be withdrawn
- The withdrawal MUST be approved by a Control Key of the MSA that is the source of the withdrawal
- The withdrawal MUST be from the holder of the private key of the address the tokens are withdrawing to
- The MSA Control Key MUST approve the specific address the withdrawal is going to
- Allow Withdrawal as paid extrinsic with fees paid by the transactor
- Allow Withdrawal as free extrinsic with fees paid by the MSA balance
- Fixed Cost is fine
- Option: ~Prepaid fixed cost (paid in to transfer to an MSA in the first place)~
Options
Winner: Withdrawal Tx is submitted by the token withdrawal target (with signature from MSA Control Key)
- ~Withdrawal Tx is submitted by the MSA Control Key (with signature from withdrawal target)~ Don't want some control keys to have to do the act of moving tokens
- Withdrawal Tx is submitted by the token withdrawal target (with signature from MSA Control Key)
- ~Withdrawal Tx takes a long-term, persistent approval step submitted by the MSA Control Key and then a withdrawal step submitted by the token withdrawal target~ Control Key permissions is effectively the same
- ~Withdrawal Tx takes a one-time per withdrawal approval step submitted by the MSA Control Key and then a withdrawal step submitted by the token withdrawal target~ Uselessly complex
- ~Withdrawal Tx via Control Key permissions (see below)~ Future
Withdrawal Tx via Control Key permissions
- Add permissions to control keys (specifically payout permission, but future support for capacity only permission setting)
- Add way to add generic control key to MSA with permissions (non-permission version exists on chain, not in FA yet)
- Withdrawal as free extrinsic with fees paid by the MSA balance
Discussion
(to be moved to A/C once requirements are fully determined):
- Q: Any restrictions on the destination address? Nope
- Q: Do we want to require a signature to prove control of the destination address? Is transactor, so has tx signature
Searched for Related Issues
- [x] I have done a search for related issues and either found none, or noted them