Merge pull request #335 from public-awesome/remove-wl-flex-allocation-check

Disable whitelist-flex total allocation check
This commit is contained in:
Serkan Reis 2024-02-08 18:35:35 +02:00 committed by GitHub
commit 7a455b60bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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