update contract_fund amount
This commit is contained in:
parent
f2c3898d04
commit
663621f79d
@ -32,6 +32,8 @@ class StakingPool:
|
|||||||
self.__distribute_reward(reward_amount)
|
self.__distribute_reward(reward_amount)
|
||||||
|
|
||||||
# Deposit amount minus fee to contract_fund (wallet)
|
# Deposit amount minus fee to contract_fund (wallet)
|
||||||
|
self.contract_fund += amount - total_fee
|
||||||
|
|
||||||
# Update user_balances with deposit amount
|
# Update user_balances with deposit amount
|
||||||
if user not in self.user_balances:
|
if user not in self.user_balances:
|
||||||
self.user_balances[user] = amount - total_fee
|
self.user_balances[user] = amount - total_fee
|
||||||
|
Loading…
Reference in New Issue
Block a user