dcgtc / dgrants

Decentralized Grant platform that implements quadratic funding.
GNU Affero General Public License v3.0
84 stars 39 forks source link

bug: ensure CLR calculations are saturated #492

Open thelostone-mc opened 2 years ago

thelostone-mc commented 2 years ago

Describe the bug

We have a surplus of 300 DAI as the round hasn't been saturated Ideally we'd want to ensure on making payouts -> the CLR calculations should be saturated AKA ALWAYS 1000 DAI should be sent

gdixon commented 2 years ago

This still needs solving, but the GR12 round is now saturated and we wont see a repeat of this bug when we come to generate the payouts:

32.78 + 28.22 + 36.24 + 18.8 + 15.12 + 83.28 + 51.02 + 4548.36 + 6124.25 + 1878.08 + 3325.93 + 2938.26 + 2944.35 + 3282.56 = 25307.25