From 67694d4c5da7eed843267a444dd7e28b5f4d3fbe Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Thu, 8 Feb 2024 19:34:48 +0300 Subject: [PATCH] Disable whitelist-flex total allocation check --- utils/isValidFlexListFile.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/utils/isValidFlexListFile.ts b/utils/isValidFlexListFile.ts index 1a216f4..5444f91 100644 --- a/utils/isValidFlexListFile.ts +++ b/utils/isValidFlexListFile.ts @@ -4,14 +4,14 @@ import { toast } from 'react-hot-toast' import { isValidAddress } from './isValidAddress' export const isValidFlexListFile = (file: WhitelistFlexMember[]) => { - let sumOfAmounts = 0 - file.forEach((allocation) => { - sumOfAmounts += Number(allocation.mint_count) - }) - if (sumOfAmounts > 10000) { - toast.error(`Total mint count should be less than 10000 tokens (current count: ${sumOfAmounts}))`) - return false - } + // let sumOfAmounts = 0 + // file.forEach((allocation) => { + // sumOfAmounts += Number(allocation.mint_count) + // }) + // if (sumOfAmounts > 10000) { + // toast.error(`Total mint count should be less than 10000 tokens (current count: ${sumOfAmounts}))`) + // return false + // } const checks = file.map((account) => { // Check if address is valid bech32 address