Skip to content
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

Undelegate "invalid shares amount" problem #317

Open
atmoner opened this issue Feb 5, 2024 · 5 comments
Open

Undelegate "invalid shares amount" problem #317

atmoner opened this issue Feb 5, 2024 · 5 comments
Assignees
Labels
bug Something isn't working Cosmos-SDK Waiting for Cosmos-SDK upstream update

Comments

@atmoner
Copy link
Member

atmoner commented Feb 5, 2024

When i try to undelegate the max, the sdk tells me that the amount is too small and yet, it is the exact amount to be delegated...

Example config
My address: bcna13jawsn574rf3f0u5rhu7e8n6sayx5gkwgusz73
Validator delegated: bcnavaloper1xkv494sduqkpadwesqlsp6069yepsj58haejfv
Here with an amount: 14.857414 bcna

image

When i try to undelegate, with good amount on console log
image

And the return error from SDK:
image

Not tested from CLI

@RaulBernal RaulBernal self-assigned this Feb 5, 2024
@RaulBernal
Copy link
Member

It's happening when the "delegation.shares" is different than "balance.amount"
telegram-cloud-photo-size-4-5911488558835809921-y

@RaulBernal
Copy link
Member

I've tested three times with an account with many delegations. Everything works fine from cli.

Done UNbond:https://testnet.ping.pub/bitcanna/tx/35AE91FEA7B6A8F80F97102AD93EED907946915EF596B86103013D05C043D6A7
NOK cancel-unbond because Validator is jailed
https://testnet.ping.pub/bitcanna/tx/3295EF8578674CA2C23B79ADBDDF065F3716411B695FE67EEE62507B52C25C35

- balance:
    amount: "990000003070"
    denom: ubcna
  delegation:
    delegator_address: bcna1csyzlg52g2kd8e0xd6f6elckydhr93ukc3wmqt
    shares: "1010101010101.010101010101010101"
    validator_address: bcnavaloper16j0mtjwyz6s72q0ftl6fz0ykfp02836m0kp2kl


Done UNBOND
619C6549DC550D13ACFAB0FAA6B48500097F2C989913EFB9DBDBE937306639D0
Done Cancel UNBOND
https://testnet.ping.pub/bitcanna/tx/FE774D1959B21B420F5CF997A629C37B54E2630108218131542BCB021011F92A 
- balance:
    amount: "1372140009897"
    denom: ubcna
  delegation:
    delegator_address: bcna1csyzlg52g2kd8e0xd6f6elckydhr93ukc3wmqt
    shares: "1428425630880.176139975790529457"
    validator_address: bcnavaloper1n24j73stmw4c0crg2kq78ccjfvjqaxt67pnf0t





UNBOND DONE: validator is jailed, I can't Cancel-Unbond
https://testnet.ping.pub/bitcanna/tx/350F5ACE656EE77FBAF8715AB60A85F8B308ACE1A4C39D7F26B7E11EBDA655EC
- balance:
    amount: "200"
    denom: ubcna
  delegation:
    delegator_address: bcna1csyzlg52g2kd8e0xd6f6elckydhr93ukc3wmqt
    shares: "206.126403839306669738"
    validator_address: bcnavaloper1mgvkypq6f2dlpkwpqy076w4j3n5r2z9p3833vk

Please @atmoner provide me the full SDK message (copy and paste here) and we could make some CLI test with your account.

@RaulBernal
Copy link
Member

Related with SDK issue (April 2020) cosmos/cosmos-sdk#6063

@RaulBernal
Copy link
Member

@atmoner Could you tell me if this validator was jailed in the past?

@RaulBernal
Copy link
Member

bcnavaloper1xkv494sduqkpadwesqlsp6069yepsj58haejfv

image

I searched ... no jailed so... more related with this one:
cosmos/cosmos-sdk#11084

@RaulBernal RaulBernal added bug Something isn't working Cosmos-SDK Waiting for Cosmos-SDK upstream update labels Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cosmos-SDK Waiting for Cosmos-SDK upstream update
Projects
None yet
Development

No branches or pull requests

2 participants