openbook-dex / program

Openbook dex solana program
Apache License 2.0
173 stars 95 forks source link

Make ImmediateOrCancel tx fail if zero coins are exchanged #34

Open gitmalong opened 1 year ago

gitmalong commented 1 year ago

I noticed that there are ImmediateOrCancel orders that do not make the transaction fail if zero coins are exchanged which is unexpected behavior as IoC orders that do not meet the desired exchange rate threshold lead to failed transactions. As a zero exchange trade does not meet the desired exchange rate as well it should also make the transaction fail.