nova-ui/services/priceOracle/index.ts
2022-12-04 07:02:30 +01:00

10 lines
236 B
TypeScript

import { getOffChainOracle } from '@/contracts'
const getRateToEth = async (address: string) => {
const priceOracle = getOffChainOracle()
return await priceOracle.callStatic.getRateToEth(address, false)
}
export { getRateToEth }