babylonlabs-io / babylon

Other
23 stars 15 forks source link

Allow choosing `min_unbonding_time` in the params as unbonding time #263

Open gitferry opened 2 days ago

gitferry commented 2 days ago

Currently the unbonding time in a delegation is checked by unbonding_time > max(min_unbonding_time, checkpoint_finalization_timeout) which means the unbonding time must be higher than min_unbonding_time, which is not aligned with other min values in the params where inclusive value is allowed. This causes confusion for the frontend to show a valid unbonding time to the users.

An ideal solution is to allow using a min value for the unbonding time and enforce the rule that min_unbonding_time > checkpoint_finalization_timeout.