PegKeeper

The Pegkeeper contract plays a critical role in maintaining the stablecoin peg by performing arbitrage and liquidation operations. It uses flash loans from the treasury to stabilize the market.

Initialization

The initialize function sets up the pegkeeper with an admin and the soroswap router. This setup is essential for defining the operational parameters and ensuring proper authorization.

Peg Maintenance:

The fl_receive function is the core operation where the pegkeeper receives a flash loan, executes liquidations, and trades assets on an AMM (Automated Market Maker) to repay the loan.

Last updated