Skip to content

Commit

Permalink
Delta/signDeltaOrder/skip compact sig when incompatible
Browse files Browse the repository at this point in the history
  • Loading branch information
Velenir committed Nov 16, 2024
1 parent a07084d commit 7a881f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/methods/delta/signDeltaOrder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ export const constructSignDeltaOrder = (
typedDataOnly
);

if (signature.length > 132) {
// signature more than 65 bytes, likely a multisig
// not compatible with EIP-2098 Compact Signatures
return signature;
}

// both full and compact signatures work in the ParaswapDelta contract;
// compact signature can be marginally more gas efficient
try {
Expand Down

0 comments on commit 7a881f1

Please sign in to comment.