You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (pnkDeposit >0&& pnkWithdrawal >0) revertStakingFailed();
1031
+
if (!sortitionSuccess) {
1032
+
_stakingFailed(_onError);
1033
+
returnfalse;
1034
+
}
1016
1035
if (pnkDeposit >0) {
1017
-
// Note we don't return false after incorrect transfer because when stake is increased the transfer is done immediately, thus it can't disrupt delayed stakes' queue.
uint96[] courtIDs; // The IDs of courts where the juror's stake path ends. A stake path is a path from the general court to a court the juror directly staked in using `_setStake`.
54
54
uint256 stakedPnk; // The juror's total amount of tokens staked in subcourts. Reflects actual pnk balance.
55
55
uint256 lockedPnk; // The juror's total amount of tokens locked in disputes. Can reflect actual pnk balance when stakedPnk are fully withdrawn.
56
-
mapping(uint96=>uint256) stakedPnkByCourt; // The amount of PNKs the juror has staked in the court in the form `stakedPnkByCourt[courtID]`.
expect(awaitsortition.getJurorBalance(deployer,2)).to.be.deep.equal([PNK(5000),0,PNK(3000),2]);// stake has changed immediately, WARNING: this is misleading because it's not actually added to the SortitionSumTree
189
+
expect(awaitsortition.getJurorBalance(deployer,2)).to.be.deep.equal([PNK(5000),0,PNK(2000),2]);// stake has changed immediately, WARNING: this is misleading because it's not actually added to the SortitionSumTree
190
190
});
191
191
192
192
it("Should transfer some PNK out of the juror's account",async()=>{
0 commit comments