Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Pool can run out of available balance because of low pool fee #9

Open
ByronAP opened this issue May 21, 2021 · 4 comments
Open
Labels
enhancement New feature or request

Comments

@ByronAP
Copy link

ByronAP commented May 21, 2021

Having the pool fee hardcoded presents an issue where if lots of miners are participating the pool can run out of funds.

If the total transaction fees + miner rewards > block reward (this would be extreme and probably a flood case) or total transaction fees > pool fee.

Instead the fee should be a multi part calculation.

The pool takes a flat fee (or percentage of reward) and then the total cost for transaction fees is calculated by the number of transactions required, then the remaining balance is what is divided up into the transaction amounts. Well or something along those lines anyway...

@ByronAP
Copy link
Author

ByronAP commented May 21, 2021

self.pool_fee = 0.01

for rec in farmer_records:

blockchain_fee = 0.00001 * (10 ** 12) * len(payment_targets)

@mariano54
Copy link
Contributor

This has been disabled for the time being.

@mariano54 mariano54 added the enhancement New feature or request label Jun 8, 2021
@forReason
Copy link

@ByronAP wouldn't you normally substract the pool fee from the earnings whereas you substract the transaction fee from the actual payout of the Farmer/Miner?

@ByronAP
Copy link
Author

ByronAP commented Jun 18, 2021

@ByronAP wouldn't you normally substract the pool fee from the earnings whereas you substract the transaction fee from the actual payout of the Farmer/Miner?

Since the payout is 'share' based that gets reset at payout not taking the fees ahead of time could/would mean some payees can run into an issue where the payment for a valid but non-substantial amount of 'shares' calculates to a negative

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants