fix: fixed merge errors

This commit is contained in:
Linkie Link 2024-01-31 14:45:25 +01:00
parent 0dc17e3263
commit b9bc21fd4c
No known key found for this signature in database
GPG Key ID: 5318B0F2564D38EA
4 changed files with 2 additions and 49 deletions

View File

@ -1,14 +0,0 @@
import useSWR from 'swr'
import getMarkets from 'api/markets/getMarkets'
import useChainConfig from 'hooks/useChainConfig'
export default function useMarketAssets() {
const chainConfig = useChainConfig()
return useSWR(`chains/${chainConfig.id}/markets`, () => getMarkets(chainConfig), {
suspense: true,
fallbackData: [],
revalidateOnFocus: false,
keepPreviousData: false,
})
}

View File

@ -1,17 +0,0 @@
import useSWR from 'swr'
import getMarketBorrowings from 'api/markets/getMarketBorrowings'
import useChainConfig from 'hooks/useChainConfig'
export default function useMarketBorrowings() {
const chainConfig = useChainConfig()
return useSWR(
`chains/${chainConfig.id}/markets/borrowings`,
() => getMarketBorrowings(chainConfig),
{
fallbackData: [],
suspense: false,
revalidateOnFocus: false,
},
)
}

View File

@ -1,17 +0,0 @@
import useSWR from 'swr'
import getMarketLiquidities from 'api/markets/getMarketLiquidities'
import useChainConfig from 'hooks/useChainConfig'
export default function useMarketLiquidities() {
const chainConfig = useChainConfig()
return useSWR(
`chains/${chainConfig.id}/markets/liquidities`,
() => getMarketLiquidities(chainConfig),
{
suspense: true,
fallbackData: [],
revalidateOnFocus: false,
},
)
}

View File

@ -183,9 +183,10 @@ export default function createBroadcastSlice(
}) })
if (simulateResult) { if (simulateResult) {
const { success, fee } = simulateResult const { success } = simulateResult
if (success) { if (success) {
const fee = simulateResult.fee
return { return {
amount: fee ? fee.amount : [], amount: fee ? fee.amount : [],
gas: BN(fee ? fee.gas : 0).toFixed(0), gas: BN(fee ? fee.gas : 0).toFixed(0),