LLD is locked/reserved on democracy and election actions #193
Closed
Description
Upstream democracy and election pallets use Currency trait to reserve and/or lock some amounts of currency for certain actions. All our pallets, including democracy and election, are configured to use LLD as currency. So even though we've modified them to additionally check LLM, they also make locks/reserves on LLD.
Example (query.balances.locks
refers to locks on LLD):
kacper@kacper-HP-ProBook-445-G7 ~> polkadot-js-api -q --ws ws://localhost:9944 --seed "//Charlie" query.balances.locks 0x90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22 # Charlie's AccountID
{
"locks": []
}
kacper@kacper-HP-ProBook-445-G7 ~ [1]> polkadot-js-api -q --ws ws://localhost:9944 --seed "//Charlie" tx.elections.vote '["0x90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22"]' 1000
{
"vote": {
"events": [],
"status": "Ready"
}
}
{
[...]
"event": {
"method": "ExtrinsicSuccess",
[...]
}
kacper@kacper-HP-ProBook-445-G7 ~> polkadot-js-api -q --ws ws://localhost:9944 --seed "//Charlie" query.balances.locks 0x90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22 # Charlie's AccountID
{
"locks": [
{
"id": "phrelect",
"amount": "1,000",
"reasons": "All"
}
]
}
Metadata
Assignees
Labels
No labels