Name | Lookup | Parameters | |
---|---|---|---|
add_pool | 7200 | 8 | |
lend | 7201 | 2 | |
borrow | 7202 | 4 | |
get_rewards | 7203 | 2 | |
withdraw | 7204 | 2 | |
repay | 7205 | 3 | |
change_rewards_amount | 7206 | 2 | |
change_rewards_per_block | 7207 | 2 | |
liquidate | 7208 | 2 | |
remove_pool | 7209 | 1 | |
edit_pool_info | 720a | 8 | |
add_collateral | 720b | 3 |
Name | Lookup | Attributes | |
---|---|---|---|
PoolAdded | 7200 | ["AccountIdOf","AssetIdOf"] | |
Lent | 7201 | ["AccountIdOf","AssetIdOf","Balance"] | |
Borrowed | 7202 | ["AccountIdOf","AssetIdOf","Balance","AssetIdOf","Balance"] | |
ClaimedLendingRewards | 7203 | ["AccountIdOf","AssetIdOf","Balance"] | |
ClaimedBorrowingRewards | 7204 | ["AccountIdOf","AssetIdOf","Balance"] | |
Withdrawn | 7205 | ["AccountIdOf","AssetIdOf","Balance"] | |
Repaid | 7206 | ["AccountIdOf","AssetIdOf","Balance"] | |
ChangedRewardsAmount | 7207 | ["AccountIdOf","bool","Balance"] | |
ChangedRewardsAmountPerBlock | 7208 | ["AccountIdOf","bool","Balance"] | |
Liquidated | 7209 | ["AccountIdOf","AssetIdOf"] | |
PoolRemoved | 720a | ["AccountIdOf","AssetIdOf"] | |
PoolInfoEdited | 720b | ["AccountIdOf","AssetIdOf"] | |
CollateralAdded | 720c | ["AccountIdOf","AssetIdOf","Balance","AssetIdOf"] |
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} |
Name | Type | Value | |
---|---|---|---|
UnsignedPriority | U64 | 9999999999999919 | |
UnsignedLongevity | U64 | 0500000000000000 |
Name | Docs |
---|---|
Unauthorized | Unauthorized |
AssetAlreadyListed | Asset already listed |
InvalidPoolParameters | Invalid pool parameters |
PoolDoesNotExist | Pool does not exist |
InvalidLendingAmount | The amount that is being lent is invalid |
CollateralTokenDoesNotExist | Collateral token does not exists |
NoLendingAmountToBorrow | No lending amount to borrow |
SameCollateralAndBorrowingAssets | Same borrowing and collateral assets |
NoLiquidityForBorrowingAsset | No liquidity for borrowing asset |
NothingLent | Nothing lent |
InvalidCollateralAmount | Invalid collateral amount |
CanNotTransferBorrowingAmount | Can not transfer borrowing amount |
CanNotTransferCollateralAmount | Can not transfer collateral amount |
NoRewardsToClaim | No rewards to claim |
UnableToTransferRewards | Unable to transfer rewards |
InsufficientLendingAmount | Insufficient lending amount |
LendingAmountExceeded | Lending amount exceeded |
CanNotTransferLendingAmount | Can not transfer lending amount |
NothingBorrowed | Nothing borrowed |
NonexistentBorrowingPosition | Nonexistent borrowing position |
NothingToRepay | Nothing to repay |
CanNotTransferLendingInterest | Can not transfer lending interest |
UnableToTransferCollateral | Unable to transfer collateral |
UnableToTransferAmountToRepay | Unable to transfer amount to repay |
CanNotWithdrawLendingAmount | Can not withdraw lending amount |
CanNotTransferBorrowingRewards | Can not transfer borrowing rewards |
CanNotTransferAmountToRepay | Can not transfer amount to repay |
CanNotTransferAmountToDevelopers | Can not transfer amount to developers |
InvalidLiquidation | User should not be liquidated |
PoolIsRemoved | Pool is removed |
InvalidBorrowingAmount | Invalid borrowing amount |
InvalidLoanToValue | Invalid loan to value |