📜
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

SB and SD Tokens

SRWA Lending Protocol is using SRWA Deposit tokens and SRWA Borrow tokens to track the percentage of the pool share for the user. SB and SD tokens are similar to Radix Pool Units that are used in the native pools.

SB and SD tokens price for the asset is based in the total deposits and total borrows in the pool, so for the SB it will be:

sb_token_price = total_pool_borrow / total_sb_tokens

And for the SD it will be:

sd_token_price = total_pool_deposit / total_sd_tokens

The user position can always be presented based on the amount of SRWA tokens that the user has by multiplying that amount with the token price.

PreviousAPRNextInterests