(network: string, token: string, mnemonic?: string)
| 20 | console.log(`ETH value: ${fromWei(ethWeiPrice)} ETH`); |
| 21 | } |
| 22 | export async function priceOracleUpdatedAt(network: string, token: string, mnemonic?: string): Promise<void> { |
| 23 | let web3 = await getWeb3(network, mnemonic); |
| 24 | let exchangeRate = await getSDK('ExchangeRate', web3); |
| 25 | let date = await exchangeRate.getUpdatedAt(token); |
| 26 | console.log(`The ${token} rate was last updated at ${date.toString()}`); |
| 27 | } |
no test coverage detected