TECHNOLOGYR/DEFI
Built a perpetuals DEX with 20x leverage and a liquidation engine, here's what we got wrong about liquidation logic first time around
A decentralized perpetuals exchange was built with a liquidation engine, but the team encountered several problems, including liquidation race conditions and price feed manipulation. They implemented fixes such as a liquidation queue and time-weighted average price. The experience highlighted the importance of getting liquidation logic right in perp DEXs.