update contract_fund amount

This commit is contained in:
agatha 2024-06-03 00:26:20 -04:00
parent f2c3898d04
commit 663621f79d

View File

@ -32,6 +32,8 @@ class StakingPool:
self.__distribute_reward(reward_amount)
# Deposit amount minus fee to contract_fund (wallet)
self.contract_fund += amount - total_fee
# Update user_balances with deposit amount
if user not in self.user_balances:
self.user_balances[user] = amount - total_fee