Skip to content

Executing custom bytecode before and after order fill? #157

Description

@andr11111

I know the LimitOrder has pre- and post- interaction capabilities. How do I achieve the same here. I tried to modify the underlying LimitOrder object, but no luck so far. My use case is this. I'm integrating swap from a contract. First, in the pre-interaction I'd like to verify that swap is between whitelisted assets and only then give approval to pull makerToken. Second, once the swap is complete, I'd like to perform additional code to finalize the transaction on our side. Do you have an example on how to do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions