import { BigNumber } from 'ethers' ; import { useSingleCallResult } from '../state/multicall/hooks' ; import { useMulticallContract } from './useContract' ; export default function useCurrentBlockTimestamp ( ) { const multicall = useMulticallContract ( ) ; return useSingleCallResult ( multicall , 'getCurrentBlockTimestamp' ) ?. result ?. [ 0 ] ; }