stub functions for dev and community fund withdrawal
This commit is contained in:
parent
77967881db
commit
34291c61b3
@ -15,7 +15,7 @@ class StakingPool:
|
|||||||
|
|
||||||
self.user_balances = {}
|
self.user_balances = {}
|
||||||
|
|
||||||
def deposit(self, user: str, amount: float):
|
def stake(self, user: str, amount: float):
|
||||||
# Calculate fee
|
# Calculate fee
|
||||||
|
|
||||||
# Distribute fee
|
# Distribute fee
|
||||||
@ -27,7 +27,7 @@ class StakingPool:
|
|||||||
# Update user_balances with new deposit
|
# Update user_balances with new deposit
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def withdraw(self, user: str):
|
def unstake(self, user: str):
|
||||||
# Fetch amount from user_balances
|
# Fetch amount from user_balances
|
||||||
|
|
||||||
# Remove user from pool to prevent self-reward leaving a hanging balance
|
# Remove user from pool to prevent self-reward leaving a hanging balance
|
||||||
@ -41,6 +41,12 @@ class StakingPool:
|
|||||||
# 3. Reward stakers
|
# 3. Reward stakers
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def dev_withdrawal(self, destination: str, amount: float):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def community_withdrawal(self, destination: str, amount: float):
|
||||||
|
pass
|
||||||
|
|
||||||
def __distribute_reward(self, amount):
|
def __distribute_reward(self, amount):
|
||||||
# # # #
|
# # # #
|
||||||
# Lock user_balances mutex
|
# Lock user_balances mutex
|
||||||
@ -54,3 +60,11 @@ class StakingPool:
|
|||||||
# Unlock user_balances mutex
|
# Unlock user_balances mutex
|
||||||
# # # #
|
# # # #
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user