Skip to content

Show the staking-required alert only for NCATPs - #157

Merged
aminsammara merged 1 commit into
mainfrom
amin/investor-atp-claim
Nov 27, 2026
Merged

aminsammara merged 1 commit into
mainfrom
amin/investor-atp-claim

Conversation

@aminsammara

Copy link
Copy Markdown
Collaborator

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).

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.
@aminsammara
aminsammara requested a review from a team as a code owner November 27, 2026 06:09
@aminsammara
aminsammara merged commit 02fa8cc into main Nov 27, 2026
5 checks passed
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

Successfully merging this pull request may close these issues.

1 participant