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
-
Explaining Formulas
credit.debtPos.dueDate
to the buyer yield curvedeltaT = credit.debtPos.dueDate - block.timestamp
fragmFee
in the protocolcredit.amount
the amount the credit is entitled toThe
sellMarketCredit()
exactAmuontIn=true
credit.amount
exactAmountIn=false
exactAmountIn=true
let's computeThe
buyMarketCredit()
exactAmountIn=false
exactAmountIn=true
sellMarketCredit()
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