Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

fix(raft): Early return if there's no balances #2787

Merged
merged 1 commit into from Jun 30, 2023
Merged

Conversation

wpoulin
Copy link
Contributor

@wpoulin wpoulin commented Jun 30, 2023

Description

  • Early return if there's no balance will prevent throwing on
    const liquidationPrice = (minCRatio * debt) / collateral.balance;

If there's no balances
collateral is undefined

Checklist

  • I have followed the Contributing Guidelines
  • (optional) As a contributor, my Ethereum address/ENS is:
  • (optional) As a contributor, my Twitter handle is:

How to test?

@wpoulin wpoulin merged commit 4965dec into main Jun 30, 2023
6 checks passed
@wpoulin wpoulin deleted the fix-raft-no-balances branch June 30, 2023 05:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant