@@ -21,7 +21,7 @@ const getOracleValue = async (api: AnyApi, token: MaybeCurrency) => {
2121 throw new Error ( `Oracle price source is unavailable for ${ getTokenName ( token ) } ` ) ;
2222}
2323
24- const queryPriceFromOracle = async ( api : AnyApi , _block : SubstrateBlock , token : MaybeCurrency ) => {
24+ const queryPriceFromOracle = async ( api : AnyApi , token : MaybeCurrency ) => {
2525 const result = await getOracleValue ( api , token ) ;
2626 const value = result ?. unwrapOrDefault ?.( ) || result ;
2727
@@ -106,7 +106,7 @@ const getKusdMarketPrice = async (api: AnyApi, block: SubstrateBlock) => {
106106}
107107
108108const getAusdMarketPrice = async ( api : AnyApi , block : SubstrateBlock ) => {
109- const acaPrice = await queryPriceFromOracle ( api , block as any , 'ACA' )
109+ const acaPrice = await queryPriceFromOracle ( api , 'ACA' )
110110
111111 const pool = await getPool ( 'ACA' , 'AUSD' )
112112
@@ -124,7 +124,7 @@ const getKsmMarketPrice = (api: AnyApi, block: SubstrateBlock) => {
124124 const stakingCurrency = api . consts . prices . getStakingCurrencyId ;
125125 const stakingCurrencyName = getTokenName ( stakingCurrency as any ) ;
126126
127- return queryPriceFromOracle ( api , block as any , stakingCurrencyName )
127+ return queryPriceFromOracle ( api , stakingCurrencyName )
128128}
129129
130130const getDotMarketPrice = async ( api : AnyApi , block : SubstrateBlock ) => {
0 commit comments