Skip to content

Swap and Send feature #97

@kamikazechaser

Description

@kamikazechaser

If independent swap and transfer calls are sent within the same second, there is no guarantee which will be executed first. There should be a dedicated worker that orders these calls by nonce. And an endpoint that has both fields merged to execute the 4 calls correctly i.e.

  1. approve
  2. approve
  3. swap
  4. transfer

Temporary mitigation for clients is to sleep for around 200ms-1s between each subsequent call. However this is meant as a stopgap only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions