Quorum fails if below 1% in Governor designer Wizard

When using the contract wizard, Quorum is an input that can be set, and it will change the value in the contract.

However, this fails if you want a quorum value below 1%. In this example, 0.1%:

Two possible things I'd appreciate help with:

  1. If we wanted to do 0.1% in our contract manually, what could we do to adjust this?
  2. Could the wizard be updated to support this?

Thanks!

Getting 0.1%

You can override quorumDenominator to get a custom proportion. The default value is 100 but with the denominator as 1000, your requirement can be easily fulfilled.

OZ Wizard

image

For me, the Wizard just bugs out with an error in the console if I enter a fraction and then I can even click both the radio buttons.

1 Like

In general, all crypto is in integers. It will never like 0.1, it needs some kind of divisor to keep everything in integers. So 0.1 100ths is not copacetic, but 1 1000ths is. That's why you need to update the denominator per @atharvashukla

Update:

I had posted an Issue on the Wizard Repository on Github. (Link to the issue). And it was closed today with an update to the Wizard. It can now handle decimal values for the quorum! :tada:

Thanks @ericglau

2 Likes