@@ -157,7 +157,7 @@ export default function useRoller() {
157157 );
158158
159159 const fetchConfig = useCallback(async () => {
160− getNextQuotaTime(1);
160+ getNextQuotaTime(Date.now() + 1000);
161161 api
162162 .getRollerConfig()
163163 .then(config => {
@@ -177,12 +177,12 @@ export default function useRoller() {
177177 if (point.l2Quota <= 0) {
178178 setModalText(
179179 `You have reached your weekly L2 transaction limit. You will get another
180− ${config?.rollerQuota} transactions on ${ddmmmYYYY(nextQuotaTime)}.`
180+ ${point.l2Allowance} transactions on ${ddmmmYYYY(nextQuotaTime)}.`
181181 );
182182 }
183183
184184 return point.l2Quota <= 0;
185− }, [config, nextQuotaTime, point, setModalText]);
185+ }, [nextQuotaTime, point, setModalText]);
186186
187187 const initPoint = useCallback(
188188 async (point: string | number) => {
@@ -196,9 +196,9 @@ export default function useRoller() {
196196 const pointNum = Number(point);
197197 try {
198198 const rawDetails = await api.getPoint(pointNum);
199− const l2Quota = isL2Spawn(rawDetails?.dominion)
200− ? await api.getRemainingQuota(pointNum)
201− : 0;
199+ const isL2 = isL2Spawn(rawDetails?.dominion);
200+ const l2Quota = isL2 ? await api.getRemainingQuota(pointNum) : 0;
201+ const l2Allowance = isL2 ? await api.getAllowance(pointNum) : 0;
202202
203203 const details = isL2Spawn(rawDetails?.dominion)
204204 ? toL1Details(rawDetails)
@@ -209,6 +209,7 @@ export default function useRoller() {
209209 details,
210210 address: _wallet.address,
211211 l2Quota,
212+ l2Allowance,
212213 });
213214 } catch (e) {
214215 console.warn(e);