get current debt

Overview

get current debt

  • queries both the stable debt and variable debt token balance for the target user

  • For a specific asset user can only borrow in either stable or variable mode; cannot have concurrent debt in both modes simultaneously

  • Therefore, one of the values returned will be 0

balanceOf returns the debt balance accounting for interest up till the current block.timestamp

Last updated