iqlusioninc / liquidity-staking-module

Other
88 stars 29 forks source link

liquid staking full implementation #3

Closed 0xskydb closed 2 years ago

zmanian commented 3 years ago

Here is a high level description of the implementation.

  1. 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.

  2. The Tokenized delegation is redeemable back into ordinary delegation shares at the end of the epoch.

  3. Rewards are not tokenized in this design. Instead there is an owner address in the TokenizeShareRecord that can withdraw the record.

zmanian commented 3 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.

0xskydb commented 2 years ago

Moved to non-epoch solution, Hence closing this PR.