Closed filo87 closed 1 month ago
@hieronx Quick question...
We have these amount in the Debt transfer event repaidAmount
and borrowAmount
Which one should we use for:
CashDeposit
?CashWithdrawal
?CashTransfer
?CashTransfer
?@filo87 updated the description above.
the purchase CashTransfer ? the repaid CashTransfer ?
These are not based on transfer debt events (just normal Borrow/Repaid events of the cash asset)
Extend AssetTransactionType
Create
OnchainCash
asset When pool is created, create an asset by default with type =OnchainCash
.If there is a transfer debt from a non-cash asset to an
OffchainCash
assetPrincipalRepayment
transaction for the non-cash asset, withfromAsset = OffchainCash asset
andamount = repaidAmount
CashDeposit
transaction type for the cash asset, withtoAsset = non-cash asset
andamount = borrowAmount
=> this will show up as a principal repayment in the Cashflows chart
If there is a transfer debt from an
OffchainCash
asset to non-cash assetPurchase
transaction for the non-cash asset, withfromAsset = OffchainCash asset
andamount = borrowAmount
CashWithdrawal
transaction for the cash asset, withtoAsset = non-cash asset
andamount = repaidAmount
=> this will show up as a purchase in the Cashflows chart
If there is a purchase of an
OffchainCash
assetCashTransfer
transaction for the cash asset, withfromAsset = OnchainCash asset
=> this won't show up in the Cashflows chart
If there is a repayment of an
OffchainCash
assetCashTransfer
transaction for the cash asset, withtoAsset = OnchainCash asset
=> this won't show up in the Cashflows chart