Skip to content

Commit

Permalink
handle lender fund withdrawn
Browse files Browse the repository at this point in the history
  • Loading branch information
shan57blocks committed Feb 23, 2024
1 parent 95f4ea7 commit c63e99e
Show file tree
Hide file tree
Showing 8 changed files with 792 additions and 407 deletions.
2 changes: 2 additions & 0 deletions packages/huma-shared/src/utils/credit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export enum LenderEvent {
ReinvestYieldConfigSet = 6,
CoverDeposited = 7,
CoverRedeemed = 8,
LenderFundWithdrawn = 9,
}

export const CreditEventText = {
Expand All @@ -76,6 +77,7 @@ export const LenderEventText = {
[String(LenderEvent.RedemptionRequestAdded)]: 'Request redemption',
[String(LenderEvent.RedemptionRequestRemoved)]: 'Cancel redemption request',
[String(LenderEvent.LenderFundDisbursed)]: 'Withdraw',
[String(LenderEvent.LenderFundWithdrawn)]: 'Withdraw',
[String(LenderEvent.CoverDeposited)]: 'Supply first loss cover',
[String(LenderEvent.CoverRedeemed)]: 'Redeem first loss cover',
}
Loading

0 comments on commit c63e99e

Please sign in to comment.