subscan
Runtime Modules / Loans
Spec Version:
Events
Name
Lookup
Attributes
DepositCollateral6400["AccountId","CurrencyId","BalanceOf"]
WithdrawCollateral6401["AccountId","CurrencyId","BalanceOf"]
Deposited6402["AccountId","CurrencyId","BalanceOf"]
Redeemed6403["AccountId","CurrencyId","BalanceOf"]
Borrowed6404["AccountId","CurrencyId","BalanceOf"]
RepaidBorrow6405["AccountId","CurrencyId","BalanceOf"]
LiquidatedBorrow6406["AccountId","AccountId","CurrencyId","CurrencyId","BalanceOf","BalanceOf"]
ReservesReduced6407["AccountId","CurrencyId","BalanceOf","BalanceOf"]
ReservesAdded6408["AccountId","CurrencyId","BalanceOf","BalanceOf"]
NewMarket6409["CurrencyId","Market<BalanceOf>"]
ActivatedMarket640a["CurrencyId"]
UpdatedMarket640b["CurrencyId","Market<BalanceOf>"]
RewardAdded640c["AccountId","BalanceOf"]
RewardWithdrawn640d["AccountId","BalanceOf"]
MarketRewardSpeedUpdated640e["CurrencyId","BalanceOf","BalanceOf"]
DistributedSupplierReward640f["CurrencyId","AccountId","BalanceOf","BalanceOf"]
DistributedBorrowerReward6410["CurrencyId","AccountId","BalanceOf","BalanceOf"]
RewardPaid6411["AccountId","BalanceOf"]
IncentiveReservesReduced6412["AccountId","CurrencyId","BalanceOf"]
InterestAccrued6413["CurrencyId","BalanceOf","BalanceOf","FixedU128","Ratio","Rate","Rate","Rate"]
Storage Functions
Name
Type
LastAccruedInterestTime{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"U64","keys_id":51,"value_id":11}}
TotalBorrows{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"U128","keys_id":51,"value_id":6}}
TotalReserves{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"U128","keys_id":51,"value_id":6}}
AccountBorrows{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId","[U8; 32]"],"value":"loans:types:BorrowSnapshot","keys_id":483,"value_id":602}}
AccountDeposits{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId","[U8; 32]"],"value":"U128","keys_id":483,"value_id":6}}
BorrowIndex{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"U128","keys_id":51,"value_id":104}}
ExchangeRate{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"U128","keys_id":51,"value_id":104}}
BorrowRate{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"U128","keys_id":51,"value_id":104}}
SupplyRate{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"U128","keys_id":51,"value_id":104}}
UtilizationRatio{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"U32","keys_id":51,"value_id":173}}
Markets{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"loans:types:Market","keys_id":51,"value_id":172}}
UnderlyingAssetId{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"interbtc_primitives:CurrencyId","keys_id":51,"value_id":51}}
RewardSupplySpeed{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"U128","keys_id":51,"value_id":6}}
RewardBorrowSpeed{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"U128","keys_id":51,"value_id":6}}
RewardSupplyState{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"loans:types:RewardMarketState","keys_id":51,"value_id":603}}
RewardBorrowState{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId"],"value":"loans:types:RewardMarketState","keys_id":51,"value_id":603}}
RewardSupplierIndex{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId","[U8; 32]"],"value":"U128","keys_id":483,"value_id":6}}
RewardBorrowerIndex{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["interbtc_primitives:CurrencyId","[U8; 32]"],"value":"U128","keys_id":483,"value_id":6}}
RewardAccrued{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["[U8; 32]"],"value":"U128","keys_id":0,"value_id":6}}
MaxExchangeRate{"origin":"PlainType","plain_type":"U128","PlainTypeValue":104}
MinExchangeRate{"origin":"PlainType","plain_type":"U128","PlainTypeValue":104}
StorageVersion{"origin":"PlainType","plain_type":"loans:Versions","PlainTypeValue":604}
Constants
Name
Type
Value
PalletId[U8; 8]6d6f642f6c6f616e
RewardAssetIdinterbtc_primitives:CurrencyId000c
ReferenceAssetIdinterbtc_primitives:CurrencyId000b
Error Types
Name
Docs
InsufficientLiquidityInsufficient liquidity to borrow more or disable collateral
InsufficientDepositInsufficient deposit to redeem
TooMuchRepayRepay amount greater than allowed (either repays more than the existing debt, orexceeds the close factor)
InsufficientCollateralRepay amount more than collateral amount
LiquidatorIsBorrowerLiquidator is same as borrower
DepositsAreNotCollateralDeposits are not used as a collateral
InsufficientShortfallInsufficient shortfall to repay
InsufficientReservesInsufficient reserves
InvalidRateModelParamInvalid rate model params
MarketNotActivatedMarket not activated
InvalidLendTokenIdInvalid lend_token id
MarketDoesNotExistMarket does not exist
MarketAlreadyActivatedMarket already activated
MarketAlreadyExistsMarket already exists
NewMarketMustHavePendingStateNew markets must have a pending state
SupplyCapacityExceededUpper bound of supplying is exceeded
BorrowCapacityExceededUpper bound of borrowing is exceeded
InsufficientCashInsufficient cash in the pool
InvalidFactorThe factor should be greater than 0% and less than 100%
InvalidSupplyCapThe supply cap cannot be zero
InvalidExchangeRateThe exchange rate should be a value between `MinExchangeRate` and `MaxExchangeRate`
InvalidAmountAmount cannot be zero
DepositAllCollateralFailedLocking collateral failed. The account has no `free` tokens.
WithdrawAllCollateralFailedUnlocking collateral failed. The account has no `reserved` tokens.
TokensAlreadyLockedTokens already locked for a different purpose than borrow collateral
LockedTokensCannotBeRedeemedOnly free lend tokens are redeemable