fix margin balance borrows typo
This commit is contained in:
parent
168679364a
commit
96ee9ce664
|
@ -216,5 +216,5 @@ export interface WalletAdapter {
|
|||
signAllTransactions: (transaction: Transaction[]) => Promise<Transaction[]>
|
||||
connect: () => any
|
||||
disconnect: () => any
|
||||
on<T>(event: string, fn: () => void): this
|
||||
on(event: string, fn: () => void): this
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ export default function MarginStats() {
|
|||
<td className={`text-center`}>
|
||||
{selectedMarginAccount
|
||||
? selectedMarginAccount
|
||||
.getUiDeposit(selectedMangoGroup, i)
|
||||
.getUiBorrow(selectedMangoGroup, i)
|
||||
.toFixed(tokenPrecision[name])
|
||||
: (0).toFixed(tokenPrecision[name])}
|
||||
</td>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { useEffect, useMemo } from 'react'
|
||||
import { useEffect } from 'react'
|
||||
import Wallet from '@project-serum/sol-wallet-adapter'
|
||||
import useLocalStorageState from './useLocalStorageState'
|
||||
import useMangoStore, { INITIAL_STATE } from '../stores/useMangoStore'
|
||||
|
|
|
@ -9,13 +9,13 @@
|
|||
"start": "next start",
|
||||
"type-check": "tsc --pretty --noEmit",
|
||||
"format": "prettier --write .",
|
||||
"lint": "eslint . --ext ts --ext tsx --ext js",
|
||||
"lint": "eslint . --ext ts --ext tsx --ext js --quiet",
|
||||
"test": "jest",
|
||||
"test-all": "yarn lint && yarn type-check && yarn test"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "",
|
||||
"pre-commit": "yarn format",
|
||||
"pre-push": ""
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue