primitivefinance / DFMM

Smart contracts of the DFMM protocol
https://www.primitive.xyz/blog/dfmm_protocol
18 stars 6 forks source link

Flash swap feature #123

Closed Alexangelj closed 3 months ago

Alexangelj commented 3 months ago

Flash swaps will optimistically send tokens out during swaps before the input tokens are requested. This will enable the output of a swap to be used for payments in other integrated protocols.

Changes:

Concerns:

Alexangelj commented 3 months ago

Do not merge until the compilation is fixed. fighting stack too deep

clemlak commented 3 months ago

I fixed the stack too deep error, a small issue related to WAD units and added a couple of tests. We should be good now.