mars-v2-frontend/src/hooks/useMarketBorrowings.tsx
Bob van der Helm 7b5d4c3255
Mp 2546 borrow asset modal (#255)
* Refactor Modal folder and setup basic addassetsmodal

* basic tables

* Update basic logic

* small fixes

* Update closing for modals

* fix slider update bug and set borrowing subtitle

* fix store

* add missing dependency

* fix tests for VaultBorrowings

* Add DisplayCurrency test for VaultBorrowings

* trigger updated

* update borrowModal import path

* update imports for modals

* updating paths again

* update structure of modals directory

* fix all file naming and relative imports

* fix icon spacing button and jest.mocked import

* fix icon classes for button

* change Map to array and add BNCoin

* add AssetImage

* update logic for selecting borrow denoms
2023-06-15 13:00:46 +02:00

11 lines
250 B
TypeScript

import useSWR from 'swr'
import getMarketBorrowings from 'api/markets/getMarketBorrowings'
export default function useMarketBorrowings() {
return useSWR(`marketBorrowings`, getMarketBorrowings, {
fallbackData: [],
suspense: false,
})
}