Fixes
This commit is contained in:
parent
3aa8fa1d17
commit
63c59f3e2e
|
@ -1,32 +1,27 @@
|
|||
import { Button, Input, Radio, Switch, Slider } from 'antd';
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import {Button, Input, Radio, Slider, Switch} from 'antd';
|
||||
import React, {useEffect, useState} from 'react';
|
||||
import styled from 'styled-components';
|
||||
import {
|
||||
useSelectedBaseCurrencyBalances,
|
||||
useSelectedQuoteCurrencyBalances,
|
||||
useFeeDiscountKeys,
|
||||
useLocallyStoredFeeDiscountKey,
|
||||
useMarket,
|
||||
useMarkPrice,
|
||||
useSelectedOpenOrdersAccount,
|
||||
useSelectedBaseCurrencyAccount,
|
||||
useSelectedBaseCurrencyBalances,
|
||||
useSelectedOpenOrdersAccount,
|
||||
useSelectedQuoteCurrencyAccount,
|
||||
useFeeDiscountKeys,
|
||||
useLocallyStoredFeeDiscountKey, getCachedMarket, getCachedOpenOrderAccounts, getSelectedTokenAccountForMint,
|
||||
useSelectedQuoteCurrencyBalances,
|
||||
} from '../utils/markets';
|
||||
import { useWallet } from '../utils/wallet';
|
||||
import { notify } from '../utils/notifications';
|
||||
import {
|
||||
getDecimalCount,
|
||||
roundToDecimal,
|
||||
floorToDecimal, sleep, useLocalStorageState,
|
||||
} from '../utils/utils';
|
||||
import { useSendConnection } from '../utils/connection';
|
||||
import {useWallet} from '../utils/wallet';
|
||||
import {notify} from '../utils/notifications';
|
||||
import {floorToDecimal, getDecimalCount, roundToDecimal, useLocalStorageState,} from '../utils/utils';
|
||||
import {useSendConnection} from '../utils/connection';
|
||||
import FloatingElement from './layout/FloatingElement';
|
||||
import {getUnixTs, placeOrder, settleFunds} from '../utils/send';
|
||||
import { SwitchChangeEventHandler } from 'antd/es/switch';
|
||||
import { refreshCache } from '../utils/fetch-loop';
|
||||
import {SwitchChangeEventHandler} from 'antd/es/switch';
|
||||
import {refreshCache} from '../utils/fetch-loop';
|
||||
import tuple from 'immutable-tuple';
|
||||
import {useInterval} from "../utils/useInterval";
|
||||
import {getAssociatedTokenAddress} from "@project-serum/associated-token";
|
||||
|
||||
const SellButton = styled(Button)`
|
||||
margin: 20px 0px 0px 0px;
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
import * as BufferLayout from 'buffer-layout';
|
||||
import bs58 from 'bs58';
|
||||
import { AccountInfo, Connection, PublicKey } from '@solana/web3.js';
|
||||
import { WRAPPED_SOL_MINT } from '@project-serum/serum/lib/token-instructions';
|
||||
import { TokenAccount } from './types';
|
||||
import { TOKEN_MINTS } from '@project-serum/serum';
|
||||
import {useAllMarkets, useCustomMarkets, useMarketInfos, useTokenAccounts} from './markets';
|
||||
import { getMultipleSolanaAccounts } from './send';
|
||||
import { useConnection } from './connection';
|
||||
import { useAsyncData } from './fetch-loop';
|
||||
import {AccountInfo, Connection, PublicKey} from '@solana/web3.js';
|
||||
import {WRAPPED_SOL_MINT} from '@project-serum/serum/lib/token-instructions';
|
||||
import {TokenAccount} from './types';
|
||||
import {TOKEN_MINTS} from '@project-serum/serum';
|
||||
import {useAllMarkets, useCustomMarkets, useTokenAccounts} from './markets';
|
||||
import {getMultipleSolanaAccounts} from './send';
|
||||
import {useConnection} from './connection';
|
||||
import {useAsyncData} from './fetch-loop';
|
||||
import tuple from 'immutable-tuple';
|
||||
import BN from 'bn.js';
|
||||
import { useMemo } from 'react';
|
||||
import {useMemo} from 'react';
|
||||
|
||||
export const ACCOUNT_LAYOUT = BufferLayout.struct([
|
||||
BufferLayout.blob(32, 'mint'),
|
||||
|
|
|
@ -27,8 +27,6 @@ export interface MarketInfo {
|
|||
name: string;
|
||||
programId: PublicKey;
|
||||
deprecated: boolean;
|
||||
quoteMint?: PublicKey;
|
||||
baseMint?: PublicKey;
|
||||
quoteLabel?: string;
|
||||
baseLabel?: string;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue