-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
bsc_zoo.js incorrectly calculating the rewards (share of pool) #1650
Comments
printChefPool is in ethers_helpers |
Many thanks. I'm not sure why I failed to find that in a search- too much noise in the results! |
this happens usually if there is too much of the coin on the contract, e.g. if its in 2 different pools, or if its a pool token and a reward token at the same time. we generally use balanceOf to get the staked amount |
Sorry I'm all new to this. Noted the actual KEY contract wasn't in the bsc_tokens array in bsc_helpers, which led to predicted APR and reward amount not being populated. Although now populated these seem a fraction of what is expected. Is this a by-product of what you mentioned before or have I created another issue |
Current % of the pool is calculated as ( your stake $ / total staked $ ).
Zoo % of pool should be calculated as ( your stake $ / tvl $ )
I downloaded the repo and couldn't seem to find where this calculation is done in bsc_zoo.js.
I couldn't find the printChefPool function which may perform this- I assume this is a database function.
Side note - the reward key contract looks to be wrong in the repo (should be https://poocoin.app/tokens/0x6652462466dcee5cb1dda95379fae3c3e57f6719) however it was mystically working for 5 mins yesterday and the repo didn't seem to be altered, however it's not working again this morning.
The text was updated successfully, but these errors were encountered: