📜
SRWA Documentation
SRWA.ioDemoGitHub
  • Getting Started
    • Overview
      • Components
        • Lending Protocol
        • Lending Pool
        • SRWA Badge
      • Other
        • Oracle
        • Admin
    • How It Works
      • Risk Management
      • Deposit
      • Borrow
      • Withdraw
      • Repay
      • Liquidate
  • Core Calculations
    • Utilization
    • APR
    • SB and SD Tokens
    • Interests
    • Available Liquidity
    • Collateral
    • Protocol Reserve
  • SRWA Interface
    • About
    • Requirements
    • How to Use
      • Lending
        • Lending Account
        • Savings and Loans
        • Deposit
        • Withdraw
        • Borrow
        • Repay
      • Market
      • Tools
        • Transactions
        • Wallet
Powered by GitBook
On this page
  1. Core Calculations

APR

Annual percentage rate (APR) refers to the yearly interest generated by a sum that's charged to borrowers or paid to lenders.

APR is based on borrow rate, which is calculated based on kink:

If the utilization is less than kink then the borrow rate is:

borrow_rate = base + base_multiplier * utilization

Otherwise, it's:

borrow_rate = base + base_multiplier * kink + multiplier * (utilization - kink)

Base, Base Multiplier, Multiplier and kink are the pool parameters that are set by the Admins and they can be changed if needed.

When we have the borrow rate it's used to calculate APR, with the passage of time:

borrow_apr = borrow_rate * (current_epoch - last_interaction_epoch) / (365 * 24 * 60 / 5)

PreviousUtilizationNextSB and SD Tokens