fix deposit and withdraw tests

This commit is contained in:
Omar Khan
2022-09-13 13:53:44 -04:00
parent 25efafa371
commit 220d9fb1b0
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ export function validateAMMDeposit(tx: Record<string, unknown>): void {
throw new ValidationError('AMMDeposit: Asset2In must be an Amount')
}
if (tx.EPrice != null && typeof !isAmount(tx.EPrice)) {
if (tx.EPrice != null && !isAmount(tx.EPrice)) {
throw new ValidationError('AMMDeposit: EPrice must be an Amount')
}
}

View File

@@ -95,7 +95,7 @@ export function validateAMMWithdraw(tx: Record<string, unknown>): void {
throw new ValidationError('AMMWithdraw: Asset2Out must be an Amount')
}
if (tx.EPrice != null && typeof !isAmount(tx.EPrice)) {
if (tx.EPrice != null && !isAmount(tx.EPrice)) {
throw new ValidationError('AMMWithdraw: EPrice must be an Amount')
}
}