Fee¶
Calls¶
set_issue_fee¶
Changes the issue fee percentage (only executable by the Root account)
# Arguments
origin
- signing accountfee
- the new fee
Attributes¶
Name | Type |
---|---|
fee | UnsignedFixedPoint<T> |
Python¶
call = substrate.compose_call(
'Fee', 'set_issue_fee', {'fee': 'u128'}
)
set_issue_griefing_collateral¶
Changes the issue griefing collateral percentage (only executable by the Root account)
# Arguments
origin
- signing accountgriefing_collateral
- the new griefing collateral
Attributes¶
Name | Type |
---|---|
griefing_collateral | UnsignedFixedPoint<T> |
Python¶
call = substrate.compose_call(
'Fee', 'set_issue_griefing_collateral', {'griefing_collateral': 'u128'}
)
set_premium_redeem_fee¶
Changes the premium redeem fee percentage (only executable by the Root account)
# Arguments
origin
- signing accountfee
- the new fee
Attributes¶
Name | Type |
---|---|
fee | UnsignedFixedPoint<T> |
Python¶
call = substrate.compose_call(
'Fee', 'set_premium_redeem_fee', {'fee': 'u128'}
)
set_punishment_fee¶
Changes the punishment fee percentage (only executable by the Root account)
# Arguments
origin
- signing accountfee
- the new fee
Attributes¶
Name | Type |
---|---|
fee | UnsignedFixedPoint<T> |
Python¶
call = substrate.compose_call(
'Fee', 'set_punishment_fee', {'fee': 'u128'}
)
set_redeem_fee¶
Changes the redeem fee percentage (only executable by the Root account)
# Arguments
origin
- signing accountfee
- the new fee
Attributes¶
Name | Type |
---|---|
fee | UnsignedFixedPoint<T> |
Python¶
call = substrate.compose_call(
'Fee', 'set_redeem_fee', {'fee': 'u128'}
)
set_replace_griefing_collateral¶
Changes the replace griefing collateral percentage (only executable by the Root account)
# Arguments
origin
- signing accountgriefing_collateral
- the new griefing collateral
Attributes¶
Name | Type |
---|---|
griefing_collateral | UnsignedFixedPoint<T> |
Python¶
call = substrate.compose_call(
'Fee', 'set_replace_griefing_collateral', {'griefing_collateral': 'u128'}
)
Storage functions¶
IssueFee¶
# Issue Fee share that users need to pay to issue tokens.
Python¶
result = substrate.query(
'Fee', 'IssueFee', []
)
Return value¶
'u128'
IssueGriefingCollateral¶
Default griefing collateral (e.g. DOT/KSM) as a percentage of the locked collateral of a Vault a user has to lock to issue tokens.
Python¶
result = substrate.query(
'Fee', 'IssueGriefingCollateral', []
)
Return value¶
'u128'
PremiumRedeemFee¶
# Vault Registry If users execute a redeem with a Vault flagged for premium redeem, they can earn a collateral premium, slashed from the Vault.
Python¶
result = substrate.query(
'Fee', 'PremiumRedeemFee', []
)
Return value¶
'u128'
PunishmentFee¶
Fee that a Vault has to pay if it fails to execute redeem or replace requests (for redeem, on top of the slashed value of the request). The fee is paid in collateral based on the token amount at the current exchange rate.
Python¶
result = substrate.query(
'Fee', 'PunishmentFee', []
)
Return value¶
'u128'
RedeemFee¶
# Redeem Fee share that users need to pay to redeem tokens.
Python¶
result = substrate.query(
'Fee', 'RedeemFee', []
)
Return value¶
'u128'
ReplaceGriefingCollateral¶
# Replace Default griefing collateral (e.g. DOT/KSM) as a percentage of the to-be-locked collateral of the new Vault. This collateral will be slashed and allocated to the replacing Vault if the to-be-replaced Vault does not transfer the Stellar assets on time.
Python¶
result = substrate.query(
'Fee', 'ReplaceGriefingCollateral', []
)
Return value¶
'u128'
Constants¶
FeePalletId¶
The fee module id, used for deriving its sovereign account ID.
Value¶
'0x6d6f642f66656573'
Python¶
constant = substrate.get_constant('Fee', 'FeePalletId')
MaxExpectedValue¶
Maximum expected value to set the storage fields to.
Value¶
1000000000000000000
Python¶
constant = substrate.get_constant('Fee', 'MaxExpectedValue')
Errors¶
AboveMaxExpectedValue¶
Value exceeds the expected upper bound for storage fields in this pallet.
Overflow¶
TryIntoIntError¶
Unable to convert value.