Name | Lookup | Parameters | |
---|---|---|---|
register_token | 3200 | 6 | |
add_pool | 3201 | 7 | |
deposit | 3202 | 5 | |
get_rewards | 3203 | 4 | |
withdraw | 3204 | 5 | |
remove_pool | 3205 | 4 | |
change_pool_multiplier | 3206 | 5 | |
change_total_tokens | 3207 | 5 | |
change_info | 3208 | 6 | |
change_pool_deposit_fee | 3209 | 5 | |
change_token_info | 320a | 6 |
Name | Lookup | Attributes | |
---|---|---|---|
TokenRegistered | 3200 | ["AccountIdOf","AssetIdOf"] | |
PoolAdded | 3201 | ["AccountIdOf","AssetIdOf","AssetIdOf","AssetIdOf","bool"] | |
RewardWithdrawn | 3202 | ["AccountIdOf","Balance","AssetIdOf","AssetIdOf","AssetIdOf","bool"] | |
Withdrawn | 3203 | ["AccountIdOf","Balance","AssetIdOf","AssetIdOf","AssetIdOf","bool"] | |
PoolRemoved | 3204 | ["AccountIdOf","AssetIdOf","AssetIdOf","AssetIdOf","bool"] | |
Deposited | 3205 | ["AccountIdOf","AssetIdOf","AssetIdOf","AssetIdOf","bool","Balance"] | |
MultiplierChanged | 3206 | ["AccountIdOf","AssetIdOf","AssetIdOf","AssetIdOf","bool","u32"] | |
DepositFeeChanged | 3207 | ["AccountIdOf","AssetIdOf","AssetIdOf","AssetIdOf","bool","Balance"] | |
TokenInfoChanged | 3208 | ["AccountIdOf","AssetIdOf"] | |
TotalTokensChanged | 3209 | ["AccountIdOf","AssetIdOf","AssetIdOf","AssetIdOf","bool","Balance"] | |
InfoChanged | 320a | ["AccountIdOf","AssetIdOf","AssetIdOf","AssetIdOf","bool","Balance"] |
Name | Type | |
---|---|---|
TokenInfos | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["[U8; 32]"],"value":"demeter_farming_platform:TokenInfo","keys_id":67,"value_id":749}} | |
UserInfos | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["AccountId"],"value":"Vec<demeter_farming_platform:UserInfo>","keys_id":0,"value_id":750}} | |
Pools | {"origin":"Map","n_map_type":{"hashers":["Identity","Identity"],"key_vec":["[U8; 32]","[U8; 32]"],"value":"Vec<demeter_farming_platform:PoolData>","keys_id":643,"value_id":752}} | |
PalletStorageVersion | {"origin":"PlainType","plain_type":"demeter_farming_platform:StorageVersion","PlainTypeValue":754} | |
AuthorityAccount | {"origin":"PlainType","plain_type":"AccountId","PlainTypeValue":0} | |
FeeAccount | {"origin":"PlainType","plain_type":"AccountId","PlainTypeValue":0} |
Name | Docs |
---|---|
TokenAlreadyRegistered | Token is already registered |
TokenPerBlockCantBeZero | Token per block can't be zero |
InvalidAllocationParameters | Invalid allocation parameters |
InvalidMultiplier | Multiplier must be greater or equal to 1 |
InvalidDepositFee | Invalid deposit fee |
RewardTokenIsNotRegistered | Token is not registered |
PoolAlreadyExists | Pool already exists |
InsufficientFunds | Insufficient Funds |
ZeroRewards | Zero Rewards |
PoolDoesNotExist | Pool does not exist |
InsufficientLPTokens | Insufficient LP tokens |
PoolDoesNotHaveRewards | Pool does not have rewards, |
Unauthorized | Unauthorized |