We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbe0d21 commit e6ee833Copy full SHA for e6ee833
models/credit_manager/cm_v3/v3.go
@@ -97,8 +97,10 @@ func (mdl *CMv3) checkLogV3(txLog types.Log) {
97
debts := poolv3.GetDebt(txLog.TxHash, mdl.Address, txLog.Index)
98
// log.Info(debts)
99
for _, debt := range debts {
100
- sessionId, borrower := mdl.GetSessionIdAndBorrower(debt.Account)
101
- mdl.PoolBorrow(&txLog, sessionId, borrower, debt.Amount)
+ if debt.Type == pool_v3.INCREASE_DEBT {
+ sessionId, borrower := mdl.GetSessionIdAndBorrower(debt.Account)
102
+ mdl.PoolBorrow(&txLog, sessionId, borrower, debt.Amount)
103
+ }
104
// mdl.onIncreaseBorrowedAmountV3(&txLog, debt.Account,
105
// debt.Amount, "IncreaseDebt")
106
}
0 commit comments