diff --git a/pages/contracts/whitelist/instantiate.tsx b/pages/contracts/whitelist/instantiate.tsx index 8db1be9..c8cc145 100644 --- a/pages/contracts/whitelist/instantiate.tsx +++ b/pages/contracts/whitelist/instantiate.tsx @@ -17,6 +17,9 @@ import { LinkTabs } from 'components/LinkTabs' import { whitelistLinkTabs } from 'components/LinkTabs.data' import { type WhitelistFlexMember, WhitelistFlexUpload } from 'components/WhitelistFlexUpload' import { WhitelistUpload } from 'components/WhitelistUpload' +import { vendingMinterList } from 'config/minter' +import type { TokenInfo } from 'config/token' +import { stars, tokensList } from 'config/token' import { useContracts } from 'contexts/contracts' import { useGlobalSettings } from 'contexts/globalSettings' import { useWallet } from 'contexts/wallet' @@ -46,6 +49,8 @@ const WhitelistInstantiatePage: NextPage = () => { const [whitelistStandardArray, setWhitelistStandardArray] = useState([]) const [whitelistFlexArray, setWhitelistFlexArray] = useState([]) + const [selectedMintToken, setSelectedMintToken] = useState(stars) + const unitPriceState = useNumberInputState({ id: 'unit-price', name: 'unitPrice', @@ -97,7 +102,7 @@ const WhitelistInstantiatePage: NextPage = () => { members: whitelistStandardArray, start_time: (startDate.getTime() * 1_000_000).toString(), end_time: (endDate.getTime() * 1_000_000).toString(), - mint_price: coin(String(Number(unitPriceState.value) * 1000000), 'ustars'), + mint_price: coin(String(Number(unitPriceState.value) * 1000000), selectedMintToken?.denom || 'ustars'), per_address_limit: perAddressLimitState.value, member_limit: memberLimitState.value, admins: [ @@ -114,7 +119,7 @@ const WhitelistInstantiatePage: NextPage = () => { members: whitelistFlexArray, start_time: (startDate.getTime() * 1_000_000).toString(), end_time: (endDate.getTime() * 1_000_000).toString(), - mint_price: coin(String(Number(unitPriceState.value) * 1000000), 'ustars'), + mint_price: coin(String(Number(unitPriceState.value) * 1000000), selectedMintToken?.denom || 'ustars'), whale_cap: whaleCapState.value || undefined, member_limit: memberLimitState.value, admins: [ @@ -261,7 +266,23 @@ const WhitelistInstantiatePage: NextPage = () => { - +
+ + +
+