VaultAnnuity¶
Calls¶
set_reward_per_wrapped¶
Attributes¶
Name | Type |
---|---|
reward_per_wrapped | BalanceOf<T, I> |
Python¶
call = substrate.compose_call(
'VaultAnnuity', 'set_reward_per_wrapped', {'reward_per_wrapped': 'u128'}
)
update_rewards¶
Attributes¶
No attributes
Python¶
call = substrate.compose_call(
'VaultAnnuity', 'update_rewards', {}
)
withdraw_rewards¶
Attributes¶
No attributes
Python¶
call = substrate.compose_call(
'VaultAnnuity', 'withdraw_rewards', {}
)
Events¶
BlockReward¶
Attributes¶
Name | Type | Composition |
---|---|---|
None | BalanceOf<T, I> |
u128 |
Storage functions¶
RewardPerBlock¶
Python¶
result = substrate.query(
'VaultAnnuity', 'RewardPerBlock', []
)
Return value¶
'u128'
RewardPerWrapped¶
Python¶
result = substrate.query(
'VaultAnnuity', 'RewardPerWrapped', []
)
Return value¶
'u128'
Constants¶
AnnuityPalletId¶
The annuity module id, used for deriving its sovereign account ID.
Value¶
'0x766c742f616e6e75'
Python¶
constant = substrate.get_constant('VaultAnnuity', 'AnnuityPalletId')
EmissionPeriod¶
The emission period for block rewards.
Value¶
2628000
Python¶
constant = substrate.get_constant('VaultAnnuity', 'EmissionPeriod')