All chains
    Preparing search index...

    Type Alias LastValidatorEra

    LastValidatorEra: StorageDescriptor<[Key: SS58String], number, true, never>

    Tracks the last era in which an account was active as a validator (included in the era's exposure/snapshot).

    This is used to enforce that accounts who were recently validators must wait the full [Config::BondingDuration] before their funds can be withdrawn, even if they switch to nominator role. This prevents validators from:

    1. Committing a slashable offence in era N
    2. Switching to nominator role
    3. Using the shorter nominator unbonding duration to withdraw funds before being slashed

    Updated when era snapshots are created (in ErasStakersPaged/ErasStakersOverview). Cleaned up when the stash is killed (fully withdrawn/reaped).