Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

stake-pool: Ensure zero pool token supply on init #1572

Merged
merged 1 commit into from
Apr 5, 2021

Conversation

joncinque
Copy link
Contributor

Problem

The stake pool init does not check the supply on the pool token mint, so someone could mint a bunch of tokens to themselves, then reuse that mint for a stake pool.

Solution

Add a supply check and test

@joncinque joncinque requested a review from mvines April 5, 2021 12:46
@joncinque joncinque merged commit 7f89183 into solana-labs:master Apr 5, 2021
@joncinque joncinque deleted the sp-zero branch April 5, 2021 18:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants