Skip to content

Commit

Permalink
Fixed liquidation price calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrosimao committed Feb 21, 2022
1 parent 2330e3a commit 5d3167a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/borrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Borrow: React.FC = () => {
if (nearQuote && inputAmount && outputAmount) {
return isQuid
? Number(Number(inputAmount) / (Number(outputAmount) * nearQuote))
: (Number(inputAmount) * nearQuote) / Number(outputAmount)
: Number(outputAmount) / (Number(inputAmount) * nearQuote)
}
return 0
}
Expand Down

0 comments on commit 5d3167a

Please sign in to comment.