Joystream / Joystream/joystream

vestedTransfer not working as expected for past blocks

Open
#4,581 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.4k
Forks
116
PR merge metrics
No merged PRs in 30d

Description

Tried to do a vestedTransfer between my accounts with the following parameters.

- locked : 30 JOY
- per block : 0.00004 JOY
- startingBlock : 1

![image](https://user-images.githubusercontent.com/101491745/215318007-7ac554d8-513f-4400-9870-cdfc03b4d5d7.png)

Expectation was to create a vesting that happened between blocks 1 to 750,000.
At the moment of this extrinsic transaction, the block number was 726,787.
So if my expectations were met, claimable tokens should be 29 JOY.

![image](https://user-images.githubusercontent.com/101491745/215318162-4eb857b0-c7cd-415c-83ee-062b313157f8.png)

Pioneer account info shows exactly this, but if I click "Claim", it shows I have only <0.01 JOY to claim.

I believe vestedTransfer doesn't work for past blocks. And if such is the case, the input should be restricted to stop users from making mistakes and losing funds.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.