mirror of
https://github.com/Xahau/xahau.js.git
synced 2026-07-29 01:50:25 +00:00
fix deposit and withdraw tests
This commit is contained in:
@@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user