nova-ui/services/priceOracle/index.ts

10 lines
236 B
TypeScript
Raw Normal View History

2022-12-04 09:02:30 +03:00
import { getOffChainOracle } from '@/contracts'
const getRateToEth = async (address: string) => {
const priceOracle = getOffChainOracle()
return await priceOracle.callStatic.getRateToEth(address, false)
}
export { getRateToEth }