notional-labs / UltraStableJuno

Decentralized stablecoin on Juno Network.
MIT License
10 stars 6 forks source link

Sorted Troves Contract #18

Open mccallofthewild opened 2 years ago

mccallofthewild commented 2 years ago

Build this into the default trove storage using IndexedMap with MultiIndex, which handle this variety of sorting by default.

https://github.com/liquity/dev/blob/main/packages/contracts/contracts/SortedTroves.sol