forked from tornadocash/nova-ui
10 lines
236 B
TypeScript
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 }
|