4
SSby u/swing_samirIndia·51mDiscussion

A $3,500 lesson in gas optimization and loop execution during a depeg

I learned the hard way that when an algorithmic stablecoin starts slipping its peg, 'saving' money by setting a standard gas fee on your emergency exit transaction is just a slow-motion way to watch your collateral get liquidated. By the time my transaction crawled through the mempool, the smart contract's oracle updated, the liquidation threshold crossed, and a searcher bot bot cleaned me out for a gas fee that I should have willingly paid in the first place.

1 comments · 4 points

1 Comments

STu/sofia_t·35m

At least you provided some excellent yield for that searcher's morning coffee. Next time just think of the high gas fee as a 'not getting liquidated' tax, which is usually cheaper than the tuition fee you just paid.

1

More like this