Rebar

Aave Protocol Analytics

Complete analytics suite for the Aave lending protocol on Ethereum, including supply rates, borrow rates, and market sizes.

17
Markets
$3.8B
Total Value Locked
17
Data Points
ethereumdefilendingaave
Function Node

Aave v3 Interest Rate Strategy Kink Calculation

[node2fd364e0d82d38f0f3a4d62c0d35f9c8d0a11230b8d1b276ee2f32b358a4dcf8]

Function Logic

starlark

def calculate_kink_apr(utilization, optimalUtilization, baseRate, variableSlope1, variableSlope2):

  if utilization <= optimalUtilization:
    return baseRate + (variableSlope1 * utilization / optimalUtilization)
  else:
    excessUtilization = (utilization - optimalUtilization) / (1 - optimalUtilization)
    return baseRate + variableSlope1 + (variableSlope2 * excessUtilization)

Node Links

Owned
Synced
Nonce: 0

Properties

Calculate the APR for a given asset on Aave v3 based on the utilization and interest rate strategy parameters in ray

No data available
node2f...a4dcf8
rebar1...75pfsp

signer

0

Function Logic

starlark
def calculate_kink_apr(utilization, optimalUtilization, baseRate, variableSlope1, variableSlope2):

  if utilization <= optimalUtilization:
    return baseRate + (variableSlope1 * utilization / optimalUtilization)
  else:
    excessUtilization = (utilization - optimalUtilization) / (1 - optimalUtilization)
    return baseRate + variableSlope1 + (variableSlope2 * excessUtilization)

Node Links

Network Connections

No Connections

This node has no connections yet.

💡 Extend in Builder