5/ Given two debt amounts and a price range, how do you calculate the reserves available for swaps?
The full article derives the invariant and traces borrow, payback and swaps through the code.
1/ The Fluid DEX V2 contracts are already deployed, bringing user-defined price ranges to smart collateral and smart debt.
Smart debt lets borrowers use their debt as trading liquidity and earn swap fees.
But how does debt become trading liquidity in the first place?
@lil_dexnight and I worked through this while auditing Fluid DEX V2 at @statemindio. In this article, we explain the mechanics, derive the math and follow it through the code.
Thanks to the @0xfluid developers, especially @Mardeni01, for reviewing the draft.
https://t.co/igMC48sAwA
4/ Smart debt already existed in V1. V2 lets borrowers choose their own price ranges.
That range determines where their debt provides trading liquidity and earns swap fees.
The debt keeps accruing interest even when the price leaves the range.
New from Statemind: we dove deep into @CurveFinance's Donations mechanism for CryptoPool. How pools can be "refueled" when fees aren't enough for repegs, with built-in safety considerations.
Full breakdown → https://t.co/iDlirJefGI
We’ve been researching fixed-rate lendings in DeFi.
@pendle_fi , @NotionalFinance, @TermMaxFi: mechanics and design trade-offs, compared side by side. Thanks to the teams for feedback and to @dsstore345 for the research.
For a thoughtful weekend deep dive
https://t.co/Tfwn0miYPK
📖We hereby release Poolside by @ButtonDeFi audit report! A novel approach to handling rebase tokens.
🔥22 Total issues found
🔥0 Critical
🔥3 Highs
🔥6 Meds
Full report here: https://t.co/0H9I0S3rs5
#defi#web3audits
📖We hereby release @LidoFinance V2 audit report! Biggest report for the biggest DeFi protocol.
🔥120 Total issues found
🔥2 Critical
🔥8 Highs
🔥17 Meds
Congrats to our fellow audit teams on finding some portion of them😉
Full report here: https://t.co/xiUELUjS8I
#defi#lido #web3audits