hive-engine / hivesmartcontracts

Hive-Engine node software
https://hive-engine.com
MIT License
13 stars 9 forks source link

Add equivalent of Hive fill_or_kill to market contract #45

Open bt-cryptomancer opened 1 year ago

bt-cryptomancer commented 1 year ago

Idea from stoodkev:

On Hive internal market you can make a transaction like this : https://hiveblocks.com/tx/29184b361fe8eceaaeac44d38e1dbb807d4e7ee5

Basically saying I want to sell all of this amount of HIVE, and cancel it if the result is not at least this amount of HBD That makes it possible to define a kind of slippage on the market buy or market sell.

That would be super helpful because as it is, we can only implement "soft slippage" based on a market estimate at a given time, but we can't make sure that the slippage would be respected.

image