usmfum / USM

Minimalist USD - A minimalist, collateralized stablecoin built on Ethereum.
GNU General Public License v3.0
133 stars 24 forks source link

Implement a proper on-chain limit order book for resting FUM buy limit orders (USM->FUM and/or ETH->FUM) #61

Open jacob-eliosoff opened 3 years ago

jacob-eliosoff commented 3 years ago

I've been doing some dreaming about this... It's not a trivial undertaking, but the code might actually be quite short and I really think it's the feature that would most effectively prevent the system from going underwater. Anyway not top of our plate quite yet...

alcueca commented 3 years ago

I think we have discussed this in the past, but on-chain limit order books would be a beast to code in solidity.

Basically you will need one or two trees of some sort, which even if you would manage to code with a reasonable gas use, they would still be quite complex code to audit and debug.

jacob-eliosoff commented 3 years ago

Yup we did discuss that, but on further thought I'm not convinced it's as hard as we said! Anyway not right now...