Closed 0xskydb closed 2 years ago
@0xkobe @junkai121 the Msg Server handlers for MsgTokenizeShares, MsgRedeemTokensforShares and MsgTransferTokenizeShareRecord need to be queued for execution at the end of the epoch instead of being immediately executed.
Moved to non-epoch solution, Hence closing this PR.
Here is a high level description of the implementation.
Any delegator to a validator can send a
MsgTokenizeShares
transactions that converts some or all of their delegation into transferable tokens at the end of the epoch. The Token denim is the ValidatorAddress + the integer id of the TokenizeShareRecord. Thus the initial tokens only fungible within the original conversion set.The Tokenized delegation is redeemable back into ordinary delegation shares at the end of the epoch.
Rewards are not tokenized in this design. Instead there is an owner address in the TokenizeShareRecord that can withdraw the record.