Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mfw78 committed Aug 15, 2023
1 parent adafc93 commit 085ec7a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/composable/multiplexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export class Multiplexer {

/**
* Retrieve the merkle tree of orders, or generate it if it doesn't exist.
*
*
* **CAUTION**: This will overwrite any existing merkle tree. This operation is expensive and should only be done when necessary.
* @throws If the merkle tree cannot be generated.
* @returns The merkle tree for the current set of conditional orders.
Expand Down
3 changes: 2 additions & 1 deletion src/composable/types/twap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export const TWAP_SERIALIZED = (salt?: string): string => {
return (
'0x' +
'0000000000000000000000000000000000000000000000000000000000000020' +
'000000000000000000000000' + TWAP_ADDRESS.substring(2).toLowerCase() +
'000000000000000000000000' +
TWAP_ADDRESS.substring(2).toLowerCase() +
(salt?.substring(2) ?? '9379a0bf532ff9a66ffde940f94b1a025d6f18803054c1aef52dc94b15255bbe') +
'0000000000000000000000000000000000000000000000000000000000000060' +
'0000000000000000000000000000000000000000000000000000000000000140' +
Expand Down
12 changes: 4 additions & 8 deletions src/composable/types/twap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,10 @@ export class TWAP extends BaseConditionalOrder<TWAPData, TWAPDataParams> {
TWAP_ADDRESS,
TWAP_DATA_ABI,
(o: TWAPData, salt: string) =>
new TWAP(
TWAP_ADDRESS,
salt,
{
...o,
...TWAP.partsToTotal(o),
}
)
new TWAP(TWAP_ADDRESS, salt, {
...o,
...TWAP.partsToTotal(o),
})
)
}

Expand Down

0 comments on commit 085ec7a

Please sign in to comment.