stub functions for dev and community fund withdrawal

This commit is contained in:
agatha 2024-06-03 00:18:35 -04:00
parent 77967881db
commit 34291c61b3

View File

@ -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()