diff --git a/scripts/getFlowToUSD.cdc b/scripts/getFlowToUSD.cdc index 5dee7a7a..befc06fa 100644 --- a/scripts/getFlowToUSD.cdc +++ b/scripts/getFlowToUSD.cdc @@ -1,15 +1,6 @@ -import "PublicPriceOracle" +import "FIND" -access(all) fun main():UFix64? { +access(all) fun main():UFix64 { - let feeds = PublicPriceOracle.getAllSupportedOracles() - for address in feeds.keys { - - let name= feeds[address] - if name=="FLOW/USD" { - return PublicPriceOracle.getLatestPrice(oracleAddr: address) - } - - } - return nil + return FIND.getLatestPrice() }