Skip to content

Commit

Permalink
fix oracle result decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruv-chauhan committed Jun 19, 2024
1 parent f3b3d51 commit f82e4ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion subgraphs/aave-forks/protocols/seismic/src/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,10 @@ function getAssetPriceInUSDC(
}

// Avalanche Oracle return the price offset by 8 decimals
if (equalsIgnoreCase(dataSource.network(), Network.AVALANCHE)) {
if (
equalsIgnoreCase(dataSource.network(), Network.AVALANCHE) ||
equalsIgnoreCase(dataSource.network(), Network.BLAST_MAINNET)
) {
return oracleResult.toBigDecimal().div(exponentToBigDecimal(AAVE_DECIMALS));
}

Expand Down

0 comments on commit f82e4ea

Please sign in to comment.