Giveth / DeVouch-FE

Front-end repository of the DeVouch project
https://de-vouch-fe-givethio.vercel.app
GNU General Public License v3.0
24 stars 2 forks source link

change logic of attestation issuance, to handle fees #167

Open divine-comedian opened 2 months ago

divine-comedian commented 2 months ago

We added a resolver contract to enforce an exact amount of ETH to be sent with each attestation using our schema. This will affect users vouching flagging and editing their attestations (deleting/revoking remains unchanged, no fee).

AC

divine-comedian commented 6 days ago

We've changed the approach of this feature now instead we deploy a resolver contract that will collect a specified fee for each attestation made using our schema.

if a user makes multiple attestations the fee also multiplies.

Here is a deployment on Sepolia we can start using right away:

https://sepolia.easscan.org/schema/view/0x87607c7f565dfc1473309a45e7f7d26f0915615258fffd6745fc6238822c108b

for each attestation it is expecting the user to send 0.0001 ETH

You can see some sample data in the tests I ran in foundry here: https://github.com/Giveth/DeVouch-contracts/blob/master/test/testDeployedResolver.t%20copy.sol#L40-L53

To-do

divine-comedian commented 17 hours ago

for merging to production"

LatifatAbdullahi commented 13 hours ago

@mateodaza @MohammadPCh

Test Update

rii

Vouching for a Project

sep

image

Flagging a Project

image

image

divine-comedian commented 13 hours ago

My first question is WHO IS HAJIA!??? :hand_over_mouth:

LatifatAbdullahi commented 11 hours ago

@divine-comedian 🤣🤣🤣🤣

Ohhh my comments while attesting.... "Hajia" is my pet name at home