-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] - Include the amount of actionDeposit
in the query stake-address-info
#592
Comments
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days. |
refresh |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days. |
@CarlosLopezDeLara> how one would obtain the value to put in |
@smelc it is:
|
@CarlosLopezDeLara> are you sure? If I understood @gitmachtl right, he wants the sum of deposits of governance actions done by the stake address being considered. It's not a static value. |
the idea was, that if you do a stake-address info query, you now get the information about a vote delegation. thats nice. but, in case of a stake-address deregistration and an open running action proposal linked to that stake address, it would be good to have those amounts summed up also in an entry of the stakeaddress-info. so you can easily check if there are still things "open", before you deregister/shutdown such a stake account. otherwise, if you forget about an action and you deregister it, the 100kAda are going where? to the treasury? we have mechanism on the chain that prevents us from shutting down a stake address if there is this a value in the rewards account. but if funds are locked up in a governance action, we don't have this safety mechanism. same goes for an action proposal that is a treasury withdrawal to such a stake address. i guess it will not be a common thing that people forget about there used stake address in proposals, but still a bit strange that there is currently no safety guard. so together with such a query, it would be nice to think about such a safety feature in the ledger itself. disabling a stakeaddress retirement if the address has rewards on it (like now), but in addition block the retirement if its used in an action proposal. |
Apologies @smelc, I misunderstood the question. To get the amount locked in action deposits one would need to query the gov-state and parse the active proposals. Every proposal contains the fields: deposit return address and deposit |
i know, the question is, can we make it more convenient for people to do a global stake address info check also with that info. and, can we introduce safety guards in the ledger? |
cc @lehins |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days. |
anti stale |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days. |
Because of this behavior (IntersectMBO/cardano-ledger#4017), is it possible to add current governance action deposits as an extra value to the
stake-address-info
query?It would avoid falling into the pit to retire a stakeaddress while an active governance proposal deposit is running.
Would it be possible to have a sum of all governance action deposits in the query output like:
Otherwise tools would need to always query twice to do a check if the stake-address hash is involved in any ongoing governance action deposits.
So similar with remaining rewards on a stake account, it would make it - at least via the used tools - impossible to retire a stakeaddress until also actions deposits were returned. To avoid loosing the deposit funds.
EDIT: try to include Stake Pool Registration deposits. CarlosLopezDeLara
The text was updated successfully, but these errors were encountered: