diff --git a/components/collections/actions/Action.tsx b/components/collections/actions/Action.tsx index 6799d3c..98330fb 100644 --- a/components/collections/actions/Action.tsx +++ b/components/collections/actions/Action.tsx @@ -181,7 +181,9 @@ export const CollectionActions = ({ type !== 'update_royalties_for_infinity_swap' ? 'Percentage of royalties to be paid' : 'Change in share percentage', - placeholder: '5%', + placeholder: isEitherType(type, ['set_royalties_for_infinity_swap', 'update_royalties_for_infinity_swap']) + ? '0.5%' + : '5%', }) const showTokenUriField = isEitherType(type, ['mint_token_uri', 'update_token_metadata']) @@ -310,6 +312,13 @@ export const CollectionActions = ({ royaltyShareState.value, ]) + useEffect(() => { + if (isEitherType(type, ['set_royalties_for_infinity_swap']) && Number(royaltyShareState.value) > 5) { + royaltyShareState.onChange('5') + toast.error('Royalty share cannot be greater than 5% for Infinity Swap') + } + }, [royaltyShareState.value]) + useEffect(() => { const addresses: string[] = [] airdropAllocationArray.forEach((allocation) => { diff --git a/components/openEdition/CollectionDetails.tsx b/components/openEdition/CollectionDetails.tsx index e340f6a..9f71853 100644 --- a/components/openEdition/CollectionDetails.tsx +++ b/components/openEdition/CollectionDetails.tsx @@ -226,7 +226,7 @@ export const CollectionDetails = ({