Updated CFD contracts schema and signSFDOrder

Version 0.18.13
This commit is contained in:
Mikhail Gladchenko
2023-04-11 07:48:18 +01:00
parent e930fd93fa
commit a9964f4dab
3 changed files with 4 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ export const signCFDOrder = async (
signer: ethers.Signer,
chainId: SupportedChainId,
stopPrice: BigNumber.Value | undefined,
isFromDelegate: boolean | undefined,
) => {
const nonce = Date.now();
const expiration = nonce + DEFAULT_EXPIRATION;
@@ -56,6 +57,7 @@ export const signCFDOrder = async (
? new BigNumber(stopPrice).toNumber()
: undefined,
isPersonalSign: usePersonalSign,
isFromDelegate,
};
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions