Skip to content

Commit 146d46b

Browse files
alcercujaybuidl
authored andcommitted
fix(subgraph): bad argument order
1 parent e1a6d1d commit 146d46b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subgraph/src/entities/JurorTokensPerCourt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function updateJurorStake(
6161
jurorTokens.staked = jurorBalance.value0;
6262
jurorTokens.locked = jurorBalance.value1;
6363
jurorTokens.save();
64-
const stakeDelta = getDelta(jurorTokens.staked, previousStake);
64+
const stakeDelta = getDelta(previousStake, jurorTokens.staked);
6565
juror.totalStake = juror.totalStake.plus(stakeDelta);
6666
court.stake = court.stake.plus(stakeDelta);
6767
let activeJurorsDelta: BigInt;

0 commit comments

Comments
 (0)