change placeOrder body

This commit is contained in:
TheJuze
2024-05-30 12:46:44 +03:00
parent 5f4e540160
commit c76597e40f
3 changed files with 4 additions and 12 deletions

View File

@@ -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,
);