diff --git a/modules/network/avalanche.ts b/modules/network/avalanche.ts index 3757ec59f..8091b1f52 100644 --- a/modules/network/avalanche.ts +++ b/modules/network/avalanche.ts @@ -175,6 +175,7 @@ const avalancheNetworkData: NetworkData = { sourceUrl: 'https://ceres.gogopool.com', path: 'ggAVAXMonthlyInterestMonth.value', // According to solarcurve, the AVAX Monthly Interest must be multiplied by -12 to represent the APR in normal scale, for example, if the monthly interest is -0,15, the APR would be -0,15 * -12 = 1,8%. + // @solarcurve: We estimate by multiplying that value by -12 since its the exchange rate of AVAX -> ggAVAX, which will always return less ggAVAX than AVAX // How this -12 became -8,333? It's because the scale parameter is used to divide the number, and the final apr percentage is in decimal format (1,8% = 0,018), so if: // M * -12 = A (M is monthly rate and A is APR) => (M/x) = (A/100) => (A / -12x) = (A / 100) [replacing M by A/-12] => x = 100/-12 = -8,33333 scale: -8.3333,