SORA
subscan
Runtime Modules / ApolloPlatform
Spec Version:
Call Functions
Events
Name
Lookup
Attributes
PoolAdded7200["AccountIdOf","AssetIdOf"]
Lent7201["AccountIdOf","AssetIdOf","Balance"]
Borrowed7202["AccountIdOf","AssetIdOf","Balance","AssetIdOf","Balance"]
ClaimedLendingRewards7203["AccountIdOf","AssetIdOf","Balance"]
ClaimedBorrowingRewards7204["AccountIdOf","AssetIdOf","Balance"]
Withdrawn7205["AccountIdOf","AssetIdOf","Balance"]
Repaid7206["AccountIdOf","AssetIdOf","Balance"]
ChangedRewardsAmount7207["AccountIdOf","bool","Balance"]
ChangedRewardsAmountPerBlock7208["AccountIdOf","bool","Balance"]
Liquidated7209["AccountIdOf","AssetIdOf"]
PoolRemoved720a["AccountIdOf","AssetIdOf"]
PoolInfoEdited720b["AccountIdOf","AssetIdOf"]
CollateralAdded720c["AccountIdOf","AssetIdOf","Balance","AssetIdOf"]
Storage Functions
Name
Type
UserLendingInfo{"origin":"Map","n_map_type":{"hashers":["Identity","Identity"],"key_vec":["[U8; 32]","AccountId"],"value":"apollo_platform:LendingPosition","keys_id":765,"value_id":851}}
UserBorrowingInfo{"origin":"Map","n_map_type":{"hashers":["Identity","Identity"],"key_vec":["[U8; 32]","AccountId"],"value":"Vec<Tuple:[U8; 32]apollo_platform:BorrowingPosition>","keys_id":765,"value_id":852}}
PoolData{"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["[U8; 32]"],"value":"apollo_platform:PoolInfo","keys_id":67,"value_id":856}}
PoolsByBlock{"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["U32"],"value":"[U8; 32]","keys_id":4,"value_id":67}}
AuthorityAccount{"origin":"PlainType","plain_type":"AccountId","PlainTypeValue":0}
TreasuryAccount{"origin":"PlainType","plain_type":"AccountId","PlainTypeValue":0}
LendingRewards{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
BorrowingRewards{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
LendingRewardsPerBlock{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
BorrowingRewardsPerBlock{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
Constants
Name
Type
Value
UnsignedPriorityU649999999999999919
UnsignedLongevityU640500000000000000
Error Types
Name
Docs
UnauthorizedUnauthorized
AssetAlreadyListedAsset already listed
InvalidPoolParametersInvalid pool parameters
PoolDoesNotExistPool does not exist
InvalidLendingAmountThe amount that is being lent is invalid
CollateralTokenDoesNotExistCollateral token does not exists
NoLendingAmountToBorrowNo lending amount to borrow
SameCollateralAndBorrowingAssetsSame borrowing and collateral assets
NoLiquidityForBorrowingAssetNo liquidity for borrowing asset
NothingLentNothing lent
InvalidCollateralAmountInvalid collateral amount
CanNotTransferBorrowingAmountCan not transfer borrowing amount
CanNotTransferCollateralAmountCan not transfer collateral amount
NoRewardsToClaimNo rewards to claim
UnableToTransferRewardsUnable to transfer rewards
InsufficientLendingAmountInsufficient lending amount
LendingAmountExceededLending amount exceeded
CanNotTransferLendingAmountCan not transfer lending amount
NothingBorrowedNothing borrowed
NonexistentBorrowingPositionNonexistent borrowing position
NothingToRepayNothing to repay
CanNotTransferLendingInterestCan not transfer lending interest
UnableToTransferCollateralUnable to transfer collateral
UnableToTransferAmountToRepayUnable to transfer amount to repay
CanNotWithdrawLendingAmountCan not withdraw lending amount
CanNotTransferBorrowingRewardsCan not transfer borrowing rewards
CanNotTransferAmountToRepayCan not transfer amount to repay
CanNotTransferAmountToDevelopersCan not transfer amount to developers
InvalidLiquidationUser should not be liquidated
PoolIsRemovedPool is removed
InvalidBorrowingAmountInvalid borrowing amount
InvalidLoanToValueInvalid loan to value