mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-05 04:28:16 +03:00
getStableCoins
This commit is contained in:
@@ -61,6 +61,7 @@ class Aggregator {
|
||||
this.getPairsList = this.getPairsList.bind(this);
|
||||
this.getSwapInfo = this.getSwapInfo.bind(this);
|
||||
this.getTradeProfits = this.getTradeProfits.bind(this);
|
||||
this.getStableCoins = this.getStableCoins.bind(this);
|
||||
this.placeAtomicSwap = this.placeAtomicSwap.bind(this);
|
||||
this.placeOrder = this.placeOrder.bind(this);
|
||||
this.cancelOrder = this.cancelOrder.bind(this);
|
||||
@@ -340,6 +341,16 @@ class Aggregator {
|
||||
);
|
||||
};
|
||||
|
||||
getStableCoins = () => {
|
||||
const url = new URL(`${this.apiUrl}/api/v1/tokens/stable/`);
|
||||
return fetchWithValidation(
|
||||
url.toString(),
|
||||
z.array(z.string()),
|
||||
{ headers: this.basicAuthHeaders },
|
||||
errorSchema,
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* Placing atomic swap. Placement must take place on the target chain.
|
||||
* @param secretHash Secret hash
|
||||
|
||||
Reference in New Issue
Block a user