babylonlabs-io / babylon

Other
23 stars 17 forks source link

Validate `minStakingTime > minUnbondingTime` in btcstaking params #296

Open gitferry opened 13 hours ago

gitferry commented 13 hours ago

Without this validation rule, staker may choose valid staking time and unbonding time but cannot pass validation in https://github.com/babylonlabs-io/babylon/blob/8339e55ca267bafb0fb4e802cbf47c447fc70921/x/btcstaking/keeper/inclusion_proof.go#L65