parallel-finance / parallel

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

Test Liquidstaking in Polkadot UI #706

Closed mclyk closed 2 years ago

mclyk commented 2 years ago

Test function list

Bug list

Refer

ParaId 2085 account id: 5Ec4AhNtg8ug9xAezbpQom1Pz4PtM7q9bF12AC4T6Zp1PoCB 2085_0 account id( is the derivated account of 2085 in index 0): 5EAmv9oydjn3BkFJEaeB6X59S2TUsLFfZKLbepsLkdeCBset

mclyk commented 2 years ago

1.1 dmp transfer from relaychain

1 dmp transfer from relaychain

1.2 alice recevie in parachain

2 alice recevie in parachain

2.1 liquidstaking.stake

3 liquidstaking stake Stake amount should cover xcm fee, which means stake_total_amount * reserve_factor > xcm_fees_compensation

2.2 liquidstaking.palletid account ksm

4  liquidstaking palletid account

3.1 sudo liquidstaking settlement (bond)

5 sudo liquidstaking settlement

3.2 bond status

bond status

3.3 success liquidstaking.bond by derivated account

6 success bond

4.1 stake again

3 liquidstaking stake

4.2 sudo liquidstaking settlement (bond_extra)

settlement bond_extra

4.3 bond status

bond status

5.1 liquidstaking.nominate

5 1 liquidstaking nominate

5.2 nominator status

5 2 nominator status

5.3 nominator status (at next era)

5 3 nominator status2

6.1 payout_stakers

remove it now

7.1 unstake

7 unstake

7.2 settlement (unbond)

settlement

7.3 unbond status

unbond status

8.1 stake after unbond

stake after unbond

8.2 settlement (rebond)

settlement-rebond

8.3 rebond success

rebond rebond success

9.1 withdraw_unbond

withdraw_unbond

9.2 withdraw_unbond event in relaychain

withdraw_unbond event

9.3 no lock after withdraw_unbond

no lock after withdraw_unbond

10.1 initial status before record_staking_settlement

initial status before record_staking_settlement

10.2 record_staking_settlement reward

record_staking_settlement reward increase exchange rate increase exchange rate

10.3 record_staking_settlement slash

record_staking_settlement slash decrease exchange rate decrease exchange rate

11.1 initial XcmFeesCompensation

initial XcmFeesCompensation

11.2 sudo XcmFeesCompensation

sudo XcmFeesCompensation

11.3 current XcmFeesCompensation

current XcmFeesCompensation

12 test settlement (bond and rebond)

12.1 unstake 12 1 unstake 12.2 trigger unbond 12 2 trigger unbond 12.3 stake 7 more 12 3 stake 7 12.4 trigger bondextra and rebond 12 4 trigger bondextra and rebond 12.5 parachain event 12 5 parachain event 12.6 relaychain event 12 6 relaychain event 12.7 relaychain status 12 7 relaychain status

mclyk commented 2 years ago

payout_stakers bug

send from parachain payoutStakers bug on relaychain payeroutstakers bug payoutstakers exceed the max weightlimit payoutstakers exceed the max weightlimit

mclyk commented 2 years ago

MaxRewardsPerEra and MaxSlashesPerEra is too low image

yz89 commented 2 years ago

LGTM!