Global

Methods

getAPY() → {object}

Returns:
  • return APY
Type
object

getLastEpochProfit() → {object}

Returns:
  • return LastEpochProfit
Type
object

getLiquidateList() → {object}

Returns:
  • return count, List
Type
object

getLiquidatorFunds(wallet) → {object}

Parameters:
Name Type Description
wallet object

pass wallet to get cbs details

Returns:
  • return LiquidatorFunds
Type
object

useAuctionProtocolOverview(wallet) → {object}

Parameters:
Name Type Description
wallet object

pass wallet to get auction cbs details

Returns:
  • return netDeposit, auctionAPY, netLiquidatorFunds, lastEpochProfit
Type
object

useAuctionUserAccount(wallet) → {Array}

Parameters:
Name Type Description
wallet object

pass wallet to get auction user account details

Returns:
  • return Deposit,lpUSDValue
Type
Array

useCBSProtocolOverview(wallet) → {object}

Parameters:
Name Type Description
wallet object

pass wallet to get cbs details

Returns:
  • return netDeposit, netBorrow, cbsTVL, systemLTV
Type
object

useCBSUserAccount(wallet) → {Array}

Parameters:
Name Type Description
wallet object

pass wallet to get cbs user account details

Returns:
  • return Collateral, Borrowed, Borrow Limit, Liquidation Threshold, LTV
Type
Array

useWallet(PRIVATE_KEY) → {object}

Creating a wallet using private key

Parameters:
Name Type Description
PRIVATE_KEY string

private key of user wallet

Returns:
  • return wallet
Type
object