fix issue where oracles with no deviation crash the dashboard
This commit is contained in:
parent
23770e32f9
commit
7a45b4642b
|
@ -394,7 +394,8 @@ const Dashboard: NextPage = () => {
|
|||
formattedBankValues.oracleConfFilter
|
||||
}% (Last known confidence ${
|
||||
bank._oracleLastKnownDeviation instanceof
|
||||
I80F48
|
||||
I80F48 &&
|
||||
!bank._oracleLastKnownDeviation.isZero()
|
||||
? bank._oracleLastKnownDeviation
|
||||
?.div(bank.price)
|
||||
.mul(I80F48.fromNumber(100))
|
||||
|
|
Loading…
Reference in New Issue