Added validator liquid staking cap as an additional safety feature. The cap restricts validators from have more than X% of their shares liquid either tokenized or owned by an ICA account.
Changelog
Added parameters ValidatorLiquidStakingCap and LiquidStakingCapsEnabled
Added helper function CheckExceedsValidatorLiquidStakingCap to check if a new liquid delegation would cause a validator's liquid staking cap to be exceeded
Added check in SafelyIncreaseValidatorTotalLiquidShares that the validator's liquid staking cap is not exceeded
Removed ValdiatorBondCapEnabled and GlobalLiquidStakingCapEnabled functions and replaced it with a the new LiquidStakingCapsEnabled which now acts as the single switch to toggle on/off any liquid staking safety thresholds
Context
Added validator liquid staking cap as an additional safety feature. The cap restricts validators from have more than X% of their shares liquid either tokenized or owned by an ICA account.
Changelog
ValidatorLiquidStakingCap
andLiquidStakingCapsEnabled
CheckExceedsValidatorLiquidStakingCap
to check if a new liquid delegation would cause a validator's liquid staking cap to be exceededSafelyIncreaseValidatorTotalLiquidShares
that the validator's liquid staking cap is not exceededValdiatorBondCapEnabled
andGlobalLiquidStakingCapEnabled
functions and replaced it with a the newLiquidStakingCapsEnabled
which now acts as the single switch to toggle on/off any liquid staking safety thresholds