From 34291c61b38874cdd5617d55e10b8516df843e11 Mon Sep 17 00:00:00 2001 From: agatha Date: Mon, 3 Jun 2024 00:18:35 -0400 Subject: [PATCH] stub functions for dev and community fund withdrawal --- staking/stakecalc2.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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()