Skip to content

Commit

Permalink
fix vault/withdrawfromvault
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Nov 1, 2023
1 parent fafc11d commit 363bfd7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ describe('Vault', () => {
})

await expect(promise).rejects.toThrow(RpcApiError)
await expect(promise).rejects.toThrow(`Collateral for vault <${vaultId1}> not found`)
await expect(promise).rejects.toThrow('amount 9987.77833000 is less than 10000.00000001')
})

it('should not withdrawFromVault cause DFI collateral value less than 50% of the minimum required collateral', async () => {
Expand Down Expand Up @@ -349,7 +349,7 @@ describe('Vault', () => {
})

await expect(promise).rejects.toThrow(RpcApiError)
await expect(promise).rejects.toThrow(`Collateral for vault <${vaultId2}> not found`)
await expect(promise).rejects.toThrow('amount 10000.00000000 is less than 99701.00000000')
})

it('should not withdrawFromVault liquidated vault', async () => {
Expand Down

0 comments on commit 363bfd7

Please sign in to comment.