Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additions to have dispute tokens #61

Merged
merged 3 commits into from
Aug 30, 2024
Merged

Conversation

arkanoider
Copy link
Collaborator

Hi @grunch , @Catrya

added some data in structs SmallOrder and in Peer enum to have the dispute tokens.
Simply a quick implementation, maybe we can do it better. Looking here seems that tokens are not saved on a db, so I did a quick generation of random number in the u16 range and sent the message to buyer, seller and admin who takes dispute. Messages are sent when admin takes the dispute, don't know if this is the desired behaviour and maybe we need to send messages when dispute is opened.

Let me know.

Did not test now because I will be AFK til the evening now.

@Catrya
Copy link
Contributor

Catrya commented Aug 29, 2024

maybe we need to send messages when dispute is opened.

Yes, the buyer and seller must know their dispute token when the dispute is opened, so that in case an admin impersonator writes to them, they ask for the token and they know that it is a scammer because they will not be able to give it to them.

Copy link
Member

@grunch grunch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

@grunch grunch merged commit 3067c8e into MostroP2P:main Aug 30, 2024
1 check passed
@arkanoider arkanoider deleted the token-dispute branch August 30, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants