parallel-finance / parallel

A decentralized lending & staking protocol built on top of the Polkadot ecosystem.
https://parallel.fi
GNU General Public License v3.0
119 stars 35 forks source link

Integrate xcm.transact into pallet-liquid-staking #566

Closed GopherJ closed 3 years ago

GopherJ commented 3 years ago
GopherJ commented 3 years ago

Non-decentralized parts:

Future thoughts:

  1. QueryHolding may help on rewards/slashes, we can add a xcm message to tell the relaychain that we want balance info of derivative account
  2. settlement can maybe be called by governance because it'll only provide two information now bonding_amount unbonding_amount
GopherJ commented 3 years ago

Workflow:

user stake -> stake-client/governance call settlement -> parachain call upward transfer, xcm.transact to bond user unstake -> stake-client/governance call settlement -> parachain call xcm withdraw_unbonded -> parachain call on_idle

nominate/payout_stakers -> via governance

GopherJ commented 3 years ago

@alannotnerd maybe you can give your thoughts

GopherJ commented 3 years ago

done