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

Add a view function to display an account's VestingRecord #132

Open
isaacdoidge opened this issue Nov 29, 2024 · 0 comments
Open

Add a view function to display an account's VestingRecord #132

isaacdoidge opened this issue Nov 29, 2024 · 0 comments
Assignees

Comments

@isaacdoidge
Copy link

An account's VestingRecord cannot currently be accessed via the view methods of 0x1::vesting_without_staking. Consequently, we cannot use the smart contract to calculate the currently claimable amount for a given account. The contract exposes the remaining_grant, but this is the entirety of the remaining allocation, not the unlocked portion.

If we add a view function to display theVestingRecord for an account, then a client can calculate the currently available amount by using the init_amount from the record in conjunction with the start_timestamp_secs, period_duration and schedule of the related VestingSchedule.

We should aim to release this patch in the first framework upgrade.

@isaacdoidge isaacdoidge changed the title Add a view function to display an account VestingRecord Add a view function to display an account's VestingRecord Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants