7a8f31c611
It's likely for perp pnl to oscillate and be settled in positive and negative direction repeatedly. If the user's USDC balance is <= 0, every settlement of negative pnl will increase borrows and cause loan origination fees. Over time the fees accumulated this way could be significant. Skipping loan origination fees for borrows created from perp settlement avoids that. |
||
---|---|---|
.. | ||
mango-v4 | ||
margin-trade |