Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/src/services/soroban.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export async function executeContractCallOn(
let finalXdr = signedXdr;
if (useFeeBump) {
onPhase?.("submitting");
const resp = await fetch("/api/relayer/fee-bump", {
const resp = await apiFetch("/api/relayer/fee-bump", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ innerTxXdr: signedXdr }),
Expand Down
1 change: 1 addition & 0 deletions server/src/__tests__/deploymentSmoke.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ describe("Backend runtime wiring — client-facing routes must not 404", () => {
["get", "/api/analytics/providers/uptime"],
["get", "/api/analytics/sources/health"],
["get", "/api/vaults/test-vault/share-price-history"],
["post", "/relay/sign-fee-bump"],
["post", "/api/auth/challenge"],
["post", "/api/stress-scenarios/run"],
];
Expand Down
3 changes: 3 additions & 0 deletions server/src/__tests__/routeAudit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ describe("Route audit — mounted routes match client API calls (#723)", () => {
it("GET /api/relayer/status is mounted", () =>
probeRouteExists("get", "/api/relayer/status"));

it("POST /relay/sign-fee-bump is mounted", () =>
probeRouteExists("post", "/relay/sign-fee-bump"));

it("POST /api/risk/drift/detect is mounted", () =>
probeRouteExists("post", "/api/risk/drift/detect"));

Expand Down
1 change: 1 addition & 0 deletions server/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export function createApp() {
});

app.post("/api/relayer/fee-bump", relayerLimiter, signFeeBump);
app.post("/relay/sign-fee-bump", relayerLimiter, signFeeBump);
app.use("/api/yields", yieldsRouter);
app.use("/api/leaderboard", leaderboardRouter);
app.use("/api/notifications", notificationsRouter);
Expand Down
2 changes: 1 addition & 1 deletion server/src/services/rebalanceExecutorService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export class RebalanceExecutorService {
}

private async signWithRelayer(innerXdr: string): Promise<string> {
const response = await fetch(`${this.config.relayerUrl}/relay/sign-fee-bump`, {
const response = await fetch(`${this.config.relayerUrl}/api/relayer/fee-bump`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ innerTxXdr: innerXdr }),
Expand Down
Loading