DemocracyEarth / ubi

Universal Basic Income token.
225 stars 38 forks source link

Create UBI Proxy #93

Closed yonadaaa closed 3 years ago

yonadaaa commented 3 years ago

This proxy contract implements the UBIVOTE contract for Snapshot voting.

Users voting power is given by the balanceOf() function. This function simply checks if the user is registered for Proof of Humanity, and if so, returns the square root of their UBI balance. This quadratic formula aims to limit the voting power of whales.

Specifically, a users voting power is defined as: (voting power = sqrt(UBIbalance) * isHuman())

This contract is based on the Proof of Humanity voting proxy found here