Neura V1 protocol
Flash swaps
Receive tokens first and pay at the end of the same transaction.
swap sends output tokens before checking payment. If data is non-empty, the pool calls your contract:
Inside the callback you can do anything — arbitrage, liquidate, refinance — as long as, when it returns, the pool's invariant holds after fees. Otherwise the entire transaction reverts and nothing happened.
The re-entrancy lock prevents calling back into the same pool during the callback.