Skip to content

Commit

Permalink
Fix peers using same upper-bound (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandemeusy authored Jun 6, 2024
1 parent 693e39b commit 3f3e167
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ct-app/core/core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import asyncio
from copy import deepcopy
import random

from celery import Celery
Expand Down Expand Up @@ -346,7 +347,7 @@ async def apply_economic_model(self):
redeemed_rewards = await self.peer_rewards.get()

for peer in eligibles:
peer.economic_model = model
peer.economic_model = deepcopy(model)
peer.economic_model.coefficients.c += redeemed_rewards.get(peer.address.address,0.0)
peer.max_apr = self.params.economicModel.maxAPRPercentage

Expand Down

0 comments on commit 3f3e167

Please sign in to comment.