Abax Documentation
  • 🧮Meet Abax!
    • Overview
    • Glossary
  • Lending
    • Collateral & Borrowing
    • Health Factor
    • Market Rules
    • Interest Rate Model
    • Liquidation
      • Liquidation Formula
    • Protocol Fee
  • Tokenomics
    • Abax Token
    • Public Contribution
    • Promotional Campaigns
  • How to Use Abax
    • How to Start Using Abax?
    • How Can I Make a Deposit?
    • How Do I Withdraw?
    • How Can I Borrow?
    • How Do I Repay Debt?
  • Governance
    • Governance System
  • Contracts
    • Lending Protocol
      • Lending Pool
        • Messages
          • Lending Pool Actions
          • Lending Pool Flash
          • Lending Pool Maintain
          • Lending Pool Manage
          • Lending Pool View
          • A Token Interface
          • V Token Interface
        • Storage
          • Types
          • Structs
        • Calculations
          • Interest Accumulation
          • Account Interest Accumulation
          • Rate Recalculation
          • Calculate Lending Power
        • Errors
    • Abax DAO
Powered by GitBook
On this page
  1. Contracts
  2. Lending Protocol
  3. Lending Pool
  4. Messages

V Token Interface

fn total_debt_of(&self, underlying_asset: AccountId) -> Balance;
fn user_debt_of(&self, underlying_asset: AccountId, user: AccountId) -> Balance;
fn transfer_debt_from_to(
    &mut self,
    underlying_asset: AccountId,
    from: AccountId,
    to: AccountId,
    amount: Balance,
) -> Result<(Balance, Balance), LendingPoolError>;
PreviousA Token InterfaceNextStorage

Last updated 1 year ago