interlay / interbtc-squid

Subquid GraphQL schema and indexer for the Interlay and Kintsugi networks
Apache License 2.0
4 stars 7 forks source link

Fix: Div by zero error in getExchangeRate #122

Closed bvotteler closed 1 year ago

bvotteler commented 1 year ago

Fixing two issues: 1) Bug in code where it should identify IBTC as Bitcoin priced (looks like copy pasta error) 2) Avoid div by zero errors when converting, rather return 0.