From acda73fff4474c0124b2293516b9c75b6be49db9 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Fri, 27 Jan 2023 18:07:45 -0600 Subject: [PATCH] Clarify sequence for value propagation --- forum-network/src/classes/forum.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forum-network/src/classes/forum.js b/forum-network/src/classes/forum.js index 6b7eb88..aa95bdf 100644 --- a/forum-network/src/classes/forum.js +++ b/forum-network/src/classes/forum.js @@ -78,7 +78,7 @@ export class Forum extends ReputationHolder { } async onValidate({ - bench, pool, postId, tokenId, + bench, postId, tokenId, }) { this.activate(); const initialValue = bench.reputation.valueOf(tokenId); @@ -96,7 +96,7 @@ export class Forum extends ReputationHolder { // Compute rewards const rewardsAccumulator = new Map(); - await this.propagateValue(rewardsAccumulator, pool, post, initialValue); + await this.propagateValue(rewardsAccumulator, this, post, initialValue); // Apply computed rewards to update values of tokens for (const [id, value] of rewardsAccumulator) {