Skip to content

Commit

Permalink
Changing slightly different expected values on weighted pool tests;
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz Gustavo Abou Hatem De Liz committed Mar 7, 2024
1 parent 0524628 commit 6d5cd7f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions test/fullSwaps.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ describe('Tests full swaps against known values', () => {
// These test should highlight any changes in maths that may unexpectedly change result
assert.equal(
swapInfo.returnAmount.toString(),
'2932409883691685',
'2932409883691175',
'V2 sanity check.'
);
}).timeout(10000);
Expand Down Expand Up @@ -184,7 +184,7 @@ describe('Tests full swaps against known values', () => {
swapInfo.tokenAddresses[swapInfo.swaps[0].assetOutIndex],
USDC.address
);
assert.equal(swapInfo.swaps[0].amount, '89883768143240164');
assert.equal(swapInfo.swaps[0].amount, '89883768143225903');
assert.equal(
swapInfo.swaps[1].poolId,
'0x57755f7dec33320bca83159c26e93751bfd30fbe'
Expand Down Expand Up @@ -234,7 +234,7 @@ describe('Tests full swaps against known values', () => {
});

// The expected test results are from previous version
assert.equal(swapInfo.returnAmount.toString(), '99251606996075153');
assert.equal(swapInfo.returnAmount.toString(), '99251606996078174');
assert.equal(swapInfo.swaps.length, 2);
assert.equal(
swapInfo.swaps[0].poolId,
Expand Down Expand Up @@ -426,7 +426,7 @@ describe('Tests full swaps against known values', () => {
swapInfo.tokenAddresses[swapInfo.swaps[0].assetOutIndex],
USDC.address
);
assert.equal(swapInfo.swaps[0].amount, '692256505473389013');
assert.equal(swapInfo.swaps[0].amount, '692256505473351912');
assert.equal(
swapInfo.swaps[1].poolId,
'0x57755f7dec33320bca83159c26e93751bfd30fbe'
Expand Down Expand Up @@ -480,7 +480,7 @@ describe('Tests full swaps against known values', () => {
},
});

assert.equal(swapInfo.returnAmount.toString(), '100600365514359821527');
assert.equal(swapInfo.returnAmount.toString(), '100600365514359819807');
assert.equal(swapInfo.swaps.length, 3);
assert.equal(
swapInfo.swaps[0].poolId,
Expand Down
2 changes: 1 addition & 1 deletion test/weightedPools.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe(`Tests for Weighted Pools.`, () => {
assert.equal(swapInfo2.swaps.length, 1, 'Should have 1 swap');
assert.equal(
swapInfo1.returnAmount.toString(),
'1279783692099680027157971'
'1279783692099680203796046'
);
assert.equal(
swapInfo2.returnAmount.toString(),
Expand Down

0 comments on commit 6d5cd7f

Please sign in to comment.