Update checks for minimum mint price for Whitelists
This commit is contained in:
parent
3471aeb653
commit
119e703997
@ -49,7 +49,7 @@ export const WhitelistDetails = ({ onChange }: WhitelistDetailsProps) => {
|
||||
id: 'unit-price',
|
||||
name: 'unitPrice',
|
||||
title: 'Unit Price',
|
||||
subtitle: 'Token price for whitelisted addresses \n (min. 25 STARS)',
|
||||
subtitle: 'Token price for whitelisted addresses \n (min. 0 STARS)',
|
||||
placeholder: '25',
|
||||
})
|
||||
|
||||
|
@ -855,8 +855,8 @@ const CollectionCreationPage: NextPage = () => {
|
||||
} else if (whitelistDetails.whitelistType === 'new') {
|
||||
if (whitelistDetails.members?.length === 0) throw new Error('Whitelist member list cannot be empty')
|
||||
if (whitelistDetails.unitPrice === '') throw new Error('Whitelist unit price is required')
|
||||
if (Number(whitelistDetails.unitPrice) < 25000000)
|
||||
throw new Error('Invalid unit price: The minimum unit price for whitelisted addresses is 25 STARS')
|
||||
if (Number(whitelistDetails.unitPrice) < 0)
|
||||
throw new Error('Invalid unit price: The unit price cannot be negative')
|
||||
if (whitelistDetails.startTime === '') throw new Error('Start time is required')
|
||||
if (whitelistDetails.endTime === '') throw new Error('End time is required')
|
||||
if (!whitelistDetails.perAddressLimit || whitelistDetails.perAddressLimit === 0)
|
||||
|
Loading…
Reference in New Issue
Block a user