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[]>
|
signAllTransactions: (transaction: Transaction[]) => Promise<Transaction[]>
|
||||||
connect: () => any
|
connect: () => any
|
||||||
disconnect: () => 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`}>
|
<td className={`text-center`}>
|
||||||
{selectedMarginAccount
|
{selectedMarginAccount
|
||||||
? selectedMarginAccount
|
? selectedMarginAccount
|
||||||
.getUiDeposit(selectedMangoGroup, i)
|
.getUiBorrow(selectedMangoGroup, i)
|
||||||
.toFixed(tokenPrecision[name])
|
.toFixed(tokenPrecision[name])
|
||||||
: (0).toFixed(tokenPrecision[name])}
|
: (0).toFixed(tokenPrecision[name])}
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { useEffect, useMemo } from 'react'
|
import { useEffect } from 'react'
|
||||||
import Wallet from '@project-serum/sol-wallet-adapter'
|
import Wallet from '@project-serum/sol-wallet-adapter'
|
||||||
import useLocalStorageState from './useLocalStorageState'
|
import useLocalStorageState from './useLocalStorageState'
|
||||||
import useMangoStore, { INITIAL_STATE } from '../stores/useMangoStore'
|
import useMangoStore, { INITIAL_STATE } from '../stores/useMangoStore'
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"type-check": "tsc --pretty --noEmit",
|
"type-check": "tsc --pretty --noEmit",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"lint": "eslint . --ext ts --ext tsx --ext js",
|
"lint": "eslint . --ext ts --ext tsx --ext js --quiet",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test-all": "yarn lint && yarn type-check && yarn test"
|
"test-all": "yarn lint && yarn type-check && yarn test"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"pre-commit": "",
|
"pre-commit": "yarn format",
|
||||||
"pre-push": ""
|
"pre-push": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue