Skip to content

Pool Balance is not consistent Upon Removing Validator With some stake which causes minting of extra pool tokens #222

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

Open
Maverick9081 opened this issue Apr 20, 2025 · 0 comments

Comments

@Maverick9081
Copy link

Maverick9081 commented Apr 20, 2025

Hello,

We are Using Version 2.0.0 version of stake-pool. Upon removing Validators with some Stake, The Stake should be Unstaked in the and should be reflected in pool-reserve or in transient-stake. But the stake is reflected no where in the stake pool program which creates massive issues.

Here's What Happened,

We Removed two validators from our pool, One had 2317 Sol in stake and other one had 1433 in stake.

Remove txs : Validator-1 ,
Validator-2

And at the start of the epoch We record Pool snapshot, And also Update pool balance, and validatorListBalance hourly.

After the epoch of validator Removal Our pool showed a massive 4 Figure APY , Due to At the time of recording balance the Removed stake was not to be found . For that epoch There was a deficit of around 3750 between Sol and Our PoolToken. Which caused the High APY. It was just not our calculation but Solana-compass showed similar apy for our pool as well.

Image

The 3750 shows up the next epoch, so we though everything was back to normal

But the issue didn't end there, Recently we came to know that The pool token Price went down massively in that same epoch.It was because The pool Minted 181 Pool tokens to the pool fee account which is arounf 5% of the amount that was vanished. In our pool 5% is the Rewards fee . So the pool counts the 3750 sol as validator rewards and mints 5% to the Fee account But in reality , The Sol were User staked Sols not rewards.

Rewards Minting tx : TX

Token price : Price

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

No branches or pull requests

1 participant