Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

VestingContract doesn't make funds above vestingTotalAmount immediately available. #539

@tomkha

Description

@tomkha

New issue checklist

General information

  • Library version(s): 1.5.4
  • Browser version(s):
  • Devices/Simulators/Machine affected:
  • Reproducible in the testnet? (Yes/No): Yes
  • Related issues:

Bug report

VestingContract.getMinCap must not return a value greater than vestingTotalAmount

Expected behavior

Funds above vestingTotalAmount must be immediately available after creation.

Actual behavior

Extra funds are unlocked in steps preceding vestingStart block.

Steps to reproduce

Create a vesting contract with the vesting start block somewhere in the future, define vesting step block, vesting step amount, total vesting amount. The transaction must have a value greater than total vesting amount. If you try to withdraw those extra funds before the vesting start block you'll get "balance error".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions