Clarify sequence for value propagation
This commit is contained in:
parent
db8a8ca346
commit
acda73fff4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue