diff --git a/src/utils/index.test.ts b/src/utils/index.test.ts index ac00099700..6e52578099 100644 --- a/src/utils/index.test.ts +++ b/src/utils/index.test.ts @@ -34,6 +34,10 @@ describe('utils', () => { '100', '100', ]) + expect(calculateSlippageAmount(tokenAmount, new Percent(5, 100)).map((bound) => bound.toString())).toEqual([ + '95', + '105', + ]) expect(calculateSlippageAmount(tokenAmount, new Percent(100, 10_000)).map((bound) => bound.toString())).toEqual([ '99', '101',