mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-17 00:31:34 +03:00
change placeOrder body
This commit is contained in:
@@ -231,14 +231,6 @@ class Aggregator {
|
||||
|
||||
const url = new URL(`${this.apiUrl}/api/v1/order/${isCreateInternalOrder ? 'internal' : ''}`);
|
||||
|
||||
const body = {
|
||||
...signedOrder,
|
||||
lockExpiration: signedOrder.lockOrderExpiration,
|
||||
rawExchangeRestrictions
|
||||
}
|
||||
|
||||
delete body.lockOrderExpiration;
|
||||
|
||||
return fetchWithValidation(
|
||||
url.toString(),
|
||||
z.object({
|
||||
@@ -254,7 +246,7 @@ class Aggregator {
|
||||
{
|
||||
headers,
|
||||
method: 'POST',
|
||||
body: JSON.stringify(body),
|
||||
body: JSON.stringify({ ...signedOrder, rawExchangeRestrictions }),
|
||||
},
|
||||
errorSchema,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user