ssvlabs / ssv-network

SSV Network's smart contracts
https://ssv.network/
GNU General Public License v3.0
46 stars 27 forks source link

Fix Types.shrink() #265

Closed mtabasco closed 1 year ago

mtabasco commented 1 year ago

The function should ensure that the input number is strictly less than the product of the maximum uint64 value and a specific constant. This constant, which is 10,000,000, can be represented as 10e7.