Fixed build bugs
This commit is contained in:
parent
eb73a8f4d5
commit
7a110f9ea5
|
@ -19,6 +19,10 @@ const calculatePNL = (tradeHistory, prices, mangoGroup) => {
|
|||
'BTC/WUSDT': 0,
|
||||
'ETH/USDT': 1,
|
||||
'ETH/WUSDT': 1,
|
||||
'SOL/USDT': 2,
|
||||
'SOL/WUSDT': 2,
|
||||
'SRM/USDT': 3,
|
||||
'SRM/WUSDT': 3,
|
||||
USDT: 2,
|
||||
WUSDT: 2,
|
||||
}
|
||||
|
|
|
@ -70,6 +70,8 @@ const WithdrawModal = ({ isOpen, onClose }) => {
|
|||
const DECIMALS = {
|
||||
BTC: 6,
|
||||
ETH: 5,
|
||||
SOL: 2,
|
||||
SRM: 2,
|
||||
USDT: 2,
|
||||
}
|
||||
|
||||
|
|
|
@ -12,6 +12,8 @@ import { Table, Thead, Tbody, Tr, Th, Td } from 'react-super-responsive-table'
|
|||
const DECIMALS = {
|
||||
BTC: 4,
|
||||
ETH: 3,
|
||||
SOL: 2,
|
||||
SRM: 2,
|
||||
USDT: 2,
|
||||
USDC: 2,
|
||||
}
|
||||
|
@ -19,6 +21,8 @@ const DECIMALS = {
|
|||
const icons = {
|
||||
BTC: '/assets/icons/btc.svg',
|
||||
ETH: '/assets/icons/eth.svg',
|
||||
SOL: '/assets/icons/sol.svg',
|
||||
SRM: '/assets/icons/srm.svg',
|
||||
USDT: '/assets/icons/usdt.svg',
|
||||
USDC: '/assets/icons/usdc.svg',
|
||||
WUSDT: '/assets/icons/usdt.svg',
|
||||
|
@ -41,7 +45,7 @@ const useMangoStats = () => {
|
|||
useEffect(() => {
|
||||
const fetchStats = async () => {
|
||||
const response = await fetch(
|
||||
`https://mango-stats.herokuapp.com?mangoGroup=BTC_ETH_USDT`
|
||||
`https://mango-stats.herokuapp.com?mangoGroup=BTC_ETH_SOL_SRM_USDT`
|
||||
)
|
||||
const stats = await response.json()
|
||||
|
||||
|
|
|
@ -53,6 +53,8 @@ import {
|
|||
import { MangoSrmAccount } from '@blockworks-foundation/mango-client/lib/client'
|
||||
import { capitalize } from './index'
|
||||
|
||||
export const DEFAULT_MANGO_GROUP = 'BTC_ETH_SOL_SRM_USDT'
|
||||
|
||||
export async function initMarginAccount(
|
||||
connection: Connection,
|
||||
programId: PublicKey,
|
||||
|
|
10
yarn.lock
10
yarn.lock
|
@ -874,7 +874,7 @@
|
|||
|
||||
"@blockworks-foundation/mango-client@https://github.com/blockworks-foundation/mango-client-ts#5_tokens":
|
||||
version "0.1.19"
|
||||
resolved "https://github.com/blockworks-foundation/mango-client-ts#0f47d83101815b66bfc301df390c1d19efe2da36"
|
||||
resolved "https://github.com/blockworks-foundation/mango-client-ts#e4d29989128e1082bc5ba8b9a4c9aba737a6ac9e"
|
||||
dependencies:
|
||||
"@project-serum/serum" "^0.13.20"
|
||||
"@project-serum/sol-wallet-adapter" "^0.1.4"
|
||||
|
@ -1284,6 +1284,7 @@
|
|||
"@project-serum/sol-wallet-adapter@^0.1.4", "@project-serum/sol-wallet-adapter@^0.1.8":
|
||||
version "0.1.8"
|
||||
resolved "https://registry.yarnpkg.com/@project-serum/sol-wallet-adapter/-/sol-wallet-adapter-0.1.8.tgz#90c6c1da793d32ed4ba3c67c5702a5bc804ef197"
|
||||
integrity sha512-lKMgp7bsKpkrtBtIaEjtGuUMke0GUqFUL39Z7cjqsQpTVhkU5Ez4zHyjhXqAEORRGLFbwx/+H6HLpwppxpUDMQ==
|
||||
dependencies:
|
||||
bs58 "^4.0.1"
|
||||
eventemitter3 "^4.0.4"
|
||||
|
@ -1303,6 +1304,7 @@
|
|||
"@solana/spl-token@^0.0.13":
|
||||
version "0.0.13"
|
||||
resolved "https://registry.yarnpkg.com/@solana/spl-token/-/spl-token-0.0.13.tgz#5e0b235b1f8b34643280401dbfddeb34d13d1acd"
|
||||
integrity sha512-WT8M9V/hxURR5jLbhr3zgwVsgcY6m8UhHtK045w7o+jx8FJ9MKARkj387WBFU7mKiFq0k8jw/8YL7XmnIUuH8Q==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.10.5"
|
||||
"@solana/web3.js" "^0.86.1"
|
||||
|
@ -1314,6 +1316,7 @@
|
|||
"@solana/web3.js@^0.86.1":
|
||||
version "0.86.4"
|
||||
resolved "https://registry.yarnpkg.com/@solana/web3.js/-/web3.js-0.86.4.tgz#69216d3928ca4727c25a1ea96c405e897156ac3b"
|
||||
integrity sha512-FpabDmdyxBN5aHIVUWc9Q6pXJFWiLRm/xeyxFg9O9ICHjiUkd38omds7G0CAmykIccG7zaMziwtkXp+0KvQOhA==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.3.1"
|
||||
bn.js "^5.0.0"
|
||||
|
@ -1506,6 +1509,7 @@
|
|||
"@types/bn.js@^4.11.5":
|
||||
version "4.11.6"
|
||||
resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c"
|
||||
integrity sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==
|
||||
dependencies:
|
||||
"@types/node" "*"
|
||||
|
||||
|
@ -2328,6 +2332,7 @@ buffer@^4.3.0:
|
|||
buffer@^5.4.3:
|
||||
version "5.7.1"
|
||||
resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0"
|
||||
integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==
|
||||
dependencies:
|
||||
base64-js "^1.3.1"
|
||||
ieee754 "^1.1.13"
|
||||
|
@ -3154,6 +3159,7 @@ domutils@^1.5.1, domutils@^1.7.0:
|
|||
dotenv@8.2.0:
|
||||
version "8.2.0"
|
||||
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a"
|
||||
integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==
|
||||
|
||||
dset@^2.0.1:
|
||||
version "2.1.0"
|
||||
|
@ -5333,6 +5339,7 @@ mixin-deep@^1.2.0:
|
|||
mkdirp@1.0.4:
|
||||
version "1.0.4"
|
||||
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
|
||||
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==
|
||||
|
||||
mkdirp@~0.5.1:
|
||||
version "0.5.5"
|
||||
|
@ -7490,6 +7497,7 @@ test-exclude@^6.0.0:
|
|||
text-encoding-utf-8@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/text-encoding-utf-8/-/text-encoding-utf-8-1.0.2.tgz#585b62197b0ae437e3c7b5d0af27ac1021e10d13"
|
||||
integrity sha512-8bw4MY9WjdsD2aMtO0OzOCY3pXGYNx2d2FfHRVUKkiCPDWjKuOlhLVASS+pD7VkLTVjW268LYJHwsnPFlBpbAg==
|
||||
|
||||
text-table@^0.2.0:
|
||||
version "0.2.0"
|
||||
|
|
Loading…
Reference in New Issue