DemocracyEarth / ubi

Universal Basic Income token.
224 stars 39 forks source link

Add permit feature to UBI #92

Closed fnanni-0 closed 2 years ago

fnanni-0 commented 3 years ago

This is an idea for a new feature.

UBI holders won't necessarily have ETH to pay for the gas used in transactions nor the money to buy ETH. Implementing something like https://eips.ethereum.org/EIPS/eip-2612 into UBI token would allow low income users to transact UBIs in a gasless way by using signatures and letting the recipient of the transaction pay for the gas.

This one might be useful as well: https://eips.ethereum.org/EIPS/eip-3009.

EngineerWasat commented 3 years ago

mistx.io?

donosonaumczuk commented 3 years ago

I recommend using OpenZeppelin ERC20 extension with permit function.

santisiri commented 3 years ago

I will explore this once we finish the work adapting EIP 1620 to make the token streamable. @donosonaumczuk if you'd like to explore on a specific branch for this, let me know.

donosonaumczuk commented 3 years ago

I will be implementing EIP-2612: permit for UBI. Once become ready I will reference a pull request here.

donosonaumczuk commented 3 years ago

Pull request #95 has an implementation of permit function for UBI ready for review. Hope we can build an UIP and get this feature approved.

donosonaumczuk commented 3 years ago

UIP-2: Adding EIP-2612 permit function to UBI created!

santisiri commented 2 years ago

Merged on master.