Added isReversedOrder param

This commit is contained in:
Aleksandr Kraiz
2023-06-02 16:31:37 +04:00
parent db7b9abbe4
commit f2d225a415
4 changed files with 6 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ export const signOrder = async (
usePersonalSign: boolean,
signer: ethers.Signer,
chainId: SupportedChainId,
isReversedOrder = false
) => {
const nonce = Date.now();
const expiration = nonce + DEFAULT_EXPIRATION;
@@ -56,6 +57,7 @@ export const signOrder = async (
expiration,
buySide: side === 'BUY' ? 1 : 0,
isPersonalSign: usePersonalSign,
isReversedOrder
};
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions