fix margin balance borrows typo

This commit is contained in:
Tyler Shipe 2021-04-14 14:40:28 -04:00
parent 168679364a
commit 96ee9ce664
4 changed files with 5 additions and 5 deletions

View File

@ -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
}

View File

@ -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>

View File

@ -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'

View File

@ -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": ""
}
},