diff --git a/staking/stakecalc2.py b/staking/stakecalc2.py index 6c29c2d..0632564 100644 --- a/staking/stakecalc2.py +++ b/staking/stakecalc2.py @@ -15,7 +15,7 @@ class StakingPool: self.user_balances = {} - def deposit(self, user: str, amount: float): + def stake(self, user: str, amount: float): # Calculate fee # Distribute fee @@ -27,7 +27,7 @@ class StakingPool: # Update user_balances with new deposit pass - def withdraw(self, user: str): + def unstake(self, user: str): # Fetch amount from user_balances # Remove user from pool to prevent self-reward leaving a hanging balance @@ -41,6 +41,12 @@ class StakingPool: # 3. Reward stakers pass + def dev_withdrawal(self, destination: str, amount: float): + pass + + def community_withdrawal(self, destination: str, amount: float): + pass + def __distribute_reward(self, amount): # # # # # Lock user_balances mutex @@ -54,3 +60,11 @@ class StakingPool: # Unlock user_balances mutex # # # # pass + + +def main(): + pass + + +if __name__ == '__main__': + main()