add a test for calculating slippage amounts
This commit is contained in:
parent
452f2dc3c0
commit
4d3f870b93
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user