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[]> 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
} }

View File

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

View File

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

View File

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