Skip to content

fix: duplicate acceptance of offers using same tokens #284

@edulennert

Description

@edulennert

Bug Report

Current behavior

It's possible to accept 2 different offers regarding the same token. The blockchain retrieves an error afterward but the frontend confirms the Swap anyways.

Expected behavior

It shouldn't be possible to accept 2 token offers with the same token after the first swap is confirmed.

Steps to reproduce

  1. Create 2 Token Offers for the same address with teh same token
  2. Accept the first offer (everything is okay)
  3. Accept the second offer (shouldn't be possible because the token is already swapped

Other information


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghot taskDoubled points in the reward table

    Type

    No type

    Projects

    Status

    🔖 TODO

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions