This repository was archived by the owner on Nov 12, 2025. It is now read-only.
Specs - BuyMarketCredit() and SellMarketCredit() #109
MotokoKusanagi-aka-Major
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Explaining Formulas
credit.debtPos.dueDateto the buyer yield curvedeltaT = credit.debtPos.dueDate - block.timestampfragmFeein the protocolcredit.amountthe amount the credit is entitled toThe
sellMarketCredit()exactAmuontIn=truecredit.amountexactAmountIn=falseexactAmountIn=truelet's computeThe
buyMarketCredit()exactAmountIn=falseexactAmountIn=truesellMarketCredit()case, but this time we thebuyMarketCredit()formula soIn the case of
buyMarketCredit()there is no swap fee in the formula since it is not paid by the credit buyer (even though he is the active side of the trade) but by the credit seller, so the amount of cash received by the credit seller isnetCash = cash * (1 - k * \Delta T)Beta Was this translation helpful? Give feedback.
All reactions