-
Notifications
You must be signed in to change notification settings - Fork 313
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
ledger grant issue #692
Comments
Ah interesting - I've not seen this before! Do you know if they created the grant using REStake? I also wonder if that's a valid grant and would allow REStake or if the null expiry treats it as expired. IF it's valid then it should be pretty easy to update the REStake script to handle the null expiration and treat as valid. |
I just asked and at least the Evmos one was done with CLI & Ledger grants with a null expiration are valid grants, source is here: That is a grant that is working currently |
I did try to edit the parseGrants() to remove the expiration check myself but everytime It messed up the entire thing, I just assumed it was because of a lack of context of the codebase and familiarity with javascript (more used to python and php here) |
Is this still an issue? We're seeing the same symptoms. For
if we set
which fails the check in Line 75 in daf955d
Line 93 in daf955d
false instead of true , because null is < new Date() ?
Submitted PR #749 for this. |
Strangely this seems to have caused some issues for me. It appears that the null expiration can potentially be unclear, i.e. it might mean an unlimited expiration, or it might mean already expired (potentially?). CryptoOrg:
Evmos:
Changing null expiration back so it's treated as an invalid grant fixes both of these issues. Evmos could be a combination of an infinite grant and vesting tokens, but it's strange this is the first time I've seen it. Crypto.org is pretty clear that it's an invalid or expired grant. @AutoStake-com @vchong I think for now we'll need to revert this change, and just encourage any users with infinite grants to set an expiration date using restake.app. Let me know if you have any better ideas, otherwise I'll revert it over the next day or so. |
Further to this #623 (comment)
I also had a user on Evmos now in the same situation, I did a bit of digging and I found that the ones that are not working:
https://umee.mainnet.lcd.autostake.net/cosmos/authz/v1beta1/grants/granter/umee18nupa5ptx6n5q2240xpgm4pqlhy2080ztn9ms3
https://evmos.mainnet.lcd.autostake.net/cosmos/authz/v1beta1/grants/granter/evmos18m5jqxehad27zzyrdts4a7h0rmpncm4f3ughsy
contain a null expiration
whereas the ones that are working:
https://rebus.mainnet.lcd.autostake.net/cosmos/authz/v1beta1/grants/granter/rebus1sujs9xa0axafxwedujf9aafmkuse40j0eurwk4
contain a non null expiration
Now it do see check for the expiration in parseGrants() and wandering if there is a bug in the newer SDK's causing this null expiration?
Or am I completely wrong here? is it working for you?
The text was updated successfully, but these errors were encountered: