Skip to content

Commit 7030e24

Browse files
committed
fix api url
1 parent 276f219 commit 7030e24

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

pages/hub/apps/guides/cashback/distribute-cashback.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type RestTransaction = {
6363
}
6464

6565
const transactionFetcher = async (userAddress: string, comment: string, offerId: string, campaignId: string): Promise<RestTransaction> => {
66-
const response = await axios.post<RestTransaction>('https://---/api/v1/public/cashback/transaction/create', {
66+
const response = await axios.post<RestTransaction>('https://api.azuro.org/api/v1/public/cashback/transaction/create', {
6767
params: {
6868
userAddress, // user wallet address
6969
comment, // user wallet address
@@ -82,4 +82,4 @@ Follow these steps to distribute Cashback using the Azuro Cashback Admin Panel:
8282

8383
### 1. Sign In to Admin Panel
8484

85-
Coming soon
85+
Coming soon

pages/hub/apps/guides/cashback/use-cashback.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To use cashback, the user needs to:
1010

1111
### Fetch the available cashback
1212
Public Request.
13-
Use the [Azuro Cashback API](https://---/api/v1/public/cashback) to retrieve cashback information for the user.
13+
Use the [Azuro Cashback API](https://api.azuro.org/api/v1/public/cashback) to retrieve cashback information for the user.
1414

1515
```ts copy
1616
type Address = `0x${string}`
@@ -32,7 +32,7 @@ type RestBalance = {
3232
}
3333

3434
const cashbackFetcher = async (userAddress: string, affiliateAddress: string, networks?: string[]): Promise<RestBalance[]> => {
35-
const response = await axios.get<RestBalance[]>('https://---/api/v1/public/cashback/public/user-balance', {
35+
const response = await axios.get<RestBalance[]>('https://api.azuro.org/api/v1/public/cashback/public/user-balance', {
3636
params: {
3737
userAddress, // User wallet address
3838
affiliateAddress, // Affiliate wallet address
@@ -73,7 +73,7 @@ type RestCashback = {
7373
}
7474

7575
const cashbackFetcher = async (userAddress: string, affiliateAddress: string, network: RestNetwork, currency: RestCurrency, expiresAt: Date): Promise<RestCashback> => {
76-
const response = await axios.get<RestCashback>('https://---/api/v1/public/cashback/public/cashback', {
76+
const response = await axios.get<RestCashback>('https://api.azuro.org/api/v1/public/cashback/public/cashback', {
7777
params: {
7878
userAddress, // User wallet address
7979
affiliateAddress, // Affiliate wallet address
@@ -114,7 +114,7 @@ type RestCashbackHistory = {
114114
}
115115

116116
const cashbackFetcher = async (userAddress: string, affiliateAddress: string, networks?: RestNetwork[]): Promise<RestCashbackHistory[]> => {
117-
const response = await axios.get<RestCashbackHistory[]>('https://---/api/v1/public/cashback/public/user-transactions', {
117+
const response = await axios.get<RestCashbackHistory[]>('https://api.azuro.org/api/v1/public/cashback/public/user-transactions', {
118118
params: {
119119
userAddress, // User wallet address
120120
affiliateAddress, // Affiliate wallet address

pages/hub/apps/guides/cashout/use-cashout.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Tab, Tabs } from 'nextra-theme-docs'
55

66
### Get pre-calculation
77
Provides preliminary calculation and availability of cashout for conditions and outcomes
8-
Use the [Azuro Cashout API](https://---/api/v1/public/cashout/get-multipliers) to get pre-calculation.
8+
Use the [Azuro Cashout API](https://api.azuro.org/api/v1/public/cashout/get-multipliers) to get pre-calculation.
99

1010
```ts copy
1111

@@ -22,7 +22,7 @@ type MultipliersResponse = {
2222
}
2323

2424
const cashoutGetMultipliersFetcher = async (conditionIds: string[]): Promise<MultipliersResponse> => {
25-
const response = await axios.post<MultipliersResponse>('https://---/api/v1/public/cashout/get-multipliers', {
25+
const response = await axios.post<MultipliersResponse>('https://api.azuro.org/api/v1/public/cashout/get-multipliers', {
2626
conditionIds, // Condition ids
2727
},
2828
})
@@ -35,7 +35,7 @@ To pre-calculate any cashout from bet, multiply the multiplier by the user's exi
3535

3636
### Get calculation
3737
Calculates the exact cashout amount based on the bet in the contract
38-
Use the [Azuro Cashout API](https://---/api/v1/public/cashout/get-calculation) to get calculation.
38+
Use the [Azuro Cashout API](https://api.azuro.org/api/v1/public/cashout/get-calculation) to get calculation.
3939

4040
```ts copy
4141

@@ -59,7 +59,7 @@ type CalculationResponse = {
5959
}
6060

6161
const cashoutGetСalculationFetcher = async (data: CalculationRequest): Promise<CalculationResponse> => {
62-
const response = await axios.post<MultipliersResponse>('https://---/api/v1/public/cashout/get-calculation', {
62+
const response = await axios.post<MultipliersResponse>('https://api.azuro.org/api/v1/public/cashout/get-calculation', {
6363
...data
6464
})
6565

@@ -69,7 +69,7 @@ const cashoutGetСalculationFetcher = async (data: CalculationRequest): Promise<
6969

7070
### Create cashout
7171
Creates a cashout based on the calculation
72-
Use the [Azuro Cashout API](https://---/api/v1/public/cashout/create) to create cashout.
72+
Use the [Azuro Cashout API](https://api.azuro.org/api/v1/public/cashout/create) to create cashout.
7373

7474
```ts copy
7575

@@ -90,7 +90,7 @@ type CreateResponse = {
9090
}
9191

9292
const cashoutСreateCashoutFetcher = async (data: CreateRequest): Promise<CreateResponse> => {
93-
const response = await axios.post<MultipliersResponse>('https://---/api/v1/public/cashout/create', {
93+
const response = await axios.post<MultipliersResponse>('https://api.azuro.org/api/v1/public/cashout/create', {
9494
...data
9595
})
9696

@@ -154,7 +154,7 @@ export const CashoutExceptionResponses = {
154154

155155
### Get cashout order
156156
Gives cashout to the horde by ID
157-
Use the [Azuro Cashout API](https://---/api/v1/public/cashout/{id}) to get cashout order.
157+
Use the [Azuro Cashout API](https://api.azuro.org/api/v1/public/cashout/{id}) to get cashout order.
158158

159159
```ts copy
160160

@@ -167,7 +167,7 @@ type OrderResponse = {
167167
}
168168

169169
const cashoutGetOrderFetcher = async (cashoutId: string): Promise<OrderResponse> => {
170-
const response = await axios.get<OrderResponse>('https://---/api/v1/public/cashout/{id}')
170+
const response = await axios.get<OrderResponse>('https://api.azuro.org/api/v1/public/cashout/{id}')
171171

172172
return response.data || []
173173
}
@@ -187,4 +187,4 @@ Error codes:
187187
InvalidOdds = 'InvalidOdds',
188188
InvalidOddsCount = 'InvalidOddsCount',
189189
NothingChanged = 'NothingChanged',
190-
```
190+
```

0 commit comments

Comments
 (0)