Repository navigation
Show the staking-required alert only for NCATPs - #157
Merged
Merged
Conversation
Only NCATPs must stake before they can withdraw. The alert excluded a list of insider registries instead, so investor LATPs from the investor registry could still trigger it. Gate it on the ATP type.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Investors with ATPs from the investor registry (0x667d2641cb96734f386adA6A9afCF07B1815fB8b) still see the "You must stake your tokens before you can withdraw them" alert when they connect.
Only NCATPs have to stake before they can withdraw. The alert instead counted every ATP except those from a list of insider registries (#152). This gates it on the ATP type instead: it fires only when the wallet's NCATPs reach the activation threshold. LATPs and MATPs never trigger it, whatever registry they come from.
Checked on mainnet: all 156 investor ATPs are LATPs from that registry, and
claim()simulated from investor beneficiaries succeeds, so nothing on-chain requires them to stake.The insider registry list is still used to block delegation (
SourceSelectionModal,StakingChoiceModal).