@@ -13,6 +13,7 @@ import { usePointCache } from 'store/pointCache';
13import { useWallet } from 'store/wallet';
13import { useWallet } from 'store/wallet';
14import { useNetwork } from 'store/network';
14import { useNetwork } from 'store/network';
15import { useRollerStore } from 'store/rollerStore';
15import { useRollerStore } from 'store/rollerStore';
16+import { getStoredInvites } from 'store/storage/roller';
17import { useLocalRouter } from 'lib/LocalRouter';
18import { useLocalRouter } from 'lib/LocalRouter';
18import * as need from 'lib/need';
19import * as need from 'lib/need';
@@ -23,6 +24,18 @@ import {
23 generateCsvLine,
24 generateCsvLine,
24 generateCsvName,
25 generateCsvName,
25} from 'lib/utils/invite';
26} from 'lib/utils/invite';
32+} from 'lib/constants';
33+import { isPlanet } from 'lib/utils/point';
34+import { generateInviteWallet } from 'lib/utils/roller';
35+import { useTimerStore } from 'store/timerStore';
36+import { Invite } from 'lib/types/Invite';
37+import { ddmmmYYYY } from 'lib/utils/date';
38+import { isExternalWallet } from 'lib/utils/wallet';
27import { useIssueChild } from 'views/Point/IssueChild';
40import { useIssueChild } from 'views/Point/IssueChild';
28import View from 'components/View';
41import View from 'components/View';
@@ -36,18 +49,6 @@ import Paginator from 'components/L2/Paginator';
36import InlineEthereumTransaction from 'components/InlineEthereumTransaction';
49import InlineEthereumTransaction from 'components/InlineEthereumTransaction';
38import './Cohort.scss';
51import './Cohort.scss';
39−import { getStoredInvites } from 'store/storage/roller';
45−} from 'lib/constants';
46−import { isPlanet } from 'lib/utils/point';
47−import { generateInviteWallet } from 'lib/utils/roller';
48−import { useTimerStore } from 'store/timerStore';
49−import { Invite } from 'lib/types/Invite';
50−import { ddmmmYYYY } from 'lib/utils/date';
52interface L1Invite {
53interface L1Invite {
53 ticket: string;
54 ticket: string;
@@ -56,7 +57,7 @@ interface L1Invite {
57export default function InviteCohort() {
58export default function InviteCohort() {
58 const { pop }: any = useLocalRouter();
59 const { pop }: any = useLocalRouter();
59− const { authToken }: any = useWallet();
60+ const { authToken, walletType }: any = useWallet();
62 pendingTransactions,
63 pendingTransactions,
@@ -320,6 +321,7 @@ export default function InviteCohort() {
321 if (showInviteForm) {
322 if (showInviteForm) {
322 const generateDisabled = loading || overQuota;
323 const generateDisabled = loading || overQuota;
324+ const showTxnNote = isExternalWallet(walletType);
@@ -358,16 +360,20 @@ export default function InviteCohort() {
360 {currentL2 && (
362 {currentL2 && (
362− <Box lineHeight="1.4em">
363+ <Box className="mb4" lineHeight="1.4em">
363− You can generate up to
364+ You can generate up to
364− <strong>{` ${point.l2Quota} `}</strong>
365+ <strong>{` ${point.l2Quota} `}</strong>
365− invites. You will be able to generate another
366+ invites. You will be able to generate another
366− <strong>{` ${config?.rollerQuota}`}</strong> invites on
367+ <strong>{` ${config?.rollerQuota}`}</strong> invites on
367− <strong>{` ${ddmmmYYYY(nextQuotaTime)}`}</strong>.
368+ <strong>{` ${ddmmmYYYY(nextQuotaTime)}`}</strong>.
370− </>
371+ {showTxnNote && (
372+ <Box className="mb6" lineHeight="1.4em">
373+ Note: you will have to sign <strong>4</strong> transactions
374+ per invite, for a total of <strong>{4 * numInvites}</strong>{' '}
373 {/* <Inviter /> */}
379 {/* <Inviter /> */}