Skip to content

Commit

Permalink
fix endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
arentant committed Apr 16, 2024
1 parent 5999eda commit 5cd8fbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/SwapHistory/StatusIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function StatusIcon({ swap }: { swap: string | undefined }) {
<>
<div className="inline-flex items-center">
<YellowIcon />
<p>Deposite pending</p>
<p>Deposit pending</p>
</div>
</>)
case SwapStatus.UserTransferDelayed:
Expand Down
2 changes: 1 addition & 1 deletion lib/layerSwapApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default class LayerSwapApiClient {
}

private async UnauthenticatedRequest<T extends EmptyApiResponse>(method: Method, endpoint: string, data?: any, header?: {}): Promise<T> {
let uri = LayerSwapApiClient.apiBaseEndpoint + "/api/v2-alpha" + endpoint + `?version=${LayerSwapApiClient.apiVersion}`;
let uri = LayerSwapApiClient.apiBaseEndpoint + "/api/v2" + endpoint + `?version=${LayerSwapApiClient.apiVersion}`;
return await axios.get(uri, { method: method, data: data, headers: { 'Access-Control-Allow-Origin': '*', ...(header ? header : {}) } })
.then(res => {
return res?.data;
Expand Down

0 comments on commit 5cd8fbd

Please sign in to comment.