Merge pull request 'fix: fix: attemptStake helper produces /stakestake invalid route (#1168)' (#1171) from fix/issue-1168 into master

This commit is contained in:
johba 2026-03-26 09:55:33 +01:00
commit aacb8be7c0

View file

@ -511,8 +511,8 @@ export async function attemptStake(
): Promise<void> {
console.log(`[${personaName}] Attempting to stake ${amount} KRK at tax rate ${taxRateIndex}%...`);
const baseUrl = page.url().split('#')[0];
await page.goto(`${baseUrl}stake`);
const origin = new URL(page.url()).origin;
await page.goto(`${origin}/stake`);
try {
// Wait for stake form to fully load