Skip to content

Commit

Permalink
tests/delta/fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Velenir committed Dec 12, 2024
1 parent 95c3d83 commit 9ade489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/__snapshots__/delta.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ exports[`Delta:methods Get Delta Price 1`] = `
"gasCostBeforeFee": "dynamic_number",
"gasCostUSD": "dynamic_number",
"gasCostUSDBeforeFee": "dynamic_number",
"hmac": "dynamic_hex_string",
"partner": "anon",
"partnerFee": 0,
"srcAmount": "1000000000000000000",
Expand Down
3 changes: 3 additions & 0 deletions tests/delta.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ describe('Delta:methods', () => {
gasCostBeforeFee: 'dynamic_number',
gasCostUSD: 'dynamic_number',
gasCostUSDBeforeFee: 'dynamic_number',
hmac: 'dynamic_hex_string',
};

expect(staticDeltaPrice).toMatchSnapshot();
Expand Down Expand Up @@ -220,6 +221,7 @@ describe('Delta:methods', () => {
srcAmount: '1000000000000000000',
srcToken: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
srcUSD: '3191.5500000000',
hmac: '0x1234',
};

const slippagePercent = 0.5;
Expand Down Expand Up @@ -409,6 +411,7 @@ describe('Delta:methods', () => {
srcAmount: '1000000000000000000',
srcToken: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
srcUSD: '3191.5500000000',
hmac: '0x1234',
};

const slippagePercent = 0.5;
Expand Down

0 comments on commit 9ade489

Please sign in to comment.