Skip to content

Commit b403961

Browse files
committed
add oracle to loan request event
1 parent f9f73b2 commit b403961

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

x/lending/keeper/msg_server_loan.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ func (m msgServer) Apply(goCtx context.Context, msg *types.MsgApply) (*types.Msg
133133
sdk.NewAttribute(types.AttributeKeyFinalTimeout, fmt.Sprint(loan.FinalTimeout)),
134134
sdk.NewAttribute(types.AttributeKeyPoolId, loan.PoolId),
135135
sdk.NewAttribute(types.AttributeKeyBorrowAmount, loan.BorrowAmount.String()),
136+
sdk.NewAttribute(types.AttributeKeyOraclePubKey, dlcEvent.Pubkey),
136137
sdk.NewAttribute(types.AttributeKeyReferralCode, msg.ReferralCode),
137138
))
138139

x/lending/types/events.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const (
2323
AttributeKeyPoolId = "pool_id"
2424
AttributeKeyCollateralAmount = "collateral_amount"
2525
AttributeKeyBorrowAmount = "borrow_amount"
26+
AttributeKeyOraclePubKey = "oracle_pub_key"
2627

2728
AttributeKeyLoanId = "loan_id"
2829
AttributeKeyId = "id"

0 commit comments

Comments
 (0)