Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit a68c0f3

Browse files
will pankiewiczwill pankiewicz
authored andcommitted
add kyc validity check
1 parent 20c5456 commit a68c0f3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/common/src/db/models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export enum InvalidityReasonType {
8888
KUSAMA_RANK = "KUSAMA_RANK",
8989
PROVIDER = "PROVIDER",
9090
BEEFY = "BEEFY",
91+
KYC = "KYC",
9192
}
9293

9394
export interface InvalidityReason {

packages/common/src/db/queries/Candidate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ export const setKYCInvalidity = async (
10611061
const invalidityMessage = message ? message : `${candidate.name} is not KYC`;
10621062
setCandidateInvalidity(
10631063
candidate,
1064-
InvalidityReasonType.BEEFY,
1064+
InvalidityReasonType.KYC,
10651065
isValid,
10661066
invalidityMessage,
10671067
true,

0 commit comments

Comments
 (0)