subscan
Runtime Modules / LendMarket
Spec Version:
Events
Name
Lookup
Attributes
CollateralAssetAdded8300["AccountId","AssetIdOf"]
CollateralAssetRemoved8301["AccountId","AssetIdOf"]
Deposited8302["AccountId","AssetIdOf","BalanceOf"]
Redeemed8303["AccountId","AssetIdOf","BalanceOf"]
Borrowed8304["AccountId","AssetIdOf","BalanceOf"]
RepaidBorrow8305["AccountId","AssetIdOf","BalanceOf"]
LiquidatedBorrow8306["AccountId","AccountId","AssetIdOf","AssetIdOf","BalanceOf","BalanceOf"]
ReservesReduced8307["AccountId","AssetIdOf","BalanceOf","BalanceOf"]
ReservesAdded8308["AccountId","AssetIdOf","BalanceOf","BalanceOf"]
NewMarket8309["AssetIdOf","Market<BalanceOf>"]
ActivatedMarket830a["AssetIdOf"]
UpdatedMarket830b["AssetIdOf","Market<BalanceOf>"]
RewardAdded830c["AccountId","BalanceOf"]
RewardWithdrawn830d["AccountId","BalanceOf"]
MarketRewardSpeedUpdated830e["AssetIdOf","BalanceOf","BalanceOf"]
DistributedSupplierReward830f["AssetIdOf","AccountId","BalanceOf","BalanceOf"]
DistributedBorrowerReward8310["AssetIdOf","AccountId","BalanceOf","BalanceOf"]
RewardPaid8311["AccountId","BalanceOf"]
IncentiveReservesReduced8312["AccountId","AssetIdOf","BalanceOf"]
LiquidationFreeCollateralsUpdated8313["Vec<AssetIdOf>"]
Storage Functions
Name
Type
LastAccruedInterestTime{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U64","keys_id":251,"value_id":11}}
LiquidationFreeCollaterals{"origin":"PlainType","plain_type":"Vec<bifrost_primitives:currency:CurrencyId>","PlainTypeValue":270}
TotalSupply{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":251,"value_id":6}}
TotalBorrows{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":251,"value_id":6}}
TotalReserves{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":251,"value_id":6}}
AccountBorrows{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId","AccountId"],"value":"lend_market:types:BorrowSnapshot","keys_id":785,"value_id":833}}
AccountDeposits{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId","AccountId"],"value":"lend_market:types:Deposits","keys_id":785,"value_id":834}}
AccountEarned{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId","AccountId"],"value":"lend_market:types:EarnedSnapshot","keys_id":785,"value_id":835}}
BorrowIndex{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":251,"value_id":376}}
ExchangeRate{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":251,"value_id":376}}
BorrowRate{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":251,"value_id":376}}
SupplyRate{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":251,"value_id":376}}
UtilizationRatio{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U32","keys_id":251,"value_id":280}}
Markets{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"lend_market:types:Market","keys_id":251,"value_id":375}}
UnderlyingAssetId{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"bifrost_primitives:currency:CurrencyId","keys_id":251,"value_id":251}}
RewardSupplySpeed{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":251,"value_id":6}}
RewardBorrowSpeed{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"U128","keys_id":251,"value_id":6}}
RewardSupplyState{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"lend_market:types:RewardMarketState","keys_id":251,"value_id":836}}
RewardBorrowState{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId"],"value":"lend_market:types:RewardMarketState","keys_id":251,"value_id":836}}
RewardSupplierIndex{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId","AccountId"],"value":"U128","keys_id":785,"value_id":6}}
RewardBorrowerIndex{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["bifrost_primitives:currency:CurrencyId","AccountId"],"value":"U128","keys_id":785,"value_id":6}}
RewardAccured{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"U128","keys_id":0,"value_id":6}}
StorageVersion{"origin":"PlainType","plain_type":"lend_market:Versions","PlainTypeValue":837}
Constants
Name
Type
Value
PalletId[U8; 8]62662f6c646d6b74
RewardAssetIdbifrost_primitives:currency:CurrencyId0001
LiquidationFreeAssetIdbifrost_primitives:currency:CurrencyId0800
Error Types
Name
Docs
InsufficientLiquidityInsufficient liquidity to borrow more or disable collateral
InsufficientDepositInsufficient deposit to redeem
TooMuchRepayRepay amount greater than allowed
DuplicateOperationAsset already enabled/disabled collateral
NoDepositNo deposit asset
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
PriceOracleNotReadyOracle price not ready
PriceIsZeroOracle price is zero
InvalidCurrencyIdInvalid asset id
InvalidLendTokenIdInvalid lend token id
MarketDoesNotExistMarket does not exist
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 greater than 0.02 and less than 1
InvalidAmountAmount cannot be zero
PayerIsSignerPayer cannot be signer
CodecErrorCodec error
CollateralReservedCollateral is reserved and cannot be liquidated